⁄ : ‘Archive Log Destinations Status foraclefed21/ORADATAARCHIVE 2/OPTIONAL VALID lename Format: larch_%s.arc nded that archive log files be written to multiple locations spread acros
Trang 1Configuring the Database Archiving Mode
ORACLE’
Copyright © Oracle Corporation, 2002 All rights reserved.
Trang 2Objectives
After completing this lesson, you should be able to do the following:
° Describe the differences between
ARCHIVELOG and NOARCHIVELOG modes
° Configure multiple archive processes
including remote destinations
ORACLE’
Trang 3Redo Log History
Trang 6Changing the Archiving Mode
(1) SHUTDOWN NORMAL/IMMEDIATE/ TRANSACTIONAL
|
|
(3) ALTER DATABASE ARCHIVELOG (5) Full database backup
Trang 7Setting the Archiving Mode
# Oracle Enterprise Manager Console Administrator: DONNA Management Server:nkochhar-sry_us.oracle.com
ONE Network | Create Ctrl+N
View/Edit Details Alt+Enter ance crash recovery time
121312 Tho time to recover: 10 | Minutes
view Published Reporte: ted mean time to recover: 10 Seconds
Shutdown $ currently in Archive Log mode
OB e021 world - S¥ ⁄ : ‘Archive Log Destination(s) Status
foraclefed21/ORADATAARCHIVE 2/OPTIONAL VALID
lename Format: larch_%s.arc nded that archive log files be written to multiple locations spread across different disks
Trang 8
Automatic and Manual Archiving
IVE | Geo)
Trang 9Enabling Automatic Archiving
racle Enterprise Manager Console Administrator: DONNA Management Server:nkochhar-sr¥_us_oracle.com
GHA Network
\4 Control instance crash recovery time
J Databases Current estimated mean time to recover: 10 Seconds
_) Groups _JHTTP Servers Listeners JNodes
G>4=] dhep-40p9-40p10-eas
The database is currently in Archive Log mode
_ I# Archive Log Mode l# Automatic archival
&>{=] st-curr.us.oracle.com Hel stc-dbtest.us.oracle.co
$0 Databases
ở ed21 world - SY 3 Archive Log Destination(s) Status
Itis recommended that archive log files be written to multiple locations spread across different disks
S-@B instance a foraclefed21/ORADATAIARCHIVE1/MANDATORY VALID
lr ý foraclefed21/ORADATAIARCHIVE 2/OPTIONAL VALID
Trang 10
Specifying Multiple ARCn Processes
LOG ARCHIVE MAX PROCESSES controls the
number of archive processes started at
instance startup
specified
changed with ALTER SYSTEM
ORACLE’
Trang 11
8-15
Stop or Start Additional Archive Processes
C ance) Archived redo logs
Online redo logs
Trang 12Enabling Automatic Archiving
at Instance Startup
Archived
Online redo logs oo
LOG ARCHIVE MAX PROCESSES=n
Trang 13Enabling Automatic Archiving
After Instance Startup
Trang 14Disabling Automatic Archiving
Trang 15Manually Archiving Online
6 Redo Log Files
Trang 16
Manually Archiving Online Redo Log Files
ONE Network | Create Ctrl+ll
View/Edit Details Alt+Enter ance crash recovery time
BEE BO time to recover: H 0 | Minutes
View Published Reports
OB e021 world - S¥ ⁄ : ‘Archive Log Destination(s) Status
foraclefed21/ORADATAARCHIVE 2/OPTIONAL VALID
you change the mode to Archive Log mode, you should take a backup immediately In No Archive Log mode, only cold
Schema backups can he taken, and data can be lostin cases of database corruption
Security
1 Storage
Z3 Replication
HTTP Servers _j Listeners
Trang 17Specifying the Archive Log Destination
° Use LOG ARCHIVE DEST n to specify up to
ten archival destinations
° Use LOG ARCHIVE FORMAT to include the
log sequence number and thread number as
part of the filename
ORACLE’
8-22 Copyright © Oracle Corporation, 2002 All rights reserved.
Trang 18Specifying Multiple Archive
log archive dest _ 1 = "LOCATION=/archivel"
log archive dest 2 = "SERVICE=standby dbl"
ORACLE
Trang 19LOG ARCHIVE DEST n Options
° Set archive location as MANDATORY or
OPTIONAL
log archive dest_1="LOCATION=/archive/
Trang 20Specifying a Minimum Number
of Local Destinations
° LOG ARCHIVE MIN SUCCEED DEST parameter
LOG ARCHIVE MIN SUCCEED DEST = 2
An online redo log group can be reused
Trang 21Controlling Archiving to a Destination
° An archival destination can be disabled
by using the dynamic initialization
parameter LOG ARCHIVE DEST STATE n
LOG ARCHIVE DEST STATE 2 = DEFER
ALTER SYSTEM SET log archive dest state 3 = DEFER;
LOG ARCHIVE DEST STATE 2 = ENABLE
ALTER SYSTEM SET log archive dest state 3 =
ENABLE ;
ORACLE
8-27 Copyright © Oracle Corporation, 2002 All rights reserved
Trang 22Specifying the Filename Format
Online redo
log files Group 1 Group 2
Archived log file
Trang 24Summary
In this lesson, you should have learned how
to:
° Perform manual archiving of logs
° Configure multiple archive processes
ORACLE’
Trang 25Practice 8 Overview
This practice covers the following topics:
archiving