Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • exp syntax in oracle 10g Oracle
  • .profile Linux/Unix
  • Trace a SQL session from another session using ORADEBUG Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • Export Import with QUERY Oracle
  • eplan.sql Oracle
  • fuser to check who is using diretory Linux/Unix
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • scp with ssh2 Linux/Unix
  • shr1.sql for MTS or Shared server configuration 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

  • Set Role explaination. Oracle
  • Transfer SQL Profiles from One database to other database. Oracle
  • Rman Notes -1 Oracle
  • Changing unix system clock when Oracle database is running. Oracle
  • Drop specific SQL plan baseline – spm Oracle
  • JSON/XML Types in Oracle Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • sess1.sql Oracle
  • Add new columns in dataframe Python/PySpark
  • Find sort details from Db find_sort.sql Oracle
  • Remove duplicate rows from table Oracle
  • SQL Server Vs Oracle Architecture difference SQL Server
  • SAN Linux/Unix
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • CPU Core related projections AWS

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme