ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORA-00104: deadlock detected; all public servers blocked waiting for resources

ORA-00104: deadlock detected; all public servers blocked waiting for resources

原创 Linux操作系统 作者:zerocool8888888 时间:2008-06-19 00:47:56 0 删除 编辑

〖Environment(环境)〗

OS:solaris 9

DB:oracle 10g

简要描述:数据库被配置成共享数据库模式(shared server)。

〖Symptom(现象) 〗

在使用数据的过程中,报告ORA-00104: deadlock detected; all public servers blocked waiting for resources错误。

〖Cause(原因)       〗

这是因为共享服务器进程的数量已经达到MAX_SHARED_SERVERS指定的限制,但是系统还需要更多的共享服务器进程。要解决这个问题,需要提高MAX_SHARED_SERVERS的值。

〖Action(方法)      〗

Step01:连接到oracle 。

$ sqlplus

SQL*Plus: Release 10.1.0.3.0 - Production on Thu Aug 3 15:24:16 2006

Copyright (c) 1982, 2004, Oracle.  All rights reserved.

Enter user-name: sys@wm as SYSDBA

Enter password:

Connected to an idle instance.

SQL>

wm是网络服务名(Net Service Name)。

Step02:显示MAX_SHARED_SERVERS的当前值。

SQL> show parameter shared

NAME                                 TYPE        VALUE

------------------------------------ ----------- -----------------------

……

max_shared_servers                   integer     6

shared_servers                       integer     5

……

Step03:用alter system…提高MAX_SHARED_SERVERS的值。

SQL> ALTER SYSTEM SET MAX_SHARED_SERVERS=20 scope=both

  2  /

System altered.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13804621/viewspace-351795/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2008-04-10

  • 博文量
    73
  • 访问量
    932593