The Baltimore Orioles have signed free agent pitcher Johan Santana to a minor league contract with an invitation to spring training, the team announced Tuesday.

The two-time Cy Young Award winner, who had a second operation on his left shoulder last year, last pitched in the majors in 2012 for the New York Mets.

The 34-year-old has a 139-78 record witha 3.20 ERA over 12 seasons with the Mets and Minnesota Twins. From 2004-10, he led the majors in ERA (2.87) and strikeouts (1,479) and tied for second with 110 wins.

"In the past he was one of the best," Orioles slugger Chris Davis said Monday. "Hopefully he can regain his form and be a help for us. There are some things you can't coach and experience is one of those things, and he definitely brings that to the table."