IMPDP when stuck, DW waits for library cache lock

Source: Internet
Author: User

Colleagues reflect IMPDP when the Schema_report/type/type_spec step stuck, 1 hours later also did not respond,
Check the v$session:
Select Program,sid, event,blocking_session from gv$session where program like '%dw% ';
The result is:
Dw01,98,library Cache lock,213
Dw03,13,library Cache lock,213
Dw02,36,library Cache lock,213
Dw00,213,library Cache lock,213
All DW processes are waiting for the library cache lock to see the previous IMPDP parameters:
IMPDP u/p dumpfile=f.dmp schemas=a remap_schema=a:b remap_tablespace=a:b table_exists_action=replace transform=oid:n
It turns out that there was a IMPDP when it was terminated halfway, so the option to use Table_exists_action=replace when IMPDP again, but the problem is that when you create a type,
CREATE OR REPLACE TYPE "O_indo" as OBJECT
(
code_id VARCHAR2 (400)
);
The other type o_indo_table relies on this o_indo, so it is impossible to replace the O_indo, all the DW sessions are waiting for the library cache lock, and the session blocks itself, forming a deadlock.


Workaround:
Drop schema B and re-execute IMPDP.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

IMPDP when stuck, DW waits for library cache lock

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.