Concurrent execution of Oracle RMAN backup of a single file
If a file is a file of several gigabytes or tens of thousands of megabytes, You Need To parallelize the backup of the file. Generally, one channel can only read one file, however, you can use the multi-segment keyword to change this line:
Run {
Allocate channel t1 type sbt;
Allocate channel t2 type s
[Oracle Life Philosophy] RMAN Incremental Backup and life principles when practicing RMAN Incremental Backup, refer to ocp tk 042: apparently, based on the answer, archive log is not in the column, even if you hit the south wall, you also want to test [plain] RMAN>
Backup is the most important. Many test environments are built on windows, and there is one on the master's computer. to ensure its security, it is decided to perform regular backup. The example shows how to use scripts + windows scheduled tasks in windows to periodically execute full backup. Backup script C: rman_back
target database -----3. Use ftp to copy the backup set in the original database to the directory of the target database/u02/ftp/(the specific operation is omitted)4. Create the following directory on the new machine:Mkdir/u02/mydbMkdir-p/u02/mydb/oracl/{adump, bdump, cdump, dpdump, udump, pfile}Mkdir-p/u02/mydb/oradata/oraclMkdir-p/u02/mydb/flash_recovery_area5. Create a password fileOrapwd file =/u01/app/oracle/product/10.2.0/db_1/dbs/orapworacl. or
I recently received an email saying that there is not enough storage space. It seems that the RAMN backup set occupies a large amount of storage space.Looking at these backup sets, there were actually two months ago. No wonder the storage space was insufficient.
RMAN> show all;RMAN configuration parameters:Configure re
Rman> Backup current controlfile tag= ' bak_ctlfile ' format= '/home/oracle/backup/bak_ctl_%u_%t ';alter system switch logfile;alter system switch logfile;alter system switch logfile;Switch multiple times, cut out several archivelog files, delete one of themRM O1_mf_1_3_cpk5wloy_.arcThen delete the control fileRm/u01/app/oracle/oradata/orcl/control01.ctlRm/u01/ap
=1140850688Scpdb.__oracle_base= '/u01/app/oracle ' #ORACLE_BASE set from environmentscpdb.__pga_aggregate_target=6777995264scpdb.__sga_target=20333985792scpdb.__shared_io_pool_size=536870912scpdb.__shared_pool_size=2214592512Scpdb.__streams_pool_size=0---restore control filesExport oracle_sid=scpdbRman Target/Rman> Startup Nomountrman> restore Controlfile from '/U01/BACKUP/CTL_AUTO_C-2612507248-20160809-00.
Datafile_names_step8.txtSet Lines 200Col name format A60Select file#, name from V$datafile order by file#;Spool off------on standby Db to restore new standby control filesRman> SHUTDOWN IMMEDIATE;Rman> STARTUP Nomount;Rman> RESTORE STANDBY controlfile from '/tmp/forstandbyctrl.bck ';-----Update the data file information in the control fileMake the new standby control file effectiveRman> SHUTDOWN;
Tags: Rman incremental backup incremental CumulativeRman not only can make the database, data files and other full-scale backup, but also can do incremental backup. Incremental backups have two major advantages:
Reduce the time of database recovery.Database recovery uses archived logs to continually apply arch
How to Use RMAN Incremental backup to restore data guard log gap (log disconnection), rmangapThe minimum scn information of the master database:SQL> col current_scn for 999999999999999SQL> SELECT CURRENT_SCN FROM V $ DATABASE;Select min (fhscn) from x $ kcvfh;Select min (f. fhscn) from x $ kcvfh f, v $ datafile dWhere f. hxfil = d. file #And d. enabled! = 'Read only ';CURRENT_SCN----------------126142052266
With RMAN automatic backup script, and automatic copy of the backup file to other machines last write a batch backup script with exp, the response is good, see: http://www.cnoug.org/viewthread.php? Tid = 20864
Encouraged by this, the RMAN script for maintaining the product
has been busy writing shell scripts, ignoring Oracle's basic review, just did an rman recovery, record a deeper impression.
Oracle Full-Library backup is ideal for the mount, so there is no need to consider consistency issues. Just an ideal.
To open the database in archive mode, complete the script as follows
Log_file=/paic/hq/bk/restore/home/op11202/xionglang/investdw/full_backup_${oracle_sid}_ ' Date ' +%
1, modify the Rman configuration, can recover to 7 days of any point in timeSu-oracleRman Target/Configure retention policy to recovery windows of 7 days;Show All;2. Create backup database and archive log Rman script Online_database_archivelog.rman#创建备份目录Mkdir-pv/backup/oraclebk/databaseMkdir-pv/
In LINUX, you have written a script before using crontab to perform the RMAN backup experiment. You can run it manually. You cannot run it successfully using crontab. This afternoon, we spent two hours experimenting with the following: Note: after the script is complete, run it manually. When using crontab, pay attention to the following points: 1. You need to define the environment variables, even if the O
Backup is a top priority for DBAs. No matter how powerful your technology is and there is no backup, you are still helpless when something goes wrong.
Here is just the BACKUP command summarized in the work. The scripts collected in the future will be continuously updated ......
1. In the RAC environment, if the archivelog of the two nodes are stored locally, how
RMAN> report obsolete
Direct delete will report this error:RMAN> delete obsolete;The RMAN retention policy is applied to this command.Set the RMAN retention policy to redundancy 1.Allocated channel: ORA_DISK_1Channel ORA_DISK_1: sid = 136 devtype = DISKReleased channel: ORA_DISK_1
Nor does crosscheck work.RMAN> crosscheck bac
Use filesperset to control the size of a backup set
When the filesperset parameter is specified, rman compares filesperset with the automatically calculated value (for the number of files in each allocated channel)
And take a smaller value to ensure that all channels are used.
If the number of files specified or indicated by the combined backupSpec statement is greater than that of filesperset,
Then
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.