I'm writing a stored procedure in Oracle and am having great success with my PLSQL when I run it via DECLARE
.
However when I try to switch it over and create a stored proc (I have the permissions) I get this error: PL/SQL: ORA-00942: table or view does not exist
I reference the table exactly the same, through synonym, in my DECLARE
way of doing things and it runs without issue.
Is there another permission I need for stored procs or something silly like that?
Code snippet for reference:
select count(nbr) into v_count from cla.numericPlayer where length(nbr) != 15;