The layoffs include developers, engineers and senior managers and come as Oracle raises its restructuring costs to $2.8 billion and dramatically expands AI infrastructure spending.