Oracle DBA Online Training -DBA Technologies

19
WELCOME TO DBA TECHNOLOGIES ORACLE DATABASE ARCHITECTURE – 1 By Mr. PRASAD MYNUMPATI 18 Years Real Time in INDIA- USA http://www.dbatechnologies.net/ www.dbatechnologies.net Building Career With Passion

description

DBA Technologies is an Exclusive Quality training hub on ORACLE Database Administration, ORACLE Apps DBA and ORACLE RAC DBA which is aligned to present corporate requirements. We facilitate in-depth conceptual discussions coupled with real time scenarios. see more at: http://www.dbatechnologies.net/

Transcript of Oracle DBA Online Training -DBA Technologies

Page 1: Oracle DBA Online Training -DBA Technologies

WELCOME TO DBA TECHNOLOGIES

ORACLE DATABASE ARCHITECTURE – 1

By

Mr. PRASAD MYNUMPATI

18 Years Real Time in

INDIA-USA

http://www.dbatechnologies.net/

www.dbatechnologies.net

Building Career With Passion

Page 2: Oracle DBA Online Training -DBA Technologies

Architecture

Main components of Architecture

1. ORACLE INSTANCE

SGA (Memory) &

Background Process

2. ORACLE DATABASE

Storage Level

Page 3: Oracle DBA Online Training -DBA Technologies

ORACLE Instance Architecture – SGA

What is ORACLE INSTANCE?

Physical Memory (SGA) & Processes

SGA should be able to open in physical memory

What is SWAP?

Swap also a type of file system on HDD, it is used by OS when Real memory usage is at high

Swap must be available before installing Oracle Software

Page 4: Oracle DBA Online Training -DBA Technologies

Oracle Instance Architecture – PROCESSES

Each connection to UNIX operating system is processWhile starting up instance – SGA (Memory Structures) – Background Process ($ps)Background process are required to manage memory structures and database files.Some of the important background process are: DBWn, LGWR, SMON, PMON, ARCH,RECO

Page 5: Oracle DBA Online Training -DBA Technologies

Instance Architecture

SGA - Mandate and Optional memory structures and background processes

Streams PoolLarge

DBWn LGWR SMON PMON CKPT RECO

Page 6: Oracle DBA Online Training -DBA Technologies

What is ORACLE DATABASE?

ORACLE DATABASE is a combination of 3 different types of files

Different types of files (C,R,D)

-Control Files

-Redo log files

-Data files

Page 7: Oracle DBA Online Training -DBA Technologies

DB Architecture - Control Files

Control Files – Holds data about database structure (physical database

structural information)

Importance of control file

– Database can not be started with out control file

– Multiplexing to support from failures

– Supports up to 8 file copies

Page 8: Oracle DBA Online Training -DBA Technologies

DB Architecture – Control Files

Contents of Control file

• Database Name and database id

• Database creation date and time

• All database file names (data files)

• Location of each data file• Age of each file (Checkpoint Information)

• Current online log sequence number

• Checkpoint number

• Backup information

Page 9: Oracle DBA Online Training -DBA Technologies

DB Architecture - Data File

Data FilesStores actual data permanently in ORACLE proprietary files called data files.Data files are going to be on file system like -UNIX

-EXT2

-EXT3

-NTFS (in case of windows)

Minimum 3 data base files are required from 10g -System

-Undo

-Sysaux

Page 10: Oracle DBA Online Training -DBA Technologies

DB Architecture - Redo log files

Stores all changes in the form of change vectors for recovery

Changes are saved to Data Files and Redo Log Files – what is the

difference?

Changes to REDO LOG FILES are in the form of change vectors

– Block id

– File id

– Change details

Changes to Data files are in the form of rows and blocks

Page 11: Oracle DBA Online Training -DBA Technologies

DB Architecture

Control files : minimum 1. Stores Database structural information. Recommended 3 files.

Disk1Control

Disk2Control

Disk3Control

Data files : Minimum 3 from 10g. Stores data permanently for retrieval purpose.

System Undo Sysaux

Redo log files: Minimum -2

holds all changes in the formof changes vectors for recovery Rego1a

.logRedo2a

.log

Page 12: Oracle DBA Online Training -DBA Technologies

Oracle Server

Oracle Server is the combination of Oracle Instance & Oracle database.

Database access is only via Instance

SGA Database

> SelectDBBC SPFrom

Emp;User Process

ControlRedoDataFiles

LC DDC

REDO LOG

BUFFERSBack ground Processes

Page 13: Oracle DBA Online Training -DBA Technologies

Logical and Physical aspect of Oracle database

DATABASE

PHYSICAL LOGICAL

ControlFiles

Tables

ViewsData Files

ProceduresRedo LogFiles

Triggers

Page 14: Oracle DBA Online Training -DBA Technologies

IS INSTANCE PHYSICAL OR LOGICAL ?

PHYSICAL

LOGICAL

INSTANCE

?NEITHER

IT IS VOLATILE

Page 15: Oracle DBA Online Training -DBA Technologies

ORACLE Database TS Architecture

SYSTEM TABLE SPACE

INDEX TABLESPACE

DATA TABLESPACE

TEMPORARY TABLESAPCE

UNDO TABLESPACE

SYSAUX TABLESPACE

Page 16: Oracle DBA Online Training -DBA Technologies

Database Architecture – SYSTEM TS

Users should not keep application data on SYSTEM tablespace.It is only to support base tables like.

TAB$COL$IND$

Base Tables are created during the creation of data base to support metadata.

Page 17: Oracle DBA Online Training -DBA Technologies

Database Architecture – SYSAUX TS

SYSAUX tablespace introduced in version 10gSupports work load repository Reports such as AWR and ADDM willmake use of SYSAUX to generate reportsHelps in understanding the performance at SERVER level

Page 18: Oracle DBA Online Training -DBA Technologies

Database Architecture – UNDO TS

UNDO tablespace is to support image during DML operationsSupports Read consistencyFlashback operationsRollback transactionsContents of UNDO TS type is UNDO it is not permanent

Page 19: Oracle DBA Online Training -DBA Technologies

Building career with passion

DSNR:944 11 72 718/040-65555689www.dbatechnologies.net

QUESTION AND ANSWER SESSION