D. Ross Cameron-USA TODAY Sports

James McCann drove in three runs, two with a 10th-inning single as part of a five-run uprising, and the Baltimore Orioles outlasted the host Oakland Athletics 7-2 on Saturday night for a second consecutive win in their three-game series.

Ryan Mountcastle had an RBI single, Jordan Westburg a sacrifice fly and Austin Hays a run-scoring infield out in the 10th before McCann, who had homered earlier in the game, landed his two-run single in front of A's left fielder Esteury Ruiz to give the Orioles a five-run cushion.

Felix Bautista (8-2), who worked a 1-2-3 bottom of the ninth to preserve a 2-2 tie, was credited with the win. Jacob Webb mopped up in the last of the 10th in a non-save situation, striking out three in a row after loading the bases.

Adrian Martinez (0-1), Oakland's fifth pitcher, took the loss, with two of his five runs allowed unearned.

Before the 10th, all the game's scoring had been the result of solo home runs, including a pair by Oakland's Aledmys Diaz.

Ruiz cleared the fence in the second and sixth innings, his third and fourth home runs of the season. The two-homer game was the fourth of his eight-year career, with the first coming for the St. Louis Cardinals in 2017 and the other two for the Houston Astros in 2021 and 2022.

Ruiz's homers both came off former A's pitchers -- Baltimore starter Cole Irvin and reliever Shintaro Fujinami.

Irvin worked the first five innings for the Orioles, leaving with a 2-1 lead after allowing one run and four hits. He walked one and struck out three.

The Orioles' homers came in a nine-pitch sequence of the fourth inning against Oakland starter Ken Waldichuk. Austin Hays got Baltimore even at 1-1 with his 12th of the season, and after Waldichuk struck out Cedric Mullins, McCann crushed the second pitch he saw for his fourth of the year.

Waldichuk was pulled two outs into the sixth inning, charged with two runs and four hits. He walked three and struck out seven.

Hays finished with two runs and two RBIs for the Orioles, who clinched a winning Western swing with a fifth win in eight games. Mullins and Ryan McKenna joined McCann in the two-hit club.

Zack Gelof and Shea Langeliers matched teammate Diaz's two-hit effort for Oakland, which has lost seven of eight.

More must-reads:

TODAY'S BEST
Stars center matches Gretzky feat as Dallas pushes Avalanche to brink
Gritty young Thunder take down veteran Mavericks in Game 4
Cubs acquiring veteran reliever from Mariners
Top-five NBA Draft prospect suffers scary non-contact injury
Hurricanes stay alive with third-period outburst vs. Rangers
Jaylen Brown's big three-pointer gives Celtics 3-1 lead over Cavs
Avalanche star placed in player assistance program
Mercury announce devastating injury on eve of WNBA season
Randy Moss' son makes major football announcement
Reds place key outfielder on injured list with broken thumb
Tom Brady's broadcasting debut set for Week 1 of NFL season
Struggling Cubs reliever placed on injured list 
Report: Justin Fields had ‘toxic' relationship with ex-Bears QB
Extension makes Lions QB Jared Goff one of NFL's highest-paid players
Kentucky's Reed Sheppard displays excellent skills at NBA Draft Combine
Knicks big man undergoes another ankle surgery
Flames CEO stepping down, transitioning to advisory role
Oilers star seemingly dismisses Arturs Silovs' performance in Game 3
Bengals QB Joe Burrow is making a notable change to stay healthy in 2024
Orioles designate outfielder for assignment