暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

ORA-04031: unable to allocate 4096 bytes of shared memory

原创 章芋文 2012-08-12
1100
今天接到客户的反馈应用程序无法使用,且备份非常慢,几乎无法备份
在查看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进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论