Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How can I access java procedures from PL/SQL (sqlplus) in 9i
tloim_at_yahoo.com (E. Taner Tumer) wrote in message news:<bd35512e.0210062300.5658af2a_at_posting.google.com>...
> Hi,
>
> I want to use some of the builtin java classes in my PL/SQL functions.
> Can it be possible? If so would you please send me some sample code
> written in PL/SQL.
>
> Thanks,
Make sure JVM is installed in Oracle database. To find out, login as SYS and run SQL> select count(*) from user_objects where object_name like 'JAVA%'; If count is 6000 +, then it is installed.
Here is a sample code that you can use,
return "Hello World"; }
SQL> select Hello_World from dual;
HELLO_WORLD
/Rauf Sarwar Received on Mon Oct 07 2002 - 14:23:26 CDT