楼主: wwmb

ORA-00604:,ORA-04031: 引起的down机,谁能给分析一下!!!

[复制链接]
论坛徽章:
86
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20咸鸭蛋
日期:2012-05-08 10:27:19版主8段
日期:2012-05-15 15:24:112013年新春福章
日期:2013-02-25 14:51:24
11#
发表于 2002-6-6 08:51 | 只看该作者

faint

最初由 chao_ping 发布
[B]什么时候有机会到广州来, 你请客就OK啦D [/B]


你怎跟我一个德行?  

使用道具 举报

回复
论坛徽章:
17
ITPUB元老
日期:2005-02-28 12:57:00ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:32ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412011新春纪念徽章
日期:2011-02-18 11:43:32ITPUB9周年纪念徽章
日期:2010-10-08 09:28:532010新春纪念徽章
日期:2010-03-01 11:05:01祖国60周年纪念徽章
日期:2009-10-09 08:28:00ITPUB8周年纪念徽章
日期:2009-09-27 10:21:222009新春纪念徽章
日期:2009-01-04 14:52:28奥运会纪念徽章:射击
日期:2008-10-24 13:23:42
12#
发表于 2002-6-6 13:45 | 只看该作者
Buffer handles cached each process

使用道具 举报

回复
论坛徽章:
17
ITPUB元老
日期:2005-02-28 12:57:00ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:32ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412011新春纪念徽章
日期:2011-02-18 11:43:32ITPUB9周年纪念徽章
日期:2010-10-08 09:28:532010新春纪念徽章
日期:2010-03-01 11:05:01祖国60周年纪念徽章
日期:2009-10-09 08:28:00ITPUB8周年纪念徽章
日期:2009-09-27 10:21:222009新春纪念徽章
日期:2009-01-04 14:52:28奥运会纪念徽章:射击
日期:2008-10-24 13:23:42
13#
发表于 2002-6-6 12:28 | 只看该作者
你这个问题我也遇到过,当时是安装oracle8.1.7.0.0 on RedHat7.2
上面,系统运行几天后就出这个错误,后来修改init<SID>.ora文件:
_db_handles_cached = 0
and restart the instance.
问题解决了,以后没有遇到类似的错误!

使用道具 举报

