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 > Drop Database That is NOT in the local database directory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-09, 12:29
rockycj rockycj is offline
Registered User
 
Join Date: Feb 2007
Posts: 73
Drop Database That is NOT in the local database directory

I've got DB2 v 9.1. I'm doing a db2 list db directory:
Database 10 entry:

Database alias = BRUCE
Database name = BRUCE
Local database directory = /db2_data/database
Database release level = b.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =

Then trying to drop this BRUCE database and get this message:
SQL1013N The database alias name or database name "BRUCE " could
not be found. SQLSTATE=42705

SQL1013N Error:
If the database name appears in the system database directory
and the entry type is INDIRECT, ensure that the database exists
in the specified local database directory. If the entry type is
REMOTE, then ensure that the database exists and is cataloged on
the database directories of the server node.


The database is not in the local database directory. I'm not sure what to do from here. My goal is to remove the BRUCE database.

Thank you.

CC
Reply With Quote
  #2 (permalink)  
Old 10-05-09, 13:25
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
If the db is not in the local db directory, then just uncatalog it from the system db directory using "db2 uncatalog db <db name>"
Reply With Quote
  #3 (permalink)  
Old 10-05-09, 14:27
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
After you uncatalog it, you may have to find the location of the files and delete them manually if they are still around.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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