SlideShare a Scribd company logo
1 of 19
CSE 781 – DATABASE MANAGEMENT SYSTEMS

Introduction To Oracle 10g
Introduction To Oracle 10g
Course Objectives

 Introduction to ORACLE & its products
 Introduction to Oracle Architecture
- Oracle Physical structure-Data Files, Control Files and Redo Log Files.
- Oracle Logical Structure- Tablespaces, Segments, Extents and Blocks
- Schema objects-Tables, Sequences, Synonyms, Views
- Oracle Memory Structures and Background Processes, Data Dictionary
Through handouts (lecture 1 & 2):
 Revision of SQL
 Introduction to Advanced SQL & PL/SQL

CSE 781 – Database Management Systems
2
What is Oracle ?
Oracle is a relational database management system.
• It is a management system which uses the relational
data model.
• In the relational data model, data is seen by the users
in form of tables alone.

Oracle Server:
• Is a database management system that provides an open,
comprehensive, integrated approach to information
management.
• Consists of an Oracle Instance and an Oracle database

CSE 781 – Database Management Systems
3
Oracle in Industry
•
•
•
•
•
•

In today’s world, data is the key for business
Every organization stores its data in multiple databases
One of the most widely used database in industry is Oracle
Oracle can work on various Operating Systems (Windows, Unix, etc.)
The demand for Oracle in today’s world is immense
Many projects across the industry use Oracle as back-end for deploying
its various applications.

CSE 781 – Database Management Systems
4
Database Architecture - Introduction
Three Major Instances:
1. Database instance
2. File Structure
3. Data Structures

Database Instance:
•

Oracle Database consists of Software Modules & Database Files

•

Instance –After the complete installation of Oracle 10g, when you start
the Oracle database , then you have what is referred to as an“Oracle
10g Database Instance”. It is the actual execution of DBMS software
that manages data in the databases tablespace.

CSE 781 – Database Management Systems
5
Properties Of Database Instance
1. Created on loading the software from disk to
memory.
2. It is an aggregation of processes and memory
structures
3. It is sharable thus allowing multiple users to access
the same database.

CSE 781 – Database Management Systems
6
Oracle Instance
SMON

PMON

RECO
Optional

SGA

Server
process

Shared
Pool

Database Buffer
Cache

Redo Log
Buffer

Large Pool

Java Pool

PGA

DBWn

CKPT

LGWR

ARCn
Optional

User
process

Data Files

Control

Redo Log
Files

Files

Archive Log
Files

CSE 781 – Database Management Systems
7
Memory Components and Background Processes
•

Two Main Components:

1. SGA( System Global Area)
-a group of shared memory structures that contain data and control
information for one Oracle database instance.
-the data in the instance's SGA is shared among the multiple concurrent
users.
-allocated when you start the database instance.
-de-allocated when the instance is shutdown.
2. PGA (Program Global Area)
-Each server process has a PGA allocated that is a private area for
each server
-Work area for each application.

CSE 781 – Database Management Systems
8
SGA Memory Areas
• Shared pool contains machine-language code and execution plans for
frequently used SQL commands.
• Database Buffer Cache stores data values which are written later to the
data files by the database writer (DBWn).
• Redo Log Buffer stores a copy of the changed data from user
transaction. This data is periodically written to the Redo Log Files by the
Log Writer (LGWR).
• Large Pool is a work area given for backup and recovery operations.
• Java Pool stores the machine-language and execution plans for Java
commands used in application programs and database operations.

CSE 781 – Database Management Systems
9
PGA Memory Areas
• Each server process has a PGA allocated that is a private area for each
server. This is the work area for each application. The application code,
along with copies of the data, is located here.
• There are various background processes that support and monitor the
server processes. These background processes also handle the data
management and keep the database running smooth and efficiently.

