IMS

Take an IMS database offline and back online

Free a database for a batch job or utility, make it read-only, and bring it back.

z/OS
Fill these in once
  1. Take it offlineNeeds operator authority
    Inside IMS
    /DBR DB MYDB

    Online transactions can't use it until it's started again. With data sharing, add GLOBAL. From SDSF or the console? Find IMS's reply number with /D R,R, then type /R nn, followed by this command (see Send an IMS command from SDSF or the console).

  2. Or make it read-only insteadNeeds operator authority
    Inside IMS
    /DBD DB MYDB
  3. Bring it back onlineNeeds operator authority
    Inside IMS
    /STA DB MYDB

Check it worked

  1. Check its status
    Inside IMS
    /DIS DB MYDB