EBS oracle production environment database backup script

Source: Internet
Author: User

In the EBS oracle production environment, the database backup script is saved as the sh script respectively below. The first one is that the backup speed of the compressed backup is extremely slow, and it takes 10 hours to GB, however, after the backup, only the original 1/8 space [python] rman target/nocatalog log =/u1/data/bak _ 'date + % m % d % H % m' will be used '. log <EOF run {configure device type disk parallelism 1; configure channel 1 device type disk format = '/u1/data/fu1% u. % P' maxpiecesize 4G; configure controlfile autobackup on; configure controlfile autobackup format for device type disk to '/finrm An/data/% F. bck '; backup as compressed backupset full database; SQL 'alter system archive log exist';} exit the second is that the backup without compression is fast, however, the occupied space is basically the sum of the original data files [python] rman target/nocatalog log =/u01data/bak _ 'date + % m % d % H % M '. log <EOF run {configure device type disk parallelism 1; configure channel 1 device type disk format = '/u01/data/fu1% u. % P' maxpiecesize 4G; configure controlfile autobackup on; configure Controlfile autobackup format for device type disk to '/u01/data/% F. bck '; backup database; SQL 'alter system archive log current';} exit these two scripts can be used directly on your own database.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.