Oracle PL/SQL Programming

96 Ratings

Course Number: ORC-332
Duration: 5 days (32.5 hours)
Format: Live, hands-on

Oracle PL/SQL Training Overview

Accelebrate's Oracle PL/SQL training teaches attendees beginning and advanced Oracle® PL/SQL database programming skills.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Understand the environment and context in which PL/SQL operates.
  • Consider the advantages and benefits of PL/SQL within a database environment.
  • Declare program variables and complex data types.
  • Develop logic within PL/SQL program blocks.
  • Fetch data from the database into program variables.
  • Return program output to users.
  • Handle program exceptions.
  • Use explicit and implicit database cursors.
  • Maintain and implement triggers.

Prerequisites

Prior Oracle SQL experience is presumed.

Outline

Expand All | Collapse All

Introduction
PL/SQL Basics
  • The HR Schema
  • What is PL/SQL?
  • Blocks
  • Outputting Information
  • Variables and Constants
  • Constants
  • Data Types
  • Naming Variables and Other Elements
  • Embedding SQL in PL/SQL
  • SELECT…INTO and RETURNING…INTO
  • Using Variables (Exercise)
  • PL/SQL Features
Subprograms
  • Introduction to Subprograms
  • Procedures
  • Variable Declarations
  • Parameters
  • Parameters with Default Values
  • Parameter Modes
  • IN Mode
  • OUT Mode
  • IN OUT Mode
  • Named Notation
  • Using SQL in a Subprogram
  • %TYPE
  • Creating a Procedure (Exercise)
  • Functions
  • Creating a Function (Exercise)
  • Using PL/SQL Functions in SQL Queries
  • Dropping a Subprogram
Conditional Processing
  • Conditions and Booleans
  • IF-ELSIF-ELSE Conditions
  • Creating a get_age() Function (Exercise)
  • ELSIF
  • Creating a check_rights() Procedure (Exercise)
  • Creating an is_manager() Function (Exercise)
  • BOOLEAN Values and Standard SQL
  • The CASE Statement
  • CASE Expressions
  • Replacing the Head Honcho (Exercise)
Exceptions
  • Introduction to Exceptions
  • Predefined Exceptions
  • The EXCEPTION Part of the Block
  • Catching NO_DATA_FOUND Exception (Exercise)
  • User-defined Exceptions
  • User-defined Exceptions in Subprograms
  • Re-raising Exceptions
  • Replacing the Head Honcho (revisited) (Exercise)
  • Adding Exceptions to update_employee_manager() (Exercise)
  • Naming Unnamed Predefined Exceptions
  • WHILE Loops
  • When to Use Exceptions
Cursors
  • Implicit Cursors
  • Using Implicit Cursor Attributes (Exercise)
  • Explicit Cursors
  • %ROWTYPE
  • Explicit Cursor Use Case
  • Cursor FOR LOOP
  • Using an Explicit Cursor (Exercise)
  • Cursor Parameters
Packages
  • Package Basics
  • The Package Specification
  • The Package Body
  • Modifying the Package (Exercise)
  • Building an Employee Package
  • Adding a get_manager() Function (Exercise)
  • Overloading Subprograms
  • Adding Overloaded Functions to the Package (Exercise)
  • Auditing
  • Validation Procedures
  • Adding a Validation Procedure (Exercise)
  • Package Cursors
  • Adding a Cursor to the Package (Exercise)
  • Benefits of Packages
Triggers
  • What are Triggers?
  • Trigger Parts
  • Validation Triggers
  • Creating a Trigger on the jobs Table (Exercise)
  • The WHEN Clause
  • Using the WHEN Clause (Exercise)
  • Audit Triggers
  • Statement-level Triggers
  • Compound Triggers
  • Trigger Warning
Conclusion

Training Materials

All students receive comprehensive courseware and a related textbook.

Software Requirements

  • At least 8 GB RAM
  • A complete installation of Oracle 19 or higher
  • Oracle SQL Developer
  • Please contact us for detailed setup instructions if you have purchased this class.


Related Topics

Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan