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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-11, 05:35
db2cap db2cap is offline
Registered User
 
Join Date: May 2010
Posts: 87
Unable to drop database

Hi,
Please find the attached screen shot. I am just not understanding where the database is being used and if it is really in use why is it not displaying in the list of active database/applications? The database is also not explicitly activated.
Attached Files
File Type: doc Db_DropError.doc (26.5 KB, 46 views)
Reply With Quote
  #2 (permalink)  
Old 02-10-11, 08:21
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Try "db2 terminate" and then drop.
Reply With Quote
  #3 (permalink)  
Old 02-10-11, 08:30
db2cap db2cap is offline
Registered User
 
Join Date: May 2010
Posts: 87
Thanks for your reply but I have already taken this step. It is really weird.
Reply With Quote
  #4 (permalink)  
Old 02-10-11, 08:34
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Check that it's not in write suspend. If not, I'd suggest to stop the instance (if possible) and clean-up any remaining processes / IPC resources owned by this instance (kill / ipcrm commands)
Reply With Quote
  #5 (permalink)  
Old 02-10-11, 08:49
db2cap db2cap is offline
Registered User
 
Join Date: May 2010
Posts: 87
Hi,
It is not in write suspend mode also and is not possible to stop the instance as there are many other databases running on the same
$ db2 connect to RELDB6R2
Database Connection Information
Database server = DB2/AIX64 9.1.7
SQL authorization ID = xyz
Local database alias = RELDB6R2

$ db2 set write resume for database
SQL1551N The SET WRITE RESUME command failed because the database is not currently in WRITE SUSPEND state.
Reply With Quote
  #6 (permalink)  
Old 02-10-11, 08:58
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Also, check that it's not in quiesce state (you can use db snapshot to check the status). And check if there are any errors logged in the db2diag.log.
Reply With Quote
  #7 (permalink)  
Old 02-10-11, 09:15
db2cap db2cap is offline
Registered User
 
Join Date: May 2010
Posts: 87
Hey thanks a lot. This time it worked
The error code SQL1035 does not talk about this. The script we execute to take offline backup makes sure that database is unquiesced before terminating. I just have no idea how it went into quiesced state

Anyways, thank you so much
Reply With Quote
  #8 (permalink)  
Old 03-14-11, 08:19
visupvg visupvg is offline
Registered User
 
Join Date: Mar 2011
Posts: 9
Mr

Try... db2stop force command after use delete database command..
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