A large deviation principle (LDP) with an explicit rate function is proved for the estimation of drift parameter of the Ornstein-Uhlenbeck process. We establish an LDP for two estimating functions, one of them being the score function. The first one is derived by applying the Gärtner–Ellis theorem. But this theorem is not suitable for the LDP on the score function and we circumvent this key point by using a parameter-dependent change of measure. We then state large deviation principles for the maximum likelihood estimator and another consistent drift estimator.