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 > Help me to solve this error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-31-03, 07:08
Amateur2003 Amateur2003 is offline
Registered User
 
Join Date: Dec 2003
Location: Vietnam
Posts: 5
Help me to solve this error

I receive the errow while trying to remove Sample DataBase

" The database alias "SAMPLE" already exists in either the local database directory or system database directory."

Pls tell me how to drop this database, (Pls be informed that I can not see it in Control Center to delete it)

Thank you
Reply With Quote
  #2 (permalink)  
Old 12-31-03, 07:30
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Help me to solve this error

Do

db2 list db directory

and

db2 list db directory on C:\

IF the database appears in the second listing, do

db2 catalog database <dbname> on C:\

and then do a db2 drop database ....

BTW, did you DROP DATABASE command ? or was it a delete of the directories ?

Cheers

Sathyaram
__________________
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