What you'll learn?

  • [Retrieve row and column data from tables with the SELECT statement.
  • Employ SQL functions to generate and retrieve customized data.
  • Run data manipulation statements (DML) to update data in the Oracle Database 10g.
  • Control user access and manage schema objects.
  • Search data using advanced sub queries.
  • Design PL/SQL anonymous blocks that execute efficiently.
  • Write PL/SQL code to interface with the database.
  • Describe the features and syntax of PL/SQL.
  • Use PL/SQL programming constructs and conditionally control code flow (loops, control structures, and explicit cursors).
  • Handle runtime errors.
  • Create simple procedures and functions.
  • Design PL/SQL packages to group and contain related constructs.
  • Categorize and Use the Oracle supplied PL/SQL packages to generate screen output, file output, web output, and mail output.
  • Schedule PL/SQL jobs to run independently.
  • Write dynamic SQL for more coding flexibility.
  • Create triggers to solve business challenges.
  • Manage dependencies between PL/SQL subprograms.

Description

This package offers students an introduction to Oracle Database 10g database technology. In this class students learn the concepts of relational databases and the powerful SQL programming language. This package provides the essential SQL skills that allow developers to write queries against single and multiple tables, manipulate data in tables, create database objects, and query meta data. In addition, the advanced features of SQL in order to query and manipulate data within the database are taught. Advanced querying and reporting techniques are explained. Schema objects that are useful for data warehousing and other application areas are discussed in detail. Students learn about manipulating large data sets and storing and retrieving dates according to different time zones. This package introduces students to PL/SQL and helps them understand the benefits of this powerful programming language. In the class, students learn to create PL/SQL blocks of application code that can be shared by multiple forms, reports, and data management applications.

Course NameHours
      General Group
Oracle Database 10g: Introduction to SQL 42
Oracle Database 10g: Program with PL/SQL 42
 84

Audience :

Database Administrators. Forms Developer. Portal Developer. Business Intelligence Developer. Application Developers. PL/SQL Developer. Technical Consultant. Database Designers.

Topics :

Introduction to SQL
List the Oracle Database 10g Main Features
An Overview of: components, internet platform, apps server and developer suite
Describe Relational and Object Relational Database Designs
Review the System Development Life Cycle
Define the term Data Models
Describe different means of Sorting Data
Show how Multiple Tables can be related
Describe how SQL Communicates to the Database
Writing SQL SELECT Statements
Define projection, selection, and join terminology
Review the basic SQL SELECT statement syntax
Select all columns using a wildcard notation from a table
State simple rules and guidelines for writing SQL statements
Write a query containing the arithmetic operators
Create a character expression with the concatenation operator
Using the Oracle SQL Developer Environment
Restricting and Sorting Data
Limit rows using a selection
Using the WHERE clause to retrieve specific rows
Using the comparison conditions in the WHERE clause
Use the LIKE condition to compare literal values
List the logical conditions AND, OR, NOT
Describe the rules of precedence for the conditions
Sort rows with the ORDER BY clause
Use ampersand substitution in SQL*Plus to restrict and sort output at run time
Using Single-Row Functions to Customize Output
Show the differences between single row and multiple row SQL functions
Categorize the character functions into case manipulation and character manipulation types
Use the character manipulation functions in the SELECT and WHERE clauses
Explain and use the DATE and numeric functions
Use the SYSDATE function to retrieve the current date in the default format
Introduce the DUAL table as a means to view function results
List the rules for applying the arithmetic operators on dates
Use the arithmetic operators with dates in the SELECT clause
Reporting Aggregated Data Using the Group Functions
Describe and categorize the group functions
Use the group functions
Utilize the DISTINCT keyword with the group functions
Describe how nulls are handled with the group functions
Create groups of data with the GROUP BY clause
Group data by more than one column
Avoid illegal queries with the group functions
Exclude groups of data with the HAVING clause
Displaying Data from Multiple Tables
Identify Types of Joins
Retrieve Records with Natural Joins
Use Table Aliases to write shorter code and explicitly identify columns from multiple tables
Create a Join with the USING clause to identify specific columns between tables
Use the ON clause to specify arbitrary conditions or specify columns to Join
Create a Three-way join with the ON clause to retrieve information from 3 tables
List the Types of Outer Joins LEFT, RIGHT, and FULL
Generating a Cartesian Product
Using Sub queries to Solve Queries
List the syntax for sub queries in a SELECT statements WHERE clause
List the guidelines for using sub queries
Describe the types of sub queries
Execute single row sub queries and use the group functions in a sub query
Identify illegal statements with sub queries
Execute multiple row sub queries
Analyze how the ANY and ALL operators work in multiple row sub queries
Using the SET Operators
Use the UNION operator to return all rows from multiple tables and eliminate any duplicate rows
Use the UNION ALL operator to return all rows from multiple tables
Describe the INTERSECT operator
Use the INTERSECT operator
Explain the MINUS operator
Use the MINUS operator
List the SET operator guidelines
Order results when using the UNION operator
Manipulating Data
Write INSERT statements to add rows to a table
Copy rows from another table
Create UPDATE statements to change data in a table
Generate DELETE statements to remove rows from a table
Use a script to manipulate data
Save and discard changes to a table through transaction processing
Show how read consistency works
Describe the TRUNCATE statement
Using DDL Statements to Create and Manage Tables
List the main database objects and describe the naming rules for database objects
Introduce the schema concept
Display the basic syntax for creating a table and show the DEFAULT option
Explain the different types of constraints
Show resulting exceptions when constraints are violated with DML statements
Create a table with a sub query
Describe the ALTER TABLE functionality
Remove a table with the DROP statement and Rename a table
Creating Other Schema Objects
Categorize simple and complex views and compare them
Create a view
Retrieve data from a view
Explain a read-only view
List the rules for performing DML on complex views
Create a sequence
List the basic rules for when to create and not create an index
Create a synonym
Managing Objects with Data Dictionary Views
Describe the structure of each of the dictionary views
List the purpose of each of the dictionary views
Write queries that retrieve information from the dictionary views on the schema objects
Use the COMMENT command to document objects
Controlling User Access
Controlling User Access
System versus Objects Privileges
Using Roles to define user groups
Changing Your Password
Granting Object Privileges
Confirming Privileges Granted
Revoking Object Privileges
Using Database Links
Manage Schema Objects
Using the ALTER TABLE statement
Adding a Column
Modifying a Column
Dropping a Column, Set Column UNUSED
Adding, Enabling and Disabling Constraints
Creating Function-Based Indexes
Performing FLASHBACK operations
External Tables
Manipulating Large Data Sets
Using the MERGE Statement
Performing DML with Sub queries
Performing DML with a RETURNING Clause
Overview of Multi-table INSERT Statements
Tracking Changes in DML
Generating Reports by Grouping Related Data
Overview of GROUP BY Clause
Overview of Having Clause
Aggregating data with ROLLUP and CUBE Operators
Determine subtotal groups using GROUPING Functions
Compute multiple groupings with GROUPING SETS
Define levels of aggregation with Composite Columns
Create combinations with Concatenated Groupings
Managing Data in Different Time Zones
Time Zones
Using date and time functions
Identifying TIMESTAMP Data Types
Differentiating between DATE and TIMESTAMP
Performing Conversion Operations
Searching Data Using Advanced Sub queries
Sub query Overview
Using a Sub query
Comparing several columns using Multiple-Column Sub queries
Defining a Data source Using a Sub query in the FROM Clause
Returning one Value using Scalar Sub query Expressions
Performing ROW by-row processing with Correlated Sub queries
Reusing query blocks using the WITH Clause
Hierarchical Retrieval
Sample Data from the EMPLOYEES Table
The Tree Structure of Employee data
Hierarchical Queries
Ranking Rows with LEVEL
Formatting Hierarchical Reports Using LEVEL and LPAD
Pruning Branches with the WHERE and CONNECT BY clauses
Regular Expression Support
Regular Expression Support Overview
Describing simple and complex patterns for searching and manipulating data
Introduction to PL/SQL
What is PL/SQL
PL/SQL Environment
Benefits of PL/SQL
Overview of the Types of PL/SQL blocks
Create and Execute a Simple Anonymous Block
Generate Output from a PL/SQL Block
SQL*Plus as PL/SQL Programming Environment
Declaring PL/SQL Identifiers
Identify the Different Types of Identifiers in a PL/SQL subprogram
Use the Declarative Section to Define Identifiers
List the Uses for Variables
Store Data in Variables
Declare PL/SQL Variables
Writing Executable Statements
Describe Basic Block Syntax Guidelines
Use Literals in PL/SQL
Customize Identifier Assignments with SQL Functions
Use Nested Blocks as Statements
Reference an Identifier Value in a Nested Block
Qualify an Identifier with a Label
Use Operators in PL/SQL
Use Proper PL/SQL Block Syntax and Guidelines
Interacting with the Oracle Server
Identify the SQL Statements You Can Use in PL/SQL
Include SELECT Statements in PL/SQL
Retrieve Data in PL/SQL with the SELECT Statement
Avoid Errors by Using Naming Conventions When Using Retrieval and DML Statements
Manipulate Data in the Server Using PL/SQL
The SQL Cursor concept
Use SQL Cursor Attributes to Obtain Feedback on DML
Save and Discard Transactions
Writing Control Structures
Control PL/SQL Flow of Execution
Conditional processing Using IF Statements
Conditional Processing CASE Statements
Handle Nulls to Avoid Common Mistakes
Build Boolean Conditions with Logical Operators
Use Iterative Control with Looping Statements
Working with Composite Data Types
Learn the Composite Data Types of PL/SQL Records and Tables
Use PL/SQL Records to Hold Multiple Values of Different Types
Inserting and Updating with PL/SQL Records
Use INDEX BY Tables to Hold Multiple Values of the Same Data Type
Using Explicit Cursors
Cursor FOR Loops Using Sub-queries
Increase the Flexibility of Cursors By Using Parameters
Use the FOR UPDATE Clause to Lock Rows
Use the WHERE CURRENT Clause to Reference the Current Row
Use Explicit Cursors to Process Rows
Explicit Cursor Attributes
Cursors and Records
Handling Exceptions
Handling Exceptions with PL/SQL
Predefined Exceptions
Trapping Non-predefined Oracle Server Errors
Functions that Return Information on Encountered Exceptions
Trapping User-Defined Exceptions
Propagate Exceptions
Use The RAISE_APPLICATION_ERROR Procedure To Report Errors To Applications
Creating Stored Procedures
Describe the block structure for PL/SQL stored procedures
Invoke a stored procedure/function from different tools
Call a stored procedure with host variables from SQL*Plus, Forms, Java, C, etc
Invoke a stored procedure from an anonymous block or another stored procedure
List the CREATE OR REPLACE PROCEDURE syntax
Identify the development steps for creating a stored procedure
Use the SHOW ERRORS command
View source code in the USER_SOURCE dictionary view
Creating Stored Functions
Describe stored functions
List the CREATE OR REPLACE FUNCTION syntax
Identify the steps to create a stored function
Execute a stored function
Identify the advantages of using stored functions in SQL statements
Identify the restrictions of calling functions from SQL statements
Remove a function
Creating Packages
List the benefits or using PL/SQL packages
Differentiate between a package specification and a package body
Create packages
Include public and private constructs in a package
Call public and private constructs in a package
Remove packages
Using More Package Concepts
Overload procedure and function definitions
Use forward declarations
Create a one-time package initialization block
Follow the persistent state of constructs in packages
Use PL/SQL tables and records in packages
Wrap code to hide the source
Utilizing Oracle Supplied Packages in Application Development
List the various uses for the Oracle supplied packages
Reuse pre-packaged code to complete various tasks from developer to DBA purposes
Use the DESCRIBE command to view the package specifications and overloading
Describe how DBMS_OUTPUT works
Use UTL_FILE to direct output to operating system files
Use the HTP package to generate a simple web page
Describe the main features of UTL_MAIL
Call the DBMS_SCHEDULER package to schedule PL/SQL code to run
Dynamic SQL and Metadata
Describe using native dynamic SQL
List the execution flow of SQL
Write dynamic SQL using the EXECUTE IMMEDIATE syntax
Write dynamic SQL with the DBMS_SQL package
Generate DDL from metadata using the DBMS_METADATA package
Design Considerations for PL/SQL Code
Standardize constants with a constant package
Standardize exceptions with an exception package
Write PL/SQL code that uses local subprograms
Use the NOCOPY compiler hint to pass parameters by reference
Use the PARALLEL ENABLE hint for optimization
Use the AUTONOMOUS TRANSACTION pragma to run independent transactions within a single transaction
Set the AUTHID directive to execute programs with the privileges of the calling user instead of the creating user
Use bulk binding for multi-row operations
Managing Dependencies
Describe dependent and referenced objects
Track procedural dependencies with dictionary views
Predict the effect of changing a database object upon stored procedures and functions
Manage local and remote procedural dependencies
Manipulating Large Objects
Describe a LOB object
Create and maintain LOB data types
Differentiate between internal and external LOBs
Use the DBMS_LOB PL/SQL package to control LOBs
Describe the use of temporary LOBs
Creating Triggers
Describe different types of triggers
Describe database triggers and their use
Create database triggers
Describe database trigger firing rules
Remove database triggers
Applications for Triggers
Create database and system event triggers
Create triggers on DDL statements
Use the CALL statement in triggers to invoke procedures
Explain the rules for reading and writing to tables with triggers
Describe business application scenarios for implementing with triggers
Manage trigger code
Understanding and Influencing the PL/SQL Compiler
Describe native compilation and interpreted compilation
List the features of native compilation
Switch between native and interpreted compilation for compiled PL/SQL code
Set the parameters to control aspects of PL/SQL compilation
Write a query to retrieve information from the dictionary views on how the PL/SQL code is compiled
Explain the compiler warning mechanism
List the steps to use the compiler warnings
Use DBMS_WARNING to implement compiler warnings

Prerequisities :

Recommended Knowledge :

Familiarity with Data Processing Concepts and Techniques. Ability to use a graphical user interface (GUI).

Recommended Course(s) :

Category :

  • Programming

Training Materials :

Oracle Press

Labs :

This package includes several labs to ensure you will gain the targeted skills and experience.

Credential :

This package is necessary to pass ORACLE10g Forms Developer Certified Professional (OCP).

Related Courses