"It took Hewlett-Packard less than a day to file a lawsuit against its former chief executive, Mark V. Hurd, over his decision to join its rival and partner Oracle as a co-president. H.P. filed its lawsuit on Tuesday in the Superior Court of California in Santa Clara, claiming that Mr. Hurd had breached his contract with the company. The lawsuit said that Mr. Hurd could use his intimate knowledge of H.P. and its trade secrets to aid Oracle and harm H.P. The two companies compete in the market for computer servers, storage systems and business software."

Our contract says that if we fire you, you have to go work at Starbucks afterward.

Sorry, but I have a really hard time feeling sorry for someone who rakes in as much dough as he most likely did. Also recall that he resigned because of inapproriate behavioiur so no, I really don't feel sorry for him.
It's standard practice for such positions that you can't join a competitor for X number of onths after resigning. It's not like he couldnt have done the smart thing and waited but we've already seen that he lack both smarts and ethics.
Although why Oracle would even want to hire him is anyone's guess.