Oracle is reportedly planning to cut up to 30,000 jobs and sell parts of its business as part of a major restructuring drive.