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_aidy_code%TYPE := '&aidy_code'; -- Aid Year Code
V_CATEGORY FAISMGR.RORPOST.rorpost_category_code%TYPE := '&cat_code'; -- Category Code
V_RORPOST_USE_IND FAISMGR.RORPOST.rorpost_use_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_aidy_code%TYPE := '&aidy_code'; -- Aid Year Code
new   3: V_AIDY_CODE FAISMGR.RORPOST.rorpost_aidy_code%TYPE := '0910'; -- Aid Year Code
old   4: V_CATEGORY FAISMGR.RORPOST.rorpost_category_code%TYPE := '&cat_code'; -- Category Code
new   4: V_CATEGORY FAISMGR.RORPOST.rorpost_category_code%TYPE := 'CR_UNLK'; -- Category Code
old   5: V_RORPOST_USE_IND FAISMGR.RORPOST.rorpost_use_ind%TYPE := '&rorpost_use_ind'; -- RORPOST Use Ind
new   5: V_RORPOST_USE_IND FAISMGR.RORPOST.rorpost_use_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_aidy_code%TYPE := '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  
 
programming4us programming4us