Documente Academic
Documente Profesional
Documente Cultură
Oracle 10G
LEVEL LEARNER
Icon Used
Hands on Exercise
Coding
Standards
Referenc
e
Lend A
Hand
Overview
Question
s
Points To
Ponder
Summar
y
Test Your
Understanding
Objective
Check Your
Understandi
Overview
Physical
Database
Structures,
and
Logical
Application
Objective
After completing this session, participants
will be able to:
Overview about Oracle.
Oracle's Physical and Logical Database
Structures.
Oracle Application Architecture.
How Oracle Works?
Oracle Memory Architecture
Oracle Process Architecture
Oracle Database Security
Overview of PL/SQL
4
Database
Oracle Instance
Banking
Database
Retail
Database
Media
Database
Oracle Instance
Oracle Instance
Oracle Instance
Physical Database
Structure
Oracle database physically maintains
data in one or more physical files
grouped under physical data structure.
Logical Database
Structure
Oracle logically divides the database
into smaller units to manage, store,
and retrieve data efficiently.
11
Database
SQL * Plus is a command line tool which are used for executing SQL
queries.
iSQL*Plus:
12
13
14
15
SGA
Buffer
Cache
Shared
Pool
Java
Pool
Server
Process 2
16
Backgroun
d Process
PGA
PGA
PGA
Redo Log
Buffer
Large
Pool
PMON
PGA
17
18
Buffer
Cache
SGA
Shared
Pool
Redo Log
Buffer
19
Connects to database
Execute SQL
Tim
21
Databa
se
Process Types
22
Process Illustration
Assume Ron, Tim and Jack have connected to database and queries the
database.
Oracle Instance
Tim User
Process
Ron User
Process
Jack User
Process
SGA
Server
Proces
s
Recover
er
Proces
s
Monito
r
Syste
m
Monito
r
Databa
se
Writer
Oracle Processes
23
Log
Writer
Archiv
er
Example:
Example:
Security Mechanisms
Oracle database provides discretionary access control, which
is a means of restricting access to information based on
privileges.
Appropriate privilege should be assigned to users to access
schema objects.
Example: Tom can be given privilege to access Employee table
but Ron cant access it.
Privileged users can grant other users privileges at their
discretion. For this reason it is referred as discretionary.
Example: Tom can give privilege access for Ron to access
Employee table.
26
Security Mechanisms
Oracle manages security using the following mechanisms
Database Users & Schemas.
Privileges
Roles
Storage settings & Quotas
Profiles& Resource Limits.
User authentication
User Authorization
Auditing
27
28
29
Introduction to PL/SQL
What is PL/SQL?
PL stands for Procedural Language and PL/SQL is the
procedural extension to SQL with design features of any
programming language.
Few details about PL/SQL:
PL/SQL allows to mix SQL statements with Procedural
Statements like IF statement, Looping structures etc.
PL/SQL allows DDL,DML,DQL,TCL and DCL Statements of
SQL to be part of the block structured unit of codes making
PL/SQL a powerful transaction DDL
processing language.
Can Contain
DML
PL/SQL
DQL
Loops, IF etc.
30
31
Advantages of PL/SQL
These are the advantages of PL/SQL,
1. Reusable - Block Structures: PL/SQL consists of blocks of
code. Each block contains SQL statements which forms a
unit of a task or a logical module. PL/SQL Blocks can be
stored in the database and reused.
2. Easy to develop - Procedural Language Capability:
PL/SQL uses procedural language constructs such as
conditional statements (if else statements) and loops like
(FOR loops).
3. Better Performance: PL SQL engine processes multiple
SQL statements simultaneously as a single block within the
database engine, thereby reducing network traffic. Also, the
set of instructions are stored as database objects in a
compiled form, thus improving performance.
4.
32
Database
Clients
33
SGA
generate_Invoice
Begin
END
2. PL/SQL
engine loads
procedure in
SGA.
4. SQL
executor
executes SQL
statement in
the
procedure.
PL/SQL Engine
Procedural
statement
Executor`
SQL
PL/SQL
Executor
34
Questions
35
Summary
Summarizing the topic in the below following:
Overview about Oracle.
Oracle's Physical and Logical Database
Structures.
Oracle Application Architecture.
How Oracle Works?
Oracle Memory Architecture
Oracle Process Architecture
Oracle Database Security
Overview of PL/SQL
36
Source
http://myacademy/catcms/course/view.php?id=548
Disclaimer: Parts of the content of this course is based on the materials available from the
Web sites and books listed above. The materials that can be accessed from linked sites are
not maintained by Cognizant Academy and we are not responsible for the contents thereof.
All trademarks, service marks, and trade names in this course are the marks of the
respective owner(s).
37
Change Log
39
Version
Number
Changes made
V1.0
Initial Version
V1.1
Slide No.
Changed By
Effective
Date
Changes
Effected