AP Sports Writer
PHOENIX (AP) -- Baltimore got a solid start from Scott Feldman, hit a pair of homers and rallied to tie the game twice in the late innings.
It still wasn't enough to beat the Arizona Diamondbacks.
Feldman pitched effectively into the sixth inning, but Baltimore's bullpen gave up homers to light-hitting Wil Nieves and Adam Eaton in the final two innings to lose 7-6 on Monday night.
"Momentum is the next pitch you throw," Orioles manager Buck Showalter said.
There certainly was plenty in this game.
Baltimore led 4-2 after roughing up Diamondbacks starter Wade Miley.
Arizona went up 5-4 in the seventh by stringing together three run-scoring singles, including one by Aaron Hill, who also homered for the third straight game.
Chris Davis tied the game in the eighth with a solo homer, not all that surprising since he leads the majors with 43.
The homer by Nieves to lead off the eighth was a bit more unexpected; he hadn't hit one since last season and needed a friendly carom off the top of the wall in left to get it.
Arizona closer Brad Ziegler (6-1) had converted his first seven save chances this season, but was uncharacteristically off, giving up a tying sacrifice fly to Nick Markakis after the Orioles loaded the bases against him.
Eaton ended the night with its most surprising moment, putting an abrupt end to the momentum swings by sending the first pitch by Darren O'Day (5-2) over the wall in right-center for the first walkoff homer hit into the Diamondbacks' swimming pool.
It was Arizona's second game-ending homer of the homestand -- Paul Goldschmidt did it to the Mets on Friday -- 23rd win in its last at-bat and 33rd comeback victory of the season.
"We could have got discouraged, we let some opportunities go, but battled back against a pretty good team," Diamondbacks manager Kirk Gibson said.
Feldman put the Orioles in good position, only running into trouble in the second inning.
Hill led off with his eighth homer and Gerardo Parra scored from second on a wild pitch later in the inning, thanks to an obstruction call against Orioles third baseman Manny Machado.
Parra was originally called out at home, but third base umpire Alfonso Marquez ruled Machado, who was standing on the bag, interfered with his progress toward the plate.
Feldman was good after that, allowing two runs -- one earned -- and four hits with eight strikeouts in 5 1-3 innings. He gave up nine earned runs in 9 2-3 innings his previous two starts.
"We had that one long inning, the second inning, that weird inning there," Feldman said. "Other than that, the offense picked us up."
Though Feldman left with the lead, the bullpen couldn't hold it.
Brian Matusz opened the seventh inning by hitting Didi Gregorius, and Eaton, Hill and Martin Prado followed with run-scoring singles off Tommy Hunter to put the Diamondbacks up 5-4.
Joe Thatcher, Arizona's left-handed specialist, couldn't hold the lead, either, giving up a no-doubt solo homer to left by Davis that tied the game at 5-all.
Nieves put the Diamondbacks back up quickly, hitting his first homer since Aug. 9, 2012, in his first game with the Diamondbacks.
Then it was Ziegler's turn to blow a lead.
Aided by first baseman Goldschmidt's inability to get the ball out of his glove on Nate McLouth's infield single, the Orioles loaded the bases with one out and Markakis followed with a sacrifice fly to tie the game.
The drama ended quickly in the bottom half, when Eaton hit his first homer of the season. He may not have known what happened, but his teammates sure did, mobbing him as he crossed the plate.
"We needed some innings out of Scotty and we got it," Showalter said. "I am real proud of our guys, the way they kept battling."
Notes: Showalter received a nice ovation after being recognized in the first inning in his first game at Chase Field since 2000. He was the original manager of the Diamondbacks when they joined the league in 1998. ... Baltimore's Adam Jones went 0-for-4 to end a nine-game hitting streak. ... Orioles RHP Miguel Gonzalez will face the Diamondbacks for the first time in his career on Tuesday. He is 3-4 with a 3.68 ERA in 11 road starts this season. ... Arizona RHP Randall Delgado, who will start the series' second game against Baltimore, is 3-0 with a 2.81 ERA his past four starts.
Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.