BALTIMORE -- By the time the winning run crossed home plate, first lady Michelle Obama had long since left the ballpark and Carl Crawford had been to the hospital and back.
That's what happens when a game goes 13 innings and lasts 4 hours, 38 minutes.
The Orioles trailed by four runs in the seventh and 10-9 in the 12th before rallying to end a four-game skid.
"It tells me that these guys are resilient. They don't give up," interim manager Juan Samuel said.
Koji Uehara (1-0), the last of six Baltimore pitchers, got the win with 1 1/3 innings of one-hit relief.
"I'm glad to see us win in that inning because we were kind of stretching our bullpen very, very much," Samuel said.
With Obama watching in a private box at Camden Yards, Luke Scott, Ty Wigginton and Adam Jones hit successive homers off Matt Garza in the second inning. Scott homered again off Garza in the third to make it 4-1, but the Rays scored the game's next seven runs.
Obama left before the Orioles launched a comeback that would force extra innings. Miguel Tejada fueled the charge with a two-run double in the seventh and a two-run double off Rafael Soriano that tied it in the ninth.
Crawford left in the first inning after being struck in the groin with a pickoff throw by Arrieta. After the ball hit him, Crawford rolled off first base and was tagged out. He remained doubled over in pain for several minutes before walking off the field with help from trainer Ron Porterfield.
"Carl Crawford is one of the toughest guys I've ever played with," Wigginton said. "He's a true gamer, and if that guy don't bounce up, it's not good."
Crawford was taken by ambulance to a hospital, where tests were negative.
"You couldn't hit it in a better spot. It just took the wind out of me," Crawford said. "Right now it's real sore, but the doctor said there was no damage. I'm guessing I'll take [Wednesday] off."
Crawford said he doesn't wear a protective cup because it's too restrictive, and he insisted he won't change that practice.
"We played hard, we scored plenty of runs, we played great defense," manager Joe Maddon said. "When we score that many runs, we usually win those games."
Baltimore last homered in three straight at-bats on Sept. 5, 1995 -- a night made memorable by Cal Ripken Jr. tying Lou Gehrig's record of playing in 2,130 consecutive games.
Jeff Manto, Mark Smith and Brady Anderson connecting in succession against the California Angels was much less significant that Ripken's accomplishment, yet it turned out to be a feat that took the Orioles 15 years to duplicate.
After Scott hit a fastball over the 25-foot scoreboard in right field leading off the second, Wigginton went deep to left on a 1-1 pitch. Jones then drove a 2-2 slider into the seats in left.
They were Baltimore's first home runs in five games since the All-Star break.
Down 4-2, the Rays broke on top with a four-run sixth. A wild pitch by Jake Arrieta allowed one run to score and another came home on a throwing error by Wigginton.
John Jaso followed with a soft single to center, and Aybar added a two-run single in the seventh to make it 8-4.
Tejada doubled in two runs and scored on a single by Scott in the bottom half, but Brignac homered off David Hernandez in the eighth for a two-run lead.
Garza allowed seven runs and 10 hits in 6 1/3 innings in a rare ineffective performance against the Orioles. He remains 8-1 lifetime against Baltimore, including 5-0 at Camden Yards.
Obama was in Baltimore to announce the partnership between the White House and Major League Baseball to battle childhood obesity. She took part in the first-pitch ceremony, but did not throw the ball. ... Brian Anderson, who gave up those three successive homers in 1995, was in the TV booth Tuesday as a member of Tampa Bay's broadcast team.