Oracle has begun a fresh round of layoffs as it cuts jobs while ramping up spending on AI infrastructure and data centres.