您当前的位置: 首页 >  服务器

ITKEY_

暂无认证

  • 0浏览

    0关注

    732博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Linux服务器磁盘扩展和Oracle表空间文件迁移操作记录

ITKEY_ 发布时间:2020-09-02 10:24:05 ,浏览量:0

一个客户提供的oracle服务器,磁盘空间太小了,用了不到2年磁盘满了,删除没用的日志,解决空间占用的问题。

 

服务磁盘空间扩展之前:

其中/dev/sda3是学校近期新增的分区 94G,我把它临时挂载到/apex中了.

 

查询系统中大文件

find / -type f -size +800M

 

清除监听日志:

 

方法一:不需要停掉监听

/home/oracle/app/oracle/diag/tnslsnr/localhost/listener/trace/

# ls -l

total 3744573

-rw-r--r--   1 oracle   dba      123287468 Apr 26 16:37 listener.log

-rw-r--r--   1 oracle   dba        6463 Apr 23 09:02 sqlnet.log

# echo '' >listener.log

 

表空间目录占用:

ls -lh

 

删除监听日志:

日志:

/home/oracle/app/oracle/diag/tnslsnr/localhost/listener/alert

删除此目录的日志文件完美解决空间问题了

 

查磁盘空间占用:

du -h --max-depth=1

 

 

关注
打赏
1665243900
查看更多评论
立即登录/注册

微信扫码登录

0.0419s