Overview of Oracle Database
Overview of Oracle Database
Database
DB
Last Month Next Month
SGA
Shared pool
Library
Database cache
Redo log
buffer
buffer
cache Data dictionary
cache
Server
DBWn CKPT LGWR ARCn
process
User Archived
process Control Online redo log files
Data files files log files
Database
• System Global Area (SGA): Group of shared memory structures,
known as SGA
• components, that contain data and control information for one
Oracle Database instance.
•
• Database buffer cache: Caches blocks of data retrieved from the
database
Logical Physical
Database
Segment
Extent
Oracle data
OS block
block
Tablespaces and Data Files
• Tablespaces consist of one or more data files.
• Data files belong to only one tablespace.
USERS tablespace
Tablespaces and Data Files
OPEN
STARTUP All files opened as
described by the control
MOUNT file for this instance
Control file
opened for this
NOMOUNT instance
Instance
started
SHUTDOWN
Startup Options: Examples
SQL> startup 1
Shutdown Mode A I T N
Shutdown modes:
• A = ABORT
• I = IMMEDIATE
• T = TRANSACTIONAL
• N = NORMAL
ASM and RAC CONCEPTS
Automatic Storage Management
Operating system
What is RAC?
Multiple instances running on separate servers (nodes)
Single database on shared storage accessible to all nodes
Instances exchange information over an interconnect network
Interconnect
Instance 1 Instance 2
Node 1 Node 2
Shared
Storage
OCR (Oracle Cluster Registry) – resides on shared storage and maintains
information about cluster configuration and information about cluster database.
OCR contains information like which database instances run on which nodes and
which services runs on which database.
Voting Disk – is file that resides on shared storage and Manages cluster members.
Voting disk reassigns cluster ownership between the nodes in case of failure.
Diskgroup –
VIP -virtual IP
Interconnect - Instances communicate with each other over the interconnect
(network)
SCAN Ips
SCAN – Single Client Access Name
Cluster commands
ASM commands
• Asmcmd lsdg
• Asmcmd mount all
• Asmcmd umount all
RMAN backups
Using the RMAN Command Line
1 $ rman target /
2 RMAN> CONFIGURE …
3 RMAN> BACKUP DATABASE PLUS ARCHIVELOG;
Copies of
Control
Control Archived log
Data files files file SPFILE
file