If the java component is corrupted, then while executing java related packages, you may face below error.
select dbms_java.longname('TEST') from dual; select dbms_java.longname('TEST') from dual * ERROR at line 1: ORA-29516: Aurora assertion failure: Assertion failure at eox.c:359 Uncaught exception Root of all Java exceptions: java.lang.UnsatisfiedLinkError sun.net.PortConfig.getLower0 ORA-06512: at "SYS.DBMS_JAVA", line 139
Solution:
Follow below steps:
SQL>execute sys.dbms_registry.loaded('JAVAVM'); PL/SQL procedure successfully completed. SQL>execute sys.dbms_registry.valid('JAVAVM'); PL/SQL procedure successfully completed. SQL> alter system set "_system_trig_enabled" = false scope=memory; alter system set java_jit_enabled=false; System altered. System altered. SQL>create or replace java system / Java created. Now check : SQL> select dbms_java.longname('TEST') from dual; DBMS_JAVA.LONGNAME('TEST') --------------------------------------------------- TEST
SEE ALSO:
- How to install oracle 12c on Linux
- Oracle 12c Multitenent Architecture
- How to create a multi tenant database in oracle 12c
- Upgrade database from 11g to 12c manually
- Upgrade database from 11g to 12C using DBUA
- Upgrade database using OEM 12C cloud control
- How to rename a pluggable database ( PDB)
- How to clone a pluggable database for existing PDB
- How to create a pluggable database in oracle 12c
- How to unplug and plug in pluggable database in oracle 12c
- Convert non CDB database to PDB database in oracle 12c
- How to open the PDBS automatically when CDB restarts
- Cross platform migration using transportable tablespace 12c with zero downtime
- Rolling forward standby database when archives missing in primary in 12c
- Restore missing datafile in standby database oracle 12c
- GRANT READ PRIVILEGE – Oracle 12c new feature
- How to apply JVM patch in oracle 12c database
- Tablespace monitoring in oracle 12c multitenant database.
- Rman backup in multitenant database oracle 12c
- ENABLE_DDL_LOGGING in oracle 12c
- truncate table with cascade feature in oracle 12c
- Invisible column in oracle 12c
- LOGTIME=ALL parameter in datapump of oracle 12c
- views_as_tables parameter in datapump of oracle 12c
- How to Import data with nologgin option in oracle 12c
- How to archive table rows in oracle 12c
- how to use DBMS_PRIVILEGE_CAPTURE to capture privs in oracle 12c
- RMAN active cloning in Oracle 12c
- Database Proactive Bundle Patching
Thanks very much. This got me out of schtuck.
I had to change some of the quote marks. Apart from that, the statements worked fine.
Thanks Ed 🙂 , I have fixed those quote issues also
Regards
Admin
Thanks you very much ,it is working for me …
Thanks for the solution, it worked great!!
Thanks for this, it help with java, but please be aware that if system triggers were enabled before this script, those have to be enabled again at the end: alter system set “_system_trig_enabled” = true scope=memory;
Thanks for this observation, i will update the article.
This solved my issue, thank you very much…