Ojeda, who will turn 34 later this month, has been a valuable utility player for the D-backs the past two seasons.
The switch-hitter batted .242 in 105 games at second, third and shortstop.
Ojeda was eligible for salary arbitration.
The D-backs likely still will try to acquire additional help at second.
Steve Gilbert is a reporter for MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.