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 > quiesce database problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-31-07, 10:41
bic bic is offline
Registered User
 
Join Date: Feb 2007
Posts: 42
Red face quiesce database problem

have a script to do this:

CONNECT TO mydb;
QUIESCE DATABASE IMMEDIATE FORCE CONNECTIONS;
CONNECT RESET;
backup database mydb to e:\sqlbackups\mydb compress;
CONNECT TO mydb;
UNQUIESCE DATABASE;

During the backup, the server ran out of disk space. We freed up
space. Because it's windows and runs as a task, I couldn't see which process it was...so we rebooted the box...

When backup ran the next night here's the output:

QUIESCE DATABASE IMMEDIATE FORCE CONNECTIONS
SQL1371N Instance or database "mydb" is already quiesced. Quiesce
type:
"Database".

CONNECT RESET
DB20000I The SQL command completed successfully.

backup database mydb to e:\sqlbackups\mydb compress
SQL1035N The database is currently in use. SQLSTATE=57019

CONNECT TO mydb

Database Connection Information

Database server = DB2/NT 8.2.5
SQL authorization ID =
Local database alias = mydb

UNQUIESCE DATABASE
DB20000I The UNQUIESCE DATABASE command completed successfully.

And yet I was able to quiesce and unquiesce ok this morning. If I run the backup again, will the quiesce work? (This db is 120 gigs, so it takes about 5 hours to run and runs at night).
Reply With Quote
  #2 (permalink)  
Old 07-31-07, 11:16
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
most probably it should work...
the DB was left in quiesce state which was later unquiesced.....
so now it seems its back to normal
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #3 (permalink)  
Old 07-31-07, 11:47
bic bic is offline
Registered User
 
Join Date: Feb 2007
Posts: 42
Quote:
Originally Posted by rahul_s80
most probably it should work...
the DB was left in quiesce state which was later unquiesced.....
so now it seems its back to normal
ok thanks, if I still have problems, do you think a db2 stop force would be helpful?
Reply With Quote
  #4 (permalink)  
Old 08-01-07, 03:58
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
no: db2stop will not correct the problem
use : connect - UNQUIESCE DATABASE
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
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