Prince Kumar
2003-10-07 19:49:11 UTC
Dear Group,
I recently installed DB2 and created an db "TOOLSDB" for the tools
catalog. during installation, the DB was created at the default
location. But I moved the DB to another location using
"db2relocatedb". Somehow I messed up during the relocate and undid the
relocate.
Now, I have the following situation.
I can do certain tasks on the DB. but when I try to create a tools
catalog on the toolsdb, I get the following error message.
% db2 create tools catalog toolscat USE EXISTING database toolsdb
SQL1031N The database directory cannot be found on the indicated file
system.
SQLSTATE=58031
Note: I probably can drop and recreate the DB. But I want to try other
alternatives first.
% db2 list db directory
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = TOOLSDB
Database name = TOOLSDB
Local database directory = /db2home/db2inst1
Database release level = a.00
Comment = Cataloged by db2relocatedb
Directory entry type = Indirect
Catalog database partition number = 0
Database 2 entry:
...
% db2 list db directory on path /db2home/db2inst1
Database 1 entry:
Database alias = TOOLSDB
Database name = TOOLSDB
Database directory = SQL00001
Database release level = a.00
Comment =
Directory entry type = Home
Catalog database partition number = 0
Database partition number = 0
I recently installed DB2 and created an db "TOOLSDB" for the tools
catalog. during installation, the DB was created at the default
location. But I moved the DB to another location using
"db2relocatedb". Somehow I messed up during the relocate and undid the
relocate.
Now, I have the following situation.
I can do certain tasks on the DB. but when I try to create a tools
catalog on the toolsdb, I get the following error message.
% db2 create tools catalog toolscat USE EXISTING database toolsdb
SQL1031N The database directory cannot be found on the indicated file
system.
SQLSTATE=58031
Note: I probably can drop and recreate the DB. But I want to try other
alternatives first.
% db2 list db directory
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = TOOLSDB
Database name = TOOLSDB
Local database directory = /db2home/db2inst1
Database release level = a.00
Comment = Cataloged by db2relocatedb
Directory entry type = Indirect
Catalog database partition number = 0
Database 2 entry:
...
% db2 list db directory on path /db2home/db2inst1
Database 1 entry:
Database alias = TOOLSDB
Database name = TOOLSDB
Database directory = SQL00001
Database release level = a.00
Comment =
Directory entry type = Home
Catalog database partition number = 0
Database partition number = 0