准备过节了,对系统做了一次全面的检查,也发现了不少的问题,对某一台RAC检查时发现如下错误:
2015-08-23 04:34:18.962:
[client(18715)]CRS-0009:log file "/oracle/app/11.2.0/grid/log/d4jt6csvpra04/client/olsnodes.log" reopened
2015-08-23 04:34:18.962:
[client(18715)]CRS-0019:file rotation terminated. log file: "/oracle/app/11.2.0/grid/log/d4jt6csvpra04/client/olsnodes.log"
2015-08-23 04:39:19.095:
[client(19507)]CRS-0014:An error occurred while attempting to delete file "/oracle/app/11.2.0/grid/log/d4jt6csvpra04/client/olsnodes.l03" during log file rotation. Additional diagnostics: LFI-00142: Unable to delete an existing file [olsnodes][l03] not owned by Oracle.

从日志来看,应该是日志的轮循出现了错误,根据提示无法删除属于oracle的日志文件,检查日志发现:部分日志非常的大:
total 4.5G
-rw-r--r-- 1 grid oinstall    0 Dec  7  2013 orarootagent_rootOUT.log
-rw-r--r-- 1 grid oinstall  11M Dec 10  2013 orarootagent_root.l10
-rw-r--r-- 1 grid oinstall    5 Jan 16  2015 orarootagent_root.pid
-rw-r--r-- 1 grid oinstall 4.5G Sep 29 11:58 orarootagent_root.log
[grid@d4jt6csvpra04 orarootagent_root]$

发现类似于这样的大日志情况还是蛮多的,在MOS上看了下,与bug有关,检查自己的环境是11.2.0.4.0并且没有打上任何补丁,MOS建议如下:

It is caused by unpublished Bug 18700935 - CLOUD:ACLDX0085 OCSSD LOG IS NOT ROTATED

At some point in time, the Clusterware alert log reports an attempted logfile rotation failure.

As a result, the last logfile 'ocssd.110' is never deleted. This may be due to the logfile being open during logfile delete or a permissions issue on the file itself.

The ocssd.bin thread that performs log file rotation 'clsd_logThread' encounters the delete failure and this causes the logfile never to be deleted/rotated, resulting in ocssd.log continually growing in size.

Extract of the error in $GRID_HOME/log/<hostname>/alert<hostname>.log

[cssd(29355)]CRS-1713:CSSD daemon is started in clustered mode
2014-06-05 15:37:44.512:
[cssd(29355)]CRS-0009:log file "/u01/app/11.2.0.3/grid/log/ed28db01/cssd/ocssd.log" reopened
2014-06-05 15:37:44.512:
[cssd(29355)]CRS-0019:file rotation terminated. log file: "/u01/app/11.2.0.3/grid/log/ed28db01/cssd/ocssd.log"
[cssd(29355)]CRS-0014:An error occurred while attempting to delete file "/u01/app/11.2.0.3/grid/log/ed28db01/cssd/ocssd.l10" during log file rotation. Additional diagnostics: LFI-00142: Unable to delete an existing file [ocssd][l10] not owned by Oracle.

SOLUTION

The CSSD thread that encountered the LFI-00142 error needs to be restarted to ensure log rotation works again.

Manually deleting the logfile will not resolve the log rotation problem.

1).  Shutdown CRS on the node reporting the problem.

# crsctl stop crs

2).  Once CRS is down,  proceed to manually delete the 'ocssd.l10' file, or copy the logfile to another location if you need to keep a backup.

# rm  $GRID_HOME/log/<hostname>/cssd/ocssd.l10

3).  Startup Clusterware again

# crsctl start crs

If you are NOT able to schedule downtime and file size growth in the GRID Home is causing a space issue then copy the logs to another location and do the following

% echo 0 > ocssd.l10

Please note this does not resolve the log rotation problem but only allows you to free up some space.

4). Bug 18700935 has been fixed in 11.2.0.4.5 PSU for Unix/Linux platform and 11.2.0.4.12 Bundle for Windows platform. Please apply the patch if required

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28612416/viewspace-1811489/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/28612416/viewspace-1811489/

