(其中红色字体为手工输入,蓝色字体为主要变化关注点。)
1、基本用法:
-bash-3.1$ onparams --
Usage: onparams { -a -d <DBspace> [-s <size>] [-i] } |
{ -b -g <pagesize> [-n <number of buffers>]
[-r <number of LRUs>] [-x <maxdirty>] [-m <mindirty>] } |
{ -d -l <log file number> [-y] } |
{ -p -s <size> [-d <DBspace>] [-y] }
-a - Add a logical log file
-b - Add a buffer pool
-i - Insert after current log
-d - Drop a logical log file
-p - Change physical log size and location
-y - Automatically responds "yes" to all prompts
若-s没有指明大小,则取onconfig里配置文件中指定大小。
2、实例:
-bash-3.1$ onparams -a -d rootdbs -s 10000
Log operation started. To monitor progress, use the onstat -l command.
Logical log successfully added.
-bash-3.1$ onstat -l