How to Turn Archiving ON and OFF in Oracle RDBMS [ID 69739.1]
In this Document
Applies to:
Oracle Server - Enterprise Edition - Version 10.2.0.1 to 11.2.0.4 [Release 10.2 to 11.2]Information in this document applies to any platform.
***Checked for relevance on 01-Mar-2011***
Purpose
This article gives an overview of database archiving.
https://communities.oracle.com/portal/server.pt/community/database_backup_and_recovery/243
Scope
The intended audience is database administrators.
Details
Turning Archiving On and Off
You set a database's initial archiving mode as part of database creation. Usually, you can use the default of NOARCHIVELOG mode at database creation
because there is no need to archive the redo information generated at that time. After creating the database, decide whether to change from the initial archiving mode.
After a database has been created, you can switch the database's archiving mode on demand. However, you should generally not switch the database between archiving modes.
NOTE: If a database is automatically created during Oracle installation, the initial archiving mode of the database is operating system specific. See your operating system-specific Oracle documentation.
ARCHIVELOG mode is necessary for creating on-line backups and for certain types of database recovery. Configuring the database to operate in
ARCHIVELOG mode allows the user to perform. complete and point-in-time recovery from media (disk) failures using off-line or on-line backups. If
ARCHIVELOG mode is disabled, the database can be restored from a backup in case of failure, but it cannot be rolled forward from that to a point when failure occurred.
Oracle recommends ARCHIVELOG mode for all production databases
Setting the Initial Database Archiving Mode
When you create the database, you set the initial archiving mode of the redo log in the CREATE DATABASE statement. If you do not specify either ARCHIVELOG or NOARCHIVELOG, NOARCHIVELOG is the default. To verify database mode, execute following statement:
from V$DATABASE
NAME CREATED LOG_MODE CHECKPOINT_CHANGE# ARCHIVE_CHANGE#
--------- --------- ------------ ------------------ ---------------
O112 19-MAR-09 NOARCHIVELOG 1438426 135961
Changing the Database Archiving Mode
There are "init.ora" parameters you need to modify in order to properly handle your database being in archive log mode. They are:
LOG_ARCHIVE_DEST LOG_ARCHIVE_FORMAT
LOG_ARCHIVE_DEST:
This parameter specifies the directory where your archive logs will be placed.
LOG_ARCHIVE_FORMAT:
This parameter names the archive logs in this format. For example, if your format is: arch%s.arc
Your log files will be called: arch1.arc, arch2.arc, arch3.arc where the '1', '2', '3', etc is the sequence number.
To Prepare to Switch Database Archiving Mode
1. Shut down the database instance.
An open database must be closed and dismounted and any associated instances shut down before the database's archiving mode can be switched. Archiving cannot be disabled if any datafiles need media recovery.
2. Backup the database.
This backup can be used with the archive logs that you will generate.
3. Perform. any operating system specific steps (optional).
4. Start up a new instance and mount, but do not open the database.
SQL> startup mountNOTE: If you are using the Real Application Cluster (RAC), then you must mount the database exclusively using one instance to switch the database's archiving mode.
5. Put the database into archivelog mode
SQL> alter database archivelog;NOTE: You can also use
SQL> alter database noarchivelogto take the database out of archivelog mode
6. Open the database.
SQL> alter database open;
7. Verify your database is now in archivelog mode.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 22
Next log sequence to archive 24
Current log sequence 24
8. Archive all your redo logs at this point.
SQL> archive log all;
9. Ensure these newly created Archive log files are added to the backup process.
See the Administration guide & Backup and Recovery guide for more information about switching the archiving mode when using the Real Application Cluster (RAC).
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-752748/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Entity Framework Code-First(18):Turn off DB InitializerFramework
- Please add or free up more resources then turn off safe mode manually.
- use database 切換提示You can turn off this feature to get a quicker startupDatabaseUI
- How To Clone An Existing RDBMS Installation Using OUI [ID 300062.1]UI
- Oracle RDBMS History Over the YearsOracle
- How To Change The Oracle Hidden Parameters In Oracle 10g [ID 315631.1]Oracle 10g
- RHEL7.3 安裝oracle12c 單點grid和rdbmsOracle
- How Oracle Works!Oracle
- How to Study OracleOracle
- How To modify listener port in oracle 11g GridOracle
- G009-ORACLE-ASK Using In-Database ArchivingOracleDatabase
- Requirements for Installing Oracle 11gR2 RDBMS on Solaris 10 SPARC [ID 964976.1]UIREMOracle
- How to enable trace in OracleOracle
- In Oracle,How to use dumpOracle
- An Example of How Oracle WorksOracle
- 【故障-ORACLE】rdbms ipc message timeout解釋Oracle
- How to Check and Enable/Disable Oracle Binary Options (文件 ID 948061.1)Oracle
- jQuery off()jQuery
- about materialized view and long(turn)ZedView
- Oracle HowTo:How to get Oracle SCN?Oracle
- oracle RDBMS Kernel Executable 佔用記憶體過高Oracle記憶體
- How Oracle Locking WorksOracle
- How to rename an Oracle stored procedureOracle
- Change the Archiving Mode in a RAC Environment
- Quick Reference to RDBMS Database Patchset Patch Numbers (文件 ID 753736.1)UIDatabase
- How To Kill Good IdeasGoIdea
- oracle 表空間關閉自增長 autoextend offOracle
- REST is not enabled. use -rest to turn onREST
- tip-off
- RHEL7.3 安裝11G grid和Rdbms
- How Oracle Store Number internal(zt)Oracle
- How to Relink Oracle Database SoftwareOracleDatabase
- How to Shrink Undo Segment In Oracle DatabaseOracleDatabase
- How To Delete An Oracle Applications UserdeleteOracleAPP
- How to gather statistics on Oracle eBS.Oracle
- How to find Current open Cursors in OracleOracle
- how to kill the runing job in ORACLEOracle
- How to drop Oracle RAC database manually?OracleDatabase