It can work if the danios were fully grown already, but even then a large oscar can swallow them in one bite if he wants to.
Oscars grow very quickly, so even a baby will soon outgrow your danios and chow down.
What size tank do you have set up?
I have a standard 55 gallon