- 浏览: 4407104 次
- 性别:
- 来自: 厦门
文章分类
- 全部博客 (634)
- Oracle日常管理 (142)
- Oracle体系架构 (45)
- Oracle Tuning (52)
- Oracle故障诊断 (35)
- RAC/DG/OGG (64)
- Oracle11g New Features (48)
- DataWarehouse (15)
- SQL, PL/SQL (14)
- DB2日常管理 (9)
- Weblogic (11)
- Shell (19)
- AIX (12)
- Linux/Unix高可用性 (11)
- Linux/Unix日常管理 (66)
- Linux桌面应用 (37)
- Windows (2)
- 生活和工作 (13)
- 私人记事 (0)
- Python (9)
- CBO (15)
- Cognos (2)
- ORACLE 12c New Feature (2)
- PL/SQL (2)
- SQL (1)
- C++ (2)
- Hadoop大数据 (5)
- 机器学习 (3)
- 非技术 (1)
最新评论
-
di1984HIT:
xuexilee!!!
Oracle 11g R2 RAC高可用连接特性 – SCAN详解 -
aneyes123:
谢谢非常有用那
PL/SQL的存储过程和函数(原创) -
jcjcjc:
写的很详细
Oracle中Hint深入理解(原创) -
di1984HIT:
学习了,学习了
Linux NTP配置详解 (Network Time Protocol) -
avalonzst:
大写的赞..
AIX内存概述(原创)
CONFIGURE
CONFIGURE {ARCHIVELOG DELETION POLICY {CLEAR | TO {APPLIED ON STANDBY | NONE }} | AUXNAME FOR DATAFILE datafileSpec {CLEAR | TO ' filename '} | backupConf | cfauConf | deviceConf | ENCRYPTION {ALGORITHM CLEAR | FOR {DATABASE | TABLESPACE tablespace_name } {ON | OFF | CLEAR } | ALGORITHM quoted_string } | SNAPSHOT CONTROLFILE NAME {CLEAR | TO ' filename '}}
configure ::=
{ARCHIVELOG | DATAFILE } BACKUP COPIES FOR DEVICE TYPE [= ] deviceSpecifier {CLEAR | TO integer } | BACKUP OPTIMIZATION {CLEAR | OFF | ON } | EXCLUDE FOR TABLESPACE tablespace_name [CLEAR ] | MAXSETSIZE {CLEAR | TO {sizeSpec | UNLIMITED }} | RETENTION POLICY {CLEAR | TO {NONE | RECOVERY WINDOW OF integer DAYS | REDUNDANCY [= ] integer }}
backupConf ::=
To configure persistent settings affecting RMAN backup, restore, duplication, and maintenance jobs. These configurations are in effect for any RMAN session until the configuration is cleared or changed.
Use CONFIGURE
to set the following:
-
An ongoing retention policy that automatically determines which backups and copies are eligible for deletion because they are no longer needed
-
The device type (for example,
DISK
orsbt
) for RMAN jobs -
The default number of channels of each device type that RMAN should allocate for automated backup and restore jobs
-
The settings for automatic channels for a specified device type
-
The maximum size of backup pieces and sets created on automatic channels
-
Backup optimization either
ON
orOFF
-
The exclusion policy for tablespaces in whole database backups
-
The filename of the snapshot control file
-
Filenames for files in an auxiliary database
-
The control file autobackup feature to
ON
orOFF
-
The default format for the control file autobackup output files
RMAN uses default settings for CONFIGURE
options. You can return to the default value for any CONFIGURE
command by running the same command with the CLEAR
option.
-
Execute this command at the RMAN prompt.
CONFIGURE
cannot be used within a RUN block. -
The target database must be mounted or open, because configuration settings are stored in the control file.
-
Channels allocated with ALLOCATE CHANNEL override any configured automatic channels.
-
RMAN does not simultaneously allocate automatic channels for multiple device types in
BACKUP
command. -
To direct backups or restores to specific channels, use the RMAN-generated channel names. If you specify channel numbers in the
CONFIGURE
CHANNEL
command, then RMAN uses the same numbers in the system-generated channel names. -
If you configure channels by using the nondefault
CONNECT
orPARMS
options to create backups or copies, then you must either use the same configured channels or manually allocate channels with the same options to restore or crosscheck these backups. -
You cannot exclude the
SYSTEM
tablespace from whole database backups. -
The
REDUNDANCY
andRECOVERY
WINDOW
options are mutually exclusive. Only one type of retention policy can be in effect at any time. -
You cannot clear individual parameters when running
CONFIGURE
...
CLEAR
. For example, you can runCONFIGURE
CHANNEL
DEVICE
TYPE
sbt
CLEAR
but notCONFIGURE
CHANNEL
DEVICE
TYPE
sbt
MAXPIECESIZE
5M
CLEAR
. -
The channel number in a manually numbered channel must be less than 255.
-
You must specify at least one channel option when running
CONFIGURE
CHANNEL
. In other words, you cannot issue a command such asCONFIGURE
CHANNEL
2
DEVICE
TYPE
DISK
, but you can issue a command such asCONFIGURE
CHANNEL
2
DEVICE
TYPE
DISK
MAXPIECESIZE
2500K
. -
The
CONFIGURE
CONTROLFILE
AUTOBACKUP
FORMAT
format string must include the %F substitution variable. It cannot contain any other substitution variable. -
With Oracle Database Release 10g in a Data Guard environment, configurations can be set for standby databases as well as primary databases. All configurations except for retention policy, tablespace exclude and auxiliary names can be set to node-specific values. This means that the primary and standby databases can have different channel configurations, autobackup locations, and so on.
| |
Governs archived redo log deletion policy for the flash recovery area. Possible settings are:
|
AUXNAME
FOR
DATAFILE
datafileSpec
TO
'
filename
'
|
Configures the auxiliary filename for the specified target datafile to '
filename
'
. For example, you can set the auxiliary name for datafile 2 to /df2.f
, and then unspecify this auxiliary name by running CONFIGURE
AUXNAME
FOR
DATAFILE
2
CLEAR
.
If you are performing TSPITR or running the For example, use this command during TSPITR if the datafiles are on
raw disk and you need to restore auxiliary datafiles to raw disk for
performance reasons. Typically, you set the When renaming files with the 笔者认为这个选项主要作用在利用Rman复制数据库或者创建辅助实例时事先定义好目标数据文件的文件名。 See Also: Oracle Database Backup and Recovery Advanced User's Guide to learn how to perform RMAN TSPITR, and Oracle Database Backup and Recovery Advanced User's Guide to learn how to duplicate a database with RMAN |
backupConf | Configures default backup options such as duplexing, optimization, excluding tablespaces, backup set sizes, and retention policies. |
ENCRYPTION
|
Used to specify encryption settings for the database or tablespaces within the database, which apply unless overridden using the SET command. Options specified for an individual tablespace take precedence over options specified for the whole database. |
ALGORITHM
{
|
Specifies the default algorithm to use for encryption, when writing encrypted backup sets. Possible values are listed in V$RMAN_ENCRYPTION_ALGORITHMS
. With CLEAR
, resets the database to the default algorithm, which is AES128
.
|
FOR
{
{ |
Specifies whether to use encryption for the database or specified tablespaces. With FOR
DATABASE
, the effect is as follows:
Configured settings for a tablespace always override configuration set at the database level. With
With |
SNAPSHOT
CONTROLFILE
NAME
[ TO
'
filename
' | CLEAR ]
|
Configures the snapshot control file filename to '
filename
'
. If you run CONFIGURE
SNAPSHOT
CONTROLFILE
NAME
CLEAR
, then RMAN sets the snapshot control file name to its default.
The default value for the snapshot control file name is
platform-specific and dependent on the Oracle home. For example, the
default on some UNIX system is See Also: Oracle Database Backup and Recovery Advanced User's Guide for more information about snapshot control files 责编只介绍了controlfile snapshot的配置,具体请查看笔者的另一篇文章。 |
|
Specifies the number of copies of each backup set for DATAFILE
(both datafiles and control files) or ARCHIVELOG
files on the specified device type, from 1 (default) to 4. If duplexing is specified in the BACKUP
command or in a SET
BACKUP
COPIES
command, then the CONFIGURE
setting is overridden.
Note: Control file autobackups on disk are a special case and are never duplexed. RMAN always writes one and only copy. Note: RMAN raises an error if you try to duplex backups to the flash recovery area. You cannot duplex backups to the flash recovery area. 注意,控制文件不会生成副本。如果在使用db_recovery_file_dest作为备份文件生成的路径情况下,生成备份文件的副本那么将产生ORA-19806错误。 示例: RMAN>show datafile backup copies;
RMAN> backup tablespace users; 解决方式,将备份路径指定为非db_recovery_files_dest的目录 RMAN> backup tablespace users format '/home/oracle/%U.dbf'; |
|
Toggles backup optimization ON
or OFF
(default). Specify CLEAR
to return optimization to its default value of OFF
.
Optimization does not back up a file to a device type if the
identical file is already backed up on the device type. For two files to
be identical, their content must be exactly the same.
You can override
backup optimization by using the RMAN does not signal an error if optimization causes all files to be skipped during a backup. Note that Backup optimization is enabled when all of the following conditions are met:
The retention policy has an effect on which files backup optimization skips. 优化算法是要结合保留策略来进行判断是否备份的,详细的优化算法由于排版关系,笔者把他附在文章最后。
|
EXCLUDE
FOR
TABLESPACE
tablespace_name
[ CLEAR ]
|
Excludes the specified tablespace from BACKUP
DATABASE
commands. Note that you cannot exclude the SYSTEM
tablespace. By default, each tablespace is not excluded, that is, the
exclude functionality is disabled. The exclusion is stored as an
attribute of the tablespace, not the individual datafiles, so the
exclusion applies to any files that are added to this tablespace in the
future. If you run CONFIGURE
...
CLEAR
on a tablespace after excluding it, then it returns to the default configuration of "not excluded."
You can still back up the configured tablespace by explicitly specifying it in a |
|
Specifies the maximum size of each backup set created on a channel. By default MAXSETSIZE
is set to UNLIMITED
, meaning that it is disabled.
Note:
This option is ignored by |
|
Specifies a persistent,
ongoing policy for datafile and control file backups and copies that
RMAN marks as obsolete, that is, not needed and eligible for deletion.
As time passes, RMAN marks backups and copies as obsolete according to
the criteria you specify in the retention policy. RMAN does not
automatically delete any backups or copies: manually run the DELETE
OBSOLETE
command to remove obsolete files. By default, RETENTION
POLICY
is configured to REDUNDANCY
1
.
For backups, the basic unit of the retention policy is a backup set (not a backup piece) or image copy. For example, |
CLEAR
|
Resets the retention policy to its default (REDUNDANCY
=
1
).
|
|
Specifies a time window in which RMAN should be able to recover the database. The window stretches from the current time (SYSDATE
) to the point of recoverability
, which is the earliest date to which you want to recover. The point of recoverability is SYSDATE
- integer
days in the past.
|
|
Specifies that RMAN should retain integer
backups or copies of each datafile and control file. If more than integer
backups or copies exist, RMAN marks these extra files as obsolete.
Then, RMAN determines the oldest of the retained backups and copies, and
marks all archived logs and log backups older than this backup or copy
as obsolete. The DELETE
OBSOLETE
command removes obsolete backups and copies as well as archived log backups and copies.
|
TO NONE
|
Disables the retention policy feature. RMAN does not consider any backups or copies as obsolete. |
Configuring Backup Optimization: Example
This example configures RMAN so that the BACKUP
command does not back up files to a device type if the identical file has already been backed up to the device type:
CONFIGURE BACKUP OPTIMIZATION ON;
Configuring a Retention Policy: Example
This
example configures a retention policy with a recovery window of 2
weeks, and then resets the retention policy to its default value of REDUNDANCY
=
1
:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;
CONFIGURE RETENTION POLICY CLEAR;
Configuring the Snapshot Control File Location: Example
This example configures a new location for the snapshot control file and then resynchronizes the recovery catalog.
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '?/oradata/snap.cf';
Excluding a Tablespace from a Whole Database Backup: Example
This example excludes the example
tablespace from whole database backups, then returns the tablespace to its default value of "not excluded":
CONFIGURE EXCLUDE FOR TABLESPACE example;
CONFIGURE EXCLUDE CLEAR;
Specifying Auxiliary Filenames: Example
This example duplicates a database to a remote host with a different directory structure, by using CONFIGURE
AUXNAME
to specify new filenames for the datafiles:
# set auxiliary names for the datafiles
CONFIGURE AUXNAME FOR DATAFILE 1 TO '/oracle/auxfiles/aux_1.f';
CONFIGURE AUXNAME FOR DATAFILE 2 TO '/oracle/auxfiles/aux_2.f';
CONFIGURE AUXNAME FOR DATAFILE 3 TO '/oracle/auxfiles/aux_3.f';
CONFIGURE AUXNAME FOR DATAFILE 4 TO '/oracle/auxfiles/aux_4.f';
RUN
{
ALLOCATE AUXILIARY CHANNEL dupdb1 TYPE DISK;
DUPLICATE TARGET DATABASE TO dupdb
LOGFILE
GROUP 1 ('?/dbs/dupdb_log_1_1.f',
'?/dbs/dupdb_log_1_2.f') SIZE 200K,
GROUP 2 ('?/dbs/dupdb_log_2_1.f',
'?/dbs/dupdb_log_2_2.f') SIZE 200K REUSE;
}
# Un-specify the auxiliary names for the datafiles so that they are not overwritten
# by mistake:
CONFIGURE AUXNAME FOR DATAFILE 1 CLEAR;
CONFIGURE AUXNAME FOR DATAFILE 2 CLEAR;
CONFIGURE AUXNAME FOR DATAFILE 3 CLEAR;
CONFIGURE AUXNAME FOR DATAFILE 4 CLEAR;
Backup Optimization
If you enable backup optimization, then the BACKUP
command skips backing up files when the identical file has already been backed up to the specified device type.
Rules for Identifying Identical Files for Backup Optimization
Table 2-2 describes criteria that RMAN uses to determine whether a file is identical to a file that it already backed up.
Table 2-2 Criteria to Determine an Identical File
Datafile |
The datafile must have the same DBID, checkpoint SCN, creation SCN, and |
Archived redo log |
Same thread, sequence number, and |
Backup set |
Same backup set recid and stamp. |
If RMAN determines that a file is identical and it has already been backed up, then it is a candidate to be skipped. However, RMAN must do further checking to determine whether to skip the file, because both the retention policy and the backup duplexing feature are factors in the algorithm that determines whether RMAN has sufficient backups on the specified device type.
Backup Optimization Algorithm
Table 2-3
describes the algorithm that backup optimization uses when determining whether to skip the backup of an identical file.
Table 2-3 Backup Optimization Algorithm
Datafile |
With a recovery window-based retention policy: For backups to tape, RMAN takes another backup of a file, even if a backup of an identical file exists, if the most recent backup is older than the configured recovery window. This is done to allow media to be recycled after the media expires. For backups to disk, RMAN skips taking the backup if an identical file is available from a backup on disk, even if that backup is older than the beginning of the recovery window. The retention policy causes RMAN to retain the old backup for as long as it is needed. With a redundancy-based retention policy: RMAN sets r
If
RMAN skips backup only if at least n backups of an identical file exist on the specified device. If RMAN does not skip the backup, then it makes the backup exactly as specified. |
Archived log |
By default, n
RMAN skips backup only if at least n backups of an identical file exist on the specified device. If RMAN does not skip the backup, then it makes the backup exactly as specified. |
Backup set |
By default, n
RMAN skips backup only if at least n backups of an identical file exist on the specified device. If RMAN does not skip the backup, then it makes the backup exactly as specified. |
For example, assume that at 9 a.m. you back up three copies of all existing archived logs to tape:
BACKUP DEVICE TYPE sbt COPIES 3 ARCHIVELOG ALL;
Later, you enable the following configuration setting in preparation for another backup:
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE sbt TO 4;
CONFIGURE BACKUP OPTIMIZATION ON;
Then, you run the following archived log backup at noon:
BACKUP DEVICE TYPE sbt COPIES 2 ARCHIVELOG ALL;
In this case, the BACKUP
...
COPIES
setting overrides the CONFIGURE
...
COPIES
setting, so RMAN sets n
=2
. RMAN skips the backup of a log only if at least two copies of the log exist on the sbt
device. Because three copies of each log exist on sbt
of all the logs generated before 9 a.m., RMAN skips the backups of
these logs. However, RMAN backs up two copies of all logs generated
after 9 a.m. because these logs have not yet been backed up to tape.
At this point, three copies of the logs created before 9 a.m. exist
on tape, and two copies of the logs created after 9 a.m. exist on tape.
Assume that you run the following backup at 3 p.m.:
RUN
{
SET BACKUP COPIES 3;
BACKUP DEVICE TYPE sbt ARCHIVELOG ALL;
}
In this case, RMAN sets n
=3
and so will not back up the logs created before 9 a.m. because three
copies already exist on tape. However, only two copies of the logs
created after 9 a.m. exist on tape, so RMAN does not optimize backups of
these logs. Hence, RMAN backs up three copies of the logs created after
9 a.m.
Requirements for Backup Optimization
Backup optimization is used when the following conditions are true:
-
The
CONFIGURE
BACKUP
OPTIMIZATION
ON
command has been run to enable backup optimization. -
You run
BACKUP
DATABASE
,BACKUP
ARCHIVELOG
withALL
orLIKE
options, orBACKUP
BACKUPSET
ALL.
-
Only one type of channel is allocated, that is, you do not mix channels of type
DISK
andsbt
in the same backup command.
For example, assume that you run these commands:
BACKUP DEVICE TYPE sbt DATABASE PLUS ARCHIVELOG;
BACKUP DEVICE TYPE sbt BACKUPSET ALL;
If none of these files has changed since the last backup, then RMAN does not back up the files again, nor signal an error if it skips all files specified in the command.
Overriding and Disabling Backup Optimization
To override backup optimization and back up all files whether or not they have changed, specify the FORCE
option on the BACKUP
command. For example:
BACKUP DEVICE TYPE sbt BACKUPSET ALL FORCE;
To disable backup optimization on a persistent basis, use the following command:
RMAN> CONFIGURE BACKUP OPTIMIZATION OFF;
Effect of Retention Policies on Backup Optimization for SBT Backups
Backup optimization is not always applied when backing up to SBT devices. The exceptions to normal backup optimization behavior for recovery window-based and redundancy-based retention policies are described in the following sections.
Note:
Use caution when enabling backup optimization if you use a media manager with its own internal expiration policy. RunCROSSCHECK
periodically to synchronize the RMAN repository with the media manager.
Otherwise, RMAN may skip backups due to optimization without
recognizing that the media manager has discarded backups stored on tape.
Backup Optimization for SBT Backups with Recovery Window Retention Policy
If backup optimization is enabled, and if a recovery window retention policy is in effect, then when performing SBT backups RMAN always backs up datafiles whose most recent backup is older than the recovery window. For example, assume that:
-
Today is February 21.
-
The recovery window is 7 days.
-
The most recent backup of tablespace
tools
to tape is January 3. -
Tablespace
tools
is read-only.
On February 21, when you issue a command to back up tablespace tools
to tape, RMAN backs it up even though it did not change after the
January 3 backup (because it is read-only). RMAN makes the backup
because no backup of the tablespace exists within the 7-day recovery
window.
This behavior allows the media manager to expire old tapes.
Otherwise, the media manager would be forced to keep the January 3
backup of tablespace tools
indefinitely. By making a more recent backup of tablespace tools
on February 21, RMAN allows the media manager to expire the tape containing the obsolete January 3 backup.
Backup Optimization for SBT Backups With Redundancy Retention Policy
Assume that you configure a
retention policy for redundancy. In this case, RMAN only skips backups
of offline or read-only datafiles to SBT when there are r
+ 1 backups of the files, where r
is set in CONFIGURE
RETENTION
POLICY
TO
REDUNDANCY
r
.
For example, assume that you enable backup optimization and set the following retention policy:
CONFIGURE DEFAULT DEVICE TYPE TO sbt;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
With these settings, RMAN only skips backups when three identical
files are already backed up. Also assume that you have never backed up
the users
tablespace, which is read/write, and that you perform the actions described in Table 2-4
over the course of the week.
Table 2-4 Effect of Redundancy Setting on Backup Optimization
Monday |
Take tablespace |
||
Tuesday |
|
The |
|
Wednesday |
|
The |
|
Thursday |
|
The |
Tuesday backup |
Friday |
|
The |
Tuesday backup |
Saturday |
|
The |
Tuesday backup |
Sunday |
|
The Tuesday backup is deleted. |
|
Monday |
|
The |
Wednesday backup |
The backups on Tuesday, Wednesday, and Thursday back up the offline users
tablespace to satisfy the condition that three backups must exist (one
more than redundancy setting). The Friday and Saturday backups do not
back up the users
tablespace because of backup optimization. Note that the Tuesday backup of users
is obsolete beginning on Thursday.
On Sunday, you delete all obsolete backups, which removes the Tuesday backup of users
. The Tuesday backup is obsolete because of the retention policy setting. The whole database backup on Monday then backs up the users
tablespace to satisfy the condition that three backups must exist (one
more than redundancy setting). In this way, you can recycle your tapes
over time.
参考至:http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta015.htm
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1.htm#BRADV113
https://forums.oracle.com/forums/thread.jspa?threadID=942113
http://www.ochef.net/2009/08/configure-backup-optimization.html
http://www.itpub.net/thread-973238-1-1.html
http://space.itpub.net/12020513/viewspace-614475
http://www.itpub.net/thread-1081369-1-1.html
http://space.itpub.net/7607759/viewspace-628518
本文原创,转载请注明出处、作者
如有错误,欢迎指正
邮箱:czmcj@163.com
发表评论
-
Oracle 11g、12c大量错误登陆尝试带来的数据库异常
2018-07-16 09:21 1530APPLIES TO: Oracle Database - ... -
如何定位那些SQL产生了大量的redo日志
2018-05-15 14:38 1768在ORACLE数据库的管理、 ... -
When Memory_target Is Set and Swap Size Is Not Big (Doc ID 2356025.1)
2018-03-16 18:13 1188Kkjcre1p: unable to sp ... -
Transparent Hugepage is not getting disabled (Doc ID 2279458.1)
2018-03-16 18:10 820Transparent Hugepage is ... -
Troubleshooting: "log file sync" Waits (文档 ID 1376916.1)
2017-03-09 14:32 1364What is a 'log file sync' wai ... -
log file sync总结
2017-03-09 14:36 3253log file sync等待时间发生在redo log从 ... -
Oracle Log File Sync Wait Event
2017-03-08 18:46 1168The Oracle “log file sync” wai ... -
Tuning ‘log file sync’ Event Waits
2017-03-08 18:41 855Tuning ‘log file sync’ Event ... -
Diagnosing buffer busy waits with the ash_wait_chains.sql script (v0.2)
2017-03-08 16:56 851Diagnosing buffer busy waits w ... -
Advanced Oracle Troubleshooting Guide – Part 11: Complex Wait Chain Signature An
2017-03-08 16:05 1093Here’s a treat for the hard-co ... -
Oracle 10046 SQL TRACE
2017-03-08 15:19 941为什么我们要使用10046 trace? 10046 ... -
Automatic Storage Management
2016-11-03 15:33 863SYSASM Role When Automatic ... -
ASM FAQ
2016-11-03 15:29 729ASM FAQ Oracle Automatic ... -
Oracle ALTER PROFILE语法
2016-10-10 11:36 3406ALTER PROFILE Purpose Use th ... -
Oracle FGA审计
2016-09-20 09:42 1389大家对trigger可能比较熟悉,但Oracle还有一个叫 ... -
Secret.txt
2016-09-14 17:20 0考试登录账号:YAMAC0043865 Chen1988协会网 ... -
Oracle Data Pump Internals
2016-09-13 16:38 776IntroductionOracle Data Pump w ... -
UDEV SCSI Rules Configuration for ASM in Oracle Linux 5, 6 and 7
2016-09-12 16:32 843UDEV SCSI Rules Configuration ... -
Cannot Allocate New Log
2016-02-21 12:28 5446故障报错 Thread 1 cannot allocat ... -
Oracle flashback dropped tablespace(原创)
2015-11-15 22:21 2014Oracle官方并不推荐在数据库物理结构发生改变的情况下进行 ...
相关推荐
RMAN 数据库备份详解 本文详细讲解了 RMAN 的备份机制以及如何备份,涵盖了数据库备份和 RMAN 备份的概念、RMAN 备份的类型、备份集和镜像副本、备份路径、备份限制等知识点。 一、数据库备份与 RMAN 备份的概念 ...
RMAN备份命令详解 RMAN(Recovery Manager)是Oracle数据库备份和恢复的工具,提供了多种备份方式和恢复选项。下面是RMAN备份命令的详细解释: 一、切换服务器归档模式 在开始备份之前,需要切换服务器到归档模式...
1. **通道(Channels)**:RMAN通过通道来执行备份和恢复任务,每个通道可以连接到一个设备,如磁盘或磁带。你可以配置多个通道以并行执行备份,提高效率。 2. **备份类型**:RMAN支持多种备份类型,包括完整备份、...
三、RMAN自动备份详解 RMAN自动备份可以帮助DBA快速备份数据库,以下是RMAN自动备份的步骤: 1. 设置RMAN参数,例如备份的频率、保留期限等。 2. 创建RMAN自动备份脚本,例如使用cron job来执行备份脚本。 3. 设置...
【RMAN备份详解】 在Oracle数据库管理中,RMAN( Recovery Manager)是一个强大的工具,用于执行数据库备份、恢复和维护任务。RMAN充分利用了Oracle数据库的特性,提供了一种高效且灵活的备份策略。 1. **数据库...
Oracle 11g R2 的 RMAN (Recovery Manager) 是 Oracle 数据库管理系统中的一个关键工具,主要用于数据库的备份和恢复。RMAN 提供了一种高效且灵活的方式来管理和保护数据库,确保在数据丢失或系统故障时能够快速恢复...
编写rman批处理文件,实现每天夜间1点执行、数据库全备、备份控制文件及归档日志文件、备份文件保存至PC2\RMAN目录下,并在完成归档日志文件备份后自动删除已备份的归档日志。 知识点五:备份保留策略 备份保留7天...
RMAN 备份与恢复 RMAN(Recovery Manager)是 Oracle 官方提供的一种备份和恢复工具,旨在帮助数据库管理员快速、可靠地备份和恢复数据库。下面将详细介绍 RMAN 备份与恢复的相关知识点。 一、RMAN 连接 RMAN ...
`RMAN> configure channel 1 device type disk format '/backup1/backup_%U';` 我们可以使用以下命令来设置控制文件和服务器参数文件的自动备份: `RMAN> configure controlfile autobackup on;` 查看所有设置 ...
2. 增量备份:基于上次备份的差异进行备份,分为级别0(完整备份)和级别1及以上(仅备份自上次备份以来更改的数据块)。 3. 差异备份:与增量备份类似,但差异备份通常是指相对于最近的完整备份的差异。 三、RMAN...
### RMAN备份与恢复知识点详解 #### 一、概述 RMAN(Recovery Manager)是Oracle数据库提供的一个强大且功能全面的数据备份与恢复工具。它主要用于实现对Oracle数据库的完整或部分备份,以及在出现故障时进行恢复。...
使用 RMAN 命令 `configure` 配置控制文件自动备份和备份优化。 备份方案 本文档提供了一个备份方案,包括每周日晚上的零级备份和周一到周六的一级备份。使用 shell 脚本 `rman_bk_L0.sh` 和 `rman_bk_L1.sh` 实现...
ORACLE备份分为物理备份和逻辑备份两种。...RMAN备份是一种物理备份,可以用RMAN来备份数据文件、控制文件、参数文件、归档日志文件。在数据库出现问题的时候可以通过RMAN物理备份恢复到数据库的失效点。
1. 完整数据库备份案例:演示如何使用RMAN命令创建一个完整的数据库备份,包括配置通道、指定备份目标、执行备份等步骤。 2. 增量备份案例:展示如何设置增量备份策略,比如每日全备基础上的增量备份,以节省存储...
### RMAN备份与恢复知识点详解 #### 一、RMAN简介 RMAN(Recovery Manager)是Oracle数据库中用于执行备份、恢复以及灾难恢复的重要工具。它提供了强大的自动化功能,可以进行在线或离线的数据备份,并支持增量备份...
《Oracle Database 11g RMAN备份与恢复》PDF版本下载
RMAN(Recovery Manager)是Oracle提供的一个强大的工具,专门用于数据库备份和恢复操作。本指南将为初学者详细解析如何在Oracle 10g中使用RMAN进行备份,确保数据库的安全运行。 一、RMAN简介 RMAN是Oracle数据库...
1. 建立恢复目录:恢复目录是 RMAN 用来存储备份信息的目录,包括备份的 metadata 和备份文件的信息。建立恢复目录需要创建恢复目录表空间、恢复目录所有者、授予恢复目录所有者角色等步骤。 2. 使用存储脚本:存储...
不错的oracle备份教程。 一、进入rman 二、rman命令知多少 三、rman备份演练初级篇 四、rman备份演练进阶篇 五、rman外传-基础资料篇1 六、实战rman备份 七、rman外传-基础资料篇2 ...11、rman笔记之综述