Years ago they bet on building deep vertical apps for specific industries and government services, built on top of their database. Nobody else, other than SAP, came even close. They're embedded and impossible to switch. Even AWS recognizes how sticky they are and offers managed Oracle on top of their own infrastructure.
This recent burst of stock price rise appears not to be about some hot new product, but mainly AI enthusiasm.