Okay, firstly, neither a 10 gallon or a 30 gallon tank is anywhere big enough for one Oscar. What kind of Oscar have you got? You need to test your water for ammonia, nitrite, nitrate and pH. I think you've got problems due to the fact that the fish is opening and closing its mouth. There could be a few reasons for him doing this, it could be of lack of oxygen in the water, or it could be because toxins are present. When I want you to do is a large water change, 50% at least. Make sure you use a water conditioner. Have you got a tank that is cycled? Whichever tank is cycled, put the fish in it. If you haven't got a tank that is cycled, go and get yourself some stress zyme and follow the instructions on the bottle.
It is very difficult to advise at the moment until we know what situation you are at. I probably won't be on again till morning because it's very late in the UK