Use RMAN Incremental backup to update the transmitted tablespace
To use RMAN Incremental backup to update the transmitted tablespace, you need to understand the Incremental backup of the transmitted tablespace and RMAN. Here we wi
Yesterday at the customer did an Rman recovery, the production library to get a copy to the test library, the total library of about 80G, a total of 2 hours, when the customer's environment is Windows 11.2.0.3, this morning under Linux re-test a bit, recorded for everyone referenceEnvironment:All operations are distinguished by host nameSOURCE Library:Host name Bre1 instance named Bre1 data file directory under/u01/app/oradataTarget Library:Host name
This document describes how to use RMAN in step-by-step mode. Generally, the directory database and the target database of the Backup directory should be stored on different machines.
This article describes how to use RMAN in step by step mode. Generally, the directory database and the target database of the Backup dir
Control file backup and recovery (RMAN tool) database version
SQL> select * from v$version;BANNER--------------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionPL/SQL Release 11.2.0.1.0 - ProductionCORE 11.2.0.1.0 ProductionTNS for 32-bit Windows: Version 11.2.0.1.0 - P
restore RMAN. RMAN can be used to back up and restore database files, archive logs and control files. It can also be used to perform full or incomplete database Recovery. RMAN Backup methods include Full Backup, Incremental Backup
The 11g active data guard implements rman backup for the standby database, so that the database can be backed up without affecting the external services of the primary database.
The test is as follows:
SQL> select OPEN_MODE, PROTECTION_MODE, PROTECTION_LEVEL, DATABASE_ROLE from v $ database;
OPEN_MODE PROTECTION_MODE PROTECTION_LEVEL DATABASE_ROLE-------------------------------------------------------------
'df _ % T _ % S _ % P'Database;}RMAN supports backup of multiple mirror phases.Run {Allocate channel D1 type disk;Allocate channel D2 type disk;Allocate channel D3 type disk;Set backup copies 3;Backup datafile 7 format'/tmp/% U ','? /Oradata/% U ','? /% U ';};The following is a common example of
" (physically deleted). The command is: RMAN> crosscheck archivelog all; then archive These expired logs, delete RMAN> delete noprompt expired archivelog all from the control file information; then run the script again, and the backup will be smooth. Archive logs will be backed up first, and then the database will be backed up, finally, the control file and spfil
to see if it starts successfullyThe following are displayed after successful startupsql> archive log list;Database Log Mode Archive modeAutomatic Archival EnabledArchive Destination Use_db_recovery_file_destOldest online log sequence 25Next Log sequence to archive 27Current log Sequence 272 Modifying Rman parametersLanding RmanRman Target Rman/rmanConfiguration in Orac
location:
Run
{
Set archivelog destination to "D:/arch";
Restore Archivelog All;
}
Note: 1. The set command in the example above has no workaround and must require the use of set.
2. If Rman believes that an archived redo log already exists, it will not restore the archived redo log on disk, and Oracle will not restore archived redo logs in this new location, even if the restore location is set diff
;Switch tablespace name to copy;Group 2Switch datafile all;Switch datafile number | name;Switch tempfile all;
Recommended reading:
Basic Oracle tutorial-copying a database through RMAN
Reference for RMAN backup policy formulation
RMAN ba
This article describes how to use RMAN in step by step mode. Generally, the directory database and target database of the Backup directory should be stored on different machines, where the two databases are on the same machine.Add in listener. ora(SID_DESC =(GLOBAL_DBNAME = rmtgt)(ORACLE_HOME = D: \ oracle \ product \ 10.2.0 \ db_1)(SID_NAME =))The tns configurat
Instructions frequently used to query RMAN backup information
---- Log on to RMAN
$ RMAN target/
---- View backup information in a simplified format
RMAN> List backup of database summa
a maximum ofManual designation:Rman> backup copies 2 datafile 42> format '/u01/app/oracle/rmanbak/d1/df_%u ',3> '/u01/app/oracle/rmanbak/d2/df_%u ';Auto-Specify: Configure the following parametersRman> Configure DataFile backup copies for device type disk to 2; --Specify the number of copies of
1. Related views
V $ backup_files
V $ backup_set
V $ backup_piece
V $ backup_redolog
V $ backup_spfile
V $ backup_device
V $ rman_configuration
V $ archived_log
V $ backup_upload uption
V $ copy_uption
V $ database_block_corruption
V $ backup_datafile
2. view the Server sessions corresponding to the Channel
Use the SET command id command
Query v $ process and V $ session to determine which session corresponds to the RMAN
Oracle 9i can configure a number of parameters such as channels, backup retention policies, and so on, can be used more than once, and the information in the settings does not affect the reset in the script. RMAN default configuration parameters, which can be seen by show all.
Rman> Show All;
Rman backup is easy to use and inexpensive for Oracle database backup and recovery. For non-catalog mode, it is undoubtedly the first choice to embed Rman scripts into shell scripts and then use crontab to make small database database backups. This article provides an easy-t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.