PLS-00302: component “string” must be declared

I got ” PLS-00302: component “string” must be declared ”  error in Oracle database.

 

PLS-00302: component “string” must be declared

 

Details of error are as follows.

PLS-00302: component "string" must be declared

Cause: In a reference to a component (for example, in the name "A.B", "B" is a component of 
"A"), the component has not been declared. The component might be misspelled, its declaration 
might be faulty, or the declaration might be placed incorrectly in the block structure.

Action: Check the spelling and declaration of the component. Also confirm that the declaration
 is placed correctly in the block structure.
   

 

 

component “string” must be declared

This PLS-00302 errors are related with the reference to a component (for example, in the name “A.B”, “B” is a component of “A”), the component has not been declared. The component might be misspelled, its declaration
might be faulty, or the declaration might be placed incorrectly in the block structure.

To solve this error, Check the spelling and declaration of the component. Also confirm that the declaration is placed correctly in the block structure.

 

Check the related object if it is valid or invalid.

select status from dba_objects where object_name = 'MEHMET';

If it is INVALID, compile it as follows.

 

alter package MEHMET compile;

 

 

If package, function, procedure, and triggers are not declared and used in PL/SQL code, exceptions would be thrown. Add a member function, procedure, or trigger definition if it is absent or the declaration isn’t available.

If the spelling of a object’s name is incorrect, fix it.

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

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 *