Oralce export script command, regular execution, oralce export script command

Source: Internet
Author: User

Oralce export script command, regular execution, oralce export script command

@ Echo off @ echo ========================================== ==================

@ Echo automatic backup script for Oracle databases in windows

@ Echo 1. The file is automatically named by the current date when it is backed up and exported.

@ Echo 2. urls is a temporary directory, url is the final directory to be saved, and the temporary directory will be deleted after being saved.

@ Echo 3. This is the Oracle 11g Export command. below is the export of expdp ppp/ppp @ zcjc dumpfile = zcjc_ppp _ % mydate % _ exp. dmp content = all

@ Echo 4. Name the file xxxxx. bat. My name here is expdportOracle. bat.

@ Echo 5: script execution time. Execute at/every: m, t, w, th, f, s, su in the DOS command. "E: \ expbportOracle. bat"

@ Echo 6. delete a task and execute at 1/delete in the DOS command.

@ Echo 7. If you don't know anything, ask me QQ: 1216331654.

@ Echo ===================================================== ============

 

Set mydate = % date :~ 0, 4% % date :~ 5, 2% % date :~ 8, 2%

Set years = % date :~ 0, 4%

Set month = % date :~ 5, 2%

Set day = % date :~ 8, 2%

Set urls = E: \ app \ Administrator \ admin \ zcjc \ dpdump set url = E: \ expbportOracle

Md % url % \ % years % \ % month % \ % day %

 

Expdp ppp/ppp @ zcjc dumpfile = zcjc_ppp _ % mydate % _ exp. dmp content = all

Expdp aus/aus @ zcjc dumpfile = zcjc_aus _ % mydate % _ exp. dmp content = all

Expdp cif/cif @ zcjc dumpfile = zcjc_cif _ % mydate % _ exp. dmp content = all

Expdp spm/spm @ zcjc dumpfile = zcjc_spm _ % mydate % _ exp. dmp content = all

Expdp ua/ua @ zcjc dumpfile = zcjc_ua _ % mydate % _ exp. dmp content = all

 

Copy "% urls % \ zcjc_ppp _ % mydate % _ exp. dmp" "% url % \ % years % \ % month % \ % day %"

Copy "% urls % \ zcjc_aus _ % mydate % _ exp. dmp" "% url % \ % years % \ % month % \ % day %"

Copy "% urls % \ zcjc_cif _ % mydate % _ exp. dmp" "% url % \ % years % \ % month % \ % day %"

Copy "% urls % \ zcjc_spm _ % mydate % _ exp. dmp" "% url % \ % years % \ % month % \ % day %"

Copy "% urls % \ zcjc_ua _ % mydate % _ exp. dmp" "% url % \ % years % \ % month % \ % day %"

 

Del % urls % \ zcjc_ppp _ % mydate % _ exp. dmp

Del % urls % \ zcjc_aus _ % mydate % _ exp. dmp

Del % urls % \ zcjc_cif _ % mydate % _ exp. dmp

Del % urls % \ zcjc_spm _ % mydate % _ exp. dmp

Del % urls % \ zcjc_ua _ % mydate % _ exp. dmp

Exit

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.