Oracle stored procedure compilation card-dead Solution

Source: Internet
Author: User

Here's how to fix it:

1: Check V$db_object_cache

SELECT * from V$db_object_cache WHERE name= ' cux_oe_order_rpt_pkg ' and locks!= ' 0 ';

Note: Cux_oe_order_rpt_pkg is the name of the stored procedure.

Discover locks=2

2: Find the SID value by object

Select/*+ rule*/SID from v$access WHERE object= ' cux_oe_order_rpt_pkg ';

Note: Cux_oe_order_rpt_pkg is the name of the stored procedure.

3: Check sid,serial#

SELECT sid,serial#,paddr from v$session WHERE sid= ' SID ' just found;

4:alter system kill session ' SID value, serial# value ' immediate;

Oracle stored procedure compilation card-dead Solution

Related Article

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.