What Is a Procedure in Oracle?
Submitted by: AdministratorA procedure is a named program unit. It consists of three parts:
► Declaration Part - Defining the procedure name, calling parameters, local variables and local procedures. Declaration part is required.
► Execution Part - Defining execution logic with executable statements. Execution part is required.
► Exception Part - Defining error handling logics. Exception part is optional.
Here how a complete procedure should look like:
PROCEDURE name (parameter_1, parameter_2) AS
-- Declaration statements
BEGIN
-- Executable statements
EXCEPTION
-- Error handling statements
END;
Submitted by: Administrator
► Declaration Part - Defining the procedure name, calling parameters, local variables and local procedures. Declaration part is required.
► Execution Part - Defining execution logic with executable statements. Execution part is required.
► Exception Part - Defining error handling logics. Exception part is optional.
Here how a complete procedure should look like:
PROCEDURE name (parameter_1, parameter_2) AS
-- Declaration statements
BEGIN
-- Executable statements
EXCEPTION
-- Error handling statements
END;
Submitted by: Administrator
Read Online Oracle Database Job Interview Questions And Answers
Top Oracle Database Questions
☺ | How To Use "OUT" Parameter Properly? |
☺ | How Much Memory Your 10g XE Server Is Using? |
☺ | How Run SQL*Plus Commands That Are Stored in a Local File? |
☺ | How To Recover a Dropped Table in Oracle? |
☺ | How To Create a Stored Procedure in Oracle? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Oracle RMAN Interview Questions. |