SlideShare uma empresa Scribd logo
1 de 35
Backup and Recovery
Backup Types
Logical
Cold
Hot
Physical
With
Without
Issues
–
–
–
–
–
–
–
–

Protect the database from numerous types of failures
Protect the database from numerous types of failures
Increase Mean-Time-Between-Failures (MTBF)
Increase Mean-Time-Between-Failures (MTBF)
Decrease Mean-Time-To-Recover (MTTR)
Decrease Mean-Time-To-Recover (MTTR)
Minimize data loss
Minimize data loss
Categories of Failures
– Statement failure
– Statement failure

–
–
–
–
–
–

Logic error in an application
Logic error in an application
Attempt to enter bad data into the table
Attempt to enter bad data into the table
Attempt an operation with insufficient
Attempt an operation with insufficient
privileges
privileges
– Attempt an INSERT or UPDATE to a table,
– Attempt an INSERT or UPDATE to a table,
causing an extent to be allocated,
causing an extent to be allocated,
but with insufficient free space
but with insufficient free space
left in the tablespace
left in the tablespace

No Recovery
Needed
Categories of Failures
– Statement failure
– Statement failure
– User process failure
– User process failure

– The user performed an abnormal disconnect in
– The user performed an abnormal disconnect in
the session.
the session.
– The user’s session was abnormally terminated.
– The user’s session was abnormally terminated.
– The user’s program raised an address
– The user’s program raised an address
exception terminating the session.
exception terminating the session.

No Recovery
Needed
PMON
Categories of Failures
– Statement failure
– Statement failure
– User process failure
– User process failure
– User error
– User error

–
–
–
–
–
–

Accidental DROP TABLE;
Accidental DROP TABLE;
Accidental TRUNCATE TABLE;
Accidental TRUNCATE TABLE;
Accidental DELETE // UPDATE;
Accidental DELETE UPDATE;

Recovery
Needed
IMP Utility
Categories of Failures
– Statement failure
– Statement failure
– User process failure
– User process failure
– User error
– User error
– Instance failure
– Instance failure
– HardWare Problem on CPU // RAM
– HardWare Problem on CPU RAM

No Recovery
Needed
PMON SMON
Categories of Failures
– Statement failure
– Statement failure
– User process failure
– User process failure
– User error
– User error
– Instance failure
– Instance failure
– Media failure
– Media failure
– HardWare Problem on I/O Device
– HardWare Problem on I/O Device

Recovery
Needed
Physical
Requirements for Strategy
– Business requirements
– Business requirements
•• Evolutionary process
Evolutionary process

– Technical requirements
– Technical requirements
••
••
••
••

Hardware, software, man power and time
Hardware, software, man power and time
Database configurations
Database configurations
Transaction volume
Transaction volume
Frequency of backups
Frequency of backups

– Operational requirements
– Operational requirements
••
••

7-day // 24-hour operations
7-day 24-hour operations
Testing and validating backups
Testing and validating backups
Physical Backup Methods

No archive
mode

Archive
mode
Physical backup
ARCHIVELOG
Online redo log files
Group 1

053

Archived log
file

Group 2

052

ARC0

052

/disk1/archive/
arch%s.arc
053

052
LOG_ARCHIVE_DEST
LOG_ARCHIVE_FORMAT
Enabling ARCHIVELOG
Mode
1
2

4

Startup mount

Init.ora

3

Shutdown normal or immediate
Alter database open

Control
file

Alter database ARCHIVELOG

6

5

Shutdown normal or
immediate

Full database backup
SHUTDOWN IMMEDIATE;

Physical Closed Database Backup

Data files

Control
files

Redo log
files

Password Parameter
files
file

HOST cp <files> /backup/
Online or
offline
storage
STARTUP OPEN;
Advantages of Physical Closed
Database Backups
– Conceptually simple
– Conceptually simple
– Easy to perform
– Easy to perform
– Require little operator interaction
– Require little operator interaction
Physical Opened Database
Backup (1)
Online
redo
log files

Control
files

Parameter
files

Online or
offline
storage

Archived redo
log files
HOST cp <files> /backup/

Pwd file
Physical Opened Database
All tablespace data Backup (2)
Individual data
files

