Database-management-software giant Oracle Corp. has hired Stuart Levey, a former top lawyer at HSBC Holdings plc, as chief legal officer.