Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> stored procedure, cursor problems
Here is a simple procedure definition with a cursor declaration:
create or replace procedure schproc is
CURSOR c1 IS SELECT DMD_PROJ_ONLY, DMD_PROJECT, SUP_PART, DMD_ORD_NBR,
SUP_ORD_NBR, DMD_FLP_NBR FROM WDS01.SOD_TABLE SOD, WDS01.CSD_TABLE CSD
WHERE SOD.SO_NBR = CSD.DMD_ORD_NBR GROUP BY CSD.DMD_PROJ_ONLY,
CSD.DMD_PROJECT, CSD.SUP_PART, CSD.DMD_ORD_NBR, CSD.SUP_ORD_NBR,
CSD.DMD_FLP_NBR HAVING CSD.SUP_ORD_NBR>' ';
BEGIN
OPEN c1; CLOSE c1;
Warning: Procedure created with compilation errors.
SQL> show errors
Errors for PROCEDURE SCHPROC:
LINE/COL
ERROR
//////*****
Why these errors. It is not recognizing wds01.sod_table as a table.
WDS01 is a valid oracle user that owns table sod_table.
The oracle user that I'm connected as has select privilege on
wds01.sod_table.
******///////
Steve Walterhouse
microcon_at_magicnet.net
Received on Tue Oct 21 1997 - 00:00:00 CDT
![]() |
![]() |