The database giant used to be an unstoppable juggernaut, but that is not the case anymore. What’s wrong, and how bad is it?