Parameter | Specify . . . | Possible Values | Default |
---|---|---|---|
READONLY | whether to permit database updates during this session. | YES | NO | NO |
READONLY determines whether the Adabas session is a read-only or a read/write session.
Value | Meaning |
---|---|
YES | All database update commands issued by this nucleus are rejected. |
NO | The default setting. The session allows both reading and updating of the database. |
When executing the ADAREP (database report) utility, you can specify READONLY=YES to issue an access OPEN instead of an update OPEN.
When using READONLY=YES, ensure that the Work dataset does not contain a pending autorestart; otherwise, the nucleus cannot start.
Each nucleus being run must have its own Work dataset.
When a nucleus is started with READONLY=YES, it is not possible to switch the nucleus to READONLY=NO mode later in the session. When a nucleus is started with READONLY=NO, it can be switched back and forth between the READONLY=YES and READONLY=NO modes.
A database save performed while the nucleus is in read-only mode is equivalent to an offline save (which is taken while the nucleus is down). You can avoid shutting down the nucleus for an offline save by switching the nucleus into read-only mode before the save and back to update mode after the save.
Start this Adabas session as read-only.
ADARUN PROG=ADANUC,READONLY=YES