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 > ubable to drop database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-04-07, 01:10
chakribobby chakribobby is offline
Registered User
 
Join Date: Oct 2007
Posts: 15
ubable to drop database

hi,
While deleting the db2 database I got this error

bash-3.1$ db2 drop database TC
SQL30081N A communication error has been detected. Communication protocol
being used: "TCP/IP". Communication API being used: "SOCKETS". Location
where the error was detected: "10.0.3.4". Communication function
detecting the error: "connect". Protocol specific error code(s): "239", "*",
"*". SQLSTATE=08001

Any ideas on what I missed
Thanks in advance

Last edited by chakribobby; 10-04-07 at 01:17.
Reply With Quote
  #2 (permalink)  
Old 10-04-07, 01:56
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
Is the database catalogued? Can you connect to it?
Is the instance started?
try a db2start
Reply With Quote
  #3 (permalink)  
Old 10-04-07, 06:12
chakribobby chakribobby is offline
Registered User
 
Join Date: Oct 2007
Posts: 15
thanks for u reply
I am new to db2
Can u explain in brief

bash-3.1$ db2start
10/04/2007 15:42:36 0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.


bash-3.1$ db2 drop database TC
SQL30082N Attempt to establish connection failed with security reason "3"
("PASSWORD MISSING"). SQLSTATE=08001
Reply With Quote
  #4 (permalink)  
Old 10-04-07, 18:29
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
try


db2 drop database TC user myUser using myPassword


Regards

Harikumar
Reply With Quote
  #5 (permalink)  
Old 10-05-07, 00:11
chakribobby chakribobby is offline
Registered User
 
Join Date: Oct 2007
Posts: 15
hi,
now i am got this problem

bash-3.1$ db2 drop database TC
SQL1428N The application is already attached to "DB2INST1" while the command
issued requires an attachment to "TC" for successful execution.
Reply With Quote
  #6 (permalink)  
Old 10-05-07, 02:29
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Quote:
Originally Posted by sundaram
db2 drop database TC user myUser using myPassword
The DROP DATABASE command doesn't support this syntax. What is needed is an attachment to the instance in which the database resides, i.e.:
Code:
$ db2 attach to <instance>
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #7 (permalink)  
Old 10-05-07, 02:30
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Quote:
Originally Posted by chakribobby
$ db2 drop database TC
SQL1428N The application is already attached to "DB2INST1" while the command
issued requires an attachment to "TC" for successful execution.
What's the output of:
Code:
$ db2 list db directory
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #8 (permalink)  
Old 10-05-07, 05:25
chakribobby chakribobby is offline
Registered User
 
Join Date: Oct 2007
Posts: 15
bash-3.1$ db2 list db directory

System Database Directory

Number of entries in the directory = 1

Database 1 entry:

Database alias = TC
Database name = TIOINTER
Node name = TC
Database release level = a.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
Reply With Quote
  #9 (permalink)  
Old 10-05-07, 05:31
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Do you want to drop the database named TIOINTER that resides at node TC (which is a different DB2 instance), or do you just want to remove the local alias? In the first case, attach to instance TC with the proper credentials and drop the database there. In both cases, you should run the following DB2 command:
Code:
$ db2 uncatalog db tc
That will remove the entry from the local database directory and make the database unaccessible from the local instance.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #10 (permalink)  
Old 10-05-07, 05:54
chakribobby chakribobby is offline
Registered User
 
Join Date: Oct 2007
Posts: 15
thank you
problem is solved when
i run this command
db2 uncatalog db TC
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