CSE 781 – Database Management Systems
10
Processes
• System Monitor (SMON) :
-general server housekeeping functions.
• Process Monitor (PMON) :
- monitors and manages individual user sessions .
-performs database locking/unlocking functions on UPDATE and DELETE
query.
• Database Writer (DBWn) :
-writes changed data from the database buffer cache to data files.
-an oracle 10G instance can have 10 writer instances DBW0-DBW9.
• Log Writer (LGWR) :
-writes the redo log data from the Redo Log Buffer to the Redo Log Files.
-Redo Log files aid in database recovery.
-keep track of the database changes whenever they are committed

CSE 781 – Database Management Systems
11
Processes (contd.)
• Checkpoint (CKPT) :
-responsible for signaling DBWn and LGWR to write the contents of the
Database Buffer Cache and the Redo Log Cache to the data files and
Redo Log files respectively.
• Archiver (ARCn) :
-reads the Redo Log files after they are filled & copies it to a corresponding
Archive Log File.
-there can be up to 10 separate archive processes per instance Arc0-Arc9.
• Recoverer (RECO) :
-detect and correct errors as a result of communications problems in a
distributed database environment.

CSE 781 – Database Management Systems
12
File Structure- Three Basic Oracle Files

Parameter File

1
Control Files

if
nt
e
id

2

id
en
tif
i

s
ie

Provides changes to
Data Files

es

3

Redo Log Files

CSE 781 – Database Management Systems
13
Parameter File – the init.ora file
•

Purpose:
- specifies the configuration information about the database instance.

•

The parameters include:
Names and locations of the control files
Block size
Cache sizes
Database name
Instance name
Domain name
Is read each time a database instance is started
Has a .ora suffix

1.
2.
3.
4.
5.
6.
7.
8.

CSE 781 – Database Management Systems
14
Control Files
•

Purpose:
- contain a list of all other files that make up the database such as data files and
Redo Log files.
-also contain important information about the contents and operating state of the
database.

• The data includes:1. By default, an Oracle 10g database creates three control
files,CONTROL01.CTL, CONTROL02.CTL and CONTROL03.CTL and they are
mirror images of each other.
2. The name of the database
3. Date the database was created
4. Current state of the database: read-only, need-recovery
5. Database status when last closed
6. Interval covered by each archived redo log
7. Backups performed
8. Since this is a critical file you should have more than one control file and they
should be on separate disk drives
9. Have a .ctl suffix

CSE 781 – Database Management Systems
15
Data Files
•

Purpose:
-contain the actual data stored in the database.
-contains user data stored in tables + includes indexes, data dictionary,
and rollback segments.

• Characteristics:
1. Data files are composed of Oracle blocks, which are in turn composed
of operating system blocks
2. Oracle block sizes range from 2 Kb to 32 Kb – average size is 8 Kb
3. Data files belong to only one database and to only one tablespace
within that database
4. Data files are the lowest level of granularity between an Oracle
database and the operating system
5. When you map out a database onto the OS I/O sub-systems, the
smallest unit you can put in any location is a data file
6. Have a .dbf suffix

CSE 781 – Database Management Systems
16
Redo Log Files
•

Purpose:
- store changes made to the database as a result of transaction and internal
Oracle activities.

• Characteristics:
1. By default, an Oracle 10g database contains three redo log groups,
REDO01.log, REDO02.log and REDO03.log
2. Every Oracle 10g database must have at least two redo log groups
3. The database will write log entries to a subsequent redo log group when the
previous redo log group fills up
4. As a general rule , there should be one redo log group for approximately every
four database users that create action queries
5. Oracle 10g keeps track of the Redo Log file by using a redo log sequence
number, this number is recorded inside the file as they are used
6. The redo log sequence number is different than the operating system file name
that is used to identify the physical file
7. If the database is in ARCHIVELOG mode full Redo Log files are copied to
Archive Log files before they are reused, otherwise they are written over
8. Have a .log suffix

CSE 781 – Database Management Systems
17
Data Structures
Database
Instance

Tablespaces
Tablespaces

Segments

Extents

