如何启用对 %CACHELIB 数据库的写访问?

How to enable write access to %CACHELIB database?

某些 Caché 应用程序,如 Caché Web Terminal 需要在安装期间启用对 %CACHELIB 的写入权限。安全吗?如何启用此功能?

当您知道自己在做什么时,启用对 %CACHELIB 数据库的写访问权限通常是安全的,但如果不是,强烈不推荐。 WebTerminal 需要系统级访问才能正常工作,因此启用写入访问应该是一个临时操作。

要启用 %CACHELIB 写入权限,请转到 Management Portal,然后选择 System Administration => Configuration => System Configuration => Local Databases。然后选择 CACHELIB 数据库并取消选中 Always Mount Read-Only 选项。最后,按顶部的 Save 按钮。

安装 Web 终端后别忘了回来查看!

或者,您可以在终端中执行此操作:

%SYS>d ^DATABASE


 1) Create a database
 2) Edit a database
 3) List databases
 4) Delete a database
 5) Mount a database
 6) Dismount a database
 7) Compact globals in a database
 8) Show free space for a database
 9) Show details for a database
10) Recreate a database
11) Manage database encryption
12) Return unused space for a database
13) Compact freespace in a database
14) Defragment globals in a database

Option? 2
Database directory? /2015/mgr/cachelib/

 1)* Directory:                      /2015/mgr/cachelib/
 2)* Block size (bytes):             8192
 3)* Mirror DB Name:
 4)* Mirror Set Name:
 5)  Current Size (MB):              450
 6)  Max size (MB), 0=Unlimited:     0
 7)  Expansion size (MB), 0=Default: 0
 8)  Resource name:                  %DB_CACHELIB
 9)  Preserve global attributes:     No
10)  Global journal state:           No
11)  New global collation:           Cache standard
12)  New global growth block:        50
13)  New global pointer block:       16
14)  Read Only:                      Yes
15)* Encrypted:                      No

Field number to change? 14
Read Only? Yes => no
Field number to change?
Confirm update of database /2015/mgr/cachelib/? Yes => yes