回复
论坛徽章:
92
2011新春纪念徽章
日期:2011-01-25 15:42:33咸鸭蛋
日期:2012-03-19 10:46:00版主1段
日期:2012-05-15 15:24:11奥运会纪念徽章:排球
日期:2012-08-29 07:02:50奥运会纪念徽章:跳水
日期:2012-09-26 06:44:27ITPUB 11周年纪念徽章
日期:2012-09-28 17:34:42ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:32奥运会纪念徽章:击剑
日期:2012-10-12 07:20:332013年新春福章
日期:2013-02-25 14:51:242012新春纪念徽章
日期:2012-02-13 15:13:20
14#
发表于 2002-6-5 09:55 | 只看该作者
error occurred at recursive SQL level 2
???
应该是share pool size 太小了吧   
ORA-04031 unable to allocate string bytes of shared memory ("string","string","string","string"
Cause: More shared memory is needed than was allocated in the shared pool.

Action: If the shared pool is out of memory, either use the DBMS_SHARED_ POOL package to pin large packages, reduce your use of shared memory, or increase the amount of available shared memory by increasing the value of the initialization parameters SHARED_POOL_RESERVED_SIZE and SHARED_ POOL_SIZE. If the large pool is out of memory, increase the initialization parameter LARGE_POOL_SIZE.

使用道具 举报

回复
论坛徽章:
3
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34
15#
发表于 2002-6-5 15:03 | 只看该作者
别无它法
试试这个
You will start getting ora-4031's because we've used up all
the memory we had.
So far, one thing that has worked was to set: STAR_TRANSFORMATION_ENABLED=FALSE

使用道具 举报

回复
论坛徽章:
3
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34
16#
发表于 2002-6-5 15:04 | 只看该作者
Bugs 1921561, 1704094, 1193003, etc. have been filed for similar scenarios.

使用道具 举报

回复
论坛徽章:
3
授权会员
日期:2005-10-30 17:05:33ITPUB元老
日期:2005-11-28 14:14:452010新春纪念徽章
日期:2010-03-01 11:20:05
17#
 楼主| 发表于 2002-6-6 12:40 | 只看该作者
最初由 overmars 发布
[B]你这个问题我也遇到过,当时是安装oracle8.1.7.0.0 on RedHat7.2
上面,系统运行几天后就出这个错误,后来修改init<SID>.ora文件:
_db_handles_cached = 0
and restart the instance.
问题解决了,以后没有遇到类似的错误! [/B]


果然是这样,!!! 上面我也提到了,但是不太敢相信。另外,
metalink 上面,早有8147 patch 的说明,817确实有ora-04031这个bug,  不过我到想测试一下,行不行,今天不行了,不能去机房。
你知道_db_handles_cached  是干什么的吗?

使用道具 举报

回复
论坛徽章:
3
授权会员
日期:2005-10-30 17:05:33ITPUB元老
日期:2005-11-28 14:14:452010新春纪念徽章
日期:2010-03-01 11:20:05
18#
 楼主| 发表于 2002-6-5 09:37 | 只看该作者

ORA-00604:,ORA-04031: 引起的down机,谁能给分析一下!!!


数据库太不稳定了,几天就down机,只有重新启动,查看alert_oracl.log 里面这种类似的错误很多,那位高手给分析一下,需要什么信息,我提供给你们。
Sat Jun  1 20:59:55 2002
Errors in file /u01/app/oracle/admin/oracl/bdump/snp2_3526.trc:
ORA-00604: error occurred at recursive SQL level 2
ORA-04031: unable to allocate 4200 bytes of shared memory ("shared pool","STANDARD","sga heap","state objects"

snp2_3526.trc :

*** SESSION ID40.12966) 2002-06-01 20:09:42.436
*** 2002-06-01 20:09:42.436
ORA-00604: error occurred at recursive SQL level 2
ORA-04031: unable to allocate 4200 bytes of shared memory ("shared pool","STANDARD","sga heap","state objects"

使用道具 举报

回复
论坛徽章:
3
授权会员
日期:2005-10-30 17:05:33ITPUB元老
日期:2005-11-28 14:14:452010新春纪念徽章
日期:2010-03-01 11:20:05
19#
 楼主| 发表于 2002-6-5 10:17 | 只看该作者
现在运行状态是正常的:
Select * from v$sgastat
where pool ='shared pool' and upper(name) like '%FRE%'
or  upper(name) like '%MISC%'
--------------------------------------------------------------------------------------------

fixed_sga  73888  
  db_block_buffers  253435904  
  log_buffer  5632000  
shared pool  free memory  32972532  
shared pool  miscellaneous  147161588  
shared pool  db_block_hash_buckets  626104  
shared pool  table definiti  2960  
shared pool  transactions  220324  
shared pool  VIRTUAL CIRCUITS  364632  
shared pool  table columns   24648  
shared pool  trigger source  88  
shared pool  PLS non-lib hp  2096  
shared pool  db_files  543420  
shared pool  sessions  485100  
shared pool  trigger inform  772  
shared pool  State objects  334224  
shared pool  trigger defini  5680  
shared pool  KQLS heap  806984  
shared pool  log_buffer  176000  
shared pool  joxlod: in phe  115556  
shared pool  enqueue_resources  180576  
shared pool  fixed allocation callback  640  
shared pool  KGFF heap  10980  
shared pool  PL/SQL DIANA  1013812  
shared pool  dictionary cache  555984  
shared pool  joxs heap init  4248  
shared pool  KGK heap  25176  
shared pool  joxlod: in ehe  108024  
shared pool  message pool freequeue  116176  
shared pool  library cache  31774908  
shared pool  db_block_buffers  4207432  
shared pool  sql area  38672156  
shared pool  DML locks  118560  
shared pool  processes  159200  
shared pool  PL/SQL MPCODE  451720  
shared pool  Checkpoint queue  108036  
shared pool  event statistics per sess  781200  
large pool  free memory  614400  
java pool  free memory  16130048  
java pool  memory in use  4841472  
-------------------------------------------------------

initorcl.ora
----------------------------------------------------------
db_name = "orcl"
instance_name = orcl
service_names = orcl

db_files = 1500                                                     # LARGE

control_files = ("/u01/app/oracle/oradata/orcl/control01.ctl", "/u01/app/oracle/oradata/orcl/control02.ctl", "/u01/app/oracle/oradata/orcl/control03.ctl"

open_cursors = 300
max_enabled_roles = 30
# db_file_multiblock_read_count = 8                                   # SMALL
# db_file_multiblock_read_count = 16                                  # MEDIUM
db_file_multiblock_read_count = 32                                  # LARGE

#db_block_buffers = 2048  # INITIAL
# db_block_buffers = 100                                              # SMALL
# db_block_buffers = 550                                              # MEDIUM
# db_block_buffers = 3200                                             # LARGE
db_block_buffers = 30937  

#shared_pool_size = 31457280  # INITIAL
# shared_pool_size = 3500000                                          # SMALL
# shared_pool_size = 5000000                                          # MEDIUM
# shared_pool_size = 9000000                                          # LARGE
shared_pool_size = 253440000


large_pool_size = 614400
java_pool_size = 20971520

log_checkpoint_interval = 10000000
log_checkpoint_timeout = 1800

processes = 200  # INITIAL
# processes = 50                                                      # SMALL
# processes = 100                                                     # MEDIUM
# processes = 200                                                     # LARGE

#log_buffer = 819200  # INITIAL
# log_buffer = 32768                                                  # SMALL
# log_buffer = 32768                                                  # MEDIUM
# log_buffer = 163840                                                 # LARGE
log_buffer = 5632000

# audit_trail = false  # if you want auditing
# timed_statistics = false  # if you want timed statistics
# max_dump_file_size = 10000  # limit trace file size to 5M each

# Uncommenting the lines below will cause automatic archiving if archiving has
# been enabled using ALTER DATABASE ARCHIVELOG.
# log_archive_start = true
# log_archive_dest_1 = "location=/u01/app/oracle/admin/orcl/arch"
# log_archive_format = arch_%t_%s.arc

# If using private rollback segments, place lines of the following
# form in each of your instance-specific init.ora files:
#rollback_segments = ( RBS0, RBS1, RBS2, RBS3, RBS4, RBS5, RBS6 )

# If using public rollback segments, define how many
# rollback segments each instance will pick up, using the formula
#   # of rollback segments = transactions / transactions_per_rollback_segment
# In this example each instance will grab 40/10 = 4:
# transactions = 40
# transactions_per_rollback_segment = 10

# Global Naming -- enforce that a dblink has same name as the db it connects to
# global_names = false

# Edit and uncomment the following line to provide the suffix that will be
# appended to the db_name parameter (separated with a dot) and stored as the
# global database name when a database is created.  If your site uses
# Internet Domain names for e-mail, then the part of your e-mail address after
# the '@' is a good candidate for this parameter value.
# db_domain = us.acme.com   # global database name is db_name.db_domain

# Uncomment the following line if you wish to enable the Oracle Trace product
# to trace server activity.  This enables scheduling of server collections
# from the Oracle Enterprise Manager Console.
# Also, if the oracle_trace_collection_name parameter is non-null,
# every session will write to the named collection, as well as enabling you
# to schedule future collections from the console.
# oracle_trace_enable = true

# define directories to store trace and alert files
background_dump_dest = /u01/app/oracle/admin/orcl/bdump
core_dump_dest = /u01/app/oracle/admin/orcl/cdump
#Uncomment this parameter to enable resource management for your database.
#The SYSTEM_PLAN is provided by default with the database.
#Change the plan name if you have created your own resource plan.# resource_manager_plan = system_plan
user_dump_dest = /u01/app/oracle/admin/orcl/udump

db_block_size = 8192

remote_login_passwordfile = exclusive

os_authent_prefix = ""

# The following parameters are needed for the Advanced Replication Option
job_queue_processes = 4
job_queue_interval = 60
distributed_transactions = 10
open_links = 4


mts_dispatchers = "(PROTOCOL=TCP)(SER=MODOSE)"
# Uncomment the following line when your listener is configured for SSL
#mts_dispatchers = "(PROTOCOL=TCPS)(SER=MODOSE)"

mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
# Uncomment the following line when your listener is configured for SSL
# (listener.ora and sqlnet.ora)
# mts_dispatchers = "(PROTOCOL=TCPS)(PRE=oracle.aurora.server.SGiopServer)"

compatible = "8.1.0"
sort_area_size = 65536
sort_area_retained_size = 65536

使用道具 举报

回复
论坛徽章:
3
授权会员
日期:2005-10-30 17:05:33ITPUB元老
日期:2005-11-28 14:14:452010新春纪念徽章
日期:2010-03-01 11:20:05
20#
 楼主| 发表于 2002-6-5 11:12 | 只看该作者
现在是:
shared pool  miscellaneous  150727424

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表