Once you've reconnected the battery, crank the car and just let it idle for 10 minutes. This will let the computer readjust everything. You can also drive the car for 25 - 40 miles and it will adjust also.
I've always just found that it adjusts quicker if you just let it idle 10 minutes the...