使用 onstat -g cfg 命令打印配置参数当前值列表。可以使用更多命令选项以打印更多有关配置参数的信息。
onstat -g cfg 命令具有以下格式:
命令 | 描述 |
---|---|
onstat -g cfg | 显示配置参数当前值列表 |
onstat -g cfg config_parameter_name | 只显示指定的配置参数的当前值 |
onstat -g cfg full | 显示每个配置参数的所有信息,包括当前值、缺省值、 onconfig 文件值和参数描述 |
onstat -g cfg full config_parameter_name | 显示指定参数的所有信息 |
onstat -g cfg diff | 显示配置参数当前值不同于其在 onconfig 文件中的永久值的信息 |
onstat -g cfg tunable | 显示所有可调整参数的缺省值、源值和当前值。星号(*)表示您可以动态调整该配置参数 |
onstat -g cfg msg | 显示任意消息,例如:与配置参数相关的警告或调整 |
以下是 onstat -g cfg 命令显示数据库启动后 DEADLOCK_TIMEOUT 配置参数值被动态更改为 90 的输出样本:
id name type units rsvd tunable 26 DEADLOCK_TIMEOUT INT4 Seconds * min/max : 0,2147483647 default : 60 onconfig: current : 90 Description: Use the DEADLOCK_TIMEOUT configuration parameter to specify the maximum number of seconds that a database server thread can wait to acquire a lock.
ROOTNAME rootdbs
以下是 onstat -g cfg diff 命令显示 TBLTBLFIRST 和 TBLTBLNEXT 配置参数的缺省值、当前值和其在 onconfig 文件中的值的输出样本:
id name type units rsvd tunable 53 TBLTBLFIRST INT4 KB * default : 500 onconfig: 0 current : 250 id name type units rsvd tunable 54 TBLTBLNEXT INT4 KB * default : 100 onconfig: 0 current : 150
以下是显示有关 MSGPATH 配置参数的信息的输出样本。在这里,没有建立该配置参数的缺省值、当前值及其 onconfig 文件:
id name type units rsvd tunable 10 MSGPATH CHAR * * default : onconfig: /work2/JC/online.log current : /work2/JC/online.log
以下是 onstat -g cfg msg 命令显示标识已更改值的配置参数的消息的输出样本:
Configuration Parameters With Messages name message TBLTBLFIRST Parameter's user-configured value was adjusted. TBLTBLNEXT Parameter's user-configured value was adjusted. BUFFERPOOL Parameter's user-configured value was adjusted. STACKSIZE Parameter's user-configured value was adjusted. VPCLASS Parameter's user-configured value was adjusted.
如果没有星号,那么该配置参数及其值不存储在配置驻留页中
如果没有星号,那么该配置参数不能被动态地修改
如果动态修改了该值,其当前值是不同的。例如:使用 onmode -wm 命令