time are backed up.
.
In practice, the two are used in combination.
IV. backup classificationSystem Backup
Back up operating systems and applications
Objective: to quickly and completely recover system operation after system crash
It mainly backs up/etc,/boot,/var/log,/usr/local, and so on. generally, it is performed only when the system content changes.
User
preview;Restore tablespace users preview;Restore datafile 5 preview;
-- Command BlockRun {2> shutdown immediate;3> startup mount;4> allocate channel d1 type disk;5> backup as backupset database6> format = '/u01/backup/rman/% d _ % T. Bak ';7> alter database open;8> SQL 'alter system archive log current ';9>}
Select * from v $ log;Select * from v $ archived_log;Select * from v $ backup_redolog;
-- Resume Co
the file to indicate whether the file has been backed up. A replica backup does not change any of the properties of the file, nor does it have any impact on the system, primarily for the purpose of not affecting other methods of backup.
3. Differential
Background:Colleagues mistakenly delete online data, so they need to recover data from the backup. Real estate leakage of the rain, the ship late and the wind, the first two days of backup disk bad block, now only rman full of. bak files, no control files and parameter files, so now it is necessary to consider how to recover
tablespace users preview;Restore datafile 5 preview;
-- Command BlockRun {2> shutdown immediate;3> startup mount;4> allocate channel d1 type disk;5> backup as backupset database6> format = '/u01/backup/rman/% d _ % T. Bak ';7> alter database open;8> SQL 'alter system archive log current ';9>}
Select * from v $ log;Select * from v $ archived_log;Select * from v $ backup_redolog;
-- Resume ConsultantList fai
Normally, when the current control file is lost or the current control file is inconsistent with the control file to be restored, we need to re-create a control file or use unsing
Backup controlfile to restore the control file. To
so that the control file takes effect and proofread and synchronize the control file version. Then we use RESETLOGS to open the database. Because the log file is cleared and the previous backup is invalid, we should back up the database again. This is crucial.
We can also use the RUN Command to write all operations in
;--(because the automatic archive mode is started, error here) ora-00283:recoverysession Canceledduetoerrors Ora-01610:recoveryusingthebackupcontrolfile optionmustbedone sql>recoverdatabaseusingbackup
Controlfile; Specifylog:{=suggested|filename|auto|cancel}/oracle/u01/app/
Oracle/oradata/orcl/redo01.log (the log file path is specified here, but it's not lost after this recovery, is it weird?) sql>alterdatabaseopenresetlogs; --Note: You can also res
database default location. %oracle_home%/ora92/databaseOf course you can also use Run to flexibly define your backups.rman>run{>allocate chennel d1 type disk; assigning channels>backup full database//fully backed up databases>include Current Controlfile//Includes present Controlfile>format ' E:\oracle\orders\db_%d_%s_%p_%t_%T '; Backup file location and
RMAN backup and recovery-parameter file Restoration
In RMAN, "restoration" and "restoration" have different meanings. "restoration" refers to accessing the previously generated backup set to obtain one or more objects, then restore these objects at a location on the disk. Detached from restoration. Recovery is an actual operation that allows a database to be open
can only be started to NOMOUNT. Then, RMAN restores the database through the backup control file. Because the control file recovery is complete, the database can be started to the MOUNT state, so we continue to make the database to the MOUNT state, because the Database Control file is recovered through RMAN, we need t
; cd controlfileASMCMD> lsCurrent.260.787304065ASMCMD> rm-f *4. Start the database to the nomount status.
5. Dump control files from backup setRMAN> restore controlfile from '+ dgasm/backup/ctl_ora11_37 ';Starting restore at 30-JUN-12Using target database control file instead of recovery catalogAllocated channel: ORA_DISK_1Channel ORA_DISK_1: SID = 26 device type
control file has been dumped to the target location; RMAN> alter database Mount; database loaded and released channels: ORA_DISK_1 RMAN> recover database; Enable recover to start the channel allocated by implicit crosscheck backup from 11 to 8 months to 13 months: ORA_DISK_1 channel ORA_DISK_1: SID = 133 device type =
backup time of app01
Select the full backup time of app02
1.1.4.2.3 resource credentials Test
This step must be completed successfully.
1.1.4.2.4 device and media
1.1.4.2.5 Oracle redirection settings
None.1.1.4.2.6 schedule, run now
Monitor:
1.1.4.3 subsequent work 1.1.4.3.1 check app01
Note that this is already in July April 26, which is similar to the restoration time, as shown in figure
This is based
customer operating systems."Most companies tend to adopt backup proxy and traditional file backup software, both of which are implemented by physical servers and are relatively simple," Russell said. However, this method proves that the cost is relatively high, because the number of virtual machines is large, the scale is large, and license is required at the sa
;SELECT * from V$archived_log;SELECT * from V$backup_redolog;--Recovery ConsultantList Failure--Diagnostic errorAdvise failure--suggestionRepair Failure-repair (data files and control files)Renaming data files under--rmanrun{2> SQL ' alter tablespace test_user offline ';3> set newname for datafile '/u01/app/oracle/oradata/test_user.dbf '4> to '/u01/app/oracle/oradata/test_user01.dbf ';5> restore Tablespace test_user;6> switch datafile all;7> recover t
do the following;
# Touch Rsyncd.secrets# chmod Rsyncd.secrets# echo "Mike" > Rsyncd.secrets
# RSYNC-AVZP--delete--password-file=rsyncd.secrets root@192.168.145.5::rhel4home rhel4home
Note: Here it is necessary to note that this password file permission attribute must be set to only the owner-readable.
This does not require a password; in fact, this is more important, because the server through the Crond p
is equivalent to a Daily mirror of the server's data, when the production server accident, we can easily recover the data, can minimize the loss of data; Is that what this is about?
Step1: Creating synchronization scripts and password files #mkdir/etc/cron.daily.rsync#cd/etc/cron.daily.rsync#touch rhel4home.sh rhel4opt.sh#chmod 755/etc/cron.daily.rsync/*.sh#mkdir/etc/rsyncd/#touch/etc/rsyncd/rsyncrhel4root.secrets#touch/etc/rsyncd/rsyncrhel4easylif
An application has a lot of important data, in order to be in a timely, rapid and accurate recovery of our application to a more appropriate location after the data disaster, we must regularly back up our data, we share today is the Linux file backup method.1. Manual backup of native dataWith the powerful tar command on Linux, Tar was originally designed to mak
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.