The switch in the ranking came after a blockbuster earnings report from Oracle, powered by multibillion-dollar orders.