<?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>心情小站</title> 
<link rel="alternate" type="text/html" href="http://coolyl.itpub.net" /> 
 
<modified>Thu,17 05 2012 04:52:32</modified> 
<tagline></tagline> 
<generator url="http://www.plogworld.net/" version="1.0.1">pLog</generator> 
 
<copyright>Copyright (c) coolyl</copyright> 
    
 <entry> 
 <id>tag:post:blog.itpub.net,Thu,01 02 2007 16:04:42</id>
 <title>ORA-600 [2103]错误解决过程</title> 
 <link rel="alternate" type="text/html" href="http://coolyl.itpub.net/post/3/259295" /> 
  
 <modified>Thu,01 02 2007 16:04:42</modified> 
 <issued>Thu,01 02 2007 16:04:42</issued> 
 <created>Thu,01 02 2007 16:04:42</created> 
 <summary type="text/plain"> 数据库：Oracle10g(10.1.0.4)
操作系统：Aix5L
数据库架构：Oracle10g RAC+DataGuard
数据库故障现象：数据库不定期的晚上会自动宕机，包括远程的备份库也同时被挂起。首先查看用户两台数据库服务器上的Alert告警日志文件，看看有无错误信息。经检查发现，每次数据库宕机的时候都会出现如下的日志信息：

Errors in file
/ora/app/oracle/admin/orcl1/bdump/orcl1_lgwr_430484.trc:

ORA-00600: Message 600 not found;
No message file for product=RDBMS, facility=ORA; arguments: [2103] [0] [0] [1]
[900]

Tue Jan 23 0...</summary> 
 <author> 
  
 <name>coolyl</name> 
 <url>http://coolyl.itpub.net</url> 
 <email>coolyl1979@gmail.com</email> 
</author> 
<dc:subject>
Oracle Database
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://coolyl.itpub.net"> 
 数据库：Oracle10g(10.1.0.4)
操作系统：Aix5L
数据库架构：Oracle10g RAC+DataGuard
数据库故障现象：数据库不定期的晚上会自动宕机，包括远程的备份库也同时被挂起。首先查看用户两台数据库服务器上的Alert告警日志文件，看看有无错误信息。经检查发现，每次数据库宕机的时候都会出现如下的日志信息：

Errors in file
/ora/app/oracle/admin/orcl1/bdump/orcl1_lgwr_430484.trc:

ORA-00600: Message 600 not found;
No message file for product=RDBMS, facility=ORA; arguments: [2103] [0] [0] [1]
[900]

Tue Jan 23 0...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Mon,29 01 2007 00:41:29</id>
 <title>诊断和解决错误ORA-04031</title> 
 <link rel="alternate" type="text/html" href="http://coolyl.itpub.net/post/3/258127" /> 
  
 <modified>Mon,29 01 2007 00:41:29</modified> 
 <issued>Mon,29 01 2007 00:41:29</issued> 
 <created>Mon,29 01 2007 00:41:29</created> 
 <summary type="text/plain"> 本文目的：提供一个使用简单，一步步的指导去解决ORA-04013错误。当任何试图分配一个大的连续的共享池中的内存失败，Oracle首先会刷新掉共享池中所有目前不在使用的对象，然后使得内存块被合并在一起。如果内存块仍然不够满足需求，那么就会出现ORA-
04031错误。这些错误同样可能发生在ASM的实例中。默认的共享池的大小基本能够满足大部分的环境，但是如果遇到ORA-04031错误的时候可能就需要增大。

 

当遇到这个错误的时候，往往会出现如下的消息显示：

