当前位置:  数据库>oracle

Oracle ORA-29538: Java not installed

    来源: 互联网  发布时间:2017-04-17

    本文导语: 扩容库是用脚本手工建库的,在跑一研发提供的存储过程时,抛出如下的错误: 下面记录一下整个过程:SQL> select * from v$version; BANNER--------------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Releas...

扩容库是用脚本手工建库的,在跑一研发提供的存储过程时,抛出如下的错误:

下面记录一下整个过程:
SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production





SQL> select * from v$option t where t.PARAMETER='Java';

PARAMETER        VALUE
---------------------------------------------------------------- ----------------------------------------------------------------
Java         TRUE

SQL> select distinct owner,name from dba_source where lower(NAME)='dbms_java';

OWNER          NAME
------------------------------ ------------------------------
SYS          DBMS_JAVA

SQL> select owner, status, count(*) from all_objects where object_type like '%JAVA%' group by owner, status;

no rows selected

于是要安装JVM:
@?/javavm/install/initjvm.sql 

SQL> select owner, status, count(*) from all_objects where object_type like '%JAVA%' group by owner, status;

OWNER          STATUS   COUNT(*)
------------------------------ --------------- ----------
SYS          VALID      19662

SQL> select comp_name, version, status from dba_registry;

COMP_NAME     VERSION   STATUS
---------------------------------------- ------------------------------ ---------------
Oracle Workspace Manager   11.1.0.7.0   VALID
Oracle Database Catalog Views   11.1.0.7.0   VALID
Oracle Database Packages and Types  11.1.0.7.0   VALID





@?/xdk/admin/initxml.sql

SQL>  select owner, count(*) from all_objects where object_type like '%JAVA%' group by owner;

OWNER     COUNT(*)
------------------------------ ----------
SYS        20738


@?/rdbms/admin/catjava.sql

SQL> select owner, count(*) from all_objects where object_type like '%JAVA%' group by owner;

OWNER     COUNT(*)
------------------------------ ----------
SYS        21097

@?/rdbms/admin/catexf.sql
@?/xdk/admin/xmlja.sql
SQL> select owner, count(*) from all_objects where object_type like '%JAVA%' group by owner;

OWNER     COUNT(*)
------------------------------ ----------
EXFSYS           44
SYS        21097


 

附加:
重新安装JVM在oracle11gr1
(1)关闭数据库,然后运行如下的脚本先删除现有的JVM:
-- Start of File full_rmjvm.sql
 spool full_rmjvm.log
 set echo on
 connect / as sysdba
 startup mount
 alter system set "_system_trig_enabled" = false scope=memory;
 alter system enable restricted session;
 alter database open;
 @?/rdbms/admin/catnoexf.sql
 @?/rdbms/admin/catnojav.sql
 @?/xdk/admin/rmxml.sql
 @?/javavm/install/rmjvm.sql
 truncate table java$jvm$status;
 select * from obj$ where obj#=0 and type#=0;
 delete from obj$ where obj#=0 and type#=0;
 commit;
 select owner, count(*) from all_objects
 where object_type like '%JAVA%' group by owner;
 select obj#, name from obj$
 where type#=28 or type#=29 or type#=30 or namespace=32;
 select o1.name from obj$ o1,obj$ o2
 where o1.type#=5 and o1.owner#=1 and o1.name=o2.name and o2.type#=29;
 shutdown immediate
 set echo off
 spool off
 exit
 -- End of File full_rmjvm.sql
说明:这一步可能会引发一些bug,请慎用!





























(2)安装JVM的脚本:
-- Start of File full_jvminst.sql 
 spool full_jvminst.log; 
 set echo on 
 connect / as sysdba 
 startup mount 
 alter system set "_system_trig_enabled" = false scope=memory; 
 alter database open; 
 select obj#, name from obj$ 
 where type#=28 or type#=29 or type#=30 or namespace=32; 
 @?/javavm/install/initjvm.sql 
 select count(*), object_type from all_objects 
 where object_type like '%JAVA%' group by object_type; 
 @?/xdk/admin/initxml.sql 
 select count(*), object_type from all_objects 
 where object_type like '%JAVA%' group by object_type; 
 @?/xdk/admin/xmlja.sql 
 select count(*), object_type from all_objects 
 where object_type like '%JAVA%' group by object_type; 
 @?/rdbms/admin/catjava.sql 
 select count(*), object_type from all_objects 
 where object_type like '%JAVA%' group by object_type; 
 @?/rdbms/admin/catexf.sql 
 select count(*), object_type from all_objects 
 where object_type like '%JAVA%' group by object_type; 
 shutdown immediate 
 set echo off 
 spool off 



























(3)检查JVM及一些安装包的状态
connect / as sysdba
spool jvm_stats.log
set serveroutput on
set echo on
set pagesize500
set linesize 100
column comp_name format a40
select comp_name, version, status from dba_registry;
select owner, status, count(*) from all_objects
where object_type like '%JAVA%' group by owner, status;
select owner, object_type, count(*) from all_objects
where object_type like '%JAVA%' and status 'VALID' group by owner, object_type;
select owner, status, object_type, object_name from all_objects
where object_name like'%DBMS_JAVA%';
select owner, status, object_type, object_name from all_objects
where object_name like'%INITJVMAUX%';     
















select role from dba_roles where role like '%JAVA%';
select * from v$sgastat where POOL = 'java pool' or NAME = 'free memory';
show parameter pool_size
show parameter target


show parameter sga

select owner, object_type, status, dbms_java.longname(object_name) from all_objects
where object_type like '%JAVA%' and status 'VALID';
spool off
/




    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • Oracle 12c发布简单介绍及官方下载地址
  • 在linux下安装oracle,如何设置让oracle自动启动!也就是让oracle那个服务自动启动,不是手动的
  • oracle 11g最新版官方下载地址
  • 请问su oracle 和su - oracle有什么不同?
  • Oracle 数据库(oracle Database)Select 多表关联查询方式
  • 虚拟机装Oracle R12与Oracle10g
  • Oracle数据库(Oracle Database)体系结构及基本组成介绍
  • Oracle 数据库开发工具 Oracle SQL Developer
  • 如何设置让Oracle SQL Developer显示的时间包含时分秒
  • Oracle EBS R12 支持 Oracle Database 11g
  • Oracle 10g和Oracle 11g网格技术介绍
  • SCO unix下安装oracle,但没有光盘,请大家推荐一个oracle下载站点(unix版本的)。谢谢!!!!
  • oracle中如何把表中具有相同值列的多行数据合并成一行
  • 请问大家用oracle数据库, 用import oracle.*;下的东西么? 还是用标准库?
  • Oracle 数据库(oracle Database)性能调优技术详解
  • Linux /$ORACLE_HOME $ORACLE_HOME
  • ORACLE日期相关操作
  • docker中文入门学习手册 iis7站长之家
  • ORACLE数据库常用字段数据类型介绍
  • 请问在solaris下安装ORACLE,用root用户和用oracle用户安装有什么区别么?
  • Oracle 12c的九大最新技术特性介绍
  • 网间Oracle的连接,远程连接Oracle服务器??


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3