I am running 7.2 with fixpack 10a under W2K. I got a backup from someone
else in an attempt to debug a data issue. The other person created the
database with UTF-8 (codepage 1208), so I created a new database with that
codepage, cd to the directory where the backup was located, but the restore
failed:
db2 => create database MYDB using codeset UTF-8 territory us
DB20000I The CREATE DATABASE command completed successfully.
db2 => restore database twh_md to MYDB
SQL2529W Warning! Restoring to an existing database that is different from
the backup image database, and the alias name "MYDB" of the existing
database does not match the alias name "TWH_MD" of the backup image, and the
database name "MYDB" of the existing database does not match the database
name "TWH_MD" of the backup image. The target database will be overwritten
by the backup version.
The Roll-forward recovery logs associated with the target database will be
deleted.
Do you want to continue ? (y/n) y
SQL0902C A system error (reason code = "1326") occurred. Subsequent SQL
statements cannot be processed. SQLSTATE=58005
See db2diag.log below. It appears it wants to put it in G:, which is where
the original database was. What gives here ? I would think db2 would know
to put it wherever it created the new database MYDB. Any ideas what is
going on here ?
Thanks,
Scott
Error acquiring container 0 (g:\db2\node0000\sql00002\sql0000.0) for tbsp 0.
Rc = FFFFB52E
2003-11-13-15.21.34.731000 Instance:DB2 Node:000
PID:1504(db2syscs.exe) TID:3316 Appid:none
buffer_pool_services sqlbAddContainersToNewPool Probe:2
DIA9999E An internal error occurred. Report the following error code :
"0xFFFFB52E".
2003-11-13-15.21.34.761000 Instance:DB2 Node:000
PID:1504(db2syscs.exe) TID:3316 Appid:none
database_utilities sqludProcessSPCS Probe:40
DiagData
2eb5 ffff 2e05 0000 .µÿÿ....
2003-11-13-15.21.34.771000 Instance:DB2 Node:000
PID:1504(db2syscs.exe) TID:3316 Appid:none
database_utilities sqludProcessSPCS Probe:40
2eb5 ffff 2e05 0000 .µÿÿ....
2003-11-13-15.21.34.791000 Instance:DB2 Node:000
PID:1504(db2syscs.exe) TID:3316 Appid:none
database_utilities sqludCheckObjHeader Probe:10
DiagData
1ef6 ffff 0000 0000 .öÿÿ....
2003-11-13-15.21.34.801000 Instance:DB2 Node:000
PID:1504(db2syscs.exe) TID:3316 Appid:none
database_utilities sqludCheckObjHeader Probe:10
1ef6 ffff 0000 0000 .öÿÿ....
2003-11-13-15.21.34.951000 Instance:DB2 Node:000
PID:1504(db2syscs.exe) TID:3016 Appid:*LOCAL.DB2.031113211649
database_utilities sqludrsa Probe:0 Database:AKER_MD
Restore terminated.
The new database I ctreated is in sql00007, not sql00002.