PHOENIX - Zack Greinke confessed to a tiny bit of added motivation in facing the Arizona Diamondbacks.

After all, the last time he faced them, the game erupted into a bench-clearing brawl that resulted in eight suspensions.

"I might want to win a little more," he said. "That's also because they're in first place, so it's a big game because of that."

Whatever the reason, Greinke dominated the D-backs, giving up two hits in seven scoreless innings and the Los Angeles Dodgers snapped Arizona's five-game winning streak with a 6-1 victory.

"This is probably maybe the second time he's had this kind of stuff," Dodgers manager Don Mattingly said. "Hopefully we're trending toward this more consistently."

Greinke (7-2) struck out seven and walked two. He also had a career-high three hits.

"That is how he won a Cy Young right there," said Arizona's Jason Kubel, who with Minnesota saw Greinke a lot when the pitcher was with Kansas City.

"He has great stuff and he swung the bat well, too. He throws hard. He throws that hard slider and it is hard to pick up until it is too late and his location is big for him. He had it going."

Greinke has won four in a row but he hasn't exactly been electric recently. In his previous start against Colorado, he allowed five runs and six hits and walked seven in six innings. That prompted some work to alter his mechanics.

"It's got to be more consistent," he said. "Today was good but it can't just be one game and then a couple of OK games and then a bad game and then a good game."

Greinke was 0-2 with an 8.71 ERA in four previous starts at Chase Field.

"I've pitched really bad here," he said, "some of my worst games ever at this place, so that was nice."

Hanley Ramirez singled three times to extend his career-best hitting streak to 19 games and was one of five Dodgers with an RBI.

L.A., winner of 13 of 16, tied its season high with 17 hits - 16 of them singles. Andre Ethier had three hits and A.J. Ellis drove in two runs as the Dodgers pulled within 3 1/2 games of the first-place D-backs in the NL West.

"Without this little streak we've been on who knows what position we'd be in," Ellis said. "We also got a little help from the NL West coming back to the pack. Nobody ran away with it."

Randall Delgado (1-3) allowed three runs and 11 hits in six innings to take the loss. Arizona averted the shutout on Eric Chavez's RBI single in the ninth.

It was the opener of the first series between the teams since the three-game set that featured the June 11 melee in Los Angeles, resulting in eight suspensions.

Greinke was a major player in the events leading up to the incident. Ian Kennedy, who hit Yasiel Puig and Greinke with high pitches to trigger the melee and served a 10-game suspension, starts for Arizona in the second game of the series on Tuesday night.

Puig and Greinke were booed roundly when they came to the plate.

Greinke struck out four of the first five and didn't allow a hit until Paul Goldschmidt's leadoff single in the fourth. The only other hit off the L.A. right-hander was Martin Prado's two-out double in the seventh. Goldschmidt also had an infield single in the ninth and scored Arizona's run.

Ramirez and Ethier singled with one out in the fourth. A.J. Ellis flied out to center, then Juan Uribe singled Ramirez home from second to put Los Angeles up 1-0. Ethier was stranded at third when Mark Ellis flew out to center.

Greinke's single started a two-run fifth that put the Dodgers up 3-0. After one out, Puig singled, then Adrian Gonzalez and Ramirez each got an RBI hit to right. Kubel mishandled Ramirez's hit but threw the runner out trying to take second on the play.

The Dodgers scored two off reliever Charles Brewer with two outs in the sixth on Ethier's RBI double and Ellis' RBI single.

Inside pitch

• Goldschmidt was left out of the Home Run Derby next Monday in New York as NL captain David Wright selected Washington's Bryce Harper and two Colorado outfielders, Carlos Gonzalez and Michael Cuddyer. Goldschmidt has 21 homers so far this season. Gonzalez leads the NL with 24, but Cuddyer has only 15.

The other derby hitters are Orioles slugger Chris Davis, who leads the majors with 33 homers, Robinson Cano of the Yankees, Detroit's Prince Fielder, Wright and a player yet to be announced.

Up next

• Who: Dodgers at D-backs

• When: 6:40 p.m.

• TV; radio: FSAZ; 1490-AM