file

SQL> alter tablespace <name> begin backup;
SQL> alter tablespace <name> begin backup;

Online or
offline
storage

Data files
HOST cp <files> /backup/
SQL> alter tablespace <name> end backup;
SQL> alter tablespace <name> end backup;
Advantages of Physical Opened
Database Backups
– Maintains high database availability
– Maintains high database availability
– Can be done at a tablespace or data file level
– Can be done at a tablespace or data file level
– Supports nonstop business operations
– Supports nonstop business operations
1

Archived log file

1

ARC0
Redo log
files

Data files

1

Control
file
2

2

Redo log
files

Data files

2

Control
file

Archived log file

1

ARC0

1
3

2

Redo log
files

Data files

3

Control
file

Archived log file

3

ARC0

1

2
4

4

Redo log
files

Data files

4

Control
file

Archived log file

3

ARC0

1
3

2
5

Archived log file

5

ARC0

Redo log
files

Data files

5

Control
file
5
5

Data files

Control
file

1

2

3

4

4
6

Archived log file

5

ARC0

Redo log
files

Data files

1

2

3

6

4

5
6

Control
file
5
5

Data files

Control
file
9

Archived log file

9

ARC0

Data files

Control
file
5
5

Data files

Control
file

4
6

7

9

2

5

Redo log
files

1
3

8

8
1

Shutdown

2

Startup Mount

3O.S.

Restore From Hot or Cold Physical BackUp DataFile (s)

9

9

9
5

4

8

Redo log
files
Data files

Recover DataFile (s) Automatic

4a
4b

9

Applyed Archived Logs #5 #6 #7
Applyed On Line Logs #8 #9

5

Alter DataBase Open

6

Shutdown Immediate

7

New Cold Physical BackUp

8

Startup Open

9

Control
file
S.C.N. System Change Number

Data files
Header

Control file

1

RedoRecord

Incremental Time Stamp

2

Unique Identified “Committed Version D.B.”

Log file #
Log file

Low SCN #
Higth SCN #
Logical Backup Methods
Oracle Export and Import
Utilities
• An interactive dialog
• An interactive dialog
• The export page of the Data Manager within
• The export page of the Data Manager within
Enterprise Manager
Enterprise Manager
• The command line interface, by specifying
• The command line interface, by specifying
parameters
parameters
These utilities enable you to do the following:
These utilities enable you to do the following:
– Archive historical data
– Archive historical data
– Save table definitions (with or without data) to protect
– Save table definitions (with or without data) to protect
from user error failure
from user error failure
– Move data between machines and databases or versions
– Move data between machines and databases or versions
of the Oracle server
of the Oracle server
– Transport tablespaces between databases
– Transport tablespaces between databases
Formato
Binario
Proprietario
Data
Base

Exp

Data
Base

Imp

File *.dmp
Export Concepts
Oracle Server
Generate SQL
commands

Two-Task
common
(TTC)

Dump file

TTC
buffer

1

Full
1a

2

SQL
Buffer
command
cache
Analyze blocks
processing manager

Evaluating
buffer

Owner

3

Buffer
cache

Read blocks

Tables
Oracle9i Server

IncType Complete
1b

IncType Cumulative
1c IncType Incremental
KEYWORD
DESCRIPTION
(DEFAULT)
----------------------------------------------------------------USERID
username/password
BUFFER
size of data buffer
FILE
LOG
PARFILE
FILESIZE

output files
(EXPDAT.DMP)
log file of screen output
parameter filename
maximum size of each dump file

COMPRESS
CONSISTENT

import into one extent
cross-table consistency

(Y)
(N)

GRANTS
INDEXES
ROWS
CONSTRAINTS
TRIGGERS

export
export
export
export
export

(Y)
(Y)
(Y)
(Y)
(Y)

FULL
OWNER
TABLES

export entire DataBase
list of owner usernames
list of table names

INCTYPE
DIRECT
STATISTICS

incremental export type
direct path
analyze objects

grants
indexes
data rows
constraints
triggers

(N)

(N)
(ESTIMATE)
Command-Line Method

> exp scott/tiger file=scott.dmp owner=scott grants=Y rows=Y compres

