order for the web service can be created, should have first made a few steps on the database be. Below you will find a script that performs the following steps complete. To set the Oracle Environments oraenv the Oracle script can be used as follows, the default orcl can be accepted. . oraenv
First, the EMPLOYEES table in the database schema HR HOLIDAYS one column is expanded, which results from the content unfairly divided by 100.
alter table EMPLOYEES add (holidays NUMBER);
CREATE OR REPLACE PACKAGE AS HR_INFO
(
LAST NAME OUT VARCHAR2
);
(
FIRSTNAME OUT VARCHAR2,
);
/
CREATE OR REPLACE PACKAGE BODY HR_INFO AS
(
LASTNAME OUT VARCHAR2
BEGIN
from employees
HOLIDAYS OUT NUMBER
BEGIN
select first_name, last_name, holidays
from employees where employee_id =
GETHRINFO2 END;
END HR_INFO;
HR_INFO.sql
(~ oracle / workshop). Run it with
sqlplus hr / hr @ HR_INFO.sql can create PL / SQL Web service, Web services generate
0 comments:
Post a Comment