I got ” PLS-00201: Identifier must be declared ” error in Oracle.
Details of error are as follows.
PLS-00201: Identifier must be declared
This error is related with the reference either an undeclared variable, exception, procedure or etc.., which no privilege was granted or an item to which privilege was granted only through a role.
Check if you access undeclared variable or you may execute invalid package/procedure/function.
Or Check the package/procedure/function if they exists or not, probably they don’t exist or your user don’t have permission for these objects.
Give permission as follows.
grant execute on (package_Name or table_name) to user;
Or If you got PLS-00201: identifier ‘DBMS_LOCK’ must be declared error, then you can grant it as follows.
SQL> grant execute on dbms_lock to USER_NAME; Grant succeeded.
Do you want to learn Oracle SQL, then read the following articles.
4,385 views last month, 3 views today