Extents

Extents
Data
Blocks

Extents

Data
Blocks
Data
Blocks

Data
Blocks
Data
Blocks

CSE 781 – Database Management Systems
18
TABLESPACE SEGMENT EXTENTS and DATA BLOCKS
• Tablespace is used to store related database objects. One tablespace is used to store
all of the system tables; another tablespace may be created for all indexes or a
tablespace may be created to store all of the tables for a specific application. The idea
is to store data that has something in common or has similar characteristics. The
database server stores the data in each tablespace in data files with .dbf extensions.
• Segments are used to organize tablespace data within a tablespace. A segment
stores an individual database object like a table or index.
• Extents are contiguous units of storage, usually disk space, within a segment. Oracle
uses extents for performance reasons by storing data that needs to be retrieved in a
single disk I/O. An extent is made up of multiple data blocks
• Data Blocks are the smallest unit of Oracle database storage. Oracle 10g stores 8,192
bytes (8K) in one data block. A data block is comprised of multiple operating system
blocks. Depending on the operating system an operating system block can store 512 to
4K bytes. A data block contains header, directory and row data:
1.Block Header - operating system block address
2.Table Directory - identifies the database table for which the following data belongs
3.Row Directory - identifies the database rows for which the data belongs
4.Row Data - stores the actual row values

CSE 781 – Database Management Systems
19

More Related Content

What's hot (20)

Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
 
Object Oriented Database Management System
Object Oriented Database Management SystemObject Oriented Database Management System
Object Oriented Database Management System
 
Présentation Oracle DataBase 11g
Présentation Oracle DataBase 11gPrésentation Oracle DataBase 11g
Présentation Oracle DataBase 11g
 
Oracle
OracleOracle
Oracle
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
 
Oracle Database | Computer Science
Oracle Database | Computer ScienceOracle Database | Computer Science
Oracle Database | Computer Science
 
Oracle SQL Basics
Oracle SQL BasicsOracle SQL Basics
Oracle SQL Basics
 
Introduction of Oracle
Introduction of Oracle Introduction of Oracle
Introduction of Oracle
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
Database basics
Database basicsDatabase basics
Database basics
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
 
Oracle DB
Oracle DBOracle DB
Oracle DB
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 
Types of databases
Types of databases   Types of databases
Types of databases
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
 
Sql server T-sql basics ppt-3
Sql server T-sql basics  ppt-3Sql server T-sql basics  ppt-3
Sql server T-sql basics ppt-3
 
Data warehouse
Data warehouse Data warehouse
Data warehouse
 
Data Warehouse Basic Guide
Data Warehouse Basic GuideData Warehouse Basic Guide
Data Warehouse Basic Guide
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 

Viewers also liked

Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle ArchitectureNeeraj Singh
 
Introduction to oracle DB data structure and data access (persian)
Introduction to oracle DB data structure and data access (persian)Introduction to oracle DB data structure and data access (persian)
Introduction to oracle DB data structure and data access (persian)Ehsan Hamzei
 
A4 oracle's application engineered storage your application advantage
A4   oracle's application engineered storage your application advantageA4   oracle's application engineered storage your application advantage
A4 oracle's application engineered storage your application advantageDr. Wilfred Lin (Ph.D.)
 
Memory management in oracle
Memory management in oracleMemory management in oracle
Memory management in oracleDavin Abraham
 
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloud
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloudC6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloud
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloudDr. Wilfred Lin (Ph.D.)
 
Project management IT Project Management
Project management IT Project Management Project management IT Project Management
Project management IT Project Management Amanda Haddad
 
Chap01 introduction to project management
Chap01 introduction to project managementChap01 introduction to project management
Chap01 introduction to project managementDhani Ahmad
 
Managing users & tables using Oracle Enterprise Manage
Managing users & tables using Oracle Enterprise ManageManaging users & tables using Oracle Enterprise Manage
Managing users & tables using Oracle Enterprise ManageNR Computer Learning Center
 
