Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

I want my procedure to return the error message to the batch file

Ramya NandhiniSep 9 2015 — edited Oct 7 2015

Hi Team,

I have got a requirement from the business users. Could you please provide your suggetsion to achieve this.

We have a batch file thats runs on the schedule time, in that batch file i'm calling a SQL script.

In the SQL script i'm calling a procedure to execute.

Inside the procedure i have the following statement,

Select , Insert and Update commands.

and i'm using OTHER exception to handle the errors.

My requirement is to pass the error messages to the batch file when any of the commands failed to execute and send a mail notification to the group with the error text.

Please provide your suggestion.

Thanks & Regards,

Ramya.

This post has been answered by unknown-7404 on Sep 9 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2015
Added on Sep 9 2015
14 comments
3,469 views