Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools

Topic: SQL*Plus and PL/SQL >> Warning: Package Body created with compilation errors.

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.


 Title: Warning: Package Body created with compilation errors.
 Leo  Posted: Jun 05, 2007 03:01:37 PM

 Total Post: 2
 Joined: Jun, 2007

I am trying to create a PL/SQL package body on a 10g Oracle database and I get the following message:

Warning: Package Body created with compilation errors.

When I type "Show errors" at the SQL*PLus, I get "No Errors".

MY question is: why Show errors doesn't show the compilation errors and how can I get it to work, or if there is another way of finding out what these errors are so I can fix them.

Your response is greatly appreciated. I look forward to hearing from somebody, hopefully.


Posted: Jun 06, 2007 09:51:23 AM  

 Total Post: 22
 Joined: Nov, 2006


Pl. try with this query.

select * from user_errors;



Posted: Jun 06, 2007 11:15:59 AM  

 Total Post: 67
 Joined: Nov, 2006

i got this error when i was creating a procedure..
Just go thro ur procedure once, there may be a small syntatical error,
if u correct it then u will not get the warning.


Posted: Jun 07, 2007 12:11:57 AM  

 Total Post: 8
 Joined: Apr, 2007

U can try this to look for the errors at the end of ur package u must have mentioned.......

end package_name;

you can try this and see whether u are able to see the errors or not.

Posted: Jun 08, 2007 12:59:43 PM  

 Total Post: 2
 Joined: Jun, 2007



Thank you so much for your replys. Non of your suggestions worked. As a matter of fact I had tried them all already. I was able to see the errors using dba_errors table.

Thanks again for your time.

Posted: Jun 14, 2007 11:22:48 AM  

 Total Post: 67
 Joined: Nov, 2006

Hi all,
I saw this in some other forum,
I find it useful, so i'm posting it here.

We can use the following to view all the errors, raised in the PL/SQL SP.

SQL>ALTER SESSION SET plsql_warnings = 'enable:all';
Session altered.

3 FOR i IN 3 .. 1 LOOP
4 DBMS_OUTPUT.Put_Line(i);
6 END;
7 /
SP2-0804: Procedure created with compilation warnings
SQL>show error
Errors for PROCEDURE P:

-------- -----------------------------------------------------------------3/4 PLW-06002: Unreachable code4/7 PLW-06002: Unreachable code

For complete information :

Regards ,

 Time Zone: EDT


Forum Rules & Description

Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user


Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  menon srivalsala kumar639
  positive fanatic615
  Gitesh Trivedi580
  Jayanta Sur480
  Vinoth Kumar436
  Vishant Sanghavi414
  Vigyan Kaushik403
  Gopu Gopi367

oracle Mag

  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor