BALTIMORE - Brian Roberts' season, which amounted to just 17 games for the Baltimore Orioles, is over.

After one rehab game in Aberdeen this weekend, the former All-Star second baseman said Sunday he will have surgery to repair the labrum tear in his right hip.

"It just hasn't responded the way we were hoping it would," said Roberts, who went 0 for 4 with a run scored for the Ironbirds on Saturday night. "We kind of knew this was a possibility going in but we wanted to give it the best possible shot we could to go back out there and try to help for the last two months of the season.

"But it's just not going to put me in a position to play the way that I want to play and the way that I think is necessary to help."

Roberts said the surgery will take place within the next 10 days in Vail, Colo., and he will need 4-6 months of rehabilitation in an effort to be a full-time contributor next season after a third consecutive injury-marred season.

Roberts said the first doctor Roberts saw about the hip told him surgery was the best option, but a second opinion from another doctor made him believe giving it one last shot after rest and rehab would be worthwhile.

"It really just didn't provide a great avenue to go out there and succeed, I don't think," Roberts said. "The main goal right now is to get ready for 600 good at-bats in 2013."

Roberts batted .182 in his 17 games and has played in just 115 games over the past three seasons. A concussion ended his 2011 season prematurely and its effects delayed the start of his 2012 season by more than two months.

"It's been a long two years," Roberts said. "It certainly hasn't gone the way I would have drawn it up, but as we all know, life doesn't always go the way you plan it.

"To see the atmosphere in the stadium on TV, and to see the excitement in the dugout and not be able to be a part of that, after so many years here of playing in atmospheres that weren't like that, it's really hard."

Orioles manager Buck Showalter commended Roberts for the effort he was putting in.

"Hats off to Brian for trying to get back and help this club," Showalter said. "The good news is the concussion part of it seems to be something that's not on his mind anymore. ... He should be ready to go and be a big part of our club next year."

Roberts said he hopes to be able to contribute to a winning team in 2013.

"I think we all believe that we're having a great year this year and we're going to have an even better next year, and I want to be a part of that in a healthy way," Roberts said. "But I also want to do it in a way that benefits the team, and is not a detriment to the team and I'm not going to be selfish enough to go out there and do it just to get out there and be a part of it if I don't think I can help."