Thanks for replying to my post.
db2level is the same in Produciton and QA:
Informational tokens are "DB2 v8.1.1.96", "s050811", "U803920", and FixPak
"10".
Product is installed at "/usr/opt/db2_08_01".
Both server is AIX 5.3, and 64 bit.
I corrected the syntax error, and rerun the redirect restore script, the restore is completed successfully.
However, the log archive method and option in production database is different in the test database. After the restoration, the database can not be connected.
db2 restore database PR1 continue
DB20000I The RESTORE DATABASE command completed successfully.
db2 list tablespaces
SQL2071N An error occurred while accessing the shared library
"/usr/tivoli/tsm/tdp_r3/db264/libtdpdb264.a". Reason code: "2".
db2 get db cfg for TST | grep -i log
Log retain for recovery status = RECOVERY
User exit for logging status = YES
Catalog cache size (4KB) (CATALOGCACHE_SZ) = 2560
Log buffer size (4KB) (LOGBUFSZ) = 1024
Log file size (4KB) (LOGFILSIZ) = 40950
Number of primary log files (LOGPRIMARY) = 20
Number of secondary log files (LOGSECOND) = -1
Changed path to log files (NEWLOGPATH) =
Path to log files = /db2/TST/log_dir/
Overflow log path (OVERFLOWLOGPATH) =
Mirror log path (MIRRORLOGPATH) =
First active log file = S0000568.LOG
Block log on disk full (BLK_LOG_DSK_FUL) = YES
Percent of max active log space by transaction(MAX_LOG) = 0
Num. of active log files for 1 active UOW(NUM_LOG_SPAN) = 0
Percent log file reclaimed before soft chckpt (SOFTMAX) = 300
Log retain for recovery enabled (LOGRETAIN) = RECOVERY
User exit for logging enabled (USEREXIT) = OFF
HADR log write synchronization mode (HADR_SYNCMODE) = NEARSYNC
First log archive method (LOGARCHMETH1) = VENDOR:/usr/tivoli/tsm/tdp_r3/db264/libtdpdb264.a
Options for logarchmeth1 (LOGARCHOPT1) = /db2/PR1/tdp_r3/vendor.env
Second log archive method (LOGARCHMETH2) = OFF
Options for logarchmeth2 (LOGARCHOPT2) =
Failover log archive path (FAILARCHPATH) =
Number of log archive retries on error (NUMARCHRETRY) = 5
Log archive retry Delay (secs) (ARCHRETRYDELAY) = 20
Log pages during index build (LOGINDEXBUILD) = OFF
db2 update db cfg using LOGARCHMETH1 off
SQL1024N A database connection does not exist. SQLSTATE=08003
db2 connect to TST
SQL2071N An error occurred while accessing the shared library
"/usr/tivoli/tsm/tdp_r3/db264/libtdpdb264.a". Reason code: "2".
It appears that the log archive method and option are resetored using the production database configuration. The log archive option is retaining the production directory and file name.
Since I can not connect to the database TST, I can not issue db2 update db cfg command to set the log archive method and option. I dropped the database TST, and restored TST from the backup that was taken before I started the restore processes.
I will create another production off-line backup with the log retain mode, log archive method, and log archive option turn off. I have to wait for another maintenance window to create this production backup.
Is there another way to restore the production off-line backup and overrride the log retain mode, log archive method and option?
Thanks for your input!