SAN FRANCISCO — Mark Hurd, who was known for both success and scandal at Hewlett-Packard and most recently served as co-chief executive of the software company Oracle, died on Friday. He was 62.

Larry Ellison, Oracle’s chairman and chief technology officer, announced the death but did not give a cause or say where Mr. Hurd died. Mr. Hurd, who lived in the Bay Area, had taken a medical leave of absence in September.

“Oracle has lost a brilliant and beloved leader who personally touched the lives of so many of us during his decade at Oracle,” Mr. Ellison wrote.

Mr. Hurd spent 25 years at the business technology company N.C.R., where he became chief executive and developed a reputation for cutting costs and improving the company’s stock price. In 2005, he became the surprise selection to lead Hewlett-Packard, a Silicon Valley pioneer known for computers and printer technology.