If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > TOOLSDB Problem URGENT !!!!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-20-07, 15:16
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
TOOLSDB Problem URGENT !!!!!

Linux 3.1 DB2 V8.1 FP10

I have removed the TOOLSDB without dropping the tools catalog and now I am having problems.

If I run "db2 drop tools catalog systools in database toolsdb" I get,
SQL1013N The database alias name or database name "" could not be found.

If I run "db2 create tools catalog systools create new database TOOLSDB" I get,
SQL1005N The database alias "TOOLSDB" already exists in either the local
database directory or system database directory.

If I run, "db2 drop database TOOLSDB" I get,
SQL1013N The database alias name or database name "TOOLSDB " could not be found. SQLSTATE=42705

I have tried

http://www-1.ibm.com/support/docview...en&rss=ct71db2

It did not help. Now I am thinking to delete the TOOLSDB database files from /home/db2inst1/db2inst1/NODE0000/.................but I don't know which directory/files would be belong to TOOLSDB.

It looks like we have 4 database but 5 SQL0000X directory. Can someone please help ?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 06-20-07, 15:33
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What is the output for "LIST DB DIRECTORY"?

Andy
Reply With Quote
  #3 (permalink)  
Old 06-20-07, 15:35
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
4 user databases (no TOOLSDB)
Reply With Quote
  #4 (permalink)  
Old 06-20-07, 15:44
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You say that you are 5 DB directories. What happens if you run "catalog db toolsdb on <path> authentication server" where path is that 5th directory?

Andy
Reply With Quote
  #5 (permalink)  
Old 06-20-07, 16:00
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
Ok. I ran "db2 catalog db toolsdb" and now I can see the database. I don't know which SQL0000X directory is belong to which database. I tried to create a task but I get a

"DBA1177N A database connection to the Tools Catalog Database cannot be made. SQLCODE"-1390"


Where do I go from here ?


Thanks.
Reply With Quote
  #6 (permalink)  
Old 06-20-07, 16:09
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The "LIST DB DIRECTORY" should have given you which directory belonged to which DB. Can you post the ENTIRE output from this? What is the entire path of each of the 5 SQL0000X directories?

Andy
Reply With Quote
  #7 (permalink)  
Old 06-20-07, 16:19
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
list db directory gives:

Database 3 entry:

Database alias = TOOLSDB
Database name = TOOLSDB
Local database directory = /home/db2inst1
Database release level = a.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =


Complete path is: /home/db2inst1/db2inst1/NODE0000/SQL0000X
Reply With Quote
  #8 (permalink)  
Old 06-20-07, 16:30
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
The directory that belongs to TOOLSDB is /home/db2inst1/db2inst1/NODE0000/SQL00001/

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




when I run,
"db2 catalog db TOOLSDB on /home/db2inst1/db2inst1/NODE0000/SQL00001/ authentication server"

I get,
SQL6028N Catalog database failed because database "TOOLSDB" was not found in the local database directory.
Reply With Quote
  #9 (permalink)  
Old 06-20-07, 16:50
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
Thanks for your help.............After that I applied to the above IBM link and it worked..............
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On