Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to calculate PROCESSES parameter Oracle
  • How to check current redo log progress redo_progress.sql Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • sess_server.sql Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Identical Dblink Issue… Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • Virtual Indexes in Oracle Oracle
  • runsql_once.ksh Linux/Unix
  • scp with ssh2 Linux/Unix
  • Restoring a user’s original password 1051962.101 Oracle
  • executing Function from SQLPLUS prompt Oracle
  • restarting network in linux Linux/Unix
  • handling filenname with space Linux/Unix
  • Reading parameter file and printing Linux/Unix

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

  • DBMS_JOB all example Oracle
  • RAC 11g with vmware Oracle
  • pvm_pre_change.sql Oracle
  • Sequence Resetting Oracle
  • Remove duplicate rows from table Oracle
  • Btee and Bitmap Plans in Oracle 9i and higher 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Important Solaris Commands Linux/Unix
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • All About oracle password and security from metalink Oracle
  • Alter procedure auditing Oracle
  • Wait.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme