December 2010
Intermediate to advanced
451 pages
11h 16m
English
You want to access a Java stored procedure from within one of your PL/SQL applications. For instance, you are creating a PL/SQL procedure, and you want to make a call to a Java stored procedure from within it.
Make a call to the Java stored procedure using the call specification that you created for it. The following code demonstrates a PL/SQL package that makes a call to a Java stored procedure and then resumes PL/SQL execution once the call has been made.
CREATE OR REPLACE PROCEDURE employee_reports AS
CURSOR emp_cur IS
SELECT first_name, last_name, email
FROM employees
WHERE department_id = 50;
emp_rec emp_cur%ROWTYPE;
BEGIN DBMS_OUTPUT.PUT_LINE('Employees ...Read now
Unlock full access