Dodgers 4, Diamondbacks 3.

Alex Guerrero

Alex Guerrero went 2 for 4 as the designated hitter Thursday. (Associated Press photo)

On an afternoon in which scheduled starter Zack Greinke was pulled two batters into the game, the Dodgers got their first Cactus League victory.

Miguel Rojas broke a 2-2 tie in the seventh inning, scoring from second base on an RBI single by Brendan Harris. Harris smacked a line drive to right field off Marcos Mateo, a right-hander who split last season between Double-A and Triple-A. Arizona right fielder Matt Tuiasosopo made a good throw to home plate, but it was slightly up the first-base line. Catcher Blake Lalli reached back to the plate a moment too late to tag Rojas.

Alex Guerrero drove in Justin Turner with an insurance run in the eighth inning off Diamondbacks left-hander Eury De La Rosa.

Juan Uribe tied the game with a solo home run in the fourth inning off Diamondbacks right-hander R.J. Hively, who hasn’t pitched an inning above high Single-A ball in his life. It was the Dodgers’ first home run of the spring.

The Dodgers got on the board in the bottom of the second inning when Adrian Gonzalez dropped a double just inside the left-field line, then scored on an RBI single by Uribe.

Chris Withrow had the unenviable task of relieving Greinke with a 1-1 count on Cliff Pennington. The 24-year-old right-hander, who’s on the bubble for a bullpen job this spring, came in cold and had to warm up on the mound. He retired Pennington but couldn’t get out of the second inning, allowing a walk, a single and an RBI double, followed by a strikeout and an RBI groundout. Five of the nine batters Withrow faced reached base.

The box score is here.

A couple more notes:

Yasiel Puig went 0 for 2, but made an impressive catch after a long run to the right field foul line. The excess weight he brought to spring training didn’t seem to weight him down.

Dee Gordon went 0 for 3 but also made an impressive play in the field. Gordon ranged to his left and slid to knock down a ground ball by speedy leadoff hitter Tony Campana, then threw to first in time for the out.

• Joc Pederson (0-for-2, strikeout) wasn’t particularly impressive in either of his at-bats, but he threw a bullet from left field to prevent Andy Marte from tagging up and scoring from third base.

• Guerrero finished 2 for 4 with an RBI as the designated hitter. Don Mattingly said earlier in the day that he plans to play Guerrero often. He was the only Dodger player who didn’t come out of the game.

• Daniel Moskos struck out the side in the 6th inning in his spring debut. Red Patterson threw 2 ⅓ scoreless innings in relief of Withrow. Sam Demel (5th), Pedro Baez (7th) and Jarret Martin (8th) also had scoreless innings in their debuts.

• Attendance was 5,285.