1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu Instructor notes pptx

14 351 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Introduction to Oracle: SQL and PL/SQL Using Procedure Builder
Thể loại Instructor notes
Định dạng
Số trang 14
Dung lượng 53,01 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Description of Demonstration FilesGuidelines for Using Demonstration Files Numerous demonstration files are included with this course.. Description of Demonstration Files continuedLesson

Trang 1

Instructor Notes

Trang 3

Release Notes

This release of the course notes guarantees compatibility with Oracle7 Server,

Release 7.3.2.1.0, PL/SQL Release 2.3.2.0.0, SQL*Plus Release 3.3.2.0.0, and Oracle Procedure Builder, Release 1.5.5.7.0 All demonstration and practice files have been tested against this release of the product

General Notes

If you have not taught Introduction to Oracle from Worldwide Education format notes, please observe the following changes:

Format

These course notes have been formatted to the Worldwide Education format

D The left hand page contains a copy of the presentation slides, which allow the presenter to concisely and clearly convey the topics

D Demonstrations are listed in the class management note below the slide or on the facing page

D The right hand page contains text that elaborates the bullet points on the slides

D The practice at the end of the lesson can contain paper-based or hands-on

exercises

Online Presentation

An online presentation created in Microsoft PowerPoint accompanies the course notes Some of the slides use a feature called “build” that reveals each bullet

following a mouse-click Each of these is documented in the course management notes Instructions for using the PowerPoint Slide Show are provided

Oracle Procedure Builder

Oracle Procedure Builder is the interface for creating, editing, debugging, and

executing the PL/SQL code Instructors should be familiar with the tool and its features

Trang 4

Course Timings

The suggested course timings in minutes are a guideline

SQL and SQL*Plus Lessons to Cover

Day 1 Introduction through Lesson 4

Day 2 Lesson 5 through Lesson 10

Day 3 Lesson 11 through Lesson 16

PL/SQL

Day 4 Lesson 18 through Lesson 22

Day 5 Lesson 23 through Lesson 25

Day 1

Lesson 2: Limiting Selected Rows 35 30 65

Lesson 3: Single Row Functions 55 40 95

Lesson 4: Display Data from Multiple Tables 40 50 90

Day 2

Lesson 7: Specifying Variables at Runtime 35 25 60

Lesson 8: Overview of Data Models and

Database Design

Lesson 10: Oracle Data Dictionary 20 15 35

Trang 5

Course Timings continued

Day 3

Lesson 11: Manipulating Data 45 40 85

Lesson 12: Altering Tables and Constraints 30 40 70

Lesson 13: Creating Sequences 20 25 45

Lesson 15: Creating Indexes 25 25 50

Lesson 16: Controlling User Access 25 20 45

Lesson 17: Summary of SQL and SQL*Plus

(optional)

Day 4

Lesson 18: Overview of PL/SQL 20 0 20

Lesson 19: Basics of Procedure Builder 60 15 75

Lesson 20: Modularizing Programming with

Subprograms

Lesson 21: Developing a Simple PL/SQL

Block

Lesson 22: Interacting with Oracle 40 45 85

Day 5

Lesson 23: Controlling Flow in PL/SQL

Blocks

Lesson 24: Processing Queries by Using

Explicit Cursors

Lesson 26: Summary of PL/SQL

(optional)

Trang 6

Description of Demonstration Files

Guidelines for Using Demonstration Files

Numerous demonstration files are included with this course They are there for you to use optionally However, some of these examples build within a lesson

Each demonstration is marked with a Course Management Note, including the

keyword DEMO and a filename, as appropriate Use the PURPOSE section of this note to alert students as to what you expect them to observe Next, you see

instructions to perform the demonstration

Listed below are the demonstration files used in each lesson Many topics do not have demonstration files due to you demonstrating a process rather than showing a

completed set of code In these cases, class management notes provide you with guidelines for your demonstration

Lesson 1: Selecting Rows l1prec1.sql Viewing a query containing no

parentheses

l1prec2.sql Executing a query with parentheses

to override rules of precedence

l1alias.sql Using aliases in expressions

l1null1.sql Calculating with nulls

l1col.sql Simple SELECT statement Lesson 2: Limiting l2betw.sql Using the BETWEEN operator Selected Rows

l2in.sql Using the IN operator

l2and.sql Using the AND operator

l2or.sql Comparing results from OR and

AND operators

l2sal1.sql Rules of precedence

l2sal2.sql Rules of precedence Lesson 3: Single Row

Functions

l3hire.sql Time portion of the stored date,

case sensitivity, fill mode, embedding text (“of”)

Trang 7

Description of Demonstration Files continued

Lesson 4: Display Data l4cart.sql Executing a Cartesian Product

from Multiple Tables

l4region.sql Displaying aSELECT clause with

no aliases

l4ejoin.sql Displaying a equijoin leading to

outer join example

l4ojoin.sql Displaying an outer join Lesson 5: Group l5count1.sql Using the COUNT(*) function Functions

l5count2.sql Using the COUNT(expr) function

l5error.sql Executing a SELECT command

with no GROUP BY clause

l5order1.sql Ordering columns that are grouped

by DEPT_ID first

l5order2.sql Ordering columns that are grouped

by TITLE first

l5title1.sql Using a WHERE clause to restrict

rows by TITLE

l5title2.sql Using a HAVING clause to restrict

groups by SUM(salary) Lesson 6: Subqueries No demonstration files

Trang 8

Description of Demonstration Files continued

Lesson 7: Specifying l7varno.sql Returning all rows

Variables at Runtime

l7varyes.sql Using a case-insensitive query with

substitution variables

l7expr.sql Changing the column names and