Chap03 the project management process groups
Chap03 the project management process groupsChap03 the project management process groups
Chap03 the project management process groupsDhani Ahmad
 
Introduction to project management
Introduction to project managementIntroduction to project management
Introduction to project managementDhani Ahmad
 
Entity relationship (er) modeling
Entity relationship (er) modelingEntity relationship (er) modeling
Entity relationship (er) modelingDhani Ahmad
 
Project integration management
Project integration managementProject integration management
Project integration managementDhani Ahmad
 
Business intelligence and data warehouses
Business intelligence and data warehousesBusiness intelligence and data warehouses
Business intelligence and data warehousesDhani Ahmad
 
Advanced data modeling
Advanced data modelingAdvanced data modeling
Advanced data modelingDhani Ahmad
 
The relational database model
The relational database modelThe relational database model
The relational database modelDhani Ahmad
 
Project management and information technology context
Project management and information technology contextProject management and information technology context
Project management and information technology contextDhani Ahmad
 

Viewers also liked (20)

Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
 
Introduction to oracle DB data structure and data access (persian)
Introduction to oracle DB data structure and data access (persian)Introduction to oracle DB data structure and data access (persian)
Introduction to oracle DB data structure and data access (persian)
 
A4 oracle's application engineered storage your application advantage
A4   oracle's application engineered storage your application advantageA4   oracle's application engineered storage your application advantage
A4 oracle's application engineered storage your application advantage
 
Memory management in oracle
Memory management in oracleMemory management in oracle
Memory management in oracle
 
01 oracle architecture
01 oracle architecture01 oracle architecture
01 oracle architecture
 
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloud
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloudC6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloud
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloud
 
Data models
Data modelsData models
Data models
 
Project management IT Project Management
Project management IT Project Management Project management IT Project Management
Project management IT Project Management
 
Chap01 introduction to project management
Chap01 introduction to project managementChap01 introduction to project management
Chap01 introduction to project management
 
Managing users & tables using Oracle Enterprise Manage
Managing users & tables using Oracle Enterprise ManageManaging users & tables using Oracle Enterprise Manage
Managing users & tables using Oracle Enterprise Manage
 
Chap03 the project management process groups
Chap03 the project management process groupsChap03 the project management process groups
Chap03 the project management process groups
 
Oracle 10g Introduction 1
Oracle 10g Introduction 1Oracle 10g Introduction 1
Oracle 10g Introduction 1
 
Introduction to project management
Introduction to project managementIntroduction to project management
Introduction to project management
 
Entity relationship (er) modeling
Entity relationship (er) modelingEntity relationship (er) modeling
Entity relationship (er) modeling
 
Project integration management
Project integration managementProject integration management
Project integration management
 
Business intelligence and data warehouses
Business intelligence and data warehousesBusiness intelligence and data warehouses
Business intelligence and data warehouses
 
Advanced data modeling
Advanced data modelingAdvanced data modeling
Advanced data modeling
 
The relational database model
The relational database modelThe relational database model
The relational database model
 
Advanced sql
Advanced sqlAdvanced sql
Advanced sql
 
Project management and information technology context
Project management and information technology contextProject management and information technology context
Project management and information technology context
 

Similar to Lecture2 oracle ppt

Oracle training institutes in hyderabad
Oracle training institutes in hyderabadOracle training institutes in hyderabad
Oracle training institutes in hyderabadsreehari orienit
 
DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)Gustavo Rene Antunez
 
Sql introduction
Sql introductionSql introduction
Sql introductionvimal_guru
 
Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement systemMurtazaMughal13
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architectureSoumya Das
 
exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptAmitavaRoy49
 
Exploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptExploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptMohammedHdi1
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)Gustavo Rene Antunez
 
ORACLE Architechture.ppt
ORACLE Architechture.pptORACLE Architechture.ppt
ORACLE Architechture.pptaggarwalb
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.pptHODCA1
 
