Updated

Miguel Montero hit his second career grand slam and the Arizona Diamondbacks beat the Oakland Athletics 8-3 on Saturday night for their fourth consecutive victory.

Trevor Cahill outpitched the Athletics' Jarrod Parker (2-3) in a matchup of starters traded for each other last offseason. Jason Kubel had a pair of RBI singles, Justin Upton doubled in a run and Paul Goldschmidt extended his hitting streak to 16 games for the Diamondbacks, who have scored 33 runs in their four-game streak.

Cahill (4-5), coming off a shutout against San Diego, gave up two runs and seven hits in 7 1-3 innings. He had a season-high seven strikeouts and walked three.

The Diamondbacks matched their longest winning streak of the season, set when they started the year 4-0. Arizona has won six of seven overall and, for the first time this season, taken three consecutive series.

Parker, who threw eight innings of one-hit ball against Texas in his previous start, gave up six runs and eight hits in five innings. He struck out four and walked five, two intentionally.

Plate umpire Tim McClelland ejected Oakland manager Bob Melvin between the fifth and sixth innings.

Cahill and Parker were locked in a 1-1 duel when Arizona broke it open with a five-run fifth.

With one out, Gerardo Parra and Willie Bloomquist singled to put runners at first and third, then Upton laced a 3-2 pitch into center for an RBI double. The A's intentionally walked Kubel to load the bases for Goldschmidt, who struck out on a 3-2 pitch. That brought up Montero, who drove a 1-1 pitch over the swimming pool in right field for his first slam since Aug. 16, 2008, at Houston.

Parker's string of 18 scoreless innings ended in the first. Bloomquist singled and stole second, then came home on Kubel's two-out single.

Oakland tied it in the second. Brandon Moss drew a two-out walk, then scored from first when Kurt Suzuki doubled down the right-field line.

Cahill left after walking two batters in the eighth. Brad Zeigler came on and gave up a single to Brandon Inge to load the bases. Pinch-hitter Jonny Gomes then delivered a sacrifice fly.

Arizona padded the lead with RBI singles from Kubel and Goldschmidt in the eighth.

Parker was one of a handful of top Arizona pitching prospects when the Diamondbacks sent him, right-handed reliever Aaron Cook and outfielder Colin Cowgill to Oakland for Cahill, left-handed reliever Craig Breslow and cash.

NOTES: Goldschmidt struck out three times before his eighth-inning hit. ... The Diamondbacks have agreed to terms with 31 draft picks, including first-round selection Stryker Trahan. The catcher from Acadiana High School in Lafayette, La., the 26th selection overall, took batting practice with the team. ... A pair of left-handers go in the series finale on Sunday, Travis Blackley (0-1, 3.45 ERA) for Oakland and Joe Saunders (3-4, 3.65 ERA) for Arizona. ... With a win on Sunday, the Diamondbacks (29-30) would reach .500 for the first time since they were 7-7 on April 20. ... Melvin was ejected for the third time this season. ... Before the game, Melvin said he would go to closer by committee after Brian Fuentes gave up a three-run homer to Ryan Roberts to blow a save in Friday night's 9-8 loss.