ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Oracle RMAN in Noarchivelog mode

Oracle RMAN in Noarchivelog mode

原创 Linux操作系统 作者:licheng79 时间:2011-10-27 11:05:53 0 删除 编辑

DBA Notes: 2011/10/27

Cheng Li

 

Oracle RMAN in Noarchivelog mode

 

In order to increase backup time, we apply Oracle Rman backup in noarchivelog mode.

RMAN> SHUTDOWN IMMEDIATE;
RMAN> STARTUP FORCE DBA;
RMAN> SHUTDOWN IMMEDIATE;
RMAN> STARTUP MOUNT;
RMAN> BACKUP DATABASE;

 

Reference:

http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmquick.htm#BABJAGIB

http://www.dbaglobe.com/2009/12/sample-rman-backup-in-noarchivelog-mode.html

 

Backing Up a Database in NOARCHIVELOG Mode

If a database runs in NOARCHIVELOG mode, then the only valid database backup is a consistent backup. For the backup to be consistent, the database must be mounted after a consistent shutdown. No recovery is required after restoring the backup.

To make a consistent database backup:

Start RMAN and connect to a target database.

Shut down the database consistently and then mount it.

For example, enter the following commands to guarantee that the database is in a consistent state for a backup:

RMAN> SHUTDOWN IMMEDIATE;
RMAN> STARTUP FORCE DBA;
RMAN> SHUTDOWN IMMEDIATE;
RMAN> STARTUP MOUNT;

Run the BACKUP DATABASE command.

For example, enter the following command at the RMAN prompt to back up the database to the default backup device:

RMAN> BACKUP DATABASE;

The following variation of the command creates image copy backups of all datafiles in the database:

RMAN> BACKUP AS COPY DATABASE;

Open the database and resume normal operations.

The following command opens the database:

RMAN> ALTER DATABASE OPEN;

 

大宅爱敦阁.jpg

大宅爱敦阁2.jpg

大宅爱敦阁3.jpg

大宅爱敦阁4.jpg

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26136400/viewspace-709769/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-09-07

  • 博文量
    54
  • 访问量
    84441