The present memory structure includes first and second electrodes, a
passive layer, and an active layer containing nitrogen, the passive and
active layers being between the first and second electrodes. Metal ions
in the active layer bind to the nitrogen thereof, enhancing retention of
the metal ions in the active layer for improved, stable data retention.