Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • how to find OS block size Oracle
  • Implementation of key based authentications Linux/Unix
  • checking redhat linux version Linux/Unix
  • set_env_dba Linux/Unix
  • Implementing Listener Security Oracle
  • To see how much time or progress of long transaction Oracle
  • Jai Shree Ram Linux/Unix
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • myfile Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • scripts to take listener.log backup 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

  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • AWR license Oracle
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Oracle Metalink useful notes Oracle
  • Rownum with Order by Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • Backup and Recovery Scenarios Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • move_arch_files.ksh Linux/Unix
  • note id 373303.1 Linux/Unix
  • S3 Basic info AWS
  • Resolving RMAN Hung Jobs Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme