我在运行调用 Java 代码的 PL/SQL 代码时遇到问题,这是我的 PL/SQL 代码
create or replace function hello return varchar2 as language java name 'Hello.hello() return java.lang.String';
declare
batman varchar2(5000) := hello;
begin
DBMS_output.put_line('batman ' || batman);
end;
我的代码只是一个名为“hello”的方法,返回一个字符串,我使用 javac Hello.java 编译 java 文件,但它继续返回相同的错误。
完整的错误堆栈:
ORA-29538: Java não instalado
ORA-06512: em "COTRIJAL_TESTE.HELLO", line 1
ORA-06512: em line 2
29538. 00000 - "Java not installed"
*Cause: An attempt was made to use a Java command when Java is not installed.
*Action: Install Java, or do not use the command.