Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ORA-20031: Java Development Disabled in Oracle database

I am getting below exception. How to enable java development in oracle?

[java] Exception in thread "main" java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
 [java] ORA-20031: Java Development Disabled
 [java] ORA-06512: at line 4
 [java]     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)
 [java]     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
 [java]     at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1059)
 [java]     at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:522)
 [java]     at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)
 [java]     at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:587)
 [java]     at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java 
like image 483
akash Avatar asked Dec 05 '25 11:12

akash


1 Answers

This is an artefact of an Oracle security patch. There is a trigger which prevents the compilation of Java objects in the database. If you really need to do this ask your DBAs to run dbms_java_dev.enable(). Find out more

like image 177
APC Avatar answered Dec 08 '25 01:12

APC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!