Oracle begins layoffs affecting thousands, CNBC reports