Greinke pitched seven strong innings and helped himself with two hits, Peralta connected for a pinch-hit, three-run homer and the Diamondbacks beat the San Diego Padres 8-4 Sunday to stop a four-game losing streak.
The Padres had won four in a row.
Peralta, out of the starting lineup for the first time this season, came up with two outs in the sixth against reliever Matt Wisler. Peralta's opposite-field home run curled over the fence in left and into the Arizona bullpen for a 6-2 lead. It was Peralta's first career pinch-hit homer.
"When it comes time to step into the box and do something for your team, you have to be ready for it," Peralta said. "It's not about the homer. When you do something special to help the team to win, it's always good."
Greinke (2-1) allowed two runs and four hits with six strikeouts. He won despite surrendering his seventh and eighth home runs of the season.
"Put some balls in play and found some holes," Greinke said. "Pitching, felt like I did a good job keeping them off balance."
A career .224 hitter, Greinke doubled, singled and scored twice.
"Overall, it started and stopped with Zack. He did a terrific job, and that's why he's our ace," Lovullo said.
"You'd love to see him catch that. Any ball that goes over the fence, it is hard to say the guy should have caught it," Padres manager Andy Green said. "Whenever you are jumping into the wall ... you see it all the time, if you get too close to the wall, a guy goes up, catches his shoulder on the wall and can't get up. That's ultimately what happened there."
Manuel Margot led off the game with a home run and Fernando Tatis Jr. also connected for NL West-leading San Diego. The 20-year-old Tatis homered for the second straight day and has five in his rookie season.
Padres starter Eric Lauer (2-2) gave up three runs on eight hits over five innings.
Greinke led off the bottom of the third with a bloop single and two outs later came home on Marte's homer. Greinke made a nice defensive play in the fourth, starting a double play on a comebacker in which he bounded off the mound to his right to retrieve the ball and throw to second base.
Greinke doubled in the fifth, took third on a wild pitch and scored when Ildemaro Vargas grounded a one-out double past first base.
INSIDE PITCHES IRK GREEN
Diamondbacks closer Greg Holland threw a couple of tight inside pitches in the bottom of the ninth to the Padres' Francisco Mejia, raising questions about whether it was in retaliation for Padres pitchers hitting two Diamondbacks with pitches on Saturday.
Lovullo said all that mattered was that Holland got three outs to end the game. But Green had some choice words for the umpire crew.
"Umpires being literally clueless on the field right now. That's inexcusable at that point in time," Green said. "The first one, OK maybe slips. The second one, we know what is going on there. It is not lost on us at all. If it is lost on them (umpires), they are not paying attention to the baseball game."
San Diego called up RHPs Phil Maton and Luis Perdomo from Triple-A El Paso before the game and optioned right-handers Gerardo Reyes and Robert Stock to El Paso. Reyes got a win in his big league debut on Friday. Stock appeared as recently as Saturday and has pitched in seven games.
Padres: 3B Manny Machado didn't play Sunday, missing his first game of the season for rest.
Diamondbacks: Get Monday off before opening a series in Atlanta. LHP Robbie Ray (0-1, 3.52) is scheduled to start Tuesday's opener, and he has allowed three or fewer hits in three straight starts to begin the season.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Teoscar Hernandez does a split on RBI double
Teoscar Hernandez gets the Blue Jays on the board with an RBI double in the first inning.
Adolis Garcia cranks 2 homers in Rangers' win vs. A's
Adolis Garcia crushes two big home runs for the Rangers as they solidify a 5-3 home win over the A's.
Sanchez, Voit lift Yankees to walk-off win
Gary Sanchez belts a solo home run to tie the game and then Luke Voit's big single sends the Yankees to a 6-5 walk-off win vs. the Royals.
Lindor, Conforto, new pitchers lead Mets past Braves 7-3
— Francisco Lindor homered and drove in three runs, Michael Conforto jolted New York's stagnant offense in his delayed return from injury and the Mets beat the Atlanta Braves 7-3 on Wednesday night.
Sánchez, Voit lift Yankees over Royals 6-5 in thriller
— Gary Sánchez homered off Greg Holland in the ninth inning, Luke Voit hit a winning single and the New York Yankees survived another blown save by Aroldis Chapman to beat the Kansas City Royals 6-5 on Wednesday night.
García extends rookie HR lead to 20 as Rangers beat A's 5-3
— Major league rookie home run leader Adolis García went deep twice for his 19th and 20th, Brock Holt had a tiebreaking RBI single in the seventh inning and the Texas Rangers beat the Oakland Athletics 5-3 on Wednesday night.