BALTIMORE - Manny Machado hit a two-run homer in the 13th inning, and the Baltimore Orioles also got home runs from Adam Jones and Chris Davis in an 8-6 victory over the Oakland Athletics on Friday night.
Caleb Joseph doubled with one out in the 13th against Drew Pomeranz (4-5), who left after being visited on the mound by the team trainer. Aaron Brooks entered, and Machado sent the right-hander's second pitch into the seats in left field.
That enabled the Orioles to avoid a third straight defeat, which would have dropped them to .500 for the first time since July 27. The defending AL East champions are in third place in the division and 1 1/2 games off the pace in the wild-card hunt.
Rookie Jason Garcia (1-0) got three straight outs in the 13th to earn his first major league win.
Oakland trailed 6-4 in the ninth before scoring two runs against All-Star reliever Zach Britton, who had converted 24 straight save opportunities and was a big reason why Baltimore was 51-0 when leading after eight innings. After Josh Phegley drove in a run with a groundout, former Oriole Danny Valencia hit an 0-2 pitch for a two-out, RBI single.
Earlier, Baltimore rallied from a 4-0 deficit. After Jones hit a three-run drive in the fifth, he added a sacrifice fly in the seventh before Davis ripped a 1-2 pitch from Fernando Abad far over the right-field wall to make it 6-4.
Abad had not allowed an earned run in 13 appearances since July 8.
Stephen Vogt homered and Coco Crisp had four hits for the Athletics, who have lost 14 of 21. Oakland had 17 hits but stranded 13 and had two runners thrown out at the plate.
After being no-hit in Seattle on Wednesday by Hisashi Iwakuma, the Orioles ended a run of 12 straight hitless innings when J.J. Hardy singled in the second. But Baltimore extended its streak of consecutive scoreless innings to 15 before Jones connected in the fifth.
Oakland provided a four-run cushion for left-hander Brad Mills, who was recalled from Triple-A Nashville to make his 2015 major league debut. Mills came in 3-0 with a 1.56 ERA lifetime against Baltimore and 1-4 with a 10.16 ERA against everyone else.
His success against the Orioles continued until the fifth, and Mills didn't make it to the sixth.
Baltimore's comeback negated a poor start by Ubaldo Jimenez, who needed 102 pitches to get through five innings. He allowed four runs, nine hits and two walks.
Athletics: RHP Sonny Gray says his back spasms have settled considerably, and he expressed hope of returning to the rotation for Monday's series finale.
Orioles: C Matt Wieters feels improvement in his strained right hamstring. "I don't feel it's a DL thing," he said. "As long as I can run close to the slow speed I normally am, it will be good."
Athletics: Chris Bassitt (1-4, 2.48 ERA) looks for a little support Saturday night. The right-hander has been backed by one run or less in five of his seven starts.
Orioles: Miguel Gonzalez (9-8) has given up 12 runs in his last three starts but can clinch a third straight season with double-digit wins.