Elian Herrera singled in the go-ahead run in the bottom of the ninth inning, lifting the Los Angeles Dodgers to a 3-2 victory over the San Francisco Giants on Monday night that kept their postseason hopes alive.