Spectral properties of operators having dense orbits