Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle Internal Good Websites 1 Oracle
  • Library cahe Latches and internal explaination Oracle
  • Oracle Release Explaination Oracle
  • Getting started with notebook Python/PySpark
  • Jai Shree Ram Oracle
  • Mutating Table Error while using database trigger Oracle
  • Optimizer SORT Operations Oracle
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • Find Command Linux/Unix
  • Explain Plan Output 2 Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • send email from unix mailx with attachment. Linux/Unix
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • how to find OS block size 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

  • Create type and Grant on it. Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • USER_TABLES.Freelists Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • Find sort details from Db find_sort.sql 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 (397)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (345)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • oradebug ipcrm ipcs Oracle
  • Oracle Metalink useful notes Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • upload.html PHP/MYSQL/Wordpress
  • Export With Query Another Example. Oracle
  • Oracle 11g Environment Setup Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • handling filenname with space Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme