我的编程空间,编程开发者的网络收藏夹
学习永远不晚

Oracle报错ORA-00031: session marked for kill的处理方法

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

Oracle报错ORA-00031: session marked for kill的处理方法

这篇文章给大家介绍Oracle报错ORA-00031: session marked for kill的处理方法,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

一些ORACLE中的进程被杀掉后,状态被置为"killed",但是锁定的资源很长时间不释放,有时实在没办法,只好重启数据库。现在提供一种方法解决这种问题,那就是在ORACLE中杀不掉的,在OS一级再杀。

1.下面的语句用来查询哪些对象被锁:

select object_name,machine,s.sid,s.serial#
from v$locked_object l,dba_objects o ,v$session s
where l.object_id = o.object_id and l.session_id=s.sid;

2.下面的语句用来杀死一个进程:
alter system kill session '24,111'; (其中24,111分别是上面查询出的sid,serial#)

【注】以上两步,可以通过Oracle的管理控制台来执行。

3.如果利用上面的命令杀死一个进程后,进程状态被置为"killed",但是锁定的资源很长时间没有被释放,那么可以在os一级再杀死相应的进程(线程),首先执行下面的语句获得进程(线程)号:
select spid, osuser, s.program
from v$session s,v$process p
where s.paddr=p.addr and s.sid=24 (24是上面的sid)

4.在OS上杀死这个进程(线程):
1)在unix上,用root身份执行命令:
#kill -9 12345(即第3步查询出的spid)
2)在windows(unix也适用)用orakill杀死线程,orakill是oracle提供的一个可执行命令,语法为:
orakill sid thread
其中:
sid:表示要杀死的进程属于的实例名
thread:是要杀掉的线程号,即第3步查询出的spid。
例:c:>orakill orcl 12345


ORA-00031: session marked for kill


Cause: The session specified in an ALTER SYSTEM KILL SESSION command cannot be killed immediately (because it is rolling back or blocked on a network operation), but it has been marked for kill. This means it will be killed as soon as possible after its current uninterruptible operation is done.

Action: No action is required for the session to be killed, but further executions of the ALTER SYSTEM KILL SESSION command on this session may cause the session to be killed sooner.

 select t.object_name,t.argument_name,t.data_type,t.in_out from all_arguments t where t.owner='SATGE' and t.object_name='SP_TB_SYS_DROP_PART_CFG';

kill -9 12345

关于Oracle报错ORA-00031: session marked for kill的处理方法就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

Oracle报错ORA-00031: session marked for kill的处理方法

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

ORA-00031: session marked for kill ORACLE 报错 故障修复 远程处理

文档解释ORA-00031: session marked for killCause: The session specified in an ALTER SYSTEM KILL SESSION command cannot be
ORA-00031: session marked for kill ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-00027: cannot kill current session ORACLE 报错 故障修复 远程处理

文档解释ORA-00027: cannot kill current sessionCause: Attempted to use ALTER SYSTEM KILL SESSION to kill the current
ORA-00027: cannot kill current session ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-25353: branch marked for deletion ORACLE 报错 故障修复 远程处理

文档解释ORA-25353: branch marked for deletionCause: The branch specified cannot be killed immediately because another
ORA-25353: branch marked for deletion ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-31493: could not prepare session for LogMiner session ORACLE 报错 故障修复 远程处理

文档解释ORA-31493: could not prepare session for LogMiner sessionCause: Failure during prepare session for a LogMiner
ORA-31493: could not prepare session for LogMiner session ORACLE 报错 故障修复 远程处理
2023-11-04

ORA-14079: illegal option for a partition marked Index Unusable ORACLE 报错 故障修复 远程处理

文档解释ORA-14079: illegal option for a partition marked Index UnusableCause: ALTER INDEX MODIFY PARTITION statement
ORA-14079: illegal option for a partition marked Index Unusable ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-31492: could not set session parameters for LogMiner session ORACLE 报错 故障修复 远程处理

文档解释ORA-31492: could not set session parameters for LogMiner sessionCause: Failure during set parameters for a LogMiner
ORA-31492: could not set session parameters for LogMiner session ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-21700: object does not exist or is marked for delete ORACLE 报错 故障修复 远程处理

文档解释ORA-21700: object does not exist or is marked for deleteCause: User attempted to perform an inappropriate operation
ORA-21700: object does not exist or is marked for delete ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-02248: invalid option for ALTER SESSION ORACLE 报错 故障修复 远程处理

文档解释ORA-02248: invalid option for ALTER SESSIONCause: Obvious.Action: see SQL Language Manual for legal
ORA-02248: invalid option for ALTER SESSION ORACLE 报错 故障修复 远程处理
2023-11-04

ORA-16225: Missing LogMiner session name for Streams ORACLE 报错 故障修复 远程处理

文档解释ORA-16225: Missing LogMiner session name for StreamsCause: An attempt was made to register the log file for Streams
ORA-16225: Missing LogMiner session name for Streams ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-02247: no option specified for ALTER SESSION ORACLE 报错 故障修复 远程处理

文档解释ORA-02247: no option specified for ALTER SESSIONCause: The option SET EVENTS was expected, but not found, following
ORA-02247: no option specified for ALTER SESSION ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-12576: TNS:handoff not supported for this session ORACLE 报错 故障修复 远程处理

文档解释ORA-12576: TNS:handoff not supported for this sessionCause: Handoff of a established session was attempted which
ORA-12576: TNS:handoff not supported for this session ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-28035: Cannot Get Session Key for Authentication ORACLE 报错 故障修复 远程处理

文档解释ORA-28035: Cannot Get Session Key for AuthenticationCause: Client and server cannot negotiate shared secret during
ORA-28035: Cannot Get Session Key for Authentication ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-16080: invalid LogMiner session string for APPLY ORACLE 报错 故障修复 远程处理

文档解释ORA-16080: invalid LogMiner session string for APPLYCause: Logical standby apply engine was started with an invalid
ORA-16080: invalid LogMiner session string for APPLY ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-29790: Cannot change user session parameters for a non-user session ORACLE 报错 故障修复 远程处理

文档解释ORA-29790: Cannot change user session parameters for a non-user sessionCause: An attempt was made to change user
ORA-29790: Cannot change user session parameters for a non-user session ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-28037: Cannot Get Session Key for RACF Authentication ORACLE 报错 故障修复 远程处理

文档解释ORA-28037: Cannot Get Session Key for RACF AuthenticationCause: Client and server cannot negotiate shared secret
ORA-28037: Cannot Get Session Key for RACF Authentication ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-26525: session connection attempt failed for string (@string) ORACLE 报错 故障修复 远程处理

文档解释ORA-26525: session connection attempt failed for string (@string)Cause: A connection could not be established to
ORA-26525: session connection attempt failed for string (@string) ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-01373: insufficient memory for staging persistent LogMiner session ORACLE 报错 故障修复 远程处理

文档解释ORA-01373: insufficient memory for staging persistent LogMiner sessionCause: The maximum number of concurrent
ORA-01373: insufficient memory for staging persistent LogMiner session ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-01718: BY ACCESS | SESSION clause not allowed for NOAUDIT ORACLE 报错 故障修复 远程处理

文档解释ORA-01718: BY ACCESS | SESSION clause not allowed for NOAUDITCause: Attempt to specify BY ACCESS | SESSION in a
ORA-01718: BY ACCESS | SESSION clause not allowed for NOAUDIT ORACLE 报错 故障修复 远程处理
2023-11-04

编程热搜

目录