<?xml version="1.0" encoding="gb2312"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="zh-cn">
    
    <title>yangtingkun</title> 
<link rel="alternate" type="text/html" href="http://yangtingkun.itpub.net" /> 
 
<modified>Thu,17 05 2012 03:18:54</modified> 
<tagline></tagline> 
<generator url="http://www.plogworld.net/" version="1.0.1">pLog</generator> 
 
<copyright>Copyright (c) yangtingkun</copyright> 
    
 <entry> 
 <id>tag:post:blog.itpub.net,Fri,11 05 2012 23:59:01</id>
 <title>在线索引重建被取消导致大量ORA-600(kghstack_underflow_internal_3)错误</title> 
 <link rel="alternate" type="text/html" href="http://yangtingkun.itpub.net/post/468/527442" /> 
  
 <modified>Fri,11 05 2012 23:59:01</modified> 
 <issued>Fri,11 05 2012 23:59:01</issued> 
 <created>Fri,11 05 2012 23:59:01</created> 
 <summary type="text/plain"> 

客户在比较繁忙的时刻执行了索引的REBUILD操作，导致大量会话被锁，最终对ONLINE REBUILD操作执行了取消操作，引发了一系列更严重的ORA-600错误。

 

 

登录数据库后，发现两个节点上ORACLE_BASE所在目录都已经100%占用。数据库无法正常通过/ AS SYSDBA方式登录。查询告警日志发现大量的ORA-600和ORA-7445错误：Tue May 08 21:20:26 EAT 2012Errors in file /oracle/app/admin/orcl/udump/orcl2_ora_1555.trc:ORA-07445: exception encountered: core dump [0000000000000000] [SIGSEGV] [Invalid permissions for mapped obj...</summary> 
 <author> 
  
 <name>yangtingkun</name> 
 <url>http://yangtingkun.itpub.net</url> 
 <email>yangtingkun@itpub.net</email> 
</author> 
<dc:subject>
ORACLE
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://yangtingkun.itpub.net"> 
 

客户在比较繁忙的时刻执行了索引的REBUILD操作，导致大量会话被锁，最终对ONLINE REBUILD操作执行了取消操作，引发了一系列更严重的ORA-600错误。

 

 

登录数据库后，发现两个节点上ORACLE_BASE所在目录都已经100%占用。数据库无法正常通过/ AS SYSDBA方式登录。查询告警日志发现大量的ORA-600和ORA-7445错误：Tue May 08 21:20:26 EAT 2012Errors in file /oracle/app/admin/orcl/udump/orcl2_ora_1555.trc:ORA-07445: exception encountered: core dump [0000000000000000] [SIGSEGV] [Invalid permissions for mapped obj...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Thu,10 05 2012 23:56:19</id>
 <title>RAC环境启动单实例报错ORA-1105</title> 
 <link rel="alternate" type="text/html" href="http://yangtingkun.itpub.net/post/468/527429" /> 
  
 <modified>Thu,10 05 2012 23:56:19</modified> 
 <issued>Thu,10 05 2012 23:56:19</issued> 
 <created>Thu,10 05 2012 23:56:19</created> 
 <summary type="text/plain"> 

客户的4节点RAC环境，其中一个节点实例出现故障，发现无法正常启动。

 

 

检查CLUSTER和告警日志信息，发现节点1心跳超时，被踢出集群。服务器重新启动后，数据库实例没有自动启动。告警日志信息为：Mon Apr 16 03:42:39 2012Thread 1 advanced to log sequence 22348 (LGWR switch)Current log# 16 seq# 22348 mem# 0: +DATA/orcl/onlinelog/group_16.291.766326571Current log# 16 seq# 22348 mem# 1: +DATA/orcl/onlinelog/group_16.293.766330969Mon Apr 16 15:02:58 2012Starting ORACLE instance (normal)LICENSE_MAX_...</summary> 
 <author> 
  
 <name>yangtingkun</name> 
 <url>http://yangtingkun.itpub.net</url> 
 <email>yangtingkun@itpub.net</email> 
</author> 
<dc:subject>
ORACLE
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://yangtingkun.itpub.net"> 
 

客户的4节点RAC环境，其中一个节点实例出现故障，发现无法正常启动。

 

 

检查CLUSTER和告警日志信息，发现节点1心跳超时，被踢出集群。服务器重新启动后，数据库实例没有自动启动。告警日志信息为：Mon Apr 16 03:42:39 2012Thread 1 advanced to log sequence 22348 (LGWR switch)Current log# 16 seq# 22348 mem# 0: +DATA/orcl/onlinelog/group_16.291.766326571Current log# 16 seq# 22348 mem# 1: +DATA/orcl/onlinelog/group_16.293.766330969Mon Apr 16 15:02:58 2012Starting ORACLE instance (normal)LICENSE_MAX_...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Wed,09 05 2012 23:47:51</id>
 <title>10G开始Oracle区分物化视图和表</title> 
 <link rel="alternate" type="text/html" href="http://yangtingkun.itpub.net/post/468/527410" /> 
  
 <modified>Wed,09 05 2012 23:47:51</modified> 
 <issued>Wed,09 05 2012 23:47:51</issued> 
 <created>Wed,09 05 2012 23:47:51</created> 
 <summary type="text/plain"> 

在9i以前，很多功能都是不区分表和物化视图的区别的，到了10g以后。很多功能会将表和物化视图区分对待。

 

 

原本通用的COMMENT ON TABLE语句，对物化视图不再有效，必须要使用COMMENT ON MATERIALIZED VIEW语句代替。SQL&gt; SELECT * FROM V$VERSION;BANNER----------------------------------------------------------------Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64biPL/SQL Release 10.2.0.4.0 - ProductionCORE 10.2.0.4.0 ProductionTNS for Linux: Version 10.2.0.4.0 - ProductionNLSRTL Versi...</summary> 
 <author> 
  
 <name>yangtingkun</name> 
 <url>http://yangtingkun.itpub.net</url> 
 <email>yangtingkun@itpub.net</email> 
</author> 
<dc:subject>
ORACLE
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://yangtingkun.itpub.net"> 
 

在9i以前，很多功能都是不区分表和物化视图的区别的，到了10g以后。很多功能会将表和物化视图区分对待。

 

 

原本通用的COMMENT ON TABLE语句，对物化视图不再有效，必须要使用COMMENT ON MATERIALIZED VIEW语句代替。SQL&gt; SELECT * FROM V$VERSION;BANNER----------------------------------------------------------------Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64biPL/SQL Release 10.2.0.4.0 - ProductionCORE 10.2.0.4.0 ProductionTNS for Linux: Version 10.2.0.4.0 - ProductionNLSRTL Versi...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Tue,08 05 2012 23:27:17</id>
 <title>ORA-600(qertbFetchByRowID)错误</title> 
 <link rel="alternate" type="text/html" href="http://yangtingkun.itpub.net/post/468/527401" /> 
  
 <modified>Tue,08 05 2012 23:27:17</modified> 
 <issued>Tue,08 05 2012 23:27:17</issued> 
 <created>Tue,08 05 2012 23:27:17</created> 
 <summary type="text/plain"> 

以前也碰到过这个错误，不过由于无法直接连接数据库，没有办法深入分析。这次虽然同样没有办法连接数据库，但是获取了更详细的信息，基本确定导致问题的原因。

 

 

错误信息如下：Wed May 09 10:41:32 2012Errors in file /oracle/admin/orcl/udump/orcl_ora_423466.trc:ORA-00600: internal error code, arguments: [qertbFetchByRowID], [], [], [], [], [], [], []其实从错误信息不难分析，导致问题的原因和索引有关，错误信息明确指出了问题发生在通过ROWID信息读取表时，而通过ROWID读取是索引扫描的标志。一般来说这种...</summary> 
 <author> 
  
 <name>yangtingkun</name> 
 <url>http://yangtingkun.itpub.net</url> 
 <email>yangtingkun@itpub.net</email> 
</author> 
<dc:subject>
Bug
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://yangtingkun.itpub.net"> 
 

以前也碰到过这个错误，不过由于无法直接连接数据库，没有办法深入分析。这次虽然同样没有办法连接数据库，但是获取了更详细的信息，基本确定导致问题的原因。

 

 

错误信息如下：Wed May 09 10:41:32 2012Errors in file /oracle/admin/orcl/udump/orcl_ora_423466.trc:ORA-00600: internal error code, arguments: [qertbFetchByRowID], [], [], [], [], [], [], []其实从错误信息不难分析，导致问题的原因和索引有关，错误信息明确指出了问题发生在通过ROWID信息读取表时，而通过ROWID读取是索引扫描的标志。一般来说这种...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Tue,08 05 2012 23:27:17</id>
 <title>ORA-600(qertbFetchByRowID)错误</title> 
 <link rel="alternate" type="text/html" href="http://yangtingkun.itpub.net/post/468/527401" /> 
  
 <modified>Tue,08 05 2012 23:27:17</modified> 
 <issued>Tue,08 05 2012 23:27:17</issued> 
 <created>Tue,08 05 2012 23:27:17</created> 
 <summary type="text/plain"> 

以前也碰到过这个错误，不过由于无法直接连接数据库，没有办法深入分析。这次虽然同样没有办法连接数据库，但是获取了更详细的信息，基本确定导致问题的原因。

 

 

错误信息如下：Wed May 09 10:41:32 2012Errors in file /oracle/admin/orcl/udump/orcl_ora_423466.trc:ORA-00600: internal error code, arguments: [qertbFetchByRowID], [], [], [], [], [], [], []其实从错误信息不难分析，导致问题的原因和索引有关，错误信息明确指出了问题发生在通过ROWID信息读取表时，而通过ROWID读取是索引扫描的标志。一般来说这种...</summary> 
 <author> 
  
 <name>yangtingkun</name> 
 <url>http://yangtingkun.itpub.net</url> 
 <email>yangtingkun@itpub.net</email> 
</author> 
<dc:subject>
ORACLE
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://yangtingkun.itpub.net"> 
 

以前也碰到过这个错误，不过由于无法直接连接数据库，没有办法深入分析。这次虽然同样没有办法连接数据库，但是获取了更详细的信息，基本确定导致问题的原因。

 

 

错误信息如下：Wed May 09 10:41:32 2012Errors in file /oracle/admin/orcl/udump/orcl_ora_423466.trc:ORA-00600: internal error code, arguments: [qertbFetchByRowID], [], [], [], [], [], [], []其实从错误信息不难分析，导致问题的原因和索引有关，错误信息明确指出了问题发生在通过ROWID信息读取表时，而通过ROWID读取是索引扫描的标志。一般来说这种...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Mon,07 05 2012 23:27:22</id>
 <title>安装ORACLE时在Linux上设置内核参数的含义</title> 
 <link rel="alternate" type="text/html" href="http://yangtingkun.itpub.net/post/468/527385" /> 
  
 <modified>Mon,07 05 2012 23:27:22</modified> 
 <issued>Mon,07 05 2012 23:27:22</issued> 
 <created>Mon,07 05 2012 23:27:22</created> 
 <summary type="text/plain"> 

前两天看到一篇Redhat官方的Oracle安装文档，对于Linux内核参数的修改描述的非常清晰。

 

 

安装Oracle之前，除了检查操作系统的硬件和软件是否满足安装需要之外，一个重点就是修改内核参数，其中最主要的是和内存相关的参数设置。SHMMAX参数：Linux进程可以分配的单独共享内存段的最大值。一般设置为内存总大小的一半。这个值的设置应该大于SGA_MAX_TARGET或MEMORY_MAX_TARGET的值，因此对于安装Oracle数据库的系统，shmmax的值应该比内存的二分之一大一些。# grep MemTotal /proc/meminfo# cat /proc/sys/kernel/shmmax上面...</summary> 
 <author> 
  
 <name>yangtingkun</name> 
 <url>http://yangtingkun.itpub.net</url> 
 <email>yangtingkun@itpub.net</email> 
</author> 
<dc:subject>
ORACLE
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://yangtingkun.itpub.net"> 
 

前两天看到一篇Redhat官方的Oracle安装文档，对于Linux内核参数的修改描述的非常清晰。

 

 

安装Oracle之前，除了检查操作系统的硬件和软件是否满足安装需要之外，一个重点就是修改内核参数，其中最主要的是和内存相关的参数设置。SHMMAX参数：Linux进程可以分配的单独共享内存段的最大值。一般设置为内存总大小的一半。这个值的设置应该大于SGA_MAX_TARGET或MEMORY_MAX_TARGET的值，因此对于安装Oracle数据库的系统，shmmax的值应该比内存的二分之一大一些。# grep MemTotal /proc/meminfo# cat /proc/sys/kernel/shmmax上面...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Sun,06 05 2012 23:22:20</id>
 <title>9i出现内存分配错误</title> 
 <link rel="alternate" type="text/html" href="http://yangtingkun.itpub.net/post/468/527355" /> 
  
 <modified>Sun,06 05 2012 23:22:20</modified> 
 <issued>Sun,06 05 2012 23:22:20</issued> 
 <created>Sun,06 05 2012 23:22:20</created> 
 <summary type="text/plain"> 

在9.2.0.8 RAC环境中，告警日志频繁出现内存分配错误的信息。

 

 

错误信息如下：Wed May 2 10:20:43 2012Trace dumping is performing id=[cdmp_20120502102043]There are 1444 memory allocation errors for object-level statin the last 15 minutes...There are 1605 memory allocation errors for object-level statin the last 15 minutes在另外一个节点上则出现了ORA-4031错误：Sun Apr 29 22:30:52 2012Errors in file /oracle/admin/orcl/bdump/orcl2_j000_1204632.trc:ORA-12012: error on auto execute of job 52...</summary> 
 <author> 
  
 <name>yangtingkun</name> 
 <url>http://yangtingkun.itpub.net</url> 
 <email>yangtingkun@itpub.net</email> 
</author> 
<dc:subject>
Bug
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://yangtingkun.itpub.net"> 
 

在9.2.0.8 RAC环境中，告警日志频繁出现内存分配错误的信息。

 

 

错误信息如下：Wed May 2 10:20:43 2012Trace dumping is performing id=[cdmp_20120502102043]There are 1444 memory allocation errors for object-level statin the last 15 minutes...There are 1605 memory allocation errors for object-level statin the last 15 minutes在另外一个节点上则出现了ORA-4031错误：Sun Apr 29 22:30:52 2012Errors in file /oracle/admin/orcl/bdump/orcl2_j000_1204632.trc:ORA-12012: error on auto execute of job 52...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Sun,06 05 2012 23:22:20</id>
 <title>9i出现内存分配错误</title> 
 <link rel="alternate" type="text/html" href="http://yangtingkun.itpub.net/post/468/527355" /> 
  
 <modified>Sun,06 05 2012 23:22:20</modified> 
 <issued>Sun,06 05 2012 23:22:20</issued> 
 <created>Sun,06 05 2012 23:22:20</created> 
 <summary type="text/plain"> 

在9.2.0.8 RAC环境中，告警日志频繁出现内存分配错误的信息。

 

 

错误信息如下：Wed May 2 10:20:43 2012Trace dumping is performing id=[cdmp_20120502102043]There are 1444 memory allocation errors for object-level statin the last 15 minutes...There are 1605 memory allocation errors for object-level statin the last 15 minutes在另外一个节点上则出现了ORA-4031错误：Sun Apr 29 22:30:52 2012Errors in file /oracle/admin/orcl/bdump/orcl2_j000_1204632.trc:ORA-12012: error on auto execute of job 52...</summary> 
 <author> 
  
 <name>yangtingkun</name> 
 <url>http://yangtingkun.itpub.net</url> 
 <email>yangtingkun@itpub.net</email> 
</author> 
<dc:subject>
ORACLE
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://yangtingkun.itpub.net"> 
 

在9.2.0.8 RAC环境中，告警日志频繁出现内存分配错误的信息。

 

 

错误信息如下：Wed May 2 10:20:43 2012Trace dumping is performing id=[cdmp_20120502102043]There are 1444 memory allocation errors for object-level statin the last 15 minutes...There are 1605 memory allocation errors for object-level statin the last 15 minutes在另外一个节点上则出现了ORA-4031错误：Sun Apr 29 22:30:52 2012Errors in file /oracle/admin/orcl/bdump/orcl2_j000_1204632.trc:ORA-12012: error on auto execute of job 52...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Sat,05 05 2012 23:53:18</id>
 <title>ORA-600(kgavsd_3)错误</title> 
 <link rel="alternate" type="text/html" href="http://yangtingkun.itpub.net/post/468/527337" /> 
  
 <modified>Sat,05 05 2012 23:53:18</modified> 
 <issued>Sat,05 05 2012 23:53:18</issued> 
 <created>Sat,05 05 2012 23:53:18</created> 
 <summary type="text/plain"> 

客户9208环境出现ORA-600[kgavsd_3]错误。

 

 

错误信息为：Thu Dec 15 15:47:57 2011Errors in file /oracle/admin/orcl/udump/orcl2_ora_659472.trc:ORA-00600: internal error code, arguments: [kgavsd_3], [0], [], [], [], [], [], []ORA-00604: error occurred at recursive SQL level 2ORA-03113: end-of-file on communication channelORA-03113: end-of-file on communication channelORA-06512: at &quot;DB_USER.P_JOB&quot;, line 79ORA-06512: at line 3ORA-06508: PL/SQL: could not find program unit being calledORA...</summary> 
 <author> 
  
 <name>yangtingkun</name> 
 <url>http://yangtingkun.itpub.net</url> 
 <email>yangtingkun@itpub.net</email> 
</author> 
<dc:subject>
Bug
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://yangtingkun.itpub.net"> 
 

客户9208环境出现ORA-600[kgavsd_3]错误。

 

 

错误信息为：Thu Dec 15 15:47:57 2011Errors in file /oracle/admin/orcl/udump/orcl2_ora_659472.trc:ORA-00600: internal error code, arguments: [kgavsd_3], [0], [], [], [], [], [], []ORA-00604: error occurred at recursive SQL level 2ORA-03113: end-of-file on communication channelORA-03113: end-of-file on communication channelORA-06512: at &quot;DB_USER.P_JOB&quot;, line 79ORA-06512: at line 3ORA-06508: PL/SQL: could not find program unit being calledORA...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Sat,05 05 2012 23:53:18</id>
 <title>ORA-600(kgavsd_3)错误</title> 
 <link rel="alternate" type="text/html" href="http://yangtingkun.itpub.net/post/468/527337" /> 
  
 <modified>Sat,05 05 2012 23:53:18</modified> 
 <issued>Sat,05 05 2012 23:53:18</issued> 
 <created>Sat,05 05 2012 23:53:18</created> 
 <summary type="text/plain"> 

客户9208环境出现ORA-600[kgavsd_3]错误。

 

 

错误信息为：Thu Dec 15 15:47:57 2011Errors in file /oracle/admin/orcl/udump/orcl2_ora_659472.trc:ORA-00600: internal error code, arguments: [kgavsd_3], [0], [], [], [], [], [], []ORA-00604: error occurred at recursive SQL level 2ORA-03113: end-of-file on communication channelORA-03113: end-of-file on communication channelORA-06512: at &quot;DB_USER.P_JOB&quot;, line 79ORA-06512: at line 3ORA-06508: PL/SQL: could not find program unit being calledORA...</summary> 
 <author> 
  
 <name>yangtingkun</name> 
 <url>http://yangtingkun.itpub.net</url> 
 <email>yangtingkun@itpub.net</email> 
</author> 
<dc:subject>
ORACLE
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://yangtingkun.itpub.net"> 
 

客户9208环境出现ORA-600[kgavsd_3]错误。

 

 

错误信息为：Thu Dec 15 15:47:57 2011Errors in file /oracle/admin/orcl/udump/orcl2_ora_659472.trc:ORA-00600: internal error code, arguments: [kgavsd_3], [0], [], [], [], [], [], []ORA-00604: error occurred at recursive SQL level 2ORA-03113: end-of-file on communication channelORA-03113: end-of-file on communication channelORA-06512: at &quot;DB_USER.P_JOB&quot;, line 79ORA-06512: at line 3ORA-06508: PL/SQL: could not find program unit being calledORA...</content> 
</entry> 
     </feed>



