oracle10g m000,oracle僵死Process m000 died,J000 died

今天无意执行了一个脚本,后来发现kill 了j000和m000的进程,oracle被僵死在那里,j000是job的守护进程,m000是MMON进程启动的从属平行进程,都是轻量级但不容忽视!

[oracle@orazhang bdump]$ echo $ORACLE_SID

orcl

[oracle@orazhang bdump]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 6月 15 14:04:33 2011

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

Connected to an idle instance.

idle> exit

Disconnected

[oracle@orazhang bdump]$ ps -ef|grep ora_

oracle    3453     1  0 Jun13 ?        00:00:00 ora_pmon_orcl

oracle    3455     1  0 Jun13 ?        00:00:00 ora_psp0_orcl

oracle    3457     1  0 Jun13 ?        00:00:00 ora_mman_orcl

oracle    3459     1  0 Jun13 ?        00:00:01 ora_dbw0_orcl

oracle    3461     1  0 Jun13 ?        00:00:02 ora_lgwr_orcl

oracle    3463     1  0 Jun13 ?        00:00:00 ora_ckpt_orcl

oracle    3465     1  0 Jun13 ?        00:00:03 ora_smon_orcl

oracle    3467     1  0 Jun13 ?        00:00:00 ora_reco_orcl

oracle    3469     1  0 Jun13 ?        00:00:01 ora_cjq0_orcl

oracle    3471     1  0 Jun13 ?        00:00:00 ora_mmon_orcl

oracle    3473     1  0 Jun13 ?        00:00:00 ora_mmnl_orcl

oracle    3475     1  0 Jun13 ?        00:00:00 ora_d000_orcl

oracle    3477     1  0 Jun13 ?        00:00:00 ora_s000_orcl

oracle    3485     1  0 Jun13 ?        00:00:00 ora_arc0_orcl

oracle    3487     1  0 Jun13 ?        00:00:00 ora_arc1_orcl

oracle    3491     1  0 Jun13 ?        00:00:00 ora_qmnc_orcl

oracle    3673     1  0 Jun13 ?        00:00:00 ora_q000_orcl

oracle    3677     1  0 Jun13 ?        00:00:00 ora_q001_orcl

oracle   29600 29164  0 14:04 pts/0    00:00:00 grep ora_

[oracle@orazhang bdump]$ tail alert_orcl.log -n 100

Thread 1 advanced to log sequence 20

Thread 1 opened at log sequence 20

Current log# 5 seq# 20 mem# 0: /u01/app/oracle/oradata/ORCL/onlinelog/redo5.log

Current log# 5 seq# 20 mem# 1: /u01/app/oracle/flash_recovery_area/ORCL/onlinelog/redo5.log

.........省略......

Wed Jun 15 13:59:57 2011

Process J000 died, see its trace file

Wed Jun 15 13:59:57 2011

kkjcre1p: unable to spawn jobq slave process

Wed Jun 15 13:59:57 2011

Errors in file /u01/app/oracle/admin/orcl/bdump/orcl_cjq0_3469.trc:

Process J000 died, see its trace file

Wed Jun 15 14:00:03 2011

kkjcre1p: unable to spawn jobq slave process

Wed Jun 15 14:00:03 2011

Errors in file /u01/app/oracle/admin/orcl/bdump/orcl_cjq0_3469.trc:

Wed Jun 15 14:00:55 2011

Process m000 died, see its trace file

Wed Jun 15 14:00:55 2011

ksvcreate: Process(m000) creation failed

Wed Jun 15 14:01:39 2011

Process J000 died, see its trace file

Wed Jun 15 14:01:39 2011

kkjcre1p: unable to spawn jobq slave process

Wed Jun 15 14:01:39 2011

Errors in file /u01/app/oracle/admin/orcl/bdump/orcl_cjq0_3469.trc:

Wed Jun 15 14:01:56 2011

Process m000 died, see its trace file

Wed Jun 15 14:01:56 2011

ksvcreate: Process(m000) creation failed

Wed Jun 15 14:02:57 2011

Process m000 died, see its trace file

Wed Jun 15 14:02:57 2011

ksvcreate: Process(m000) creation failed

Wed Jun 15 14:03:58 2011

Process m000 died, see its trace file

Wed Jun 15 14:03:58 2011

ksvcreate: Process(m000) creation failed

Wed Jun 15 14:04:59 2011

Process m000 died, see its trace file

Wed Jun 15 14:04:59 2011

ksvcreate: Process(m000) creation failed

[oracle@orazhang bdump]$

[oracle@orazhang bdump]$ cat /u01/app/oracle/admin/orcl/bdump/orcl_cjq0_3469.trc

/u01/app/oracle/admin/orcl/bdump/orcl_cjq0_3469.trc

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1

System name:    Linux

Node name:      orazhang

Release:        2.6.18-53.el5xen

Version:        #1 SMP Wed Oct 10 17:06:12 EDT 2007

Machine:        i686

Instance name: orcl

Redo thread mounted by this instance: 1

