There is no rhyme or reason as to who is going to get riffed since it is very political, and managers shield themselves.
Get the he-l out of there; best thing I did 5 years ago. Got a brand new career with one of the leading competitors making almost 2x the money and working from home. All I can say is ohana baby.
Get out; it will save what ever morales you once had in trust for an employeer, not matter where you go.
And after 20 years of working with oracle tech stack and products; I don't touch the stuff anywhere and shy away from it as much as possible for other competitors products to fill the gaps of oracle junk. Thety have been screwing their customers for decades with their deceptive license practices, i know had to read them and fix them; and just get rid of them.
Anyway it does not hear to leave and will only hurt you long term as your career will not prosper long term.
Good luck.