ORA-06552 & PLS-00488 when using table with timestamp [message #180647] |
Tue, 04 July 2006 09:34  |
hellcat
Messages: 84 Registered: January 2006 Location: Zug, Switzerland
|
Member |
|
|
hi
I get ora-06552 combined with pls-00488
(PL/SQL: ORA-06552: PL/SQL: Compilation unit analysis terminated
ORA-06553: PLS-488: invalid variable declaration: object 'TIMESTAMP' must be a type or subtype)
when doing something like (in a package):
procedure test_proc
is
l_count number;
begin
select count(*)
into l_count
from test_tab
;
end test_proc;
test_tab definition:
create table test_tab (
col1 number,
col2 timestamp
);
if I create the same proc using this view instead of test_tab:
create or replace view test_v
as
select col1 from test_tab;
it works fine!
any idea why this happens? (using v. 9.2.0.6.0)
thanks for any hint...
regards,
br
[Updated on: Tue, 04 July 2006 09:36] Report message to a moderator
|
|
|
Re: ORA-06552 & PLS-00488 when using table with timestamp [message #180660 is a reply to message #180647] |
Tue, 04 July 2006 10:54  |
smartin
Messages: 1803 Registered: March 2005 Location: Jacksonville, Florida
|
Senior Member |
|
|
Are you sure this is all you are doing, that there is nothing else going on in your package or environment that you haven't explained, and are you sure that this procedure and table are the issue? Is test_tab a global package variable or anything?
MYDBA@orcl > create table test(col1 number, col12 timestamp);
Table created.
MYDBA@orcl > create procedure test_proc is
2 l_count number;
3 begin
4 select count(*) into l_count from test;
5 end;
6 /
Procedure created.
MYDBA@orcl > exec test_proc;
PL/SQL procedure successfully completed.
MYDBA@orcl >
|
|
|