Before that, the Orioles capitalized on a key fourth-inning error that fueled a three-run inning that allowed them to take a 3-2 lead.

Orioles third baseman Manny Machado drove in the go-ahead run on a two-out single, capping a three-hit night that gave him 122 hits on the season. Machado also recorded his 35th multihit game.

With the Orioles trailing 2-0 in the fourth, a walk to J.J. Hardy and a double by Nate McLouth put two runners in scoring position to open the inning.

Brian Roberts then hit a grounder to the right side that first baseman Mitch Moreland backhanded, but his toss to Holland covering first was wild, allowing both runners to score and tie the game 2-2 with no outs. Three batters later, Machado hit a two-out single past Andrus at shortstop to score Roberts and give the Orioles a 3-2 lead. Wieters struck out with the bases loaded to end the inning.

Wieters inched the Orioles back with his two-run homer in the seventh, his 12th of the season and second in four games, hitting a 2-0 fastball the opposite way over the right-center field fence in the seventh inning to cut the lead to 8-5.

The Orioles brought the tying run to the plate later that inning, but reliever Ross Wolf needed just one pitch to retire pinch hitter Ryan Flaherty on a ground out to second to end the inning.

“Well, we scored five,” center fielder Adam Jones said. “The game turned on a big inning, the sixth inning, and we were unable to come back from it. ... You have to give Holland credit, he got into some jams and was able to get out of them, especially the first three innings. We let him off the hook, but that's why he gets paid the big bucks — he makes good pitches at times, also.”

Rangers closer Joe Nathan posted a perfect ninth inning for his 30th save, tying the Orioles' Jim Johnson for most in the AL. In the inning, Nathan struck out both Chris Davis and Wieters, who combined for eight strikeouts on the night and stranded a combined 12 base runners. It marked the fourth time in franchise history that two Orioles struck out four or more times in a game.

“It'd always be nice to get your pitcher a lead and let Feldy go and roll a little bit there,” said Wieters, who had inning-ending strikeouts in the first, third and fourth innings, stranding seven baserunners. “I had numerous opportunities with guys on base but couldn't get that big hit to stretch out the lead a little bit. Any time you can add runs against a team with that kind of offense, you need to do it.”