加入收藏 | 设为首页 | 会员中心 | 我要投稿 济南站长网 (https://www.0531zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Unix > 正文

AIX生产系统listener.log过大的在线处理方法

发布时间:2016-08-07 22:40:20 所属栏目:Unix 来源:站长网
导读:--发现/home/oracle/database空间利用率过高 $ df -g 文件系统 GB 块 可用 %Used Iused %Iused 安装于 /dev/hd4 1.00 0.15 85% 7459 18% / /dev/hd2 6.00 3.35

--发现/home/oracle/database空间利用率过高

$ df -g

文件系统           GB 块      可用 %Used    Iused %Iused     安装于

/dev/hd4            1.00      0.15   85%     7459    18% /

/dev/hd2            6.00      3.35   45%    52805     7% /usr

/dev/hd9var         1.00      0.86   15%     1170     1% /var

/dev/hd3            8.00      3.27   60%    64796     8% /tmp

/dev/hd1           18.00      9.29   49%    86096     4% /home

/dev/hd10opt        4.00      3.85    4%     2934     1% /opt

/dev/oraclelv      15.00      6.17   59%    23279     2% /home/oracle/database

/dev/crslv         15.00      5.22   66%   150520    11% /home/oracle/crs

--根据SORT排序查看哪个目录空间最大

$ du -s /home/oracle/database/* | sort -rn | head

7691672 /home/oracle/database/network

5684552 /home/oracle/database/oc4j

3319464 /home/oracle/database/bin

2278592 /home/oracle/database/dbs

1171960 /home/oracle/database/lib

880256  /home/oracle/database/lib32

789696  /home/oracle/database/p570a_zjport1

669512  /home/oracle/database/jdk

629312  /home/oracle/database/jre

250096  /home/oracle/database/sysman

--初步判断是/home/oracle/database/network目录的侦听日志过大

p550a:/home/oracle/database/network/log#ls -lt

总计 506536

-rw-r--r--   1 oracle   dba       168782267  2月02 10时32 listener_p550a.log

-rw-r--r--   1 oracle   dba        17152616  2月01 22时28 sqlnet.log

-rw-r--r--   1 oracle   dba        73300223 10月08 08时48 listener.log

--关闭侦听日志记录

$  lsnrctl set log_status off

LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Production on 02-FEB-2012 10:35:46

Copyright (c) 1991, 2006, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

LISTENER parameter "log_status" set to OFF

The command completed successfully

(编辑:济南站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读