(1 of )Oakland Athletics right fielder Josh Reddick makes the catch on a ball hit Tampa Bay Rays' Evan Longoria, before losing it when he made contact with the field in the fifth inning of a baseball game Tuesday, Aug. 5, 2014, in Oakland, Calif. Longoria singled on the play. (AP Photo/Ben Margot)

(2 of )Tampa Bay Rays' Yunel Escobar, right, advances to third base as Oakland Athletics' Josh Donaldson catches the ball in the second inning of a baseball game Tuesday, Aug. 5, 2014, in Oakland, Calif. Escobar advanced on a single by Cole Figueroa. (AP Photo/Ben Margot)

OAKLAND — Jason Hammel pitched scoreless ball into the sixth inning to snap a four-start losing streak since being traded to Oakland, leading the Athletics past the Tampa Bay Rays 3-0 on Tuesday night.

Hammel (1-4) allowed seven hits and four walks in 52/3 innings. He entered the game with a 9.53 ERA since the A’s acquired him and Jeff Samardzija from the Chicago Cubs on July 4.

Coco Crisp singled home a run in the fifth and Nate Freiman hit an RBI double during a two-run sixth to spoil Drew Smyly’s debut with Tampa Bay. Smyly (6-10) gave up all three runs, seven hits and two walks, including one intentional, in 51/3 innings.

The left-hander was traded from Detroit last week in the three-team deal that sent ace David Price to the Tigers.

The Rays committed three errors in an unusually sloppy performance from manager Joe Maddon’s club. Tampa Bay has lost three straight and five of six after an 11-1 stretch.

It was still a far better performance for Smyly than his last start in Oakland, when he allowed six runs — including four home runs — in Detroit’s 10-0 loss on May 26. But the Rays couldn’t crack Hammel, who pitched for Tampa Bay from 2006-08, or any of the pitchers the major-league leading A’s threw their way.

Three relievers tossed scoreless ball before Sean Doolittle pitched a perfect ninth for his 17th save in 20 tries.

Oakland broke through in the fifth on Crisp’s RBI single. The A’s center fielder and speedy leadoff man had not started since July 26 because of a strained neck.

Freiman hit an RBI double and Josh Reddick singled home another run in the sixth to give the A’s a 3-0 lead.

Hammel left to a standing ovation in the sixth. He saluted the announced crowd of 16,335 as he walked to the dugout a winner for the first time in Oakland.

TRAINER’S ROOM

Rays: Outfielder Wil Myers, on the 60-day disabled list with a broken right wrist, went through an extensive workout and drills for the second straight day in Port Charlotte, Florida. The Rays could decide by the end of the week when Myers begins his rehab assignment.

Athletics: Shortstop Jed Lowrie sat out with a bruised right index finger. He is day to day. First baseman Kyle Blanks (left calf injury) ran the bases and will do so again Thursday before Oakland decides whether to send him out on a rehab assignment.