Data Guard PPT-oracle9i
Data Guard PPT-oracle9i
Topics to be covered
Management Tools
• What are we doing with Data Guard?
What is Oracle Data
Guard?
DB_FILE_NAME_CONVERT- Converts
the filename of a datafile on the
primary to a filename onthe standby
database. (also paths)
Standby Parameters
Defined
• LOG_FILE_NAME_CONVERT- Converts the
filename of a log on the primary
database to the filename of a log on the
standby database. (Must use if paths are
different between primary and standby)
• FAL_SERVER- Assigns the Oracle Net
service name that the standby will use
to connect to the fetch archive log
server.
Standby Parameters
Defined
• FAL_CLIENT- Assigns fetch archive log
client name to be used by the FAL
server. This is the Oracle Net service
name that the FAL server should use to
refer to the standby database.
• STANDBY_ARCHIVE_DEST- Location on
standby system where archived redo
logs received from the primary are
stored.
Standby Parameters
Defined
• STANDBY_FILE_MANAGEMENT-
Automates the creation and deletion of
datafile filenames on the standby site
using the same filenames as the primary
site. Values:auto,manual
Creating a Physical
Standby Database
(cont.)
• Copy files from primary to standby
system
• On primary system set pfile parameters
Primary Parameters
Defined
• LOG_ARCHIVE_DEST_2- Specify
‘SERVICE=XXXX’, XXXX being the
service name of the standby database
listed in the tnsnames.ora file on the
primary system. This is the location for
the primary to write it’s redo.
• LOG_ARCHIVE_DEST_STATE_2- Enables or
disables writing of logs to
log_archive_dest_2. Values: enable,
defer, Alternate
Primary Parameters
Defined
• REMOTE_ARCHIVE_ENABLE- Enables or
disables the sending of redo logs to
remote destinations and the receipt of
remote redo logs. Values:
true,false,send,receive (true=send +
receive)
Creating a Physical
Standby Database
(cont.)
• Configure listeners for primary and
standby databases
STARTUP NOMOUNT;
• ALTER DATABASE MOUNT STANDBY
DATABASE;
• Initiate log apply services
• ALTER DATABASE RECOVER MANAGED
STANDBY DATABASE DISCONNECT
FROM SESSION;
Creating a Physical
Standby Database
(cont.)
• Start remote archiving (from primary)
Effects Performance
Effects Performance Possible Data Loss
Effects Availability
Transporting Redo
Data
Maximum Protection and Maximum
Availability modes both require standby
redo log files on the standby system.
Both use RFS (Remote File Server)
process to write to standby redo logs on
the standby database system. Maximum
Performance mode does not use standby
redo logs when using arch process to
write to standby.
Maximum Protection
Maximum
Performance
Transmission and
Reception of Redo
• Data
Specify the process to transmit redo, ARCH
or LGWR (ARCH is the default)
• LOG_ARCHIVE_DEST_2=’SERVICE=stdby
LGWR’
• Choose SYNC or ASYNC network
transmission mode. Must use SYNC for zero
data loss.
• LOG_ARCHIVE_DEST_2=’SERVICE=stdby
ASYNC’
Data Protection Modes
Max
Max Max
Performanc
Protection Availability
e
Redo Archival Process LGWR LGWR LGWR OR ARCH
Network Transmission
Mode SYNC SYNC ASYNC
• Failover complete!
10g New Features
• SUNY Brockport
• SUNY Fredonia
• SUNY Oneonta
• SUNY Oswego
What is ITEC doing
with Data Guard?
Currently we are using all Physical
standby databases. When we started
the Data Vaulting service, Banner had
data types that were incompatible with
logical standby databases. This may be
re-evaluated in the future (newer
releases of Oracle are compatible with
more data types).
What is ITEC doing
with Data Guard?
ITEC currently manages all of it’s
physical standby databases using the
SQL*Plus interface. Our future intent is
to use Grid Control to manage and
monitor all standby databases. ITEC is
currently in the process of rolling out
Grid Control to all systems ITEC
manages.
What is ITEC doing
with Data Guard?