The Marlins and veteran infielder Greg Dobbs have agreed to a two-year contract, according to a person familiar with the talks. The deal will be completed pending a physical. Dobbs, an eight-year veteran, hit .275 in 134 games for the Marlins last season.