Dear all
i am new as oracle DBA and i had write procedure using Toad and i had compile successfully. now i want see the out put of this procedure. in this procedure taking 3 IN parameter and one syscursor OUT parameter.
to see output i had write a simple pice of code.
DECLARE
PTABLENAME VARCHAR2(200);
PCOLUMNID VARCHAR2(200);
PCOLUMNNAME VARCHAR2(200);
PWHERECLAUSE VARCHAR2(200);
CUR_REC SYS_REFCURSOR;
CUR_REC_row CUR_REC%ROWTYPE;
BEGIN
PTABLENAME := ‘TBL_MEETINGVENUE’;
PCOLUMNID := ‘MEETINGVENUEID’;
PCOLUMNNAME := ‘VENUENAME’;
PWHERECLAUSE := NULL;
– CUR_REC := NULL; Modify the code to initialize this parameter
HR.USP_COMBOFILL ( PTABLENAME, PCOLUMNID, PCOLUMNNAME, PWHERECLAUSE, CUR_REC );
OPEN CUR_REC;
LOOP
FETCH CUR_REC INTO CUR_REC_row;
EXIT WHEN CUR_REC%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(CUR_REC_row);
END LOOP;
CLOSE CUR_REC;
– Unable to resolve fields for REF CURSOR CUR_REC
COMMIT;
END;
but i am getting toad error:
ORA-06550: line 7, column 15:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 7, column 15:
PL/SQL: Item ignored
ORA-06550: line 19, column 3:
PLS-00382: expression is of wrong type
ORA-06550: line 19, column 3:
PL/SQL: SQL Statement ignored
ORA-06550: line 23, column 23:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 23, column 4:
PL/SQL: SQL Statement ignored
ORA-06550: line 26, column 25:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 26, column 4:
PL/SQL: Statement ignored
please let me know how i see procedure output
thanks in advance…