Written by

Question sansa stark · Nov 16, 2016

DataBase Configuration

Hi,

How to change READ ONLY Database to READ/WRITE Could not find an option to edit it.

PS: Cache 2016.1.0.656

Thanks, Sansa.S

Comments

Dmitry Maslennikov · Nov 16, 2016

System Administration -> Configuration -> System Configuration -> Local Databases

select database, uncheck mark, and Save

0
Hans-Peter Iten · Nov 17, 2016

You can do this using Caché Object Script:

S DBDIR="directory_of_database"
S DBOBJ=##class(SYS.Database).%OpenId(DBDIR)
S DBOBJ.ReadOnly=0  //switch to read/write mode
S STA=DBOBJ.%Save()

S DBOBJ.ReadOnly=1  //switch to read only mode
S STA=DBOBJ.%Save()
0
Dmitry Maslennikov  Nov 17, 2016 to Hans-Peter Iten

This code should be executed in %SYS namespace

0