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
Gotcha's & Rollbacks for raising AD 2003 Interim to Native mode
SQL Reporting Services Print Layout mode issue
Use Microsoft Word 2003 to edit email messages unchecks itself
Spydawn Spyware / Virus Removal
Client wont connect to session. error 10030.
Outlook 2003 can't see free/busy from Exchange 2007
How to get a website indexed into google quicker?
Win XP Pro and IE 6...a jpg saves as a bmp??
error when try to execute a procedure Operand type clash: varchar is incompatible with cursor
Folders will not redirect despite GPO settings originally working