Cuban infielder Hector Olivera, who was linked to both the A's and Giants, has agreed to join the Los Angeles Dodgers on a six-year deal.