Stephen Fife allowed six of the first nine Giants to reach base and pitched four innings before getting a strikeout.
Matt Kemp went 0 for 5.
Ronald Belisario blew a two-run lead in the blink of an eighth-inning eye.
Kenley Jansen gave up consecutive base hits to start the 10th inning.
And still, the Dodgers broke through, ending their 38-inning scoreless streak in San Francisco and pulling out a 5-3, extra-inning victory.
Hanley Ramirez, whose bat launches balls like no Dodger infielder we’ve seen since Jeff Kent, hit his second high, sky-splitting drive in four games as a Dodger, this one clearing the left-center wall with Andre Ethier (2 for 4) aboard to break a 3-3 tie in the 10th inning. Ethier had walked on a 3-2 pitch that looked as unconvincingly like ball four as any Dodger walk I’ve seen this year, but so be it.
Jansen struck out two batters after allowing the tying runs to reach base in the bottom of the 10th, then got Joaquin Arias to fly to left field.
Shawn Tolleson, something of a surprise to pitch the bottom of the ninth with the score tied, retired the side in order and ended up with his first major-league win – a victory that appeared destined for Fife after he not only survived to pitch 6 1/3 innings of one-run ball, allowing nine baserunners while striking out two, but also delivered a fifth-inning double to lead to the Dodgers’ first runs.
Los Angeles left eight baserunners during the game, San Francisco nine. Dodger first basemen James Loney and Juan Rivera combined to go 4 for 5, accounting for a third of the team’s 12 hits.