Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to stop OCSSD Daemon Oracle
  • Sequence Resetting Oracle
  • Privilege to describe the table. Oracle
  • scripts to take listener.log backup Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Default User Profile Oracle
  • db_status.sql Oracle
  • good linux notes Linux/Unix
  • on IBM-AIX for display Linux/Unix
  • newupload.html PHP/MYSQL/Wordpress
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • The most important Tuning Notes Oracle
  • Another export with Query 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

  • How to set Processes Parameter Oracle
  • Find nth max and min. Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • get_vmstat_linux Oracle
  • Renaming Oracle Instance Name Oracle
  • ORA-4031 issue and solution on 09-MAY-2008 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • 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

  • 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
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • sess_server.sql Oracle
  • Changing default shell Linux/Unix
  • eplan.sql Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • tblwopk.sql tablewopk.sql Oracle
  • Very clear article about oracle dataguard Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme