Hello,
After applying PSU to 12.1.0.2.0, the application gets following error.
[Error] Execution (1: 1): ORA-29548: Java system class reported: release of classes.bin in the database does not match that of the oracle executable
ORA-06512: at “MDSYS.SDO_JAVA_STP”, line 370
ORA-06512: at “MDSYS.SDO_UTIL”, line 3188
ORA-06512: at “MDSYS.SDO_UTIL”, line 3211
When I checked the alert log file, it puts following messages.
joxcsys: release mismatch 12.1.0.2.160719 1.6 in database (classes.bin) vs 12.1.0.2.0 1.7 in executable
I checked any INVALID objects. But everything was OK. I did a small test about Java.
SQL> select dbms_java.get_jdk_version() from dual
*
ERROR at line 1:
ORA-29548: Java system class reported: release of classes.bin in the database
does not match that of the oracle executable
There was a problem with my java. Don’t worry about that there is a solution. Please run below script as sysdba.
SQL> @?/javavm/install/update_javavm_db.sql
SQL> SET FEEDBACK 1
SQL> SET NUMWIDTH 10
SQL> SET LINESIZE 80
SQL> SET TRIMSPOOL ON
SQL> SET TAB OFF
SQL> SET PAGESIZE 100
SQL>
SQL> alter session set “_ORACLE_SCRIPT”=true;Session altered.
SQL>
SQL> — If Java is installed, do CJS.
SQL>
SQL> — If CJS can deal with the SROs inconsistent with the new JDK,
SQL> — the drop_sros() call here can be removed.
SQL> call initjvmaux.drop_sros();Call completed.
SQL>
SQL> create or replace java system;
2 /Java created.
SQL>
SQL> update dependency$
2 set p_timestamp=(select stime from obj$ where obj#=p_obj#)
3 where (select stime from obj$ where obj#=p_obj#)!=p_timestamp and
4 (select type# from obj$ where obj#=p_obj#)=29 and
5 (select owner# from obj$ where obj#=p_obj#)=0;0 rows updated.
SQL>
SQL> commit;Commit complete.
SQL>
SQL> alter session set “_ORACLE_SCRIPT”=false;Session altered.
SQL>
Now, let’s do a test again.
SQL> select dbms_java.get_jdk_version() from dual;
DBMS_JAVA.GET_JDK_VERSION()
——————————————————————————–
1.7.0_511 row selected.
SQL> select dbms_java.longname(‘TEST’) from dual
2 ;DBMS_JAVA.LONGNAME(‘TEST’)
——————————————————————————–
TEST1 row selected.
SQL>
Hımm. It looks good. My application is also running.
Hi! I had a similiar problem after applying last January Oracle patches:
ORA-29548: Java system class reported: release of Java system classes in the
database (12.1.0.2.171017 1.6) does not match that of the oracle executable
(12.1.0.2.180116 1.6)
And after running script you mention problem was solved, so thank you very much. 🙂
Regards,
Angel
Hi, It is helpful. have same issue which may helpful here:
Oracle error -29548: ORA-29548 Solution (FNDCPASS Error)
Regards,
I encountered with similar problem, but this script solved my problem! Thank you very much!