The Rays named Jake Odorizzi as their No. 5 starting pitcher after the game.
Delmon Young homered, singled and picked a catch off the top of the left field wall with the tying run on base in the eighth inning for the Orioles.
“It started to get a little bit tiring, but today as a whole is exactly what I needed,” Cobb said. “All three pitches were working.”
James Loney hit his second home run for the Rays in the first inning, driving in the only two runs off Baltimore starter Ubaldo Jiminez.
In his third spring start, Jiminez gave up five hits and a walk in six innings.
Michael Almanzar’s RBI single broke a 2-all tie in the fifth after a leadoff double by Alexi Casilla.
“It actually got him two outs today, getting to the plate at the times we need him to get to it,” Showalter said.
Rays: Odorizzi, a right-hander who went 0-1 in four starts for the Rays last season, won a three-way competition with left-handers Cesar Ramos and Erik Bedard.
Ramos, who has started only one of the 124 games he has pitched for the Rays, will return to the bullpen. The 35-year-old Bedard signed a minor league contract with an option to terminate if he does not start the season on the major league staff.
“It was a great competition. We had a lot off spirited arguments about it,” said manager Joe Maddon.