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 > Trouble with uncataloging a database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-08-04, 18:11
appleby appleby is offline
Registered User
 
Join Date: Apr 2004
Posts: 3
Unhappy Trouble with uncataloging a database

I have uncataloged this DB from the local and system catalog, but it is still there. Any ideas?

db2 => uncatalog database trade3db
SQL1013N The database alias name or database name "trade3db" could not be
found. SQLSTATE=42705

db2 => drop database trade3db
SQL1013N The database alias name or database name "TRADE3DB" could not be
found. SQLSTATE=42705

db2 => create db trade3db
SQL1005N The database alias "TRADE3DB" already exists in either the local database directory or system database directory.
Reply With Quote
  #2 (permalink)  
Old 04-08-04, 19:33
kuckoo kuckoo is offline
Registered User
 
Join Date: Sep 2002
Posts: 41
On Unix,
This can happen if your NODE0000 directory still has pointer of Database you are creating.

If you don't have any other working database on that instance then you can delete that NODE0000 directory and your pointers will go away and when you create database next time DB2 creates NODE0000 directory and database creates sucessfully.

This is on Solaris. I hope this applies to other plateforms too.

Hope this will help.
Kuckoo
Reply With Quote
  #3 (permalink)  
Old 04-10-04, 05:37
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
catalog database TRADE3DB on c:

will catalog the local db directory on system db directory ...

drop database TRADE3DB

will drop the database ...

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 04-12-04, 08:09
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Gory detail:

There are two catalogs (or more!), a system catalog and then one for each path you've created a database on.

db2 LIST DATABASE DIRECTORY
-> System catalog

db2 LIST DATABASE DIRECTORY ON /my/path/where/databases/are
-> Physical database catalog

You can only connect/drop/etc. if they are in the System catalog.

In general, you DON'T want to delete the NODE0000 directory... you can always get around this by re-cataloging and dropping like sathyaram_s suggests!
__________________
--
Jonathan Petruk
DB2 Database Consultant
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