Despite soaring profits, Oracle is eliminating tens of thousands of roles to redirect billions into its AI ambitions.