Oracle process number: 10

Unix process pid: 3469, image: oracle@orazhang (CJQ0)

*** SERVICE NAME:(SYS$BACKGROUND) 2011-06-15 13:59:57.946

*** SESSION ID:(162.1) 2011-06-15 13:59:57.946

*** 2011-06-15 13:59:57.946

Process J000 is dead (pid=29552, state=3):

*** 2011-06-15 14:00:03.954

Process J000 is dead (pid=29556, state=3):

*** 2011-06-15 14:01:39.960

Process J000 is dead (pid=29574, state=3):

[oracle@orazhang bdump]$ ipcs -sa

------ Shared Memory Segments --------

key        shmid      owner      perms      bytes      nattch     status

0x00000000 0          oracle    640        1258295296 18         dest

0x00000000 32769      oracle    600        393216     2          dest

0x00000000 65538      oracle    600        393216     2          dest

0x00000000 98307      oracle    600        393216     2          dest

0x00000000 131076     oracle    600        393216     2          dest

0x00000000 163845     oracle    600        393216     2          dest

0x00000000 196614     oracle    600        393216     2          dest

0x00000000 229383     oracle    600        393216     2          dest

0x00000000 262152     oracle    600        393216     2          dest

0x00000000 294921     oracle    600        393216     2          dest

0x00000000 393226     oracle    600        393216     2          dest

0x00000000 360459     oracle    600        393216     2          dest

------ Semaphore Arrays --------

key        semid      owner      perms      nsems

0xf5d4b884 98304      oracle    640        154

------ Message Queues --------

key        msqid      owner      perms      used-bytes   messages

[root@orazhang ~]# killall -9 -r "ora_*"

[root@orazhang ~]# ps -ef|grep ora_

root     29973 29760  0 15:06 pts/0    00:00:00 grep ora_

[root@orazhang ~]# ipcs -as

------ Shared Memory Segments --------

key        shmid      owner      perms      bytes      nattch     status

0x00000000 32769      oracle    600        393216     2          dest

0x00000000 65538      oracle    600        393216     2          dest

0x00000000 98307      oracle    600        393216     2          dest

0x00000000 131076     oracle    600        393216     2          dest

0x00000000 163845     oracle    600        393216     2          dest

0x00000000 196614     oracle    600        393216     2          dest

0x00000000 229383     oracle    600        393216     2          dest

0x00000000 262152     oracle    600        393216     2          dest

0x00000000 294921     oracle    600        393216     2          dest

0x00000000 393226     oracle    600        393216     2          dest

0x00000000 360459     oracle    600        393216     2          dest

------ Semaphore Arrays --------

key        semid      owner      perms      nsems

0xf5d4b884 98304      oracle    640        154

------ Message Queues --------

key        msqid      owner      perms      used-bytes   messages

sql > startup

ORACLE instance started.

Total System Global Area 1258291200 bytes

Fixed Size                  1219184 bytes

Variable Size             385877392 bytes

Database Buffers          855638016 bytes

Redo Buffers               15556608 bytes

Database mounted.

Database opened.

打赏

8732971891f4ba05583674ca6b8145ac.png微信扫一扫,打赏作者吧~

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 在 Linux 中,进程可能是僵尸进程或僵死进程。 僵尸进程是一种已经结束运行但还没有被父进程回收的进程。当父进程没有调用 wait 或 waitpid 函数来回收子进程的结束状态时,子进程就会成为僵尸进程。僵尸进程在系统中仍占用一些资源,但是它的代码已经不会再被执行。 僵死进程是一种无法再终止的进程。当一个进程的父进程已经终止,而这个进程没有被重新分配给其他的父进程时,它就成为了僵死进程。僵死进程不会占用系统资源,但是它仍然占用着进程表中的一个项目。 ### 回答2: 在Linux中,进程既可以是僵尸进程(zombie process)也可以是僵死进程(dead process)。 僵尸进程是指一个子进程已经结束运行,但是父进程还没有处理该子进程的终止状态信息。这种状态下的子进程会被内核保留,并在进程表中记录一段时间。僵尸进程不占用系统的资源,但是会占用一个进程ID(PID),因此如果有大量僵尸进程存在,可能会导致系统PID耗尽。处理僵尸进程的常见方法是父进程调用wait或waitpid函数来处理子进程的状态,释放其资源,并将其从进程表中删除。 僵死进程是指一个进程已经终止运行并且无法正常释放资源。这可能是因为进程在结束时未正确释放资源的问题,或者由于系统故障导致进程被异常终止。僵死进程会一直占用系统的资源,包括内存和文件描述符等。要解决僵死进程,可以通过重启系统来清除它们,或者通过手动终止占用资源的进程来释放资源。 因此,Linux中既存在僵尸进程又存在僵死进程。僵尸进程是指子进程结束但父进程未处理的进程状态信息,而僵死进程是指已经结束但无法正常释放资源的进程。处理僵尸进程需要父进程主动回收子进程,而对于僵死进程通常需要进行系统重启或手动终止进程来解决。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值