Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 

 
 

PLS-00302: component "string" must be declared tips

Oracle Error Tips by Donald Burleson

 

Question:

After upgrading to Oracle HRMS 11.5.10 from Oracle HRMS 11.5.9 the AME Engine API, when called, throws the following error:

SQL> declare
2 l_Approvertab Ame_Util.Approverstable;
3 l_String VARCHAR2(4000);
4 BEGIN
5
6 Ame_Api.Getallapprovers(Applicationidin => '20007',
7 Transactionidin => '57197',
8 Transactiontypein => 'SEAMSS',
9 Approversout => l_Approvertab);
10 end;
11 /
declare
*
ERROR at line 1:
ORA-06550: line 1, column 30:
Please-00302: component 'HANDLER' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
ORA-06512: at "APPS.AME_API", line 287

We are not able to trace the issue here.

I have tried:


SQL> execute hr_utility.set_trace_options('TRACE_DEST:DBMS_OUTPUT');
SQL> execute hr_utility.trace_on;

But it doesn't create any traces.

Can anyone help me with this?

 

Answer:

The Oracle docs note the following on PLS-00302:

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. 

 

This, however, looks to me like a bug. Is Ame_Api valid? To check do the following:

select status from dba_objects where object_name = 'AME_API';

If it is INVALID do the following:

As apps,
alter package AME_API compile;

If this comes back with a warning or is still invalid:

select * from dba_errors where object_name = 'AME_API';

For tracing you can try:

alter session set sql_trace=true;
run the declare
alter session set sql_trace=false;

 


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.