Monthly Archives: February 2012

用存储过程封装awrrpt脚本(五)

做了一个存储过程,封装了awr的report的功能。 根据11.2.0.3的TYPE的变化,修改了定义,新增一个变量控制是否生成RAC的GLOBAL报告,默认不生成全局报告。将DBNAME输入改变为DBID,解决DBNAME同名问题。 用存储过程封装awrrpt脚本(一):http://yangtingkun.itpub.net/post/468/515180 用存储过程封装awrrpt脚本(二):http://yangtingkun.itpub.net/post/468/515229 用存储过程封装awrrpt脚本(三):http://yangtingkun.itpub.net/post/468/515271 用存储过程封装awrrpt脚本(四):http://yangtingkun.itpub.net/post/468/517487 修改后的过程如下: SQL> CREATE OR REPLACE PROCEDURE P_AWR_REPORT ( 2 P_BEGIN IN VARCHAR2, 3 P_END IN VARCHAR2, 4 P_DIR IN VARCHAR2, 5 P_DBID IN NUMBER DEFAULT NULL, 6 P_PERINTERVAL IN BOOLEAN DEFAULT FALSE, 7 P_GLOBAL … Continue reading

Posted in ORACLE | Tagged , , | Leave a comment

11.2.0.3更改AWR报告底层TYPE类型

在11.2.0.2中读取AWR报告的过程在11.2.0.3中报错。 由于过程太长,将关键部分简化,分别在10.2和11.2.0.3中运行: SQL> SELECT * FROM V$VERSION; BANNER —————————————————————- Oracle DATABASE 10g Enterprise Edition Release 10.2.0.4.0 – 64bi PL/SQL Release 10.2.0.4.0 – Production CORE 10.2.0.4.0 Production TNS FOR Linux: Version 10.2.0.4.0 – Production NLSRTL Version 10.2.0.4.0 – Production SQL> DECLARE … Continue reading

Posted in ORACLE | Tagged , , , | Leave a comment

数据泵导出出现ORA-31623错误

客户数据库在调整SGA后,导出出现ORA-31623错误。 Oracle对于这个错误的描述为: ORA-31623: a job IS NOT attached TO this SESSION via the specified handle Cause: An attempt TO reference a job USING a handle which IS invalid OR no longer valid FOR the CURRENT SESSION. Action: SELECT a handle … Continue reading

Posted in ORACLE | Tagged , , , | Leave a comment

ORA-600(1158)错误

执行DDL时取消当前的操作出现这个错误。 详细错误信息如下: SQL> ALTER TRIGGER DBFW_CONSOLE_ACCESS.TRIGGER_DDL disable; ^Calter TRIGGER DBFW_CONSOLE_ACCESS.TRIGGER_DDL disable * ERROR at line 1: ORA-00600: internal error code, arguments: [1158], [], [], [], [], [], [], []SQL> alter trigger DBFW_CONSOLE_ACCESS.TRIGGER_DDL disable; ^Calter trigger DBFW_CONSOLE_ACCESS.TRIGGER_DDL disable * ERROR at … Continue reading

Posted in BUG | Tagged , , | Leave a comment

ORA-600(ktspNextL1:4)错误

告警日志出现ORA-600[ktspNextL1:4]错误。 错误信息如下: Tue Jan 15 22:00:45 2012 Errors IN file /oracle/admin/orcl/bdump/orcl_j000_13722891.trc: ORA-00600: internal error code, arguments: [ktspNextL1:4], [], [], [], [], [], [], [] Tue Jan 15 22:01:10 2012 Trace dumping IS performing id=[cdmp_20120131220118] Tue Jan 15 22:01:10 2012 Errors … Continue reading

Posted in BUG | Tagged , , , | Leave a comment

收集统计信息出现ORA-1476错误

告警日志中出现JOB运行错误,而发生错误的任务是在收集统计信息。 错误信息如下: Fri Feb 2 22:00:05 2012 GATHER_STATS_JOB encountered errors. CHECK the trace file. Fri Feb 2 22:00:05 2012 Errors IN file /oracle/admin/orcl/bdump/orcl_j000_23148.trc: ORA-01476: divisor IS equal TO zeroFri Feb 2 22:00:05 2012 GATHER_STATS_JOB encountered errors. Check the trace file. … Continue reading

Posted in BUG | Tagged , , | Leave a comment

CRS启动报错Failed 3 to bind listening endpoint

客户的10.2 RAC for Linux x86-64环境,计划停机后,尝试启动CLUSTER和DB,在一个节点上启动成功,但是另一个节点启动报错。 检查没有成功启动的节点,发现CLUSTER启动在/tmp目录下留下了记录: [root@smsdbrac1 root]# cd /tmp [root@smsdbrac1 tmp]# ls -l total 20 -rw-r–r– 1 oracle dba 78 Nov 30 00:30 crsctl.14429 -rw-r–r– 1 oracle dba 78 Nov 30 00:30 crsctl.14509 -rw-r–r– 1 oracle dba 78 Nov … Continue reading

Posted in ORACLE | Tagged , , , | Leave a comment

ORA-600(17281)(1001)错误(二)

和第一次碰到这个错误不同,这次是在10.2环境中出现的。 ORA-600(17281)(1001)错误:http://yangtingkun.itpub.net/post/468/514806 告警日志中错误信息为: Tue Jan 31 15:55:55 2012 Errors IN file /oracle/admin/ORCL/udump/orcl_ora_6225970.trc: ORA-00600: internal error code, arguments: [17281], [1001], [0x70000059AB9BE38], [], [], [], [], [] ORA-01001: invalid cursorTue Jan 31 15:55:55 2012 Errors in file /oracle/admin/ORCL/udump/orcl_ora_6225970.trc: ORA-00600: internal error code, … Continue reading

Posted in BUG | Tagged , , , , , , | Leave a comment

Oracle VM用户手册

VM的安装文档解决不了问题,看看VM的用户手册有没有这方面的内容。 简单看了一下文档的目录,感觉这篇文档才是描述如何使用以及配置VM的,其中不但包括虚拟化、Oracle VM以及VM Manager的介绍,还详细描述了如何管理存储、网络、服务器池以及虚拟主机。 不过读完这篇文章能否解决VM创建过程中碰到的问题还未可知,这只能等到看完之后才能知晓。 照例给出在线阅读地址:http://docs.oracle.com/cd/E26996_01/e18549/index.html

Posted in BOOKS | Leave a comment