Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • adding new line after specific pattern using sed Linux/Unix
  • DBMS_SQL for alter session. Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • Rename Oracle Instance Name Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • Check Oracle installed products using one command Oracle
  • Zip and unzip with tar Linux/Unix
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • oracle fast start failover best practice Oracle
  • How to analyze statspack or AWR report. Oracle
  • login.sql Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle

Error Handling in Proc

Posted on 21-Oct-2009 By Admin No Comments on Error Handling in Proc

There is a standard way of trapping any SQL or database errors in

Pro*C.This is done using

EXEC SQL WHENEVER SQLERROR DO ;

just ensure that the above statement goes before any sql

statements

whenever an error is encountered , the control goes to the function

function_name

in the body of the function_name , just add a statement along with

other error handling statements, that is

EXEC SQL WHENEVER SQLERROR CONTINUE;

this would prevent the error handler from going into recursion

and finally an infinite loop.

Oracle, SQL scripts

Post navigation

Previous Post: Proc code
Next Post: Oracle 10g for solaris 10

Related Posts

  • currwait.sql Oracle
  • Oracle 10g for solaris 10 Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • Kill a session dynanically using execute immediate Oracle
  • Roles and Stored Object behaviour Oracle
  • The most important Tuning Notes Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • Kernel Parameters for Solaris Linux/Unix
  • DB Console Mainenance. Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • Important Solaris Commands Linux/Unix
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • Rename Oracle Instance Name Oracle
  • Jai Shree Ram PHP/MYSQL/Wordpress

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme