Microsoft
Software
Hardware
Network
Question : PLS-00201: identifier 'FAISMGR.RORPOST' must be declared error
I have a SQl code that goes like this -
DECLARE
V_AIDY_CODE FAISMGR.RORPOST.rorpost_ai
dy_code%TY
PE := '&aidy_code'; -- Aid Year Code
V_CATEGORY FAISMGR.RORPOST.rorpost_ca
tegory_cod
e%TYPE := '&cat_code'; -- Category Code
V_RORPOST_USE_IND FAISMGR.RORPOST.rorpost_us
e_ind%TYPE
:= '&rorpost_use_ind'; -- RORPOST Use Ind
V_REMOVE_ALL VARCHAR2(1) := '&remove_all'; -- Remove All Selected Items
v_count number; -- Variable to check if there are any records to update
and then continues...
A user called Banworx is running this sql code and is getting the following error -
old 3: V_AIDY_CODE FAISMGR.RORPOST.rorpost_ai
dy_code%TY
PE := '&aidy_code'; -- Aid Year Code
new 3: V_AIDY_CODE FAISMGR.RORPOST.rorpost_ai
dy_code%TY
PE := '0910'; -- Aid Year Code
old 4: V_CATEGORY FAISMGR.RORPOST.rorpost_ca
tegory_cod
e%TYPE := '&cat_code'; -- Category Code
new 4: V_CATEGORY FAISMGR.RORPOST.rorpost_ca
tegory_cod
e%TYPE := 'CR_UNLK'; -- Category Code
old 5: V_RORPOST_USE_IND FAISMGR.RORPOST.rorpost_us
e_ind%TYPE
:= '&rorpost_use_ind'; -- RORPOST Use Ind
new 5: V_RORPOST_USE_IND FAISMGR.RORPOST.rorpost_us
e_ind%TYPE
:= 'Y'; -- RORPOST Use Ind
old 6: V_REMOVE_ALL VARCHAR2(1) := '&remove_all'; -- Remove All Selected Items
new 6: V_REMOVE_ALL VARCHAR2(1) := 'Y'; -- Remove All Selected Items
V_AIDY_CODE FAISMGR.RORPOST.rorpost_ai
dy_code%TY
PE := '0910'; -- Aid Year Code
*
ERROR at line 3:
ORA-06550: line 3, column 13:
PLS-00201: identifier 'FAISMGR.RORPOST' must be declared
ORA-06550: line 3, column 13:
PL/SQL: Item ignored
ORA-06550: line 4, column 12:
PLS-00201: identifier 'FAISMGR.RORPOST' must be declared
ORA-06550: line 4, column 12:
PL/SQL: Item ignored
ORA-06550: line 5, column 19:
PLS-00201: identifier 'FAISMGR.RORPOST' must be declared
ORA-06550: line 5, column 19:
PL/SQL: Item ignored
ORA-06550: line 16, column 43:
PLS-00320: the declaration of the type of this expression is incomplete or
malformed
ORA-06550: line 16, column 43:
PL/SQL: ORA-00904: "V_AIDY_CODE": invalid identifier
ORA-06550: line 14, column 4:
PL/SQL: SQL Statement ignored
ORA-06550: line 21, column 43:
PLS-00320: the declaration of the type of this expression is incomplete or
malformed
Can anyone think of what is causing this error message. Should anything be granted to BANWORX.
Thanks
Answer : PLS-00201: identifier 'FAISMGR.RORPOST' must be declared error
You need to GRANT privileges on FAISMGR.RORPOST to the user BANWORX for it to be referenced as an anchored type:
grant select on FAISMGR.RORPOST to BANWORX;
Try that and re-run the script.
Random Solutions
FTP Error 503 bad sequence of commands
Exchange 2003 - Copy Mailbox
linux swap
Free/Busy Information Not Available
shell32.dll compatible with win98
How many visitors per month should I have to do ads?
Linux Grep and awk command output in proper format
Firefox or Server Issue?
Old hard drive(win98se) put into new Win XP computer. Can't access old drive...
installing J9 JVM on Windows Mobile 5.0