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 > uncatalog a db

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-02-09, 01:01
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
Question uncatalog a db

Hi All,
Below are operations I am performing in sequence.
>db2 create database xxx
SQL1005N The database alias "xxx" already exists in either the local
database directory or system database directory.

>db2 connect to xxx
SQL30061N The database alias or database name "xxx " was
not found at the remote node. SQLSTATE=08004

>db2 catalog database pca_u
SQL1005N The database alias "xxx" already exists in either the local
database directory or system database directory.

>list db directory
Database 7 entry:
Database alias = xxx
Database name = xxx
Local database directory = C:
Database release level = b.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =

How can I completely uncatalog this previously cataloged database named 'xxx' so as to create a new DB with the same name???
Reply With Quote
  #2 (permalink)  
Old 06-02-09, 04:58
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Is this a trick question?
Code:
db2 uncatalog db xxx
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 06-02-09, 05:01
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
db2 catalog database xxx on c:
db2 drop database xxx
db2 create database xxx
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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