This paper applies exponentially fitted trapezoidal scheme to a stochastic oscillator.The scheme is convergent with mean-square order 1 and symplectic.Its numerical solution oscillates and the second moment increases linearly with time.The numerical example verifies the analysis of the scheme.