Oracle Corp. CEO Larry Ellison has agreed to donate $100 million to charities to settle a lawsuit revolving around a $900 million gain that he made by selling some of his company stock after the dot-com bust.

The settlement, confirmed Monday by an attorney who filed the suit, still requires the approval of County Superior Court Judge John Schwartz. A hearing was scheduled for Sept. 26.