04031,
00000, &quot;unable to allocate %s bytes of shared memory
(&quot;%s&quot;,&quot;...</summary> 
 <author> 
  
 <name>coolyl</name> 
 <url>http://coolyl.itpub.net</url> 
 <email>coolyl1979@gmail.com</email> 
</author> 
<dc:subject>
Oracle Database
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://coolyl.itpub.net"> 
 本文目的：提供一个使用简单，一步步的指导去解决ORA-04013错误。当任何试图分配一个大的连续的共享池中的内存失败，Oracle首先会刷新掉共享池中所有目前不在使用的对象，然后使得内存块被合并在一起。如果内存块仍然不够满足需求，那么就会出现ORA-
04031错误。这些错误同样可能发生在ASM的实例中。默认的共享池的大小基本能够满足大部分的环境，但是如果遇到ORA-04031错误的时候可能就需要增大。

 

当遇到这个错误的时候，往往会出现如下的消息显示：

04031,
00000, &quot;unable to allocate %s bytes of shared memory
(&quot;%s&quot;,&quot;...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Thu,25 01 2007 11:34:28</id>
 <title>Oracle10g中如何分析响应时间(续)</title> 
 <link rel="alternate" type="text/html" href="http://coolyl.itpub.net/post/3/255278" /> 
  
 <modified>Thu,25 01 2007 11:34:28</modified> 
 <issued>Thu,25 01 2007 11:34:28</issued> 
 <created>Thu,25 01 2007 11:34:28</created> 
 <summary type="text/plain"> Oracle10g中如何分析响应时间(续)SQL语句响应时间分析：在Oracle9i数据库中查看SQL语句的响应时间就变得比较容易了，现在在Oracle10g中，DBA们拥有更多的工具可以帮助他们跟踪效率低下的数据库代码。以前可以用来查询的视图是V$SQLAREA，从Oracle9i开始，这个视图增加了ELAPSED_TIME和CPU_TIME两个列，这极大的有助于去确定实际用户的SQL语句的执行经历。（如果除以执行的次数列EXECUTIONS，那么将得到平均每次执行这个SQL语句所用的平均时间）在Oracle10g数据库中，V$SQLAREA视图中增加了6个新的和等待以及时间相关的列：l APPLICATION_W...</summary> 
 <author> 
  
 <name>coolyl</name> 
 <url>http://coolyl.itpub.net</url> 
 <email>coolyl1979@gmail.com</email> 
</author> 
<dc:subject>
Oracle Database
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://coolyl.itpub.net"> 
 Oracle10g中如何分析响应时间(续)SQL语句响应时间分析：在Oracle9i数据库中查看SQL语句的响应时间就变得比较容易了，现在在Oracle10g中，DBA们拥有更多的工具可以帮助他们跟踪效率低下的数据库代码。以前可以用来查询的视图是V$SQLAREA，从Oracle9i开始，这个视图增加了ELAPSED_TIME和CPU_TIME两个列，这极大的有助于去确定实际用户的SQL语句的执行经历。（如果除以执行的次数列EXECUTIONS，那么将得到平均每次执行这个SQL语句所用的平均时间）在Oracle10g数据库中，V$SQLAREA视图中增加了6个新的和等待以及时间相关的列：l APPLICATION_W...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Wed,24 01 2007 16:17:16</id>
 <title>Oracle10g中如何分析响应时间</title> 
 <link rel="alternate" type="text/html" href="http://coolyl.itpub.net/post/3/254733" /> 
  
 <modified>Wed,24 01 2007 16:17:16</modified> 
 <issued>Wed,24 01 2007 16:17:16</issued> 
 <created>Wed,24 01 2007 16:17:16</created> 
 <summary type="text/plain"> 在Oracle10g中，以前版本中比较难于获取的响应时间数据将会变得非常容易获取。在以前看来，为了尽量获得数据库的最佳性能，Oracle的DBA们和性能分析专家一直很困难获得系统以及用户会话活动的一致的响应时间数据。DBA们面临的问题一直以来包括两个方面：第一个方面是准确定位数据库或者用户会话究竟在哪里消耗了时间；第二个方面就是确定用户体验的客观性质。在数据库中产生所有可能的行为和交互作用，这些任务都不是没有价值的。Oracle等待接口，在之前的很早的Oracle数据库版本中开始介绍的，对于那些知道如何使用等待接口的管理员来说这...</summary> 
 <author> 
  
 <name>coolyl</name> 
 <url>http://coolyl.itpub.net</url> 
 <email>coolyl1979@gmail.com</email> 
</author> 
<dc:subject>
Oracle Database
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://coolyl.itpub.net"> 
 在Oracle10g中，以前版本中比较难于获取的响应时间数据将会变得非常容易获取。在以前看来，为了尽量获得数据库的最佳性能，Oracle的DBA们和性能分析专家一直很困难获得系统以及用户会话活动的一致的响应时间数据。DBA们面临的问题一直以来包括两个方面：第一个方面是准确定位数据库或者用户会话究竟在哪里消耗了时间；第二个方面就是确定用户体验的客观性质。在数据库中产生所有可能的行为和交互作用，这些任务都不是没有价值的。Oracle等待接口，在之前的很早的Oracle数据库版本中开始介绍的，对于那些知道如何使用等待接口的管理员来说这...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Wed,10 01 2007 11:00:56</id>
 <title>11gOracle数据库的认证结构</title> 
 <link rel="alternate" type="text/html" href="http://coolyl.itpub.net/post/3/253699" /> 
  
 <modified>Wed,10 01 2007 11:00:56</modified> 
 <issued>Wed,10 01 2007 11:00:56</issued> 
 <created>Wed,10 01 2007 11:00:56</created> 
 <summary type="text/plain"> 11gOracle数据库的认证结构已经有了，大家可以先了解了解http://www.itpub.net/showthread.php?s=&amp;threadid=710419</summary> 
 <author> 
  
 <name>coolyl</name> 
 <url>http://coolyl.itpub.net</url> 
 <email>coolyl1979@gmail.com</email> 
</author> 
<dc:subject>
Oracle Database
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://coolyl.itpub.net"> 
 11gOracle数据库的认证结构已经有了，大家可以先了解了解http://www.itpub.net/showthread.php?s=&amp;threadid=710419</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Thu,23 11 2006 15:32:48</id>
 <title>诊断数据库Hanging问题</title> 
 <link rel="alternate" type="text/html" href="http://coolyl.itpub.net/post/3/252923" /> 
  
 <modified>Thu,23 11 2006 15:32:48</modified> 
 <issued>Thu,23 11 2006 15:32:48</issued> 
 <created>Thu,23 11 2006 15:32:48</created> 
 <summary type="text/plain"> 适用范围：Oracle任何平台上的企业版数据库适用对象：所有数据库管理员和数据库支持人员本文目的：这篇文章主要描述用于诊断数据库hanging和性能问题的方法和 工具，这些问题可能是由于调整问题，设计问题或者Oracle的bug引起的。将讨论如下的诊断步骤：1) 描述清楚出现的现象问题2) 寻找具体错误3) 收集操作系统级别上的数据4) 获取systemstate和hanganalyze的dump5) 获取STATPACK的输出报告6) 获取PROCESSSTATE的dump注：可能很多时候没有必要关闭数据库来停止hanging，建议如果要关闭数据库之前获取这些诊断信息以便找出错误的原因所在...</summary> 
 <author> 
  
 <name>coolyl</name> 
 <url>http://coolyl.itpub.net</url> 
 <email>coolyl1979@gmail.com</email> 
