Oracle software sales rise offsets weak hardware