I am trying to get a JAVA program (Pega to be exact) to call the procedure to load XML data by calling a stored procedure, but it is not working, what am i doing wrong? I know it has something to do with my variable definitions but i am not sure how i would be able to specify that they will be provided parameters by the java file. below is my stored procedure. Thanks in advance
The error messages I'm getting are:
Error(2,16): PLS-00103: Encountered the symbol ";" when expecting one of the following: := . ) , @ % default character
and
Error(16,1): PLS-00103: Encountered the symbol ")" when expecting one of the following: begin function pragma procedure subtype type current cursor delete exists prior
Create or Replace Procedure Cascade_Load (
Value_ID Number,
pValue_ID Number,
pCalculation_ID Number,
Calculation_ID Number,
Calculation_Value_ID Number,
p_Entity_Address_ID Varchar2(50),
New_Value_ID Number,
New_Calculation_ID Number,
New_Calculation_Value_ID Number
) AS
BEGIN
IF code is not null
THEN
INSERT INTO Value (Value_ID, energy_product_id, data_source_id, unit_cd,
value_tx, padd_cd, supply_type_id, country_cd, state_cd, county_cd,
entity_address_id, series_id, energy_process_cd, result_type_cd,
geo_area_cd, create_dt, create_user_id)
VALUES (
Value_ID,
Get_energy_product_id(:NEW.Product_Name_Cd),
Get_Data_Source_Id(:NEW.Data_Source_Tx),
:NEW.UNIT_CD ,
:NEW.Value_Tx,
:NEW.PADD_CD,
Get_Supply_Type_Id(:NEW.Supply_Type_Tx),
:NEW.COUNTRY_CD,
Get_State_CD(Get_entity_Id(p_Entity_Address_ID)),
'NA',
Get_Entity_Address_ID(Get_Entity_ID(p_Entity_Address_ID)),
0,
:NEW.Energy_Process_CD,
:NEW.Result_Type_CD,
:NEW.Geo_Area_Cd,
Sysdate,
'15'
);
Commit;
END IF;
END;