Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8954447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:19:22+00:00 2026-06-15T14:19:22+00:00

I am deploying pl/sql code using several sql files that are called with @@file

  • 0

I am deploying pl/sql code using several sql files that are called with @@file. If a package got a compilation error the script continues to the end.

Is there a way to stop on every compilation error?

I tried WHENEVER SQLERROR EXIT SQL.SQLCODE but the script still continues.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:19:23+00:00Added an answer on June 15, 2026 at 2:19 pm

    No native sql*plus way I’m aware of. Only workarounds. Like this:

    20:42:50 TEST@oars_sandbox> get scr
      1  whenever sqlerror exit rollback
      2  create or replace procedure my_failed_proc as
      3    i number;
      4  begin
      5    select 1 into i from me_iz_not_exist;
      6  end;
      7  /
      8  @check my_failed_proc
      9  create or replace procedure my_correct_proc as
     10    i number;
     11  begin
     12    select 1 into i from dual;
     13  end;
     14  /
     15* @check my_correct_proc
    20:42:57  16  .
    20:42:59 TEST@oars_sandbox> get check
      1  declare
      2    l_status varchar2(100);
      3  begin
      4    select status into l_status
      5      from all_objects where object_name = upper('&1');
      6    if l_status = 'INVALID' then
      7      raise_application_error(-20000, 'Object &1 is invalid!');
      8    end if;
      9* end;
    20:43:02  10  .
    20:43:04 TEST@oars_sandbox> @scr
    
    Warning: Procedure created with compilation errors.
    
    Elapsed: 00:00:00.05
    declare
    *
    ERROR at line 1:
    ORA-20000: Object my_failed_proc is invalid!
    ORA-06512: at line 8
    
    
    Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While deploying my application, I got the error message: Thread 1:Program received signal: EXC_BAD_ACCESS.
I am deploying a package which sets up an instance of SQL Server 2008
I received this error while deploying a Visual Studio SQL Server DBProject DBProj.dbschema(0,0): Warning
I am deploying a large set of perl/shell/sql code on AIX. these could be
I'm having trouble deploying an ASP.Net application using Sql Server CE 4.0. I get
I am deploying a wpf application that requires sql server 2008 as a prerequisite.
I am deploying to a unix box running Jboss. We are using SQL Server
We're deploying some new WCF calls in our SQL 2005 DB using the CLR.
After deploying WCF server (svc) on my Server, I have got this message when
When deploying plug-ins for MS Dynamics CRM, using the CRM plugin registration tool, you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.