关于Oracle RAC 集群日志无法轮循的问题处理相关推荐

  1. 在 Oracle Enterprise Linux 和 iSCSI 上构建您自己的 Oracle RAC 集群(续)

    DBA:Linux    下载  Oracle 数据库 11g    标签 linux, rac, clustering, 全部 在 Oracle Enterprise Linux 和 iSCSI 上 ...

  2. 12c集群日志位置_Oracle 19C RAC 集群日志位置变化

    作者 | JiekeXu 来源 | JiekeXu之路(ID: JiekeXu_IT) 转载请联系授权 | (微信ID:xxq1426321293) 大家好,我是 JiekeXu,很高兴又和大家见面了 ...

  3. 浅谈Oracle RAC --集群管理软件GI

    浅谈Oracle RAC --集群管理软件GI基本架构 今天周五,想想可以过周末,心情大好.一周中最喜欢过的就是周五晚上,最不喜欢过的是周日晚上和周一,看来我不是个热爱劳动的人啊.趁着现在心情愉悦,赶 ...

  4. Oracle RAC集群资源的两种配置方式,Admin Managed 和 Policy Manager,以及实验

    对于Oracle RAC集群数据库,有两种资源管理方式:Administrator Managed(管理员管理的),Policy Managed(策略管理的) 要理解这两个概念,首先应该了解Serve ...

  5. 【DB宝44】Oracle rac集群中的IP类型简介

    文章目录 Oracle rac集群中的IP类型简介 (一)Public IP (二)Private IP (三)Virtual IP(VIP) (四)SCAN IP (五)GNS VIP (六)HAI ...

  6. Oracle Dataguard(主库为 Oracle rac 集群)配置教程(01)—— dataguard 服务器安装 Oracle 软件

    Oracle Dataguard(主库为 Oracle rac 集群)配置教程(01)-- dataguard 服务器安装 Oracle 软件 / 本专栏详细讲解 Oracle Dataguard(O ...

  7. linux下安装oracle集群,【Oracle 集群】Linux下Oracle RAC集群搭建之Oracle DataBase安装(八)...

    目录 数据库安装 继oracle集群安装之后,接下来也是最重要的数据库安装,整个数据库安装难度不大,用户以oracle用户身份登录RAC1主节点,对解压后的文件安装.主节点下安装后,其他所有结点自动安 ...

  8. oracle rac数据库特点,Oracle RAC集群结构的特点和缺点

    Oracle RAC,全称是Oracle Real Application Cluster,顾名思义即为真正的应用集群,整个集群系统由Oracle Clusterware (集群就绪软件)和 Real ...

  9. 资源放送丨《Oracle RAC 集群安装部署》PPT视频

    点击上方"蓝字" 关注我们,享更多干货! 前段时间,墨天轮邀请数据库资深专家 邦德 老师分享了<Oracle RAC 集群安装部署>,在这里我们将课件PPT和实况录像分 ...

最新文章

  1. Redis命令参考简体中文版 2.4.1
  2. 小程序的项目结构设计
  3. 晶科电力打造江苏省南通市大分布式光伏项目
  4. jdbc oracle 删除数据库连接,如何使用JDBC API从Oracle数据库中删除表?
  5. Windows下配置多个Tomcat9
  6. 关于phpcms v9中程序传到linux出现模板异常的问题
  7. c++ 可变参数_深入剖析ProE可变扫描特征原理、操作和应用方法
  8. 第三节基础篇—SQL的约束
  9. mvc 根据模板导出excel,直接导出文件流
  10. s5p4418安卓系统适配fpc8563芯片遇到的问题及解决
  11. SSM面试题,2021最新Java面试题及答案
  12. xposed框架_免root使用xposed框架的另一种方法!
  13. Python :图像的手绘效果
  14. Mac环境安装Win虚拟机
  15. iOS 11 正式发布!最全功能介绍 + 视频 ...
  16. PE启动如何解除BitLocker硬盘锁
  17. Android调用uc播放器,在UC android浏览器中使用摄像头设备(WebRTC API)
  18. win10如何关闭计算机设备和驱动器非硬盘图标
  19. 服务器接收 App Store 苹果商店内购项目IAP的退款通知
  20. Java MyShopping管理系统 > 购物结算+管理系统

热门文章

  1. JSP网页字符集编码
  2. HTML常用标签合集
  3. 【广告算法】基础知识补充
  4. 怎么PDF转Excel?推荐这几款软件给你
  5. uniapp使用uView框架,后端传16位数以上时出现精度缺失的情况
  6. 江西省计算机专业好的二本大学排名,江西最牛二本-江西省十所名牌大学(附排名及录取分数线)...
  7. Win10应用程序无法正常启动0xc0000018错误解决办法
  8. 【bnuz_xmsz】sz04MySQL 2021-10-19
  9. 物联网数据采集如何实现?
  10. cocos2dx-lua升级spine