When Germany last booked its World Cup place in Cologne, it went on to win the tournament win with Franz Beckenbauer as coach in 1990.
The hosts should have scored more but found Irish goalkeeper David Forde in excellent form.
"I'm delighted with our boys, I'm just sorry we didn't score," said Irish interim coach Noel King, whose side pushed hard for a consolation before Ozil scored.