SH file for logical backup of Oracle Database

Source: Internet
Author: User

The ORACLE tutorial is the SH file of the logical backup of the Oracle database.

Full backup SH file: exp_comp.sh

Rq = 'date + "% m % d "'

Su-oracle-c "exp system/manager full = y inctype = complete file =/oracle/export/db_comp $ rq. dmp"

Cumulative backup SH file: exp_cumu.sh

Rq = 'date + "% m % d "'

Su-oracle-c "exp system/manager full = y inctype = cumulative file =/oracle/export/db_cumu $ rq. dmp"

SH file for Incremental Backup: exp_incr.sh

Rq = 'date + "% m % d "'

Su-oracle-c "exp system/manager full = y inctype = incremental file =/oracle/export/db_incr $ rq. dmp"

Root User crontab file

/Var/spool/cron/crontabs/root Add the following content

0 2 1 **/oracle/exp_comp.sh

30 2 ** 0-5/oracle/exp_incr.sh

45 2 ** 6/oracle/exp_cumu.sh

Of course, this timetable can be changed according to different requirements. This is just an example.

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.