</author> 
<dc:subject>
Oracle Database
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://coolyl.itpub.net"> 
 适用范围：Oracle任何平台上的企业版数据库适用对象：所有数据库管理员和数据库支持人员本文目的：这篇文章主要描述用于诊断数据库hanging和性能问题的方法和 工具，这些问题可能是由于调整问题，设计问题或者Oracle的bug引起的。将讨论如下的诊断步骤：1) 描述清楚出现的现象问题2) 寻找具体错误3) 收集操作系统级别上的数据4) 获取systemstate和hanganalyze的dump5) 获取STATPACK的输出报告6) 获取PROCESSSTATE的dump注：可能很多时候没有必要关闭数据库来停止hanging，建议如果要关闭数据库之前获取这些诊断信息以便找出错误的原因所在...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Thu,19 10 2006 15:33:00</id>
 <title>返回锁信息的脚本</title> 
 <link rel="alternate" type="text/html" href="http://coolyl.itpub.net/post/3/250408" /> 
  
 <modified>Thu,19 10 2006 15:33:00</modified> 
 <issued>Thu,19 10 2006 15:33:00</issued> 
 <created>Thu,19 10 2006 15:33:00</created> 
 <summary type="text/plain"> 这个脚本提供详细的锁信息，适用于oracle7到oracle9i的数据库版本。必须要用sys用户来执行脚本naset pagesize 60 set linesize 200 feedback off heading on column sid format 999 column res heading 'Resource Type' format a20 column id1 format 9999999 column id2 format 9999999 column lmode heading 'Lock Held' format a14 column request heading 'Lock Req.' format a14 column serial# format 99999 column username format a10 column terminal heading Term format a6 column tab format a10 column owner format a8 sele...</summary> 
 <author> 
  
 <name>coolyl</name> 
 <url>http://coolyl.itpub.net</url> 
 <email>coolyl1979@gmail.com</email> 
