We derive an equation to compute directly the expected occupation time of the centered Ornstein–Uhlenbeck process. This allows us toidentify the parameters of the Ornstein–Uhlenbeck process for available occupation times via a standard least squares minimization. To test the method,we generate occupation times via Monte–Carlo simulations and recover theparameters with the above mentioned procedure.