Oracle plans thousands of job cuts