Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> a simple cursor gives me PLS-00801: internal error [74303]
I am getting a strange PL/SQL error mesage
(PLS-00801: internal error [74303])
when compiling a simple cursor under Oracle 7.3 on NT4.
The same SQL works fine if I execute it from SQL*Plus.
The problematic cursor definition is
/*
cursor testCur is
select distinct TEST_REGISTRY.TEST_ID, level from TEST_REGISTRY connect by prior PARENT_ID=TEST_REGISTRY.TEST_ID start with (PARENT_ID is null) order by level;
TEST_ID number(10),
TEST_NAME varchar2(100),
PARENT_ID number(10),
constraint TEST_REGISTRY_KEY primary key (TEST_ID))/
insert into TEST_REGISTRY values (1,'Citicorp', null)/ insert into TEST_REGISTRY values (3,'IPD', 1)/ insert into TEST_REGISTRY values (2,'CGAM', 3)/
TEST_ID LEVEL
--------- ---------
1 1
SQL>
/*
cursor testCur is
select distinct TEST_REGISTRY.TEST_ID, level from TEST_REGISTRY connect by prior PARENT_ID=TEST_REGISTRY.TEST_ID start with (PARENT_ID is null) order by level;
null;
end test;
/
show errors;
Warning: Procedure created with compilation errors.
Errors for PROCEDURE TEST:
LINE/COL ERROR
/*
> PLS–00801 internal error [num] > Cause This is a generic internal error that might occur during > compilation or execution. The first parameter is the internal error number. > Action Report this error as a bug to your Customer Support representative.
If anyone can see something obvious that I am missing, I would greatly
appreciate the pointer.
The 'order by level' clause seems to be key.
I have tried this on several boxes, each running:
>Oracle7 Server Release 7.3.2.2.0 - Production Release >With the distributed, replication and parallel query options >PL/SQL Release 2.3.2.2.0 - Production
Thanks,
James Sherring
james.sherring_at_citicorp.com
Received on Thu Apr 17 1997 - 00:00:00 CDT
![]() |
![]() |