PLS-00201: Identifier must be declared


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.

Oracle SQL Tutorials For Beginners – Learn Oracle SQL from scratch with Oracle SQL Online Course


About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *