Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Writing PL/SQL in Java.
Thanks,
I see some example on the internet.
I didn't understand how can I publish java code,
so I can use at the package something like :
The example :
The class Formatter has one method named formatEmp, which returns a formatted string containing a staffer's name and job status. First, you write the call spec for this method as follows:
CREATE OR REPLACE FUNCTION format_emp (ename VARCHAR2, job VARCHAR2)
RETURN VARCHAR2
AS LANGUAGE JAVA
NAME 'Formatter.formatEmp (java.lang.String, java.lang.String)
return java.lang.String';
...Should I compile java somewhere on the server ?How can I do that ?Need sample or link, please.Thanks :) Received on Thu May 31 2007 - 10:01:31 CDT
![]() |
![]() |