Oracle stock gained despite an earning miss as the tech giant touted AI demand and gave a strong sales outlook.