Export Messages

Export: Release 9.2.0.4.0 - Production on Fri Oct 30 09:35:33 1998
(c) Copyright 2003 Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Produc
With the Partitioning option
PL/SQL Release 9.2.0.4.0 - Production
Export done in WE8DEC character set and WE8DEC NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SCOTT
. exporting object type definitions for user SCOTT
About to export SCOTT’s objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export SCOTT’s tables via Conventional Path ...
. . exporting table BONUS 0 rows exported
. . exporting table DEPT 4 rows exported
. . exporting table EMP 14 rows exported
IncType Complete
IncType Incremental -----> Exp IncType Generic
IncType Cumulative -----> Exp IncType Cumulative or Complete
Oracle Standby
Implementation
•
•
•
•
•

Fail over Solution
Disaster Recovery Solution (if remote)
Ease of implementation
Minimum impact on Production System
Read Only Standby Database
Overview of Managed Oracle Standby DB
Primary Instance

ARCH

Standby Instance
T.N.S.

Redo log

Recovery proc

DBWR

Arc log

Arc log
RFS
Primary DB

Standby DB
Primary
control file

Standby
control file

1

Recovery Mode

2

3

ReadOnly Mode

Activate

Mais conteúdo relacionado

Mais procurados

DB2 Basic Commands - UDB
DB2 Basic Commands - UDBDB2 Basic Commands - UDB
DB2 Basic Commands - UDBSrinimf-Slides
 
How should I monitor my idaa
How should I monitor my idaaHow should I monitor my idaa
How should I monitor my idaaCuneyt Goksu
 
Understanding IBM Tivoli OMEGAMON for DB2 Batch Reporting, Customization and ...
Understanding IBM Tivoli OMEGAMON for DB2 Batch Reporting, Customization and ...Understanding IBM Tivoli OMEGAMON for DB2 Batch Reporting, Customization and ...
Understanding IBM Tivoli OMEGAMON for DB2 Batch Reporting, Customization and ...Cuneyt Goksu
 
Backing Up and Recovery
Backing Up and RecoveryBacking Up and Recovery
Backing Up and RecoveryMaham Huda
 
