Generally speaking, electricity is the most expensive "automatic" heating energy source. This may be due to the fact that fossil fuels (oil, gas, wood, etc.) can be burned right where heat is needed...
With the exception of nuclear fusion oxygen cannot be obtained by heating anything. Certainly no heating process on earth is capable of producing oxygen.