Classification of oscillators in the Heisenberg-matrix representation