Hewlett-Packard Co. (NYSE:HPQ) and Oracle Corp. (NASDAQ:ORCL) said Monday that they resolved litigation regarding former H-P Chief Executive Mark Hurd's acceptance of a co-president position at Oracle.

Terms of the settlement are confidential, but the technology giants said Hurd "will adhere to his obligations to protect HP's confidential information while fulfilling his responsibilities at Oracle."

Hurd resigned from H-P on Aug. 6 after five years at the company, with "circumstances surrounding a claim of sexual harassment against Hurd and H-P by a former contractor to H-P," according to H-P.

H-P sued Oracle a month later, a day after its chief executive, Larry Ellison, hired Hurd. The computer maker said that by working at Oracle, Hurd was putting H-P's "most valuable trade secrets and confidential information at peril."

Ellison had replied with a strongly worded criticism of H-P and of the lawsuit, suggesting that his company might discontinue its partnership with H-P. The two companies develop and sell products together and claim more than 100,000 joint customers.

The bonds between Oracle and H-P began weakening last year when Oracle said it was buying Sun Microsystems, a competitor to H-P, for $5.6 billion.  

H-P's shares rose 0.6% to $39.61 in after-hours trading, while Oracle's ticked up 0.4% to $27.59.