Oracle Corp. didn’t wait for federal investigators to come calling after discovering in 2007 that a subsidiary in India was secretly stashing money to possibly bribe Indian officials.

The company voluntarily notified U.S. authorities. Now the Redwood Shores company has agreed to pay $2 million to settle Securities and Exchange Commission allegations that the subsidiary violated U.S. laws aimed at preventing bribery overseas, without admitting or denying any wrongdoing.