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

Free Oracle Tips

HTML Text

 Home
 E-mail Us
 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   


 

 

 


 

 

 

 
 

ORA-06508: PL/SQL: could not find program unit being called tips

Oracle Error Tips by Stephanie F.

 

The Oracle docs note this on the ora-06508 error:

             ORA-06508 PL/SQL: could not find program unit being called

Cause: An attempt was made to call a stored program that could not be found. The program may have been dropped or incompatibly modified, or have compiled with errors.
 
Action: Check that all referenced programs, including their package bodies, exist and are compatible.

On Oracle FAQ's, a user is stumped by ORA-06508 in his SQL.  Though he knows the Oracle documentation, he is not sure how to find it.  Here is what we know based on a replier's attempt to diagnose the problem behind ORA-06508:

  • "i've created a PL/SQL library named common_lib which has only one procedure hello like this
    ---------------------------
    PACKAGE BODY common_lib IS
    procedure hello is
    begin
    message('hello');
    end hello;
    END;

    ---------------------------
    i've attached this lib to a form and call this hello procedure in a push button when-button-pressed trigger. Compilation is ok, but when the form runs, it throws an exception: ORA-06508."
  • forms and libraries are in separate directories
  • "I use forms 6i, and these directories are included in the forms60_path environment variable."
  • the name of the directory does not have a space
  • "I've created the lib dir after the form dir.
    in the forms60_path:
    ------------------------
    FORMS60_PATH=D:\oracle80\FORMS60;D:\oracle80\TOOLS\OPEN60\PLSQLLIB;D:\testproject\lib;D:\testproject\form;
    ------------------------
  • none of the directories are empty in the forms60_path
  • > When you attached the library, did you take the default option of using the full directory name of the library or did you press 'No'?

    for the portable reason, i choose 'Yes'

After these questions were answered, a replier was able to diagnose the problem behind ORA-06508, and the user successfully got rid of the error:

> FORMS60_PATH=D:\oracle80\FORMS60;D:\oracle80\TOOLS\OPEN60\PLSQLLIB;D:\testproject\lib;D:\testproject\form;

I would suggest putting your directories at the beginning of the line. This is opposite to the order you would use for Java paths where your files HAVE to come AFTER the supplied files. And I don't think you need the trailing semi-colon.


 

 

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 -  2012 

All rights reserved.

Oracle © is the registered trademark of Oracle Corporation.


 

  
 

 
 
 
 
Oracle performance tuning software
 
 

 

 
 
 
Oracle performance Tuning 10g reference poster
 
 
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books