今天接到客户的反馈应用程序无法使用,且备份非常慢,几乎无法备份
在查看Alert日志发现有大量04031错误,如下:
Fri Aug 10 10:08:26 2012
Errors in file d:\\oracle\\product\\10.1.0\\admin\\pszx_db\\bdump\\pstc_j000_4760.trc:
ORA-12012: error on auto execute of job 26
ORA-04031: unable to allocate 4096 bytes of shared memory ("shared pool","select /*+ rule */ bucket_cn...","Typecheck heap","kgghteInit")
ORA-06512: at "SYSMAN.EMD_MAINTENANCE", line 44
ORA-06512: at "SYSMAN.EMD_MAINTENANCE", line 751
ORA-06512: at line 1
首先想到的是经查SGA,shared pool
C:\\Documents and Settings\\Administrator>sqlplus a/a@pszx_db as sysdba
SQL*Plus: Release 10.1.0.2.0 - Production on 星期五 8月 10 10:44:14 2012
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Release 10.1.0.2.0 - Production
SQL> show sga
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 144964076 bytes
Database Buffers 25165824 bytes
Redo Buffers 1048576 bytes
SQL> show parameter sga
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 164M
sga_target big integer 0
我去,这不知道是哪位神人装的数据库
SQL> alter system set sga_max_size=1024m scope=spfile;
System altered.
SQL> startup force;
SQL> alter system set sga_target=1000m scope=both;
System altered.
SQL> show parameter sga
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 1G
sga_target big integer 1000M
SQL> show sga
Total System Global Area 1073741824 bytes
Fixed Size 792324 bytes
Variable Size 170125564 bytes
Database Buffers 901775360 bytes
Redo Buffers 1048576 bytes
在查看Alert日志发现有大量04031错误,如下:
Fri Aug 10 10:08:26 2012
Errors in file d:\\oracle\\product\\10.1.0\\admin\\pszx_db\\bdump\\pstc_j000_4760.trc:
ORA-12012: error on auto execute of job 26
ORA-04031: unable to allocate 4096 bytes of shared memory ("shared pool","select /*+ rule */ bucket_cn...","Typecheck heap","kgghteInit")
ORA-06512: at "SYSMAN.EMD_MAINTENANCE", line 44
ORA-06512: at "SYSMAN.EMD_MAINTENANCE", line 751
ORA-06512: at line 1
首先想到的是经查SGA,shared pool
C:\\Documents and Settings\\Administrator>sqlplus a/a@pszx_db as sysdba
SQL*Plus: Release 10.1.0.2.0 - Production on 星期五 8月 10 10:44:14 2012
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Release 10.1.0.2.0 - Production
SQL> show sga
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 144964076 bytes
Database Buffers 25165824 bytes
Redo Buffers 1048576 bytes
SQL> show parameter sga
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 164M
sga_target big integer 0
我去,这不知道是哪位神人装的数据库
SQL> alter system set sga_max_size=1024m scope=spfile;
System altered.
SQL> startup force;
SQL> alter system set sga_target=1000m scope=both;
System altered.
SQL> show parameter sga
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 1G
sga_target big integer 1000M
SQL> show sga
Total System Global Area 1073741824 bytes
Fixed Size 792324 bytes
Variable Size 170125564 bytes
Database Buffers 901775360 bytes
Redo Buffers 1048576 bytes
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
评论
相关阅读
【纯干货】Oracle 19C RU 19.27 发布,如何快速升级和安装?
Lucifer三思而后行
756次阅读
2025-04-18 14:18:38
Oracle RAC 一键安装翻车?手把手教你如何排错!
Lucifer三思而后行
647次阅读
2025-04-15 17:24:06
Oracle数据库一键巡检并生成HTML结果,免费脚本速来下载!
陈举超
569次阅读
2025-04-20 10:07:02
【ORACLE】你以为的真的是你以为的么?--ORA-38104: Columns referenced in the ON Clause cannot be updated
DarkAthena
525次阅读
2025-04-22 00:13:51
【活动】分享你的压箱底干货文档,三篇解锁进阶奖励!
墨天轮编辑部
516次阅读
2025-04-17 17:02:24
【ORACLE】记录一些ORACLE的merge into语句的BUG
DarkAthena
497次阅读
2025-04-22 00:20:37
一页概览:Oracle GoldenGate
甲骨文云技术
482次阅读
2025-04-30 12:17:56
火焰图--分析复杂SQL执行计划的利器
听见风的声音
440次阅读
2025-04-17 09:30:30
3月“墨力原创作者计划”获奖名单公布
墨天轮编辑部
381次阅读
2025-04-15 14:48:05
OR+DBLINK的关联SQL优化思路
布衣
372次阅读
2025-05-05 19:28:36