Tech giant Oracle has cut around 21,000 jobs worldwide over the last 12 months, as it restructures its business around AI.