For the second night in a row, the Pittsburgh Pirates had no concerns about how they would replace the missing bats from their lineup.

After rallying from a four-run deficit 24 hours earlier, the Pirates coasted from start to finish, beating the Athletics, 12-4, at Sutter Health Park in Sacramento, Calif.

Ryan O’Hearn set a career high with six RBIs, and all nine starters had at least one hit as the Pirates had no difficulty producing runs minus center fielder Oneil Cruz and rookie shortstop Konnor Griffin, who both are out with injuries.

O’Hearn went 3 for 5 with a two-run homer, two-run double and two-run single. With O’Hearn needing a triple to complete the cycle, manager Don Kelly replaced him with pinch-hitter Esmerlyn Valdez in the ninth.

Given the location — the Athletics temporarily are playing in a Triple-A stadium before heading to Las Vegas — and the way the Pirates poured on runs Wednesday night, it looked like a baseball version of a West Coast offense.

Marcell Ozuna had two hits, including a solo homer. Brandon Lowe and Bryan Reynolds each drove in two runs. Spencer Horwitz had two doubles, and Nick Gonzalez and Jared Triolo had two hits apiece.

Entering the series finale against the A’s, O’Hearn had five RBIs in June, and he had just two in his previous 11 games.

Braxton Ashcraft (6-3) allowed one earned run in six innings for the win, the first by a Pirates starter since June 4.

Athletics starter Aaron Civale (5-3) was chased one batter into the fourth inning having retired just nine of the 20 batters he faced. The Pirates had nine hits and walked twice while Civale was in the game. He was charged with six earned runs.

The Athletics activated Civale from the injured list to start for the first time since May 25. Civale had been sidelined with right shoulder tendinitis, and it didn’t take long to realize he wasn’t at his best.

The Pirates scored three runs in the first as Civale gave up three doubles and a walk to the first four batters.

Horwitz opened the game with a sharp double to right. Lowe walked. Reynolds, on the heels of a 4-for-5, two-homer performance, launched a pitch to deep right field. It had the makings of three-run homer until the wind knocked down the ball. Right fielder Lawrence Butler was fooled by the trajectory of the ball, and it landed next to him and bounced into the bullpen for an RBI double. O’Hearn followed with a two-run double to left, and Civale still was searching for his first out.

Civale got out of the inning without incurring further damage, but he wasn’t as fortunate in the second. Four of the first five batters hit safely, with Horwitz hitting another double, and Lowe and Reynolds following with RBI singles.

Ashcraft didn’t allow his first hit until the fourth and took a one-hit shutout into the sixth.

After striking out twice, Nick Kurtz hit a single to left. A walk to Shea Langeliers gave the Athletics their first runner in scoring position. Tyler Soderstrom grounded to first. Horwitz stepped on the base, then threw to second. Triolo applied the tag, but the ball was dislodged from his glove for an error.

Jacob Wilson pulled the Athletics within 7-2 when he delivered a two-run single to center field.

Ashcraft finished his night with back-to-back strikeouts, and the Pirates put the outcome out of reach in the seventh when they scored five times.

Ozuna led off with his first home run since May 15. After yielding the homer, Scott Barlow gave up a single and hit two batters to load the bases.

Luis Medina replaced Barlow and walked Horwitz to force in a run. Lowe hit a sacrifice fly to hike the lead to 10-2. One out later, Horwitz singled to center, driving in two more runs.