Skip to Main Content
  • Questions
  • Datapump job stuck on "DFS lock handle" when including data

Breadcrumb

Question and Answer

Chris Saxon

Thanks for the question, Claus.

Asked: March 29, 2016 - 3:18 pm UTC

Last updated: April 01, 2016 - 1:24 am UTC

Version: 11.2.0.4

Viewed 1000+ times

You Asked

Hi guys.

I have this problem that my datapump job gets stuck on waiting for "DFS lock handle".

I want to clone a number of schemas using a procedure implemented in PL/SQL using dbms_datapump.

I use:

DBMS_DATAPUMP.Data_Filter(job_handle, 'INCLUDE_ROWS', 1); -- set to 1 to include data, 0 to exclude data

but the job just hangs.

If I set INCLUDE_ROWS to 0:

DBMS_DATAPUMP.Data_Filter(job_handle, 'INCLUDE_ROWS', 0); -- set to 1 to include data, 0 to exclude data

the job completes without any problem in no time.

Any idea what I am doing wrong?

Thanks in advance.

Yours sincerely

Claus Kjaergaard


and Connor said...

Check out this blog post by Riyaj.

https://orainternals.wordpress.com/2011/11/08/troubleshooting-dfs-lock-handle-waits/

which shows you how to get more detail on what *kind* of locking issue you're having.

But generally, if datapump is getting totally stuck (ie, not progressing in any way) then you'll need to get in touch with Support, because that's typically a sign of a bug.

If you can, post the lock type back here as a review and we'll see what else we can find out.

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Update

Claus Kjaergaard, March 31, 2016 - 7:27 pm UTC

Hi Connor,

Thanks for the answer.

I have an update for this issue. I realised that the problem was with a table having a column of type BLOB. Looking through the documentation I did not find any reason why it should not work, so I tried different approaches. I found that the database link I was using caused the problem, - it was pointing to the local database, so source and destination were the same. By taking away the database link, the copying worked. (Not via datapump but using "insert into ... select from ...").

Anyway, there still may be a bug there somewhere, but I now have a workaround.

Thanks again,

Claus
Chris Saxon
April 01, 2016 - 1:24 am UTC

Thanks for getting back to us. Glad you got it solved.

More to Explore

Data Pump

All of the database utilities including Data Pump are explained in the Utilities guide.