</author> 
<dc:subject>
Oracle Database
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://coolyl.itpub.net"> 
 这个脚本提供详细的锁信息，适用于oracle7到oracle9i的数据库版本。必须要用sys用户来执行脚本naset pagesize 60 set linesize 200 feedback off heading on column sid format 999 column res heading 'Resource Type' format a20 column id1 format 9999999 column id2 format 9999999 column lmode heading 'Lock Held' format a14 column request heading 'Lock Req.' format a14 column serial# format 99999 column username format a10 column terminal heading Term format a6 column tab format a10 column owner format a8 sele...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Tue,11 07 2006 15:10:15</id>
 <title>监控当前并行查询运行状况脚本</title> 
 <link rel="alternate" type="text/html" href="http://coolyl.itpub.net/post/3/250398" /> 
  
 <modified>Tue,11 07 2006 15:10:15</modified> 
 <issued>Tue,11 07 2006 15:10:15</issued> 
 <created>Tue,11 07 2006 15:10:15</created> 
 <summary type="text/plain"> 简介：这个脚本创建一个简单的存储过程查看当前单实例的并行运行SQL状态，如果需要收集更多信息，可以修改此脚本。目前此脚本会统计每个会话的等待状态和物理I/O以及CPU信息。有助于在PX操作中找出繁忙和空闲的会话。适用范围：适用于任何平台上的7.3.X 到9.2.X的Oracle数据库。脚本说明：必须用sys用户来执行这个脚本。使用下面命令创建存储过程：sqlplus sys/password @scriptfile用sys用户给相应的用户执行此存储过程的权限：grant execute on pqstat to user用户使用下面的命令执行脚本：set serveroutput onexecute PQSTAT； 给出所有...</summary> 
 <author> 
  
 <name>coolyl</name> 
 <url>http://coolyl.itpub.net</url> 
 <email>coolyl1979@gmail.com</email> 
</author> 
<dc:subject>
Oracle Database
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://coolyl.itpub.net"> 
 简介：这个脚本创建一个简单的存储过程查看当前单实例的并行运行SQL状态，如果需要收集更多信息，可以修改此脚本。目前此脚本会统计每个会话的等待状态和物理I/O以及CPU信息。有助于在PX操作中找出繁忙和空闲的会话。适用范围：适用于任何平台上的7.3.X 到9.2.X的Oracle数据库。脚本说明：必须用sys用户来执行这个脚本。使用下面命令创建存储过程：sqlplus sys/password @scriptfile用sys用户给相应的用户执行此存储过程的权限：grant execute on pqstat to user用户使用下面的命令执行脚本：set serveroutput onexecute PQSTAT； 给出所有...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Wed,22 06 2005 16:58:05</id>
 <title>ORA-04098错误解决方法</title> 
 <link rel="alternate" type="text/html" href="http://coolyl.itpub.net/post/3/250438" /> 
  
 <modified>Wed,22 06 2005 16:58:05</modified> 
 <issued>Wed,22 06 2005 16:58:05</issued> 
 <created>Wed,22 06 2005 16:58:05</created> 
 <summary type="text/plain"> 数据库版本：8.1.5 平台：SOLARIS 5.7背景：用户建立了一个TRIGGER:create or replace trigger ddl_denybefore create or alter or drop on databasedeclarebegininsert into ddl_logs values(ora_dict_obj_owner,ora_dict_obj_name,sysdate);exceptionwhen no_data_found thennull;end;目的大概就是记录下所有的DDL操作，但TRIGGER建立有错误，发现:11:30:08 alter&quot;&gt;system@ORA250&gt;alter trigger ddl_deny disable;alter trigger ddl_deny disable*ERROR 位于第 1 行:ORA-04098: 触发器 'DDL_DENY' 无效且未通过重新验证11:31:45 drop&quot;&gt;s...</summary> 
 <author> 
  
 <name>coolyl</name> 
 <url>http://coolyl.itpub.net</url> 
 <email>coolyl1979@gmail.com</email> 
