Skip to Main Content

Oracle Database Discussions

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!

How to load a third party java.jar file in pluggable database sys.dbms_java.loadjava ORA-65040:

Karan SamFeb 22 2021

Hi all,

I am trying load a .jar file in PDB. ( A third party file. for example OraSFTP)
ALTER SESSION SET container=pdb1;
SQL> exec sys.dbms_java.loadjava('-v -r rdbms/orasftp/SetupFiles/ora-sftp-1.2.jar');
BEGIN sys.dbms_java.loadjava('-v -r rdbms/orasftp/SetupFiles/ora-sftp-1.2.jar');
END;
ERROR at line 1:
ORA-65040: operation not allowed from within a pluggable database
ORA-06512: at "SYS.DBMS_JAVA", line 587
ORA-06512: at line 1
Note:
I could able to load this in root container. And now available at sys.ora_sftp But these are visible or accessible in PDB.

This post has been answered by Karan Sam on Apr 15 2021
Jump to Answer
Comments
Post Details
Added on Feb 22 2021
5 comments
1,360 views