Professional Documents
Culture Documents
Backup Types
Logical
Cold
Hot
Physical
With
Without
Issues
Protect
Protect the
the database
database from
from numerous
numerous types
types of
of failures
failures
Increase
Increase Mean-Time-Between-Failures
Mean-Time-Between-Failures (MTBF)
(MTBF)
Decrease
Decrease Mean-Time-To-Recover
Mean-Time-To-Recover (MTTR)
(MTTR)
Minimize
Minimize data
data loss
loss
Categories of Failures
Statement
Statement failure
failure No Recovery
Needed
Logic
Logic error
error inin an
an application
application
Attempt
Attempt to to enter
enter bad
bad data
data into
into the
the table
table
Attempt
Attempt an an operation
operation with
with insufficient
insufficient
privileges
privileges
Attempt
Attempt an an INSERT
INSERTor or UPDATE
UPDATE to to aa table,
table,
causing
causing an an extent
extent to
to be
be allocated,
allocated,
but
but with
with insufficient
insufficient free
free space
space
left
left in
in the
the tablespace
tablespace
Categories of Failures
Statement
Statement failure
failure No Recovery
Needed
User
User process
process failure
failure PMON
The
The user
user performed
performed an an abnormal
abnormal disconnect
disconnect in
in
the
the session.
session.
The
The users
users session
session was
was abnormally
abnormally terminated.
terminated.
The
The users
users program
program raised
raised an
an address
address
exception
exception terminating
terminating the
the session.
session.
Categories of Failures
Statement
Statement failure
failure Recovery
Needed
User
User process
process failure
failure IMP Utility
User
User error
error
Accidental
Accidental DROP
DROPTABLE;
TABLE;
Accidental
Accidental TRUNCATE
TRUNCATE TABLE;
TABLE;
Accidental
Accidental DELETE
DELETE // UPDATE;
UPDATE;
Categories of Failures
Statement
Statement failure
failure No Recovery
Needed
User
User process
process failure
failure PMON SMON
User
User error
error
Instance
Instance failure
failure
HardWare
HardWare Problem
Problem on
on CPU
CPU // RAM
RAM
Categories of Failures
Statement
Statement failure
failure
User
User process
process failure
failure Recovery
Needed
User
User error
error Physical
Instance
Instance failure
failure
Media
Media failure
failure
HardWare
HardWare Problem
Problem on
on I/O
I/O Device
Device
Requirements for Strategy
Business
Business requirements
requirements
Evolutionary
Evolutionary process
process
Technical
Technical requirements
requirements
Hardware,
Hardware, software,
software, man
man power
power and
and time
time
Database
Database configurations
configurations
Transaction
Transaction volume
volume
Frequency
Frequency of
of backups
backups
Operational
Operational requirements
requirements
7-day
7-day // 24-hour
24-hour operations
operations
Testing
Testing and
and validating
validating backups
backups
Physical Backup Methods
No archive Archive
mode mode
Physical backup
ARCHIVELOG
/disk1/archive/arch%s.arc
053 052
LOG_ARCHIVE_DEST
LOG_ARCHIVE_FORMAT
Enabling ARCHIVELOG
Mode
1 Shutdown normal or immediate
Init.ora Control
file
Online or
offline
storage
STARTUP OPEN;
Advantages of Physical Closed
Database Backups
Conceptually
Conceptually simple
simple
Easy
Easy to
to perform
perform
Require
Require little
little operator
operator interaction
interaction
Physical Opened Database
Backup (1)
Online
redo
log files
Control
files
Online or
offline
storage
Parameter
files Archived redo
log files
HOST cp <files> /backup/
Pwd file
Physical Opened Database
All tablespace data Backup (2) Individual data
files file
SQL>
SQL> alter
alter tablespace
tablespace <name>
<name> begin
begin backup;
backup;
Online or
offline
storage
Data files
HOST cp <files> /backup/
SQL>
SQL> alter
alter tablespace
tablespace <name>
<name> end
end backup;
backup;
Advantages of Physical Opened
Database Backups
Maintains
Maintains high
high database
database availability
availability
Can
Can be
be done
done at
at aa tablespace
tablespace or
or data
data file
file level
level
Supports
Supports nonstop
nonstop business
business operations
operations
1 1 Archived log file
ARC0
Redo log
files
Data files
Control
file
2 1 Archived log file
ARC0
2 1
Redo log
files
Data files
Control
file
3 3 Archived log file
ARC0
2 1 2
Redo log
files
Data files
Control
file
4 3 Archived log file
ARC0
4 1 2
Redo log
files 3
Data files
Control
file
5 5 Archived log file
ARC0
4 1 2
Redo log
files 3 4
Data files
Control
file
Control
file
Data files
6 5 Archived log file
ARC0
6 1 2
Redo log
files 3 4
Data files
5
Control
file
Control
file
Data files
9 9 Archived log file
ARC0
8 1 2
Redo log
files 3 4
Data files
5 6
9 7 8
Control
file
Control
file
Data files
1 Shutdown
2 Startup Mount
8 Startup Open
S.C.N. System Change Number
Data files
Control file RedoRecord
Header
Log file #
Higth SCN #
Logical Backup Methods
Archive
Archive historical
historical data
data
Save
Save table
table definitions
definitions (with
(with or
or without
without data)
data) to
to protect
protect
from
from user
user error
error failure
failure
Move
Move data
data between
between machines
machines and
and databases
databases or
or versions
versions
of
of the
the Oracle
Oracle server
server
Transport
Transport tablespaces
tablespaces between
between databases
databases
Formato
Binario
Proprietario
Data
Imp
Base
Export Concepts
Oracle Server
>expscott/tigerfile=scott.dmpowner=scottgrants=Yrows=Y
Export Messages
Export:Release9.2.0.4.0ProductiononFriOct3009:35:3
(c)Copyright2003OracleCorporation.Allrightsreserved.
Connectedto:Oracle9iEnterpriseEditionRelease9.2.0.4.0
WiththePartitioningoption
PL/SQLRelease9.2.0.4.0Production
ExportdoneinWE8DECcharactersetandWE8DECNCHARcharact
.exportingpreschemaproceduralobjectsandactions
.exportingforeignfunctionlibrarynamesforuserSCOTT
.exportingobjecttypedefinitionsforuserSCOTT
AbouttoexportSCOTTsobjects...
.exportingdatabaselinks
.exportingsequencenumbers
.exportingclusterdefinitions
.abouttoexportSCOTTstablesviaConventionalPath...
..exportingtableBONUS0rowsexported
..exportingtableDEPT4rowsexported
..exportingtableEMP14rowsexported
IncType Complete
IncType Incremental -----> Exp IncType Generic
IncType Cumulative -----> Exp IncType Cumulative or Complete
Oracle Standby
Implementation
ARCH T.N.S.
Recovery proc DBWR
Redo log
Arc log Arc log
RFS
Primary DB Standby DB
Primary Standby
control file control file
1 Recovery Mode 3 Activate
2 ReadOnly Mode