</author> 
<dc:subject>
Oracle Database
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://coolyl.itpub.net"> 
 数据库版本：8.1.5 平台：SOLARIS 5.7背景：用户建立了一个TRIGGER:create or replace trigger ddl_denybefore create or alter or drop on databasedeclarebegininsert into ddl_logs values(ora_dict_obj_owner,ora_dict_obj_name,sysdate);exceptionwhen no_data_found thennull;end;目的大概就是记录下所有的DDL操作，但TRIGGER建立有错误，发现:11:30:08 alter&quot;&gt;system@ORA250&gt;alter trigger ddl_deny disable;alter trigger ddl_deny disable*ERROR 位于第 1 行:ORA-04098: 触发器 'DDL_DENY' 无效且未通过重新验证11:31:45 drop&quot;&gt;s...</content> 
</entry> 

 <entry> 
 <id>tag:post:blog.itpub.net,Thu,07 04 2005 16:56:42</id>
 <title>Oracle数据库诊断事件详解</title> 
 <link rel="alternate" type="text/html" href="http://coolyl.itpub.net/post/3/250436" /> 
  
 <modified>Thu,07 04 2005 16:56:42</modified> 
 <issued>Thu,07 04 2005 16:56:42</issued> 
 <created>Thu,07 04 2005 16:56:42</created> 
 <summary type="text/plain"> 什么是Oracle数据库的诊断事件呢？简而言之的来说Oracle的诊断事件就是Oracle数据库中用于实现一些特殊功用的类别，一般主要用于实现以下几个方面的功用：&amp;Oslash; 改变Oracle数据库的行为&amp;Oslash; 启用收集Oracle数据库的跟踪或者调试信息&amp;Oslash; 启用对Oracle数据库的额外的错误检测一、 Oracle数据库诊断事件简介什么是Oracle数据库的诊断事件呢？简而言之的来说Oracle的诊断事件就是Oracle数据库中用于实现一些特殊功用的类别，一般主要用于实现以下几个方面的功用：&amp;Oslash; 改变Oracle数据库的行为&amp;Oslash; 启用收集Oracle数据库的...</summary> 
 <author> 
  
 <name>coolyl</name> 
 <url>http://coolyl.itpub.net</url> 
 <email>coolyl1979@gmail.com</email> 
</author> 
<dc:subject>
Oracle Database
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="zh-cn" xml:base="http://coolyl.itpub.net"> 
 什么是Oracle数据库的诊断事件呢？简而言之的来说Oracle的诊断事件就是Oracle数据库中用于实现一些特殊功用的类别，一般主要用于实现以下几个方面的功用：&amp;Oslash; 改变Oracle数据库的行为&amp;Oslash; 启用收集Oracle数据库的跟踪或者调试信息&amp;Oslash; 启用对Oracle数据库的额外的错误检测一、 Oracle数据库诊断事件简介什么是Oracle数据库的诊断事件呢？简而言之的来说Oracle的诊断事件就是Oracle数据库中用于实现一些特殊功用的类别，一般主要用于实现以下几个方面的功用：&amp;Oslash; 改变Oracle数据库的行为&amp;Oslash; 启用收集Oracle数据库的...</content> 
</entry> 
     </feed>



