The Los Angeles Dodgers acquired veteran pitcher Roberto Hernandez from the Philadelphia Phillies in exchange for two players to be named later or cash considerations, the teams announced Thursday.