listener.log文件在线删除后空间未释放,怎么办?

[复制链接]
查看11 | 回复8 | 2006-3-20 09:52:29 | 显示全部楼层 |阅读模式
我查了下资料,正确的删除方法是先把监听关掉或把日志关掉。而我直接rm了,监听又不能随便停掉,哪位有好法请赐教?
(注:
$lsnrctl set log_status off
保存一下,放心清空listener.log
$cp $ORACLE_HOME/network/log/listener.log lsnr_backup.log
$cp /dev/null $ORACLE_HOME/network/log/listener.log
$lsnrctl set log_status on)
回复

使用道具 举报

千问 | 2006-3-20 09:52:29 | 显示全部楼层
echo >listener.log
回复

使用道具 举报

千问 | 2006-3-20 09:52:29 | 显示全部楼层
>listener.log
如果出现 cannot overwrite existing file提示,加入
>| listener.log
回复

使用道具 举报

千问 | 2006-3-20 09:52:29 | 显示全部楼层
谢谢!
但使用上面的方法并不起作用。
回复

使用道具 举报

千问 | 2006-3-20 09:52:29 | 显示全部楼层
是什么操作系統﹐如果是linux的話﹐可能是文件系統損壞或者有問題。一般修復一下就可以了.
回复

使用道具 举报

千问 | 2006-3-20 09:52:29 | 显示全部楼层
不会吧!
我的操作系统时sco unixware。估计重启监听能正常,但为生产环境。
回复

使用道具 举报

千问 | 2006-3-20 09:52:29 | 显示全部楼层
Stop the listener,then restart it.The file handle was not released properly when you did a delete.
In Unix,you shouldn't delete it.If you want to blank it out,do
cat /dev/null >listener.log
回复

使用道具 举报

千问 | 2006-3-20 09:52:29 | 显示全部楼层
最初由 jst2001 发布
[B]不会吧!
我的操作系统时sco unixware。估计重启监听能正常,但为生产环境。 [/B]

我估计你可能移动了文件,文件的file id已经变化,最快的方法就是重启监听。
回复

使用道具 举报

千问 | 2006-3-20 09:52:29 | 显示全部楼层
夜里重起了监听,恢复正常。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行