Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-04025: maximum allowed library object lock allocated for SYS.DIRECTORY_OBJECT

User10446974-OracleJun 10 2018 — edited Jun 12 2018

We have a requirement to move files from file system to Database. Currently all files are stored in file system and linked as BFILE in some table and we need to read those through BFILE and move to another table in BLOB Column.

I am referring below link from Oracle to do that.

https://docs.oracle.com/cd/B10501_01/appdev.920/a96591/adl12bfl.htm#879707

My code is exactly same, the only thing is I am calling this piece of code for huge number of files (around 100K) in a for loop.

It ran fine till 65,536 files. After that it throw below exception.

java.sql.SQLException: ORA-20001: ORA-04025: maximum allowed library object lock allocated for SYS.DOC_STORAGE_DIR ORA-06512: at "SYS.DBMS_LOB", line 946

Could someone please help in this and help me to understand the reason for the error and how to solve this?

Appreciate the help.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2018
Added on Jun 10 2018
10 comments
2,926 views