Oracle training-in-hyderabad
Oracle training-in-hyderabadOracle training-in-hyderabad
Oracle training-in-hyderabadsreehari orienit
 
Oracle Database Architecture
Oracle Database ArchitectureOracle Database Architecture
Oracle Database ArchitectureHamzaakmak1
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architectureImran Ali
 

Similar to Lecture2 oracle ppt (20)

Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
Oracle training institutes in hyderabad
Oracle training institutes in hyderabadOracle training institutes in hyderabad
Oracle training institutes in hyderabad
 
DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
 
Sql introduction
Sql introductionSql introduction
Sql introduction
 
Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement system
 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
 
Less01_Architecture.ppt
Less01_Architecture.pptLess01_Architecture.ppt
Less01_Architecture.ppt
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.ppt
 
Exploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptExploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.ppt
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)
 
ORACLE Architechture.ppt
ORACLE Architechture.pptORACLE Architechture.ppt
ORACLE Architechture.ppt
 
les_01_core.ppt
les_01_core.pptles_01_core.ppt
les_01_core.ppt
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
 
Resize sga
Resize sgaResize sga
Resize sga
 
Oracle training-in-hyderabad
Oracle training-in-hyderabadOracle training-in-hyderabad
Oracle training-in-hyderabad
 
Oracle Database Architecture
Oracle Database ArchitectureOracle Database Architecture
Oracle Database Architecture
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architecture
 

More from Hitesh Kumar Markam (17)

Concepts of Distributed Computing & Cloud Computing
Concepts of Distributed Computing & Cloud Computing Concepts of Distributed Computing & Cloud Computing
Concepts of Distributed Computing & Cloud Computing
 
Data guard
Data guardData guard
Data guard
 
Tunning overview
Tunning overviewTunning overview
Tunning overview
 
Rman offline backup
Rman offline backupRman offline backup
Rman offline backup
 
Oracle shutdown
Oracle shutdownOracle shutdown
Oracle shutdown
 
Log miner in oracle.ppt
Log miner in oracle.pptLog miner in oracle.ppt
Log miner in oracle.ppt
 
Dba in 2 days unit no 9
Dba in 2 days unit no 9Dba in 2 days unit no 9
Dba in 2 days unit no 9
 
5 backuprecoveryw imp
5 backuprecoveryw imp5 backuprecoveryw imp
5 backuprecoveryw imp
 
Rmanpres
RmanpresRmanpres
Rmanpres
 
Pl sql
Pl sqlPl sql
Pl sql
 
Dbms objective and subjective notes
Dbms objective and subjective notesDbms objective and subjective notes
Dbms objective and subjective notes
 
Dba in 2 days
Dba in 2 daysDba in 2 days
Dba in 2 days
 
Creating database
Creating databaseCreating database
Creating database
 
1 plsql introduction1
1 plsql introduction11 plsql introduction1
1 plsql introduction1
 
Store programs
Store programsStore programs
Store programs
 
javascript code for mysql database connection
javascript code for mysql database connectionjavascript code for mysql database connection
javascript code for mysql database connection
 
Advanced Planning And Optimization
Advanced Planning And OptimizationAdvanced Planning And Optimization
Advanced Planning And Optimization
 

Recently uploaded

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 

