What Is a Procedure?
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 Create a Stored Procedure in Oracle? |
☺ | What Is the Relation of a User Account and a Schema? |
☺ | What Is an Oracle User Account? |
☺ | How Oracle Handles Dead Locks? |
☺ | What Happens to Indexes If You Drop a Table? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Forms Reports Interview Questions. |