Daniel is full of mistakes and failed prophesy, and the bible is far from infallible, but Daniel was written/composed in a time after the prophets, approaching the Christian era.. I think it has some inspiration, and is probably cobbled together from older epics, legends..
but the bible is...