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 > How to put db in read only state

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-11-05, 03:01
akaraivanov akaraivanov is offline
Registered User
 
Join Date: Nov 2003
Posts: 42
How to put db in read only state

This is probably a FAQ question but I cannot find the answer.

To minimize the effect of downtime during maintanance window I would like to put the DB into read-only state. What is the way to do that?

Thank you in advance.

Alexander.
Reply With Quote
  #2 (permalink)  
Old 10-11-05, 10:06
chavadb2 chavadb2 is offline
Registered User
 
Join Date: Aug 2004
Posts: 138
SET--WRITE--+-SUSPEND-+--FOR--+-DATABASE-+------------------><
'-RESUME--' '-DB-------'


Command Parameters
SUSPEND
Suspending I/O writes will put all table spaces into a new state SUSPEND_WRITE state. Writes to the logs are also suspended by this command. All database operations, apart from online backup and restore, should function normally while database writes are suspended. However, some operations can wait while attempting to flush dirty pages from the buffer pool or log buffers to the logs. These operations will resume normally once the database writes are resumed.
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