联系:手机/微信(+86 17813235971) QQ(107644445)
标题:joxcsys: release mismatch, 19.0.0.0.0 1.8 in database (classes.bin)
作者:惜分飞©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]
expdp导出数据报ORA-39127 ORA-29548错误
ORA-39127: 调用 BEGIN :1 := SYS.DBMS_JAVA.START_EXPORT(:2, :3, :4, :5, :6, :7, :8, :9 ,:10); END; 时发生意外错误 ORA-29548: Java 系统类报告: release of Java system classes in the database (19.0.0.0.0 1.8) does not match that of the o racle executable (19.3.0.0.0 1.8) ORA-06512: 在 "SYS.DBMS_JAVA", line 520 ORA-06512: 在 line 1 ORA-06512: 在 "SYS.DBMS_JAVA", line 520 ORA-06512: 在 line 1 ORA-06512: 在 "SYS.DBMS_METADATA", line 11827 ORA-06512: 在 "SYS.DBMS_SYS_ERROR", line 95
对应的alert日志报错
2025-08-14T11:37:10.886745+08:00 joxcsys: release mismatch, 19.0.0.0.0 1.8 in database (classes.bin) vs 19.3.0.0.0 1.8 in executable pid 2624 cid 0 joxcsys: release mismatch, 19.0.0.0.0 1.8 in database (classes.bin) vs 19.3.0.0.0 1.8 in executable pid 2624 cid 0 2025-08-14T11:37:11.379211+08:00 Resize operation completed for file# 68, old size 83776K, new size 84800K Resize operation completed for file# 68, old size 84800K, new size 85824K 2025-08-14T11:37:12.333138+08:00 joxcsys: release mismatch, 19.0.0.0.0 1.8 in database (classes.bin) vs 19.3.0.0.0 1.8 in executable pid 2624 cid 0 joxcsys: release mismatch, 19.0.0.0.0 1.8 in database (classes.bin) vs 19.3.0.0.0 1.8 in executable pid 2624 cid 0 joxcsys: release mismatch, 19.0.0.0.0 1.8 in database (classes.bin) vs 19.3.0.0.0 1.8 in executable pid 2624 cid 0 joxcsys: release mismatch, 19.0.0.0.0 1.8 in database (classes.bin) vs 19.3.0.0.0 1.8 in executable pid 2624 cid 0
数据库版本(19.3版本,没有打任何其他patch)
C:\Users\Administrator>sqlplus / as sysdba SQL*Plus: Release 19.0.0.0.0 - Production on 星期四 8月 14 11:17:08 2025 Version 19.3.0.0.0 Copyright (c) 1982, 2019, Oracle. All rights reserved. 连接到: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0
出现这个错误一般是由于Oracle JVM组件和Oracle JVM库不同步导致,对于这个初始版本(没有打任何patch),理论上不应该发生该问题,既然已经发生了,那就解决问题
SQL> startup upgrade; ORACLE 例程已经启动。 Total System Global Area 1.5435E+10 bytes Fixed Size 16124312 bytes Variable Size 4563402752 bytes Database Buffers 1.0838E+10 bytes Redo Buffers 17428480 bytes 数据库装载完毕。 数据库已经打开。 SQL> alter system set java_jit_enabled = FALSE; 系统已更改。 SQL> alter system set "_system_trig_enabled"=FALSE; 系统已更改。 SQL> alter system set JOB_QUEUE_PROCESSES=0; 系统已更改。 SQL> create or replace java system 2 / Java 已创建。 SQL> alter system set java_jit_enabled = true; 系统已更改。 SQL> alter system set "_system_trig_enabled"=TRUE; 系统已更改。 SQL> alter system set JOB_QUEUE_PROCESSES=100; 系统已更改。 SQL> @?/rdbms/admin/utlrp.sql 会话已更改。 TIMESTAMP -------------------------------------------------------------------------------- COMP_TIMESTAMP UTLRP_BGN 2025-08-14 12:42:59 …………………… PL/SQL 过程已成功完成。 SQL> SELECT dbms_java.longname('TEST') long_name FROM dual; LONG_NAME -------------------------------------------------------------------------------- TEST SQL> shutdown immediate; 数据库已经关闭。 已经卸载数据库。 ORACLE 例程已经关闭。 SQL> startup ORACLE 例程已经启动。 Total System Global Area 1.5435E+10 bytes Fixed Size 16124312 bytes Variable Size 4563402752 bytes Database Buffers 1.0838E+10 bytes Redo Buffers 17428480 bytes 数据库装载完毕。 数据库已经打开。
如果有其他情况,具体参考:ORA-29548 Error While Running Java Code or Datapatch In Database (Doc ID 2934546.1)文档