Once a cash-generating software stalwart, Oracle has transformed into a debt-heavy infrastructure builder. The strain is showing.