Oracle begins cutting thousands of jobs to boost profitability