What generally happens to metal oxides when you heat them ?

Some metal oxides decompose to O2 + metal (e.g. Hg2O) while others don't do anything(e.g. Fe2O3). In fact I don't think you can make a general statement at all to that effect.