ORA-00031-mark the session to terminate and kill the process at the OS level

Source: Internet
Author: User
When the process is killed, the ORA-00031 is reported-the session to be terminated is marked, but the view v $ session View session still exists, but the state is changed to killed, not really killed

When the process is killed, the ORA-00031 is reported-the session to be terminated is marked, but the view v $ session View session still exists, but the state is changed to killed, not really killed

Reporting when killing a process
ORA-00031-mark the session to terminate
However, viewing the v $ session view still exists, but the status is changed to killed and is not actually killed.

In this case, we can kill the process from the operating system layer.

Steps:
1. Search for the corresponding spid Based on the paddr field in the v $ session.
Select spid from v $ process a where a. ADDR = 'paddr'

2. log on to the Oracle user of the operating system and find the corresponding process.
Ps-ef | grep spid

3. Kill the found Process
Kill-9 spid

Verify that the process is indeed killed.

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.