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-to-use R
RMAN backup is easy to use for Oracle database backup and recovery, with low costs. For non-catalog mode, it is undoubtedly the first choice to embed the RMAN script into the shell script and then use crontab to back up small and
This backup script is organized from the network, and some comments are added. This script is clear and can be applied to the production machine with slight changes.
1 #! /Bin/ Bash 2 ######################################## ############################### 3 # 4 # Backup policy: 5 # Grade 0 backups every
I. Incremental backup scriptLevel 0 backup script: The red part is the directory of the custom backup fileCopy codeThe Code is as follows:# Script.: BackupFull. sh# Creater: xyh# Date: 2014-03-08# Desc: backup full database datafi
Rman backup Script
#!/bin/bash
su-oracle
Third backup save platform automatically cleans up expired backup files
#! /bin/bash for
file in ' Ls/orabak '
does
if [[${file:0:2} = = ' db ']];then
fdate=${file:10:8}
Myda
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
physical operations on the database, so that the database may be suspended.RMAN> configure controlfile autobackup format for device type disk to '% F'; k to' % F'; Note: physical operation backup to diskRun {Allocate channel c1 type sbt_tape; back up the control file to the warehouse.Backup database;}If automatic backup of the control file is enabled in rman, it
Always feel that using Windows to run Oracle is not reliable thing, can this world there are always a lot of people like to do things like this, for the database more common two things: Rman and delete the DG Standby archive log, on the Linux/unix platform using shell implementation is very simple, But ran to win inside, became vexed, not because of the trouble, but because the use of less people, do not kn
Always feel that using Windows to run Oracle is not reliable thing, can this world there are always a lot of people like to do things like this, for the database more common two things: Rman and delete the DG Standby archive log, on the Linux/unix platform using shell implementation is very simple, But ran to win inside, became vexed, not because of the trouble, but because the use of less people, do not kn
Oracle 11g R2 rac rman backup script example
1. Switch RAC to archive Mode
1. Modify the archive mode of the database. Generally, archive is configured and the flash back area is used when RAC is installed. you can skip the steps below if you have configured archive.
SQL> alter system set cluster_database = false scope = spfile sid = '*';
2. Shut down all instanc
The rman backup script in the Oracle database is very practical.
The rman backup script in the Oracle database is very practical.
Query character sets
SQL> select * from nls_database_parameters;
NLS_CHARACTERSETAL32UTF8
Character
The rman backup script in the Oracle database is very useful for querying the character set SQLgt; select * fromnls_database_parameters; NLS_CHARACTERSETAL32UTF8
The rman backup script in the Oracle database is very useful for que
The logs backed up by RMAN are put in a file. The backup script in nocatalg was sent using Linux Sendmail. However, this affects the system startup time. It is still sent using python. After the backup, call the script. Send
script
[Email protected]:~> more rman_bak_2.sh
#!/bin/bash
# SET environment variable
If [-f ~/.BASHRC]; Then
. ~/.bashrc
Fi
Export Oracle_sid=cnmmbo
$ORACLE _home/bin/rman Log=/users/oracle/bak/rman.log
Connect Target/
RUN {
CONFIGURE RETENTION POLICY to RECOVERY windows of 7 days;
CONFIGURE BACKUP optimization on;
CONFIGURE
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.