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 > Dropping a database alias?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-20-04, 09:05
bon213 bon213 is offline
Registered User
 
Join Date: Jan 2004
Posts: 5
Dropping a database alias?

I mistakenly created a database with the wrong alias. What is the command to drop that alias and create a new alias? Any help appreciated....
atabase 1 entry:

Database alias = DORTIFPC
Database name = DORTIFPC
Local database directory = /ifpctcat
Database release level = 9.00
Comment =
Directory entry type = Indirect
Catalog node number = 0

Database 2 entry:

Database alias = DORTIFP2 **** Want to get rid of ***
Database name = DORTIFPC
Local database directory = /ifpctcat
Database release level = 9.00
Comment =
Directory entry type = Indirect
Catalog node number = 0
Reply With Quote
  #2 (permalink)  
Old 08-20-04, 09:23
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Can you post the output of

list db directory on /ifpctcat
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 08-20-04, 09:25
bon213 bon213 is offline
Registered User
 
Join Date: Jan 2004
Posts: 5
output

dortifpc@dordb3: /ifpctcat => db2 list db directory on /ifpctcat

Local Database Directory on /ifpctcat

Number of entries in the directory = 1

Database 1 entry:

Database alias = DORTIFPC
Database name = DORTIFPC
Database directory = SQL00001
Database release level = 9.00
Comment =
Directory entry type = Home
Catalog node number = 0
Node number = 0
Reply With Quote
  #4 (permalink)  
Old 08-20-04, 09:27
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
uncatalog database DORTIFP2

should solve your problem
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 08-20-04, 09:31
bon213 bon213 is offline
Registered User
 
Join Date: Jan 2004
Posts: 5
Smile That did it!!

Thanks for your help..
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