@ ebs01 backup] $ rm *
1) Start backup and back up data files together with archive logs:
[Oracle @ ebs01 backup] $ rman target/
Recovery Manager: Release 11.2.0.1.0-Production on Mon Jun 11 09:16:52 2012
Copyright (c) 1982,200 9, Oracle and/or its affiliates. All rights reserved.
Connected to target database: ORCL (DBID = 1290854593)
ORACLE Rman Backup and restoreRman can be incrementally backed up: database, tablespace, data fileOnly used blocks can be backed up as backup setTablespace and Data file correspondence: Dba_data_files/v$datafile_headerIn Noarchivelog mode, you can use Rman to back up read-only and offline table spacesORACLE Rman Downti
A Server Management Recovery
Recovery Manager, Recovery Manager, Jianchen RMAN. The RMAN implementation has been server Management recovery (Managed RECOVERY:SMR). SMR is the ability of a database to perform the operations needed to ensure the success of its own backups, which can be accomplished by relying on built-in code in the Oracle RDBMS kernel. SMR's func
Common commands for querying rman backup information ---- log on to rman $ rmantarget ---- view backup information in simplified format RMANlistbackupofdatabasesummary; ListofBackupsKeyTYLVSDeviceTypeCompletionTime # Pieces # CopiesCompressedTag backup item type
Common commands for querying
Seven Online Rman Database backup
7.1 Online Database backup
To perform an online backup operation using Rman, the database must be placed in Archivelog mode. If you are not in archive mode, Rman generates an error when you attempt an online backup.
Oracle Archiving and non-archive switching
Http://blog.csdn.net/ti
After a database restore, try set newname but the error RMAN-06015. We can hand catalog in first, in set NewName.
You can look at the following test cases:
--1. The pure set newname is OK.
Rman> run{2> set newname for datafile 6 to '/u01/oracle11gr2/oracle/oradata/ora11g/u_nolob2.dbf222 ';3>}Executing Command:set NEWNAMERman>
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
'fieldname' size 50 m;B. Create RMAN user SQL> Create user RMAN identified by RMAN default tablespace tools temporary tablespace temp;C. Grant RMAN permissions SQL> Grant connect, resource, recovery_catalog_owner to rman;D. Open RMAN
http://blog.csdn.net/u011364306/article/details/50036429 of Rman Level012 Backup experiment
With a 0221222 incremental backup strategy, 7 days a cycle
That is, Sunday level 0 backup, Week 1 2 4 5 6 using 2 level incremental backup, week 3 with 1 level incremental backup
Open Control File Automatic backup
CONFIGURE Controlfile autobackup on;
11g control file Automatic backup new features: http://blog.csdn.net/u011364306/article/details/50051303
Conf
Oracle 10g R2 supports manually moving databases across platforms, even if these platforms have different mantissa formats (endian format). The mantissa format is related to byte ordering, which has two different formats, the large mantissa and the small mantissa. If you move the database between platforms in different mantissa byte formats, you will need to manually manipulate and use the convert datafile or convert tablespace command of
Last time we introduced:OracleExamples of Common Database rman commands. This article introduces the Oracle databaseRman environment ConfigurationNext, let's take a look at this part!
1. Configure Automatic Channels
Configure Automatic channel concurrency. RMAN automatically allocates two channels:
RMAN-04015 error reported when rman cannot be enabled after manual Oracle database creation
The solution is as follows:SQL> shutdown immediate;SQL> startup upgrade;SQL> @? /Rdbms/admin/utlirp. SQLSQL> @? /Rdbms/admin/utlrp. SQLSQL> shutdown immediate;SQL> startup;Where:Utlirp. SQL is used to compile all relevant content on the 32bit platform.Utlrp. SQL is used to
' df_%t_%s_%p '
Database
}
RMAN can also implement multiple mirror-phase backups
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 are examples of common backup archives
Rman>sql ' alter system archive log current ';
The target database version is oracle8.1.7, the directory database version is oracle9.2.0, and all data files (including control files and On-line log files) are lost. Examples of using RMAN for backup and recovery are as follows:
Tutorial steps:
1. Create a tablespace in the directory database to restore the directory:
SQL> Create tablespace rmants datafile '/opt/Oracle/DB02/oradata/orcl/rmants. dbf' size
Note: Rman backup (supports SPFile-based backup only and does not support Init.ora configuration-based backups)exercise: Turn on Archivelog mode1\ For archived redo logs are referred to FRA and separate archive log target SQL>Show parameter db_recovery_file_dest; SQL>AlterSystemSetDb_recovery_file_dest_size=2G; SQL>AlterSystemSetDb_recovery_file_dest='/u01/app/oracle/fast_recovery_area'; 2\ Now, define two
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 configuration param
backup:1) explicitly specify the copies parameter when executing the backup command in Rman. For example:Rman> backup copies 3 database;The above command will automatically generate 2 copies of the current backup set to the default backup directory at the same time as the full library backup.2) Use the Set backup copies command in the run {} command block to set all the backup commands in the command block
/rmanback/backl0.log export file =/oracle/ora10g/script/bakl01 and 2. the BACKUP command is as follows:/oracle/ora10g/product /10.2.0/db_1/bin/rman target/catalog rman/rman msglog =/oracle/ora10g/rmanback/backl1.log prepare file =
[Oracle] Wide ledba28 open a connection to the RMAN recovery catalog, which contains the RMAN metada, metada
You executed the following command in Recovery Manager (RMAN ):
RMAN> restore controlfile;
Which operation must you perform before this command is executed?
A. back u
Common RMAN commandsCommon RMAN commands crosscheckreportobsolete681. show command:1.1. RMAN> show all; display RMAN parameter configuration2. Report command:2.1. RMAN> report schema the physical structure of the target database2.
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.