Oracle this week told some workers in the U.S. and India that their roles were being eliminated. Oracle Corp.'s mass layoffs on Tuesday were part of the company's cost-cutting measures as it continues to build out expensive data centers for powering artificial intelligence.