Use Windows Task Scheduler to implement regular Oracle backups _oracle

Source: Internet
Author: User
Tags rar
Write a batch file first, give an example.
Copy Code code as follows:

Set rq=%date:~0,10%
Exp System/system password @ Local Service name file=d:\backup\bak%rq% Full=yes log=d:\backup\bak%rq% buffer=65536
C:\progra~1\winrar\rar.exe A-DF d:\backup\bak%rq% D:\backup\
move/y D:\backup\*.rar D:\databasebackup

The first one is to set the date string, followed by the backup file name to use it, file=d:\backup\bak%rq% is the backup file name of the exported database, Full=yes, representing all exports. C:\progra~1\winrar\rar.exe a-df d:\backup\bak%rq% D:\backup\ is a compressed file, and the last one is to move the compressed file to the D:\databasebackupd:\ The Databasebackup directory.

You may be unfamiliar with the parameters after exp, you can enter the exp help=y at the command prompt to understand these parameters.
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.