Within striking distance less than a week ago, the Arizona Diamondbacks are hoping to climb back into the NL West race now that their offense is back on track.

After beating the AL's ERA leader, the Diamondbacks face a less intimidating challenge as they try to wrap up their fourth home series win in five tries Saturday night against the Oakland Athletics.

Arizona (63-65) moved within five games of the first-place Los Angeles Dodgers on Sunday after batting .297 with 16 home runs while averaging 6.1 runs during a 9-5 stretch.

More from FoxSports

The Diamondbacks, however, fell 8 1/2 back after totaling eight runs while getting swept in a four-game home series against a St. Louis team that has the best ERA in the majors.

They then managed just two hits through the first five innings Friday against Oakland ace Sonny Gray before breaking through with two runs in the sixth and four in the seventh of a 6-4 win.

"He's got nasty stuff," manager Chip Hale told MLB's official website. "The ball was moving all over the place. Guys were scratching their heads how we were going to get to him."

David Peralta and Aaron Hill delivered RBI doubles, A.J. Pollock added a run-scoring single and Paul Goldschmidt hit a two-run home run as Arizona snapped a five-game home losing streak that was its longest since an eight-game skid from April 2-16, 2014.

Peralta is batting .564 with 12 RBIs over a 12-game home hitting streak, while Goldschmidt is hitting .429 with two homers, four doubles and eight RBIs in his last nine at Chase Field.

The Diamondbacks, who failed to gain ground after the Dodgers' win, will try to keep swinging the bats well against Aaron Brooks (1-1, 6.20 ERA). The right-hander was called up to give Felix Doubront an extra few days of rest after he was hit on the foot with a line drive in Monday's 11-5 win at Seattle.

Brooks is in his second stint with the A's (55-74) after he was acquired from Kansas City in the Ben Zobrist trade. He went 1-0 with a 1.26 ERA in his first two starts before getting removed from the rotation when he allowed eight runs over 1 2-3 innings in a 10-3 loss at Toronto on Aug. 12.

He may have to be cautious with Welington Castillo, who had a double and a sacrifice fly Friday. The catcher has three home runs and eight RBIs over his last eight home games.

Once a top prospect with Colorado, Jhoulys Chacin (0-1, 2.84) hopes to make the most of another shot in the big leagues after Jeremy Hellickson suffered a hamstring injury. He allowed two earned runs over 6 1-3 innings in Monday's 5-3 loss to St. Louis in his first start since June 28, 2014.

The right-hander will get his first look at an Oakland team that went 1 for 7 with runners in scoring position and had just five hits over the first eight innings Friday.

Brett Lawrie hit his second home run in as many days - an estimated 470-foot shot in the ninth - and is batting .452 with three homers and seven RBIs in his last eight games.

"His month's been phenomenal," manager Bob Melvin said. "That's hit a long way. You don't see too many balls hit that far in this park. It gives us a fighting chance."

The A's have dropped six straight at Arizona dating to June 2008.