THis is normal. Your check engine light needs to come on when the key is in the on position for a bulb check. Once the vehicle is started, the light should go out.
If your battery died just recently, chances are you just need to drive the vehicle to get the readiness monitors to run.
It all depends.
Anywhere from 30 minutes to two weeks.