Impdp gets stuck, DW waits for library cache lock, impdplibrary

Source: Internet
Author: User

Impdp gets stuck, DW waits for library cache lock, impdplibrary
My colleagues reported that impdp was stuck in the SCHEMA_REPORT/TYPE/TYPE_SPEC step and did not respond after more than one hour,
Check the v $ session:
Select program, sid, event, blocking_session from gv $ session where program like '% DW % ';
Result:
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. Check the impdp parameter before:
Impdp u/p dumpfile = f. dmp schemas = a remap_schema = a: B remap_tablespace = a: B TABLE_EXISTS_ACTION = REPLACE transform = oid: n
Originally, it was terminated in the middle of impdp, so the TABLE_EXISTS_ACTION = REPLACE option was used in impdp again, but the problem was that when a TYPE was created,
Create or replace type "O_INDO" as OBJECT
(
CODE_ID varchar2 (400)
);
Another TYPE O_INDO_TABLE depends on this O_INDO, so it cannot replace this O_INDO. All DW sessions are waiting for the library cache lock, and the session blocks itself, forming a deadlock.


Solution:
Drop schema B and execute impdp again.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.