Once u replace the battery, all codes stored will disappear. Are you having any problems with the passive key system? If yes, then the SYS light will blink and the SECURITY light will be on at the same time.
Also, get yourself a set of factory service manuals if you don't already have them...