ORA-00020: maximum number of processes (1000) exceeded 故障一列

[root@ijxdg ~]# su - oracle
[oracle@ijxdg ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 18 18:14:15 2014

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

ERROR:
ORA-00020: maximum number of processes (1000) exceeded

--alert日志:
Thu Sep 18 18:13:59 2014
Process J002 submission failed with error = 20
kkjcre1p: unable to spawn jobq slave process
Errors in file /u01/app/oracle/diag/rdbms/orcldg/orcl/trace/orcl_cjq0_11338.trc:
Thu Sep 18 18:14:26 2014
ORA-00020: maximum number of processes 1000 exceeded
ORA-20 errors will not be written to the alert log for
the next minute. Please look at trace files to see all
the ORA-20 errors.
Thu Sep 18 18:15:17 2014
Process m000 submission failed with error = 20
Thu Sep 18 18:15:27 2014
ORA-00020: maximum number of processes 1000 exceeded
ORA-20 errors will not be written to the alert log for
the next minute. Please look at trace files to see all
the ORA-20 errors.
......

Thu Sep 18 18:20:03 2014
Process W000 submission failed with error = 20
Process W000 submission failed with error = 20
Process W000 submission failed with error = 20
Process W000 submission failed with error = 20

--查看listener.log 发现如下错误
18-SEP-2014 18:10:08 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=JYSD))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.217)(PORT=54584)) * establish * orcl * 0
18-SEP-2014 18:10:08 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=JYSD))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.217)(PORT=54586)) * establish * orcl * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12547: TNS:lost contact
  TNS-12560: TNS:protocol adapter error
   TNS-00517: Lost contact
    Linux Error: 32: Broken pipe
    
     
--此时已经登录不进库
ps -ef|grep LOCAL               --可以看到很多连接

使用os命令kill掉一些进程以释放资源      --head 取前10条
ps -ef|grep LOCAL=NO|grep -v grep|awk '{print $2}'|head|xargs kill -9
     
登陆后台数据库进一步观察会话使用情况
select event,program,count(*) from v$session group by event,program order by 3;

EVENT                                    PROGRAM                          COUNT(*)
---------------------------------------- ------------------------------ ----------
DIAG idle wait                            oracle@lf1  (DIAG)                       1
class slave wait                          oracle@lf1  (GCR0)                       1
buffer busy waits                         oracle@lf1  (J004)                       1
library cache lock                 OMS                              59

从结果输出发现大量的会话处于library cache lock等待事件中,接下来 定位阻塞者是哪个会话
select event,p1raw,p2 from v$session where event ='library cache lock';
EVENT                P1RAW                    P2
-------------------- ---------------- ----------
library cache lock   000000007C384160 1737585656
library cache lock   000000007C384160 1737462296
library cache lock   000000007C384160 1737338936
library cache lock   000000007C384160 1737215576
library cache lock   000000007C384160 1737092216
library cache lock   000000007C384160 1736968856
。。。。

select event from v$session where saddr=( select kgllkses from x$kgllk where KGLLKhdl ='000000007C384160' and KGLLKMOD>0 );
EVENT
----------------------------------------------------------------
log file switch (archiving needed)
   
至此已经看到了导致ORA-00020错误的源头,归档满了,删除多余日志问题解决!
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
ORA-01722: invalid number错误是Oracle数据库中的一个常见错误,它表示在执行SQL语句时,尝试将一个无效的数字转换为数字类型。这个错误通常发生在以下几种情况下: 1. 数据类型不匹配:当尝试将一个非数字类型的值转换为数字类型时,就会出现这个错误。比如在关联表时,如果关联的值和类型不一致,Oracle会尝试将其隐式转换为数字类型,如果无法转换,就会报错。 2. 数据格式错误:当尝试将一个无效的数字格式转换为数字类型时,也会出现这个错误。比如在查询中使用了to_number函数,但是传入的参数不符合数字格式要求。 解决这个错误的方法有以下几种: 1. 检查数据类型:确保在进行数据转换时,源数据的类型和目标数据类型是匹配的。如果不匹配,可以考虑使用合适的转换函数或者修改数据类型。 2. 检查数据格式:如果使用了to_number函数或者其他需要数字格式的函数,确保传入的参数符合数字格式要求。可以使用合适的格式化函数或者修改数据格式。 3. 检查数据完整性:如果在关联表时出现了这个错误,可以检查关联的列中是否包含非数字类型的值。如果有,可以考虑修改数据或者使用合适的转换函数。 总之,ORA-01722: invalid number错误通常是由于数据类型不匹配或者数据格式错误导致的。通过检查数据类型、数据格式和数据完整性,可以解决这个错误。\[1\]\[2\]\[3\] #### 引用[.reference_title] - *1* *2* [【问题处理】ORA-01722: invalid number (类型隐式转换)](https://blog.csdn.net/haiross/article/details/49153317)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [sql报错处理:ora-01722:invalid number](https://blog.csdn.net/qq_36703810/article/details/130172990)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值