Set up an Oracle database scheduled backup under Windows

Source: Internet
Author: User

1 Writing Backup scripts
1echo Backup Oracle Database ...2Echo%~dp03Set File_dir=%~dp04 5Echo Backup time ...6Set "year=%date:~0,4%"7Set "month=%date:~5,2%"8Set "day=%date:~8,2%"9Set "hour_ten=%time:~0,1%"TenSet "hour_one=%time:~1,1%" OneSet "minute=%time:~3,2%" ASet "second=%time:~6,2%" -  -Set MyDate the  - if"%hour_ten%" == " " ( -mydate=%year%%month%%day%0%hour_one%%minute%%second% -)Else( +mydate=%year%%month%%day%%hour_ten%%hour_one%%minute%%second% -) +  AExp User/[email protected] file=file_dir\yr_database_backup_%mydate%.dmp Owner=owner at 
2 Setting up Windows timer tasks

Open Control Panel-"Administrative Tools-" Task Scheduler-"Create basic tasks

Select the execution time of the task and the corresponding script

Set up an Oracle database scheduled backup under Windows

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.