BALTIMORE (AP) -- Stuck in his worst slump of the season, Adam Jones stopped the skid by grounding a little single up the middle.
On his next swing, he launched a ball into orbit.
Jones hit a two-run homer in the 12th and the Baltimore Orioles won their eighth straight extra-inning game, beating the Philadelphia Phillies 6-4 Saturday and spoiling B.J. Rosenberg's major league debut.
Jones ended an 0-for-18 drought in the ninth, then hit a drive over the outstretched glove of center fielder Shane Victorino .
"Oh, my gosh! Getting a little frustrated there," Jones said. "One thing I'm not going to do is stop swinging the bat. It's part of who I am, it's the reason I got to the big leagues."
Chris Davis drew a leadoff walk in the 12th from Rosenberg (0-1) and Jones followed with his 17th home run, and the second game-ending drive of the All-Star's career. The Orioles won for only the fourth time in 13 games.
The Orioles' eight-game winning streak in extras matches the longest in team history done in 1997 and 2010, the club said in citing the Elias Sports Bureau.
"I think we like to play a lot longer than the nine innings. We enjoy that. We enjoy the overtime," Jones said. "I think we're on the pace to play the most innings by any team this year. Hey, that's part of the game. If we don't win it in nine, hopefully we can win it in 12, 15 or 17."
"We'll sit here and play 25 as long as we get the `W,"' he said.
Jim Thome , Jimmy Rollins and Hector Luna hit solo home runs for the Phillies, who have lost seven of eight. Hunter Pence added four hits for the Philadelphia.
Luis Ayala (2-1) pitched one inning for the win. Rosenberg worked a perfect 11th before Jones tagged him. Both teams used five pitchers.
"I don't care that he hasn't been there before. He's obviously good enough to get to the major leagues," Jones said. "He has good stuff. I looked at the replay."
Called up from Triple-A Lehigh Valley earlier in the day, Rosenberg had about three hours of sleep before arriving at Camden Yards.
The Phillies newcomer got off to a promising start. He struck out his first batter, Robert Andino , with a 94 mph fastball and pitched a perfect 11th inning.
The 12th, not so good after a slider went awry.
"It's still one of the best days of my life," Rosenberg said. "I wish the outcome would've come out better."
"I wouldn't trade places with anybody in the world," he said.
The Orioles helped themselves by turning a season-high four double plays and making several sparkling catches. Philadelphia made three errors in a single inning and bobbled a few other balls.
The crowd of 46,611 marked the first sellout of the season in Baltimore since opening day. The ballpark was evenly split between Orioles and Phillies boosters, keeping things lively all afternoon.
"I said to myself, it's like it's the last three, four years having Boston and New York fans raiding this place," Jones said. "They're not happy today. The O's fans, they stood up when they needed to. It's a huge sea of red, I can tell you that."
Thome's RBI single in the eighth made it 4-all. Orioles reliever Pedro Strop limited the damage by getting Ty Wigginton to ground into an inning-ending double play with the bases loaded.
Matt Wieters had put Baltimore ahead 4-3 in the seventh with an RBI single. That came shortly after Davis' fly to shallow right bounced out of second baseman Mike Fontenot 's glove for a single.
In the fourth inning alone, Philadelphia committed three errors - Rollins mishandled a grounder to shortstop, pitcher Vance Worley bounced a throw and Fontenot misplayed a line drive.
Those miscues gave the Orioles two runs and a 3-2 lead. Davis had an RBI grounder in the third, set up when Endy Chavez singled off Fontenot's glove.
Rollins, the only Phillies starter without a hit the previous day, lined a shot over the right field wall in the third.
Thome hit his 605th career home run on the first pitch of the fourth - it also was his 60th in interleague play, most in the majors. He came off the disabled list earlier in the week, then got three hits and his first RBI of the season Friday night.
Luna hit a leadoff homer in the fifth that made it 3-all. All three Phillies homers came against Tommy Hunter , who was promoted from Triple-A to make this start and lasted seven innings.
NOTES: The Orioles are 8-2 overall in extra innings. ... Phillies LHP Cliff Lee tries again for his first win of the season when he starts Sunday vs. RHP Jason Hammel . Lee is 0-3 in nine starts despite a 2.92 ERA. ... Orioles LF Steve Pearce diving catches in the 11th and 12th. Baltimore reliever Darren O'Day speared Juan Pierre 's liner in the 10th. ... Orioles 49-year-old LHP Jamie Moyer pitched five scoreless innings of one-hit ball in his first start for Triple-A Norfolk. He struck out five and walked none.