Recently uploaded (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 

Lecture2 oracle ppt

  • 1. CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Introduction To Oracle 10g
  • 2. Course Objectives  Introduction to ORACLE & its products  Introduction to Oracle Architecture - Oracle Physical structure-Data Files, Control Files and Redo Log Files. - Oracle Logical Structure- Tablespaces, Segments, Extents and Blocks - Schema objects-Tables, Sequences, Synonyms, Views - Oracle Memory Structures and Background Processes, Data Dictionary Through handouts (lecture 1 & 2):  Revision of SQL  Introduction to Advanced SQL & PL/SQL CSE 781 – Database Management Systems 2
  • 3. What is Oracle ? Oracle is a relational database management system. • It is a management system which uses the relational data model. • In the relational data model, data is seen by the users in form of tables alone. Oracle Server: • Is a database management system that provides an open, comprehensive, integrated approach to information management. • Consists of an Oracle Instance and an Oracle database CSE 781 – Database Management Systems 3
  • 4. Oracle in Industry • • • • • • In today’s world, data is the key for business Every organization stores its data in multiple databases One of the most widely used database in industry is Oracle Oracle can work on various Operating Systems (Windows, Unix, etc.) The demand for Oracle in today’s world is immense Many projects across the industry use Oracle as back-end for deploying its various applications. CSE 781 – Database Management Systems 4
  • 5. Database Architecture - Introduction Three Major Instances: 1. Database instance 2. File Structure 3. Data Structures Database Instance: • Oracle Database consists of Software Modules & Database Files • Instance –After the complete installation of Oracle 10g, when you start the Oracle database , then you have what is referred to as an“Oracle 10g Database Instance”. It is the actual execution of DBMS software that manages data in the databases tablespace. CSE 781 – Database Management Systems 5
  • 6. Properties Of Database Instance 1. Created on loading the software from disk to memory. 2. It is an aggregation of processes and memory structures 3. It is sharable thus allowing multiple users to access the same database. CSE 781 – Database Management Systems 6
  • 7. Oracle Instance SMON PMON RECO Optional SGA Server process Shared Pool Database Buffer Cache Redo Log Buffer Large Pool Java Pool PGA DBWn CKPT LGWR ARCn Optional User process Data Files Control Redo Log Files Files Archive Log Files CSE 781 – Database Management Systems 7
  • 8. Memory Components and Background Processes • Two Main Components: 1. SGA( System Global Area) -a group of shared memory structures that contain data and control information for one Oracle database instance. -the data in the instance's SGA is shared among the multiple concurrent users. -allocated when you start the database instance. -de-allocated when the instance is shutdown. 2. PGA (Program Global Area) -Each server process has a PGA allocated that is a private area for each server -Work area for each application. CSE 781 – Database Management Systems 8
  • 9. SGA Memory Areas • Shared pool contains machine-language code and execution plans for frequently used SQL commands. • Database Buffer Cache stores data values which are written later to the data files by the database writer (DBWn). • Redo Log Buffer stores a copy of the changed data from user transaction. This data is periodically written to the Redo Log Files by the Log Writer (LGWR). • Large Pool is a work area given for backup and recovery operations. • Java Pool stores the machine-language and execution plans for Java commands used in application programs and database operations. CSE 781 – Database Management Systems 9
  • 10. PGA Memory Areas • Each server process has a PGA allocated that is a private area for each server. This is the work area for each application. The application code, along with copies of the data, is located here. • There are various background processes that support and monitor the server processes. These background processes also handle the data management and keep the database running smooth and efficiently. CSE 781 – Database Management Systems 10
  • 11. Processes • System Monitor (SMON) : -general server housekeeping functions. • Process Monitor (PMON) : - monitors and manages individual user sessions . -performs database locking/unlocking functions on UPDATE and DELETE query. • Database Writer (DBWn) : -writes changed data from the database buffer cache to data files. -an oracle 10G instance can have 10 writer instances DBW0-DBW9. • Log Writer (LGWR) : -writes the redo log data from the Redo Log Buffer to the Redo Log Files. -Redo Log files aid in database recovery. -keep track of the database changes whenever they are committed CSE 781 – Database Management Systems 11
  • 12. Processes (contd.) • Checkpoint (CKPT) : -responsible for signaling DBWn and LGWR to write the contents of the Database Buffer Cache and the Redo Log Cache to the data files and Redo Log files respectively. • Archiver (ARCn) : -reads the Redo Log files after they are filled & copies it to a corresponding Archive Log File. -there can be up to 10 separate archive processes per instance Arc0-Arc9. • Recoverer (RECO) : -detect and correct errors as a result of communications problems in a distributed database environment. CSE 781 – Database Management Systems 12
  • 13. File Structure- Three Basic Oracle Files Parameter File 1 Control Files if nt e id 2 id en tif i s ie Provides changes to Data Files es 3 Redo Log Files CSE 781 – Database Management Systems 13
  • 14. Parameter File – the init.ora file • Purpose: - specifies the configuration information about the database instance. • The parameters include: Names and locations of the control files Block size Cache sizes Database name Instance name Domain name Is read each time a database instance is started Has a .ora suffix 1. 2. 3. 4. 5. 6. 7. 8. CSE 781 – Database Management Systems 14
  • 15. Control Files • Purpose: - contain a list of all other files that make up the database such as data files and Redo Log files. -also contain important information about the contents and operating state of the database. • The data includes:1. By default, an Oracle 10g database creates three control files,CONTROL01.CTL, CONTROL02.CTL and CONTROL03.CTL and they are mirror images of each other. 2. The name of the database 3. Date the database was created 4. Current state of the database: read-only, need-recovery 5. Database status when last closed 6. Interval covered by each archived redo log 7. Backups performed 8. Since this is a critical file you should have more than one control file and they should be on separate disk drives 9. Have a .ctl suffix CSE 781 – Database Management Systems 15
  • 16. Data Files • Purpose: -contain the actual data stored in the database. -contains user data stored in tables + includes indexes, data dictionary, and rollback segments. • Characteristics: 1. Data files are composed of Oracle blocks, which are in turn composed of operating system blocks 2. Oracle block sizes range from 2 Kb to 32 Kb – average size is 8 Kb 3. Data files belong to only one database and to only one tablespace within that database 4. Data files are the lowest level of granularity between an Oracle database and the operating system 5. When you map out a database onto the OS I/O sub-systems, the smallest unit you can put in any location is a data file 6. Have a .dbf suffix CSE 781 – Database Management Systems 16
  • 17. Redo Log Files • Purpose: - store changes made to the database as a result of transaction and internal Oracle activities. • Characteristics: 1. By default, an Oracle 10g database contains three redo log groups, REDO01.log, REDO02.log and REDO03.log 2. Every Oracle 10g database must have at least two redo log groups 3. The database will write log entries to a subsequent redo log group when the previous redo log group fills up 4. As a general rule , there should be one redo log group for approximately every four database users that create action queries 5. Oracle 10g keeps track of the Redo Log file by using a redo log sequence number, this number is recorded inside the file as they are used 6. The redo log sequence number is different than the operating system file name that is used to identify the physical file 7. If the database is in ARCHIVELOG mode full Redo Log files are copied to Archive Log files before they are reused, otherwise they are written over 8. Have a .log suffix CSE 781 – Database Management Systems 17
  • 19. TABLESPACE SEGMENT EXTENTS and DATA BLOCKS • Tablespace is used to store related database objects. One tablespace is used to store all of the system tables; another tablespace may be created for all indexes or a tablespace may be created to store all of the tables for a specific application. The idea is to store data that has something in common or has similar characteristics. The database server stores the data in each tablespace in data files with .dbf extensions. • Segments are used to organize tablespace data within a tablespace. A segment stores an individual database object like a table or index. • Extents are contiguous units of storage, usually disk space, within a segment. Oracle uses extents for performance reasons by storing data that needs to be retrieved in a single disk I/O. An extent is made up of multiple data blocks • Data Blocks are the smallest unit of Oracle database storage. Oracle 10g stores 8,192 bytes (8K) in one data block. A data block is comprised of multiple operating system blocks. Depending on the operating system an operating system block can store 512 to 4K bytes. A data block contains header, directory and row data: 1.Block Header - operating system block address 2.Table Directory - identifies the database table for which the following data belongs 3.Row Directory - identifies the database rows for which the data belongs 4.Row Data - stores the actual row values CSE 781 – Database Management Systems 19