
*Cause: Usually a PL/SQL compilation error. PLS-00201: identifier 'REPORT' must be declared After this, I am trying to invoke the REPORT stored procedure from TEST2 schema as CREATE OR REPLACE SYNONYM REPORT FOR TEST1.REPORT ( in TEST2 schema)ģ. GRANT EXECUTE ON TEST1.REPORT TO TEST2 Ģ. SET serveroutput on įoo.updates.get_temporary_authorisations(testvar, v_cur) įETCH v_cur INTO ORIGINAL_EMP_NUM, TEMPORARY_EMP_NUM, ORG_UNIT_CODE, MRU_CODE, CTRL_COMPANY_CODE, IS_TEMP_FLAG ĭbms_output.I am trying to execute a stored procedure (REPORT) hosted on schema (let's say TEST1) from another schema (TEST2).ġ. There may be a better way to do this, but I defined variables for all the columns of the table that the cursor was iterating, looped the cursor fetching each row into those variables, then printed them out. I had a stored procedure that returned a cursor, in my case it was actually of a custom package type ( T_CURSOR, looks like a convention to me) that is defined as REF CURSOR. :OutParam1, :OutParam2, :OutParam3, :OutParam4) OutParam1, OutParam2, OutParam3, OutParam4) ĭbms_output.put_line('OutParam1: ' || OutParam1) ĭbms_output.put_line('OutParam2: ' || OutParam2) ĭbms_output.put_line('OutParam3: ' || OutParam3) ĭbms_output.put_line('OutParam4: ' || OutParam4) Įdited to use the OP's spec, and with an alternative approach to utilise :var bind variables: var InParam1 number * Call procedure within package, identifying schema if necessary */ not refcursors etc.) you can do something like this: SET serveroutput on The symbol ":=" was substituted for "USER" to continue. PLS-00103: Encountered the symbol "USER" when expecting one of the following: I've tried initializing the out* variables: out1 VARCHAR2(100) := '' īased on Alex's answer, I tried removing the colons from in front of the params and get this: Error starting at line 1 in command:ĮXECUTE (33,89, out1, out2, out3, out4) I get the error: Bind Varialbe "out1" is NOT DECLCARED If I write my anonymous block like this: DECLAREĮXECUTE (33,89, :out1, :out2, :out3, :out4) The procedure I want to call has this signature: ( I have been trying to find an example of how to create an anonymous block so that I can run the procedure as a SQL file, but haven't found anything that works.ĭoes anyone know how I can execute this procedure from SQL Developer? I am using Version 2.1.1.64. The ability to "Run" the procedure does not seem possible when it's accessed by user. If I right click, the menu items are "Order Members By." and "Create Unit Test" (greyed out). The procedure can only be viewed in my Connections panel by navigating Other Users | | Packages | | I am trying to run a stored procedure that has multiple in and out parameters.
