Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

with pl/Sql code Assignment 2 1) Create a procedure called divide_by_zero. 2) Declare two variables named x and y of type number. Assign x the

with pl/Sql code image text in transcribed
Assignment 2 1) Create a procedure called "divide_by_zero". 2) Declare two variables named x and y of type number. Assign x the value of one and y the value of zero. 3) In the body of the procedure assign x the value of x divided by y. (This will result in a divide by zero error - expected for this exercise). 4) Add a line that outputs We will not get here that demonstrates that the divide by zero exception raised in the previous line will bypass the following lines. 5) Add an exception section to handle the divide by zero error. 6) Add a line to the exception section that outputs "USER MESSAGE: Error in: program unit name line line number". 7) Add a line that prints out the call stack at the point the error occurred. 8) Compile, run, and test and debug the procedure

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

1. What was the primary purpose of the presentation?

Answered: 1 week ago