The Larry Ellison-led company is slashing jobs across cloud and database units. The restructuring is aimed at transitioning it from a traditional database software provider into an AI cloud rival to Amazon and Microsoft.