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
How can i disable Firewire via GPO or via the registry?
perl script upgrade
spin effect
Naming an output file
Too many different cell formats
Can I bind a subnet to an Ethernet interface in Red Hat Linux 9?
Sorting a Powershell script output
SQL unable to create named PIPE
importing the cardfile using outlook
Print from RDP/Terminal