ARLINGTON, Texas -- Evan Longoria homered twice, Tampa Bay roughed up Matt Harrison and the Rays beat the Texas Rangers 8-4 Wednesday night to snap a four-game losing streak.
After dropping the last two against the AL-West leading Rangers by one run, the Rays avoided the three-game sweep.
Harrison (15-8) allowed seven runs and 12 hits in 5 1-3 innings. He took a no-hitter into the seventh and permitted two hits in eight shutout innings in his last outing Friday night against Minnesota.
Tampa Bay had scored only 11 runs during their losing skid before breaking out for 16 hits against Texas.
Longoria hit a two-run homer in the first and a solo shot in the ninth. B.J. Upton had a three-run home run and Elliot Johnson added a solo blast.
Jeff Keppinger went 4 for 5 and Ben Zobrist had three hits for the Rays.
Jake McGee (5-2) pitched a perfect sixth and five Tampa Bay relievers combined for 4 1-3 scoreless innings.
Josh Hamilton hit his 36th home run for Texas, a solo shot that brought Texas within 6-4 in the fifth.
The Rangers wrapped up a 10-game homestand with a 7-3 record.
Harrison gave up seven runs and a career-high 14 hits in an 8-4 loss to the Rays on April 27. The All-Star left-hander struggled again against Tampa Bay on Wednesday night, giving up six runs and a pair of home runs by the second inning.
Zobrist's RBI double in the first snapped a 13-inning scoreless drought.
Longoria drove a 3-1 fastball from Harrison 409 feet to center. The two-run shot extended Tampa Bay's lead to 3-0. Longoria is 6 for 9 with three home runs against Harrison in the regular season.
In the second inning, Sam Fuld tripled with one out and Desmond Jennings walked to set the stage for Upton.
After Texas pitching coach Mike Maddux visited Harrison, Upton lined a fastball into the seats in left for his 16th home run of the season.
Johnson led off the sixth with a home run and Harrison was chased out of the game two batters later.
It was the first time Harrison allowed three home runs in a game since April 21, 2010 against Boston.
Texas' Mitch Moreland hit a two-run homer in the second, his 15th of the season. Nelson Cruz's RBI groundout got the Rangers to within 6-3.
Hamilton's 424-foot shot landed in the upper deck in right and gave him 112 RBIs, which leads the majors.
Rays starter Alex Cobb allowed eight hits and four runs in 4 2-3 innings.
Notes: Tampa Bay OF Matt Joyce, who left Tuesday's night's game with a strained left forearm, was not in the lineup. Manager Joe Maddon said Joyce might be available Thursday night at Toronto. ... Cruz was in the lineup after being hit in the left elbow Tuesday night. ... The Rays are 15-7 since Longoria came off the disabled list Aug. 7.