Pt/HfOx/Pt resistive switching devices with symmetric electrodes were fabricated. Bipolar resistive switching (RS) behaviors and unipolar behaviors were then observed under a positive/negative bias applied to the top electrode (TE). A comparison and analysis of bipolar/unipolar RS behaviors under different voltage polarities was then performed.The results demonstrated that bipolar RS was achieved via a drift of anion (O2-) under the electric field resulting in the rupture and recovery of filaments at the interface. When the filaments dissolved and formed at the interface near BE, the performance of the bipolar RS devices was better. However, for unipolar RS devices, when filaments dissolved and formed at the interface near TE, the performance was even better. These results indicated that a drift of O2-caused by electric field and a diffusion of O2-induced by Joule heat were the main reasons for unipolar RS. The different characteristics of the bipolar and unipolar devices can be attributed to the existence of a different number of defects at the active interface of the devices. This was where the rupture and recovery of filaments occurred. The results also indicate that the active interface is more important than other interfaces for RRAM performance.