Problem:
SQL1117N A connection to or activation of database "DBNAME" cannot be made
because of ROLL-FORWARD PENDING. SQLSTATE=57019
hatasını alınırsa eğer ;
db2 rollforward db sample (sample database adıdır.)
komutu çalıştırılır.
Rollforward Status
Input database alias = sample
Number of members have returned status = 1
Member ID = 0
Rollforward status = DB pending
Next log file to be read = S0000000.LOG
Log files processed = -
Last committed transaction = 2023-12-06-09.12.31.000000 UTC
Rollforward status = DB pending olarak görünüyor ise aşağıdaki komut ile sorun çözülür.
Fix Command:
db2 rollforward db <dbname> to end of logs and complete
Example:
db2 rollforward db sample to end of logs and complete