conditions by using substitution variables

l7dbl.sql Using a double ampersand

substitution variable

l7dlb2.sql Using a double ampersand

substitution variable again

l7prompt.sql Using the ACCEPT and PROMPT

commands

l7param.sql Using the parameter in the

command line Lesson 8: Overview of

Data Models and Database

Design

No demonstration files

Lesson 9: Creating Tables No demonstration files

Lesson 10: Oracle Data

Dictionary

l10tab.sql, Displaying all tables owned by the

user

l10obj2.sql Displaying all objects owned by the

user based on a supplied value

l10cons.sql Viewing constraints on the S_EMP

table Lesson 11: Manipulating l11sel.sql Displaying initial state of the data Data

l11upd.sql Performing the updates and viewing

the results Lesson 12: Altering Tables

and Constraints

No demonstration files

Trang 9

Description of Demonstration Files continued

Lesson 13: Creating

Sequences

data dictionary structure and contents

Lesson 14: Creating Views l14emp.sql Creating a view by using aliases

l14vu1.sql Creating a view with CHECK

OPTION

l14vu2.sql Creating a view without CHECK

OPTION Lesson 15: Creating

Indexes

No demonstration files

Lesson 16: Controlling

User Access

No demonstration files

Lesson 17: Summary of

SQL and SQL*Plus

No demonstration files

Lesson 19: Basics of

Procedure Builder

l19loop.pls Setting a breakpoint

Lesson 20: Modularizing

Programming with

l20proc.pls Loading and compiling code from a

text file

Subprograms

l20func.pls Importing text from a text file Lesson 21: Developing a

Simple PL/SQL Block

No demonstration files

Lesson 22: Interacting

with Oracle

l22cust.pls Embedding INSERT commands in

a procedure

l22newsd.pls Using parameters in a procedure to

update a value in the table

l22delr.pls Indicating the number of rows

affected by using the SQL cursor attributes

Trang 10

Description of Demonstration Files continued

Lesson 23: Controlling

Flow in PL/SQL Blocks

l23calc.pls Returning a calculated value based

on an input value in a function

l23iter.pls Executing a loop Referencing an

index value is only allowed within the loop

Lesson 24: Processing

Queries by Using Explicit

Cursors

l24up.pls Defining a cursor containing a FOR

UPDATE clause, declaring a record based on a cursor, implementing an explicit cursor attribute

Lesson 25: Error Handling No demonstration files

Lesson 26: Course

Summary

No demonstration files

Appendix C: Using lcplus.sql Various SQL*Plus SET commands SQL*Plus to create

Reports and Manage lcrpt0.sql SELECT statement used in the

report PL/SQL code

lcrpt1.sql SELECT statement and some

SQL*Plus commands used in the report

lcsal.sql Storing code in a text file, creating

the file, executing the file, and interpreting the compilation errors

Trang 11

Practice Solution Files

This course does not contain practice solution files for Lessons 1–17

Lesson 19: Basics of p19q1.pls COUNT_LOOPS procedure syntax Procedure Builder

p19q2.pls MY_MESSAGE procedure syntax Lesson 20: Modularizing

Programming with

Subprograms

syntax

Lesson 21: Developing a p21q3.pls MULTIPLIER procedure syntax Simple PL/SQL Block

p21q4.pls ANN_COMP function syntax

p21q5.pls MULTI function syntax Lesson 22: Interacting p22q1.pls NEW_DEPT procedure syntax with Oracle

p22q2.pls UPDATE_DEPT procedure syntax

p22q3.pls DELETE_DEPT procedure syntax

p22q4.pls NEW_EMP procedure syntax Lesson 23: Controlling p23q1.pls SET_COMM procedure syntax Flow in PL/SQL Blocks

p23q2.pls CUST_UPDATE procedure syntax

p23q3.pls EMP_MESSAGE procedure syntax Lesson 24: Processing p24q1.pls TOP_DOGS1 procedure syntax Queries by Using Explicit

p24q2.pls ADD_STARS procedure syntax Cursors

p24q3.pls TOP_DOGS2 procedure syntax

Lesson 25: Error Handling p25q1.pls UPDATE_DEPT2 procedure syntax

syntax

Trang 12

Practice Session Solution Files continued

Lesson 26: Course p26q1a.pls NEW_MEMBER function syntax Summary

p26q1b.pls NEW_RENTAL function syntax

p26q1c.pls MEM_TITLES procedure syntax

p26q1d.pls RESERVE_MOVIE procedure

syntax

p26q1e.pls RETURN_RENTAL procedure

syntax

syntax

p26q1g.pls TOP_RENTAL procedure syntax Appendix C: Using

SQL*Plus to create

pcloop.sql COUNT_LOOPS procedure syntax Reports and Manage

PL/SQL code pcmsg.sql MY_MESSAGE procedure syntax

Trang 13

Microsoft PowerPoint Slide Show Quick Reference

To begin the presentation, double-click the PowerPoint Previewer icon from the Program Manager Select the lesson file you want to use Click the Show button Your presentation will run in manual mode Perform the actions listed below for each task

Advance to next slide/bullet point Mouse click, [Spacebar], [N], Right

Arrow, Down Arrow, [Page Down] Return to previous slide/bullet point Right mouse button click, [Backspace],

[P], Left Arrow, Up Arrow, [Page Up]

Go to slide n n + [Return]

Go to first slide [Home]

Go to hidden slide/skip build to next

slide

[H]

End show [Esc], Ctrl+[Break], [–](minus)

Black/unblack screen B, [.] (period)

White/unwhite screen W, [,] (comma)

Ngày đăng: 10/12/2013, 16:16

TỪ KHÓA LIÊN QUAN

w