when the battery is disconnected the tcu does not lose it's learned memory 2. fact. you have to do that through SSM and then do a relearn procedure. battery disconnect might clear memory 1, but definitely not 2.
if you have a tranny banging issue, resetting learned 2 can help reduce this but if it eventually comes back, you've got an internal tranny problem