Case Study Oracle
Case Study Oracle
Case Study
Oracle
Contents
Transaction Control
Application Development
Database is Mounted
Open the control file
Get the data files and Redo Log files
Associate (Data Data Files) to the Instance
Processes
Processes
Serving User Requests
Writing data to Data Files
Recording Transactions in Log Files
Monitoring the Functioning of the Database
Oracle Processes
Oracle Processes
User Process: Serving Users (Sessions)
Server Process: SQL process, Read data,
Return results
Background Processes:
Memory
Memory
System Global Area (SGA) (Heart of
Oracle)
Oracle Processes
Session Memory:
Memory allocated to User Program Code
Permanent Storage
Storage
Data Files (data content)
Online Redo Log Files (online backup)
Archive Log Files (archived backup files)
Initialization Files init.ora
Control Files (smooth database operation)
SGA Definition Files (memory definition)
Oracle Processing Log and Error Files
(monitor, debug)
Header
Table Directory
Row Directory
Row Data
Free Space
Table Directory:
This portion of the data block contains information
about the table having rows in this block.
Data from more than one table may be stored in one
Block
Row Directory:
Contains information about the actual rows in the
block
Arrays of pointers where the row is located within the
Block (ROWIDs)
Free Space:
Free space is allocated for insertion of new
rows and for updates to rows that require
additional space (for example, when a trailing
null is updated to a non-null value)
Query Processing
Stage 3: Describe Results
Stage 4: Defining Output
Stage 5: Bind Any Variables
Stage 6: Execute the Statement
Stage 7: Parallelize the Statement
Stage 8: Fetch Rows of a Query Result
Read Consistency
Statement Level
Read Consistency
Design Of Applications
Entity Relationship (E-R) Diagram
Convert E-R Diagram to Schema Diagram
Validate and refine the Schema Diagram using
Functional Dependencies and Normalization
Create the Physical Schema using Data
Definition languages (DDL)
Create additional objects (such as Indexes,
Views, Constraints, Triggers, Procedures etc)
depending upon the applications.
Normalization
1st NF:
NO Composite attributes
NO Multi-valued attributes
2nd NF:
Every non-prime attribute A in R is fully functionally dependent on
the primary key
3rd NF:
The Relation should be in 2NF and no non-prime attribute A in R is
transitively dependent on the primary key
Informally speaking: Every non-key attribute must depend on the
whole key, and nothing but the key
BCNF:
Stricter form of 3NF
References
Oracle Documentation
http://docs.oracle.com/cd/B28359_01/serv
er.111/b28318/toc.htm
Processes:
http://docs.oracle.com/cd/B28359_01/server.111/b28318/process.htm
Memory (Primary & Secondary):
http://docs.oracle.com/cd/B28359_01/server.111/b28318/memory.htm
http://docs.oracle.com/cd/B28359_01/server.111/b28318/physical.htm
Transaction Management:
http://docs.oracle.com/cd/B28359_01/server.111/b28318/transact.htm