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
In an Oracle database, Rman backs up a lot of scripts, and here's a case of how a shell script can be backed up by Rman, and FTP uploads the Rman backup file and the archive log file script.
fullback.sh inside call rman command d
1. Oracle scheduled task:
Crontab-e
* ***/Home/oracle/workspace/scripts/bk_main.sh>/home/oracle/workspace/log/bk_err.log 2> 12. Main Control Program
/Home/oracle/workspace/scripts/bk_main.sh
#! /Bin/bash
Dat = 'date + '% m''
If ($ dat = 0 ))
Then
/Home/oracle/workspace/scripts/bk _. sh 0
Elif ($ dat % 50 = 0 ))
Then
/Home/oracle/workspace/scripts/bk _. sh 2
Elif ($ dat % 40 = 0 ))
Then
/Home/oracle/workspace/scripts/bk _. sh 2
Elif ($ dat % 30 = 0 ))
Then
/Home/oracle/workspace/scripts/bk _.
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
The Linux/unix shell script, such as calling or executing Sql,rman, provides great convenience for automated jobs and multiple iterations, so Oracle is completed through the Linux/unix shellAnd is one of the essential skills of DBAs. This article calls SQL for the Linux/unix shell script, and the Rman
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 Rman backup script based on the Linux s
The recent need for a scheduled Oracle Backup program, can be restored to the latest state, reference http://blog.sina.com.cn/s/blog_7756ebc30100tnqy.html, I have in the shell processing a bit, Get 2 shell scripts, init.sh, oraclebackup.sh, execute init.sh param1 (backup file path) param2 (archive log path), you can set up a scheduled backup, the script will set the timer, For more information, see the opening instructions for the init.sh file, and po
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 is still the backup script. After archiving
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 Set is very important during backup, otherwise garbled characters will appear
1. Level 0 b
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 medium databases. This document provides an easy-to-use
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 querying the character set SQLgt; select * from nls_database_parameters; NLS_CHARACTERSETAL32
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_backuprman_bk.bat file content: rman
Backup is th
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 Sunday morning, 6 # Perform level-1 backup every Monday or Thursday, 7 # Perform sec
I always think that using windows to run oracle is unreliable. But there are always many people in the world who like to do something like this. There are two common things about databases: rman and delete the archive logs of the dg slave database. It is very easy to use shell on linux/unix platforms, but it is annoying to run to win, not because of its troubles, however, I don't know how to handle this issue because there are few users. I have compil
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 know how to deal with the matter, I wrote a sim
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 know how to deal with the matter, I wrote a sim
Rman backup script rman shell script editing is first tested in rman to check whether the backup is normal. The statement is being judged. Backup script sh command export target/msglog =/oracle/ora10g/rmanbak/bakl0.log export file
:
Copy Code code as follows:
Rman>unregister database;
6, use the catalog database to backup the target database
Copy Code code as follows:
C:\>rman Catalog Rman/rman Target SYS/ORCL
Rman>create S
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.