PHOENIX -- Paul Goldschmidt homered to tie the game in the ninth, then hit the first pitch of the 11th inning for a game-winning homer, lifting the Arizona Diamondbacks past the Baltimore Orioles 4-3 Tuesday night.
Arizona trailed 3-2 when Goldschmidt, leading off the ninth, powered Orioles closer Jim Johnson's fifth pitch just over the left field fence for his 28th home run and his fifth ninth-inning homer this season.
It was Johnson's second straight blown save and his eighth this season in 47 opportunities.
Arizona put runners on second and third with one out in the ninth, but Johnson struck out Wil Nieves and induced Didi Gregorius to ground out to end the threat.
Goldschmidt struck again in the 11th, this time off T.J. McFarland (1-1), for his third career walk-off homer.
Heath Bell (3-1) pitched a perfect top of the 11th for the win. He was Arizona's fifth pitcher.
Chris Davis hit his major-league-leading 44th home run, and J.J. Hardy also homered for the Orioles, who have lost the first two games of the three-game set in Arizona.
Baltimore has not won a series against the Diamondbacks in five tries.
Goldschmidt's homers left right-hander Miguel Gonzalez, who was nearly untouchable for six innings, with a no-decision. Gonzalez retired the first 11 batters he faced and wound up allowing two runs on five hits over seven innings, the first time he pitched through seven since June 22.
Arizona starter Randall Delgado nearly matched Gonzalez, allowing three runs on five hits over seven innings with a walk and a strikeout.
Gonzalez limited the Diamondbacks to two singles over 6 1/3 innings and held a 3-0 lead when Hill tripled and scored on an RBI groundout by Prado. Gerardo Parra followed with a home run to right, his eighth, to slice the Diamondbacks' deficit to 3-2.
Davis gave the Orioles a 2-0 lead in the fourth, two batters after Delgado walked Nick Markakis. Davis hit a towering home run to right field for his third home run in four games.
Hardy made it 3-0 with a leadoff home run in the fifth, his 22nd of the season.
NOTES: Hardy has a 10-game hitting streak and has hit four home runs during the span. ... With 112 RBIs, Davis has more RBIs through 119 games than any player in Orioles history. ... RHP Trevor Cahill, on the disabled list since July 1 with a right hip contusion, will start for Arizona on Saturday at Pittsburgh. Cahill made his final rehab start Sunday, pitching seven innings for Triple-A Reno.