[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery[Altibase] 13 backup and recovery
[Altibase] 13 backup and recoveryaltistory
 
DB2 Accounting Reporting
DB2  Accounting ReportingDB2  Accounting Reporting
DB2 Accounting ReportingJohn Campbell
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oraclesadegh salehi
 
IBM Tivoli Storage Manager V6 - PCTY 2011
IBM Tivoli Storage Manager V6 - PCTY 2011IBM Tivoli Storage Manager V6 - PCTY 2011
IBM Tivoli Storage Manager V6 - PCTY 2011IBM Sverige
 
Episode 4 DB2 pureScale Performance Webinar Oct 2010
Episode 4 DB2 pureScale Performance Webinar Oct 2010Episode 4 DB2 pureScale Performance Webinar Oct 2010
Episode 4 DB2 pureScale Performance Webinar Oct 2010Laura Hood
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recoveryasifmalik110
 
Firebird recovery tools and techniques by IBSurgeon
Firebird recovery tools and techniques by IBSurgeonFirebird recovery tools and techniques by IBSurgeon
Firebird recovery tools and techniques by IBSurgeonAlexey Kovyazin
 
Galvin-operating System(Ch6)
Galvin-operating System(Ch6)Galvin-operating System(Ch6)
Galvin-operating System(Ch6)dsuyal1
 
Db2 analytics accelerator technical update
Db2 analytics accelerator  technical updateDb2 analytics accelerator  technical update
Db2 analytics accelerator technical updateCuneyt Goksu
 
Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
Episode 3  DB2 pureScale Availability And Recovery [Read Only] [Compatibility...Episode 3  DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility...Laura Hood
 
High Availability Options for DB2 Data Centre
High Availability Options for DB2 Data CentreHigh Availability Options for DB2 Data Centre
High Availability Options for DB2 Data Centreterraborealis
 
45 ways to speed up firebird database
45 ways to speed up firebird database45 ways to speed up firebird database
45 ways to speed up firebird databaseFabio Codebue
 
DB2 Pure Scale Webcast
DB2 Pure Scale WebcastDB2 Pure Scale Webcast
DB2 Pure Scale WebcastLaura Hood
 

Mais procurados (19)

DB2 Basic Commands - UDB
DB2 Basic Commands - UDBDB2 Basic Commands - UDB
DB2 Basic Commands - UDB
 
How should I monitor my idaa
How should I monitor my idaaHow should I monitor my idaa
How should I monitor my idaa
 
Understanding IBM Tivoli OMEGAMON for DB2 Batch Reporting, Customization and ...
Understanding IBM Tivoli OMEGAMON for DB2 Batch Reporting, Customization and ...Understanding IBM Tivoli OMEGAMON for DB2 Batch Reporting, Customization and ...
Understanding IBM Tivoli OMEGAMON for DB2 Batch Reporting, Customization and ...
 
Tashkent
TashkentTashkent
Tashkent
 
Backing Up and Recovery
Backing Up and RecoveryBacking Up and Recovery
Backing Up and Recovery
 
[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery
 
DB2 Accounting Reporting
DB2  Accounting ReportingDB2  Accounting Reporting
DB2 Accounting Reporting
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
IBM Tivoli Storage Manager V6 - PCTY 2011
IBM Tivoli Storage Manager V6 - PCTY 2011IBM Tivoli Storage Manager V6 - PCTY 2011
IBM Tivoli Storage Manager V6 - PCTY 2011
 
Episode 4 DB2 pureScale Performance Webinar Oct 2010
Episode 4 DB2 pureScale Performance Webinar Oct 2010Episode 4 DB2 pureScale Performance Webinar Oct 2010
Episode 4 DB2 pureScale Performance Webinar Oct 2010
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recovery
 
Firebird recovery tools and techniques by IBSurgeon
Firebird recovery tools and techniques by IBSurgeonFirebird recovery tools and techniques by IBSurgeon
Firebird recovery tools and techniques by IBSurgeon
 
Galvin-operating System(Ch6)
Galvin-operating System(Ch6)Galvin-operating System(Ch6)
Galvin-operating System(Ch6)
 
Db2 analytics accelerator technical update
Db2 analytics accelerator  technical updateDb2 analytics accelerator  technical update
Db2 analytics accelerator technical update
 
Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
Episode 3  DB2 pureScale Availability And Recovery [Read Only] [Compatibility...Episode 3  DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility...
 
Backup And Recovery
Backup And RecoveryBackup And Recovery
Backup And Recovery
 
High Availability Options for DB2 Data Centre
High Availability Options for DB2 Data CentreHigh Availability Options for DB2 Data Centre
High Availability Options for DB2 Data Centre
 
45 ways to speed up firebird database
45 ways to speed up firebird database45 ways to speed up firebird database
45 ways to speed up firebird database
 
DB2 Pure Scale Webcast
DB2 Pure Scale WebcastDB2 Pure Scale Webcast
DB2 Pure Scale Webcast
 

Destaque

Oracle Database Backup Service
Oracle Database Backup ServiceOracle Database Backup Service
Oracle Database Backup ServiceTrivadis
 
What is cloud backup?
What is cloud backup?What is cloud backup?
What is cloud backup?Asigra
 
【OCP Summit 2016】オラクル・インフラストラクチャー・サービス(IaaS)~高いコスト競争力を持つエンタープライズIaaS~
【OCP Summit 2016】オラクル・インフラストラクチャー・サービス(IaaS)~高いコスト競争力を持つエンタープライズIaaS~【OCP Summit 2016】オラクル・インフラストラクチャー・サービス(IaaS)~高いコスト競争力を持つエンタープライズIaaS~
【OCP Summit 2016】オラクル・インフラストラクチャー・サービス(IaaS)~高いコスト競争力を持つエンタープライズIaaS~オラクルエンジニア通信
 
Oracle Cloud Storage Service & Oracle Database Backup Cloud Service
Oracle Cloud Storage Service & Oracle Database Backup Cloud ServiceOracle Cloud Storage Service & Oracle Database Backup Cloud Service
Oracle Cloud Storage Service & Oracle Database Backup Cloud ServiceJean-Philippe PINTE
 
次世代インフラ基盤登場!Oracle Cloud IaaS 最新サービス・アップデート [Oracle Cloud Days Tokyo 2016]
次世代インフラ基盤登場!Oracle Cloud IaaS 最新サービス・アップデート [Oracle Cloud Days Tokyo 2016]次世代インフラ基盤登場!Oracle Cloud IaaS 最新サービス・アップデート [Oracle Cloud Days Tokyo 2016]
次世代インフラ基盤登場!Oracle Cloud IaaS 最新サービス・アップデート [Oracle Cloud Days Tokyo 2016]オラクルエンジニア通信
 

Destaque (6)

Oracle Database Backup Service
Oracle Database Backup ServiceOracle Database Backup Service
Oracle Database Backup Service
 
Backup DB to Cloud and Restore
Backup DB to Cloud and RestoreBackup DB to Cloud and Restore
Backup DB to Cloud and Restore
 
What is cloud backup?
What is cloud backup?What is cloud backup?
What is cloud backup?
 
【OCP Summit 2016】オラクル・インフラストラクチャー・サービス(IaaS)~高いコスト競争力を持つエンタープライズIaaS~
【OCP Summit 2016】オラクル・インフラストラクチャー・サービス(IaaS)~高いコスト競争力を持つエンタープライズIaaS~【OCP Summit 2016】オラクル・インフラストラクチャー・サービス(IaaS)~高いコスト競争力を持つエンタープライズIaaS~
【OCP Summit 2016】オラクル・インフラストラクチャー・サービス(IaaS)~高いコスト競争力を持つエンタープライズIaaS~
 
Oracle Cloud Storage Service & Oracle Database Backup Cloud Service
Oracle Cloud Storage Service & Oracle Database Backup Cloud ServiceOracle Cloud Storage Service & Oracle Database Backup Cloud Service
Oracle Cloud Storage Service & Oracle Database Backup Cloud Service
 
次世代インフラ基盤登場!Oracle Cloud IaaS 最新サービス・アップデート [Oracle Cloud Days Tokyo 2016]
次世代インフラ基盤登場!Oracle Cloud IaaS 最新サービス・アップデート [Oracle Cloud Days Tokyo 2016]次世代インフラ基盤登場!Oracle Cloud IaaS 最新サービス・アップデート [Oracle Cloud Days Tokyo 2016]
次世代インフラ基盤登場!Oracle Cloud IaaS 最新サービス・アップデート [Oracle Cloud Days Tokyo 2016]
 

Semelhante a 5 backuprecoveryw imp

RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)Gustavo Rene Antunez
 
Oracle apps dba training dba technologies
Oracle apps dba training   dba technologiesOracle apps dba training   dba technologies
Oracle apps dba training dba technologiessanind88
 
Dba 3+ exp qus
Dba 3+ exp qusDba 3+ exp qus
Dba 3+ exp quskrreddy21
 
Oracle Trace File Analyzer - What's New in 12.2.1.1.0
Oracle Trace File Analyzer - What's New in 12.2.1.1.0Oracle Trace File Analyzer - What's New in 12.2.1.1.0
Oracle Trace File Analyzer - What's New in 12.2.1.1.0Gareth Chapman
 
MySQL's Performance Schema, SYS Schema and Workbench Integration
MySQL's Performance Schema, SYS Schema and Workbench IntegrationMySQL's Performance Schema, SYS Schema and Workbench Integration
MySQL's Performance Schema, SYS Schema and Workbench IntegrationMario Beck
 
KoprowskiT_PASSEastMidsFEB16_2AMaDisasterJustBegan
KoprowskiT_PASSEastMidsFEB16_2AMaDisasterJustBeganKoprowskiT_PASSEastMidsFEB16_2AMaDisasterJustBegan
KoprowskiT_PASSEastMidsFEB16_2AMaDisasterJustBeganTobias Koprowski
 
Exploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptExploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptMohammedHdi1
 
exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptAmitavaRoy49
 
AHMED JASSAT SOUTH ARICAN ORACLE USER GROUP PRESENTATION
AHMED JASSAT SOUTH ARICAN ORACLE USER GROUP PRESENTATIONAHMED JASSAT SOUTH ARICAN ORACLE USER GROUP PRESENTATION
AHMED JASSAT SOUTH ARICAN ORACLE USER GROUP PRESENTATIONZahid02
 
Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Emre Baransel
 
Sap basis administrator user guide
Sap basis administrator   user guideSap basis administrator   user guide
Sap basis administrator user guidePoguttuezhiniVP
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1Ram Naani
 
10 Problems with your RMAN backup script
10 Problems with your RMAN backup script10 Problems with your RMAN backup script
10 Problems with your RMAN backup scriptYury Velikanov
 
16aug06.ppt
16aug06.ppt16aug06.ppt
16aug06.pptzagreb2
 
Less14 Br Concepts
Less14 Br ConceptsLess14 Br Concepts
Less14 Br Conceptsvivaankumar
 

Semelhante a 5 backuprecoveryw imp (20)

RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)
 
Oracle apps dba training dba technologies
Oracle apps dba training   dba technologiesOracle apps dba training   dba technologies
Oracle apps dba training dba technologies
 
Les 02 config
Les 02 configLes 02 config
Les 02 config
 
Using AWR for IO Subsystem Analysis
Using AWR for IO Subsystem AnalysisUsing AWR for IO Subsystem Analysis
Using AWR for IO Subsystem Analysis
 
Dba 3+ exp qus
Dba 3+ exp qusDba 3+ exp qus
Dba 3+ exp qus
 
Oracle Trace File Analyzer - What's New in 12.2.1.1.0
Oracle Trace File Analyzer - What's New in 12.2.1.1.0Oracle Trace File Analyzer - What's New in 12.2.1.1.0
Oracle Trace File Analyzer - What's New in 12.2.1.1.0
 
MySQL's Performance Schema, SYS Schema and Workbench Integration
MySQL's Performance Schema, SYS Schema and Workbench IntegrationMySQL's Performance Schema, SYS Schema and Workbench Integration
MySQL's Performance Schema, SYS Schema and Workbench Integration
 
KoprowskiT_PASSEastMidsFEB16_2AMaDisasterJustBegan
KoprowskiT_PASSEastMidsFEB16_2AMaDisasterJustBeganKoprowskiT_PASSEastMidsFEB16_2AMaDisasterJustBegan
KoprowskiT_PASSEastMidsFEB16_2AMaDisasterJustBegan
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
 
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
 
Less15 backups
Less15 backupsLess15 backups
Less15 backups
 
AHMED JASSAT SOUTH ARICAN ORACLE USER GROUP PRESENTATION
AHMED JASSAT SOUTH ARICAN ORACLE USER GROUP PRESENTATIONAHMED JASSAT SOUTH ARICAN ORACLE USER GROUP PRESENTATION
AHMED JASSAT SOUTH ARICAN ORACLE USER GROUP PRESENTATION
 
Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012
 
Sap basis administrator user guide
Sap basis administrator   user guideSap basis administrator   user guide
Sap basis administrator user guide
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
 
10 Problems with your RMAN backup script
10 Problems with your RMAN backup script10 Problems with your RMAN backup script
10 Problems with your RMAN backup script
 
16aug06.ppt
16aug06.ppt16aug06.ppt
16aug06.ppt
 
Less14 Br Concepts
Less14 Br ConceptsLess14 Br Concepts
Less14 Br Concepts
 
SQL server Backup Restore Revealed
SQL server Backup Restore RevealedSQL server Backup Restore Revealed
SQL server Backup Restore Revealed
 

Mais de Hitesh Kumar Markam (19)

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
 
Resize sga
Resize sgaResize sga
Resize sga
 
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
 
Rmanpres
RmanpresRmanpres
Rmanpres
 
Pl sql
Pl sqlPl sql
Pl sql
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
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
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Último (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

5 backuprecoveryw imp

  • 3. Issues – – – – – – – – Protect the database from numerous types of failures Protect the database from numerous types of failures Increase Mean-Time-Between-Failures (MTBF) Increase Mean-Time-Between-Failures (MTBF) Decrease Mean-Time-To-Recover (MTTR) Decrease Mean-Time-To-Recover (MTTR) Minimize data loss Minimize data loss
  • 4. Categories of Failures – Statement failure – Statement failure – – – – – – Logic error in an application Logic error in an application Attempt to enter bad data into the table Attempt to enter bad data into the table Attempt an operation with insufficient Attempt an operation with insufficient privileges privileges – Attempt an INSERT or UPDATE to a table, – Attempt an INSERT or UPDATE to a table, causing an extent to be allocated, causing an extent to be allocated, but with insufficient free space but with insufficient free space left in the tablespace left in the tablespace No Recovery Needed
  • 5. Categories of Failures – Statement failure – Statement failure – User process failure – User process failure – The user performed an abnormal disconnect in – The user performed an abnormal disconnect in the session. the session. – The user’s session was abnormally terminated. – The user’s session was abnormally terminated. – The user’s program raised an address – The user’s program raised an address exception terminating the session. exception terminating the session. No Recovery Needed PMON
  • 6. Categories of Failures – Statement failure – Statement failure – User process failure – User process failure – User error – User error – – – – – – Accidental DROP TABLE; Accidental DROP TABLE; Accidental TRUNCATE TABLE; Accidental TRUNCATE TABLE; Accidental DELETE // UPDATE; Accidental DELETE UPDATE; Recovery Needed IMP Utility
  • 7. Categories of Failures – Statement failure – Statement failure – User process failure – User process failure – User error – User error – Instance failure – Instance failure – HardWare Problem on CPU // RAM – HardWare Problem on CPU RAM No Recovery Needed PMON SMON
  • 8. Categories of Failures – Statement failure – Statement failure – User process failure – User process failure – User error – User error – Instance failure – Instance failure – Media failure – Media failure – HardWare Problem on I/O Device – HardWare Problem on I/O Device Recovery Needed Physical
  • 9. Requirements for Strategy – Business requirements – Business requirements •• Evolutionary process Evolutionary process – Technical requirements – Technical requirements •• •• •• •• Hardware, software, man power and time Hardware, software, man power and time Database configurations Database configurations Transaction volume Transaction volume Frequency of backups Frequency of backups – Operational requirements – Operational requirements •• •• 7-day // 24-hour operations 7-day 24-hour operations Testing and validating backups Testing and validating backups
  • 10. Physical Backup Methods No archive mode Archive mode Physical backup
  • 11. ARCHIVELOG Online redo log files Group 1 053 Archived log file Group 2 052 ARC0 052 /disk1/archive/ arch%s.arc 053 052 LOG_ARCHIVE_DEST LOG_ARCHIVE_FORMAT
  • 12. Enabling ARCHIVELOG Mode 1 2 4 Startup mount Init.ora 3 Shutdown normal or immediate Alter database open Control file Alter database ARCHIVELOG 6 5 Shutdown normal or immediate Full database backup
  • 13. SHUTDOWN IMMEDIATE; Physical Closed Database Backup Data files Control files Redo log files Password Parameter files file HOST cp <files> /backup/ Online or offline storage STARTUP OPEN;
  • 14. Advantages of Physical Closed Database Backups – Conceptually simple – Conceptually simple – Easy to perform – Easy to perform – Require little operator interaction – Require little operator interaction
  • 15. Physical Opened Database Backup (1) Online redo log files Control files Parameter files Online or offline storage Archived redo log files HOST cp <files> /backup/ Pwd file
  • 16. Physical Opened Database All tablespace data Backup (2) Individual data files file SQL> alter tablespace <name> begin backup; SQL> alter tablespace <name> begin backup; Online or offline storage Data files HOST cp <files> /backup/ SQL> alter tablespace <name> end backup; SQL> alter tablespace <name> end backup;
  • 17. Advantages of Physical Opened Database Backups – Maintains high database availability – Maintains high database availability – Can be done at a tablespace or data file level – Can be done at a tablespace or data file level – Supports nonstop business operations – Supports nonstop business operations
  • 18. 1 Archived log file 1 ARC0 Redo log files Data files 1 Control file
  • 22. 5 Archived log file 5 ARC0 Redo log files Data files 5 Control file 5 5 Data files Control file 1 2 3 4 4
  • 23. 6 Archived log file 5 ARC0 Redo log files Data files 1 2 3 6 4 5 6 Control file 5 5 Data files Control file
  • 24. 9 Archived log file 9 ARC0 Data files Control file 5 5 Data files Control file 4 6 7 9 2 5 Redo log files 1 3 8 8
  • 25. 1 Shutdown 2 Startup Mount 3O.S. Restore From Hot or Cold Physical BackUp DataFile (s) 9 9 9 5 4 8 Redo log files Data files Recover DataFile (s) Automatic 4a 4b 9 Applyed Archived Logs #5 #6 #7 Applyed On Line Logs #8 #9 5 Alter DataBase Open 6 Shutdown Immediate 7 New Cold Physical BackUp 8 Startup Open 9 Control file
  • 26. S.C.N. System Change Number Data files Header Control file 1 RedoRecord Incremental Time Stamp 2 Unique Identified “Committed Version D.B.” Log file # Log file Low SCN # Higth SCN #
  • 27. Logical Backup Methods Oracle Export and Import Utilities • An interactive dialog • An interactive dialog • The export page of the Data Manager within • The export page of the Data Manager within Enterprise Manager Enterprise Manager • The command line interface, by specifying • The command line interface, by specifying parameters parameters
  • 28. These utilities enable you to do the following: These utilities enable you to do the following: – Archive historical data – Archive historical data – Save table definitions (with or without data) to protect – Save table definitions (with or without data) to protect from user error failure from user error failure – Move data between machines and databases or versions – Move data between machines and databases or versions of the Oracle server of the Oracle server – Transport tablespaces between databases – Transport tablespaces between databases
  • 30. Export Concepts Oracle Server Generate SQL commands Two-Task common (TTC) Dump file TTC buffer 1 Full 1a 2 SQL Buffer command cache Analyze blocks processing manager Evaluating buffer Owner 3 Buffer cache Read blocks Tables Oracle9i Server IncType Complete 1b IncType Cumulative 1c IncType Incremental
  • 31. KEYWORD DESCRIPTION (DEFAULT) ----------------------------------------------------------------USERID username/password BUFFER size of data buffer FILE LOG PARFILE FILESIZE output files (EXPDAT.DMP) log file of screen output parameter filename maximum size of each dump file COMPRESS CONSISTENT import into one extent cross-table consistency (Y) (N) GRANTS INDEXES ROWS CONSTRAINTS TRIGGERS export export export export export (Y) (Y) (Y) (Y) (Y) FULL OWNER TABLES export entire DataBase list of owner usernames list of table names INCTYPE DIRECT STATISTICS incremental export type direct path analyze objects grants indexes data rows constraints triggers (N) (N) (ESTIMATE)
  • 32. Command-Line Method > exp scott/tiger file=scott.dmp owner=scott grants=Y rows=Y compres Export Messages Export: Release 9.2.0.4.0 - Production on Fri Oct 30 09:35:33 1998 (c) Copyright 2003 Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Produc With the Partitioning option PL/SQL Release 9.2.0.4.0 - Production Export done in WE8DEC character set and WE8DEC NCHAR character set . exporting pre-schema procedural objects and actions . exporting foreign function library names for user SCOTT . exporting object type definitions for user SCOTT About to export SCOTT’s objects ... . exporting database links . exporting sequence numbers . exporting cluster definitions . about to export SCOTT’s tables via Conventional Path ... . . exporting table BONUS 0 rows exported . . exporting table DEPT 4 rows exported . . exporting table EMP 14 rows exported
  • 33. IncType Complete IncType Incremental -----> Exp IncType Generic IncType Cumulative -----> Exp IncType Cumulative or Complete
  • 34. Oracle Standby Implementation • • • • • Fail over Solution Disaster Recovery Solution (if remote) Ease of implementation Minimum impact on Production System Read Only Standby Database
  • 35. Overview of Managed Oracle Standby DB Primary Instance ARCH Standby Instance T.N.S. Redo log Recovery proc DBWR Arc log Arc log RFS Primary DB Standby DB Primary control file Standby control file 1 Recovery Mode 2 3 ReadOnly Mode Activate