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
Ms Access Inserting/Updating Data using Forms.
Python: how to check mail status
No record of File Replication System, SYSVOL started - DCDIAG Errors
Table structure for tracking an annual budget with monthly input for each field on one form. Is there a better way than what I have done?
DNSCMD file on your server
Recipe Database
Folder Contents
Creating an ODBC connection via VBA utilizing a generic username and password
Exchange 2007 Information store & system attendant won't start automatically
Is event LIstener active?