create or replace and compile java source named helloworldaspublic class helloworld{ public static void main(String[] args){ System.out.println("hello"); }}/ 2、创建相应的proc Copy codecreate or replace procedure helloworld as language java name 'helloworld.main(java.lang.String[])'; / 3、调用dbms_java.set_output SQL> set serveroutput on size 5000SQL> call dbms_java.set_output(5000); 4、调用过程显示结果 sql>execute helloworld;sql>call helloworld();