-- Evan Longoria homered twice, Jake Odorizzi picked up his first home victory this season and the Tampa Bay Rays won for just the fourth time in 28 games by beating the AL East-leading Baltimore Orioles 5-2 on Sunday.

Longoria had solo shots in both the first and eighth innings. He has 21 homers this season after his 17th career multihomer game.

Odorizzi (4-5), who was 0-3 in 10 previous starts at Tropicana Field, gave up two runs and seven hits in six innings. Overall, he had been 0-2 in six starts since winning June 8 at Arizona.

Oswaldo Arcia had a two-run shot during the second and Brad Miller added a third-inning solo drive as the Rays took a 4-1 lead against Dylan Bundy (2-2), who allowed four runs and five hits over 3 1/3 innings in his first major league start.

Bundy, the fourth overall pick in the 2011 draft, has thrown 38 innings in 22 relief appearances this season. He was limited to a combined 17 minor league games the previous two years after Tommy John surgery in 2013.

After Erasmo Ramirez went two scoreless innings for the Rays, AL All-Star Alex Colome got the final three outs to get his 20th save in as many chances.

Manny Machado had a first-inning sacrifice fly and Pedro Alvarez hit a solo homer in the sixth for the Orioles. Baltimore went 0 for 7 with runners in scoring position through five innings, including a two-out flyball by Chris Davis with the bases loaded in the fifth.

TRAINER'S ROOM

Orioles: Manager Buck Showalter said OF Hyun Soo Kim, who was out of the lineup for the third straight game due to a strained right hamstring, is "getting close." Kim went through a running program.

Rays: RHPs Chase Whitley (Tommy John surgery) and Brad Boxberger (left oblique) are both scheduled to make their first rehab appearance Monday night for Class A Charlotte. ... INF Steve Pearce (strained right hamstring) is scheduled to be with Charlotte for the third consecutive day Monday.

LONGO'S LONG BALL

Longoria has eight seasons of 20 or more homers. ... Longoria has 32 homers, including 31 while playing third base, off the Orioles. The only third baseman with more against Baltimore is Alex Rodriguez, who has 32.

UP NEXT

Orioles: RHP Kevin Gausman (1-6) goes against New York RHP Ivan Nova (6-5) Monday night in the opener of a four-game series at Yankee Stadium.

Rays: Tampa Bay looks to end a 10-game road losing streak when LHP Drew Smyly (2-10) faces Colorado LHP Tyler Anderson (1-3) Monday night. Smyly is winless in nine starts, including six losses.