ST. PETERSBURG, Fla. -- The Tampa Bay Rays are finally showing signs of heating up offensively.
A night after slugging four solo home runs in a 10-inning loss that concluded a 2-7 road trip, the Rays matched a season-high for runs, with much of the production coming from unlikely sources.
"It's still not there. We still need to improve in certain areas, but it's wins like this that can get you going in the right direction," manager Joe Maddon said after his team won for just just the third time in 11 games. "It's all about confidence."
Brandon Moss and Jed Lowrie, who went 4 for 4, had run-scoring singles off Cobb in the first for the A's. Starting pitcher Brett Anderson (1-3) left with an ankle injury after Tampa Bay scored four times in the bottom half of the inning.
"It's pretty sore, a little swollen. It's kind of early to tell the severity of it," said Anderson, who was hurt on his next-to-next pitch. "It's kind of depressing. I just landed and felt not great. ... I don't know if my heel hit too hard and kind of jarred something there or what. Just landed a little wrong."
Oakland's Coco Crisp extended his hitting streak to 12 games with a first-inning double and added a solo homer off Cobb in the seventh.
"You always want to keep grinding and try to get the closer in the game, which we did, Oakland manager Bob Melvin said. "He threw some pitches. We had him on the ropes, but he got out of it. It's kind of who we are and try to be is not go down quietly."
Longoria homered for the fourth time in five games and has reached base safely in each of the Rays' 16 games. Only two players in franchise history have had longer streaks to begin a season -- Rocco Baldelli (24 in 2003) and Jorge Cantu (20 in 2005).
Before Lobaton's hit made it 4-2, the Rays had gone 0 for 12 with the bases loaded this season. Four of Tampa Bay's first five runs were driven in by the bottom half of the batting order, with the switch-hitting Lobaton and Roberts each picking up their first RBIs of the year.
"We had a good look about us," Maddon said. "I've talked about us needing to get more productivity up and down the lineup."
The A's said a sprained right ankle forced Anderson's departure after allowing four runs, four hits and two walks during a 36-pitch first inning.
Oakland, which had won three straight, scored twice in the first before a baserunning mistake cost them a chance for an even bigger inning. Moss was tagged out in a rundown between first and second base on his RBI single, helping Cobb escape the jam and settle in after a shaky start. The A's didn't have another man reach base until Lowrie singled leading off the fourth.
Lowrie, who's batting .413, ended Cobb's night with a one-out double in the eighth.
"He's been as about as consistent as you can be," Melvin said. "Up over .400 now at this time of year is pretty good."
A moment of silence was observed to remember the victims of the Boston Marathon bombings. ... Lobaton's two-run single snapped Tampa Bay's string of 14 consecutive at-bats without a hit with the bases-loaded, a stretch that began last Sept. 21. ... Oakland OF Yoenis Cespedes (strained left hand muscle) is playing catch but hasn't resumed swinging a bat. "The swelling is down, the range of motion is getting better each and every day," manager Bob Melvin said. ... Oakland INF Hiro Nakajima (strained left hamstring) will join the Athletics' extended spring training team on Monday. ... Oakland INF Adam Rosales (strained left intercostal muscle) is expected to remain on a minor league rehab through the middle of next week. ... The A's reinstated Moss from the paternity list and optioned OF-INF Shane Peterson to Triple-A Sacramento. Moss had two hits off Cobb.