关于增加空间或清除日志,急!!!
我是用onstat -d发现addresschk/dbs offset size free bpages flags pathname
2b058688 5 4 0 595000 94947 PO- /dev/rlogdbs
这个空间快没有了,我怎么增加空间呀,或者怎么清除日志,能不能详细一些!
[ 本帖最后由 babyfox_1977 于 2007-12-14 16:12 编辑 ] onspaces -a <dbspacesName> -p <chunk 文件或文件链接全路径> -o <偏移量,一般是0> -s <增加的chunk大小> onspaces -a <dbspacesName> -p <chunk 文件或文件链接全路径> -o <偏移量,一般是0> -s <增加的chunk大小>
中<chunk 文件或文件链接全路径>怎么设置呀,随便写一个吗?还是需要事先生成一个这样的文件? 这个文件或文件链接是必须存在的,且informix组具有读写权限。
回复 #1 babyfox_1977 的帖子
逻辑日志所在空间一般都用得满满的,具体用onstat -l看看有没有必要加逻辑日志,数据库是不会主动给你加的,所以不用太担心,除非这个DBS上你放了其他东西。 请问怎么看有没有必要加?Informix Dynamic Server Version 7.31.UD4 -- On-Line -- Up 49 days 20:00:39 -
- 458752 Kbytes
Physical Logging
Buffer bufusedbufsizenumpages numwrits pages/io
P-20 1024 31322933526 888.34%
phybegin physizephypos phyused%used
10003f 50000 9954 0 0.00
Logical Logging
Buffer bufusedbufsizenumrecsnumpages numwrits recs/pages pages/io
L-10 1024 78468154 421725732703 18.6 129.0
Subsystem numrecsLog Space used
OLDRSAM 78468154 4176849660
[ 本帖最后由 babyfox_1977 于 2007-12-28 11:10 编辑 ] 在online.log里面看看你的逻辑日志多长时间用完一个files,如果时间特别短,而你的files又特别少的时候,容易造成长事务的时候,可以增加logfiles数量或增大每个files的大小。
页:
[1]