How to set DB2 databases to read-only mode
db2 set write suspend for database
Perform the command below to set db2 databases to read-only mode
db2 connect to <dbname>
db2 set write suspend for database
Perform the command below to back DB2 database to write and read mode.
db2 connect to <dbname>
db2 set write resume for database