create or replace and compile java source named helloworldinthedatabase as
public class HelloWorldInTheDatabase{
public static int test(int num) {
int temp;
temp = num + 42;
return temp;
}
}
**************************************************************************************************
2. Proz. oder Funktion erstellen: (Veröffentlichen der Klassen in der DB, Namen der
Java-Prozeduren und Parametertypen auf ihre Gegenstücke in PL/SQL abbilden)
create or replace function start_helloworld (num in number) return number
authid current_user
as language java name 'HelloWorldInTheDatabase.test(int) return int';
**************************************************************************************************
3. Prozedur start_helloword ausführen
Keine Kommentare:
Kommentar veröffentlichen