Oracle Export Database DMP file

Source: Internet
Author: User

Export database as DMP file, set file name according to current export time

@ECHO Offecho back up data from SCOTT users ... SET Dbusername=Scottset Dbpassword=1234SET DBName=Orclset date_string=%date%SET time_string=%time%IF"%date_string:~3,1%"==" "(SET date_string=%date:~4,Ten%) ELSE (SET date_string=%date:~0,Ten%) IF"%time_string:~0,1%"==" "(SET time_string=0%time_string:~1,1%-%time_string:~3,2%-%time_string:~6,2%) ELSE (SET time_string=%time_string:~0,2%-%time_string:~3,2%-%time_string:~6,2%) SET Dmpfilename=%dbusername%_%date_string%_%time_string%. Dmpset Rarfilename=%dbusername%_%date_string%_%time_string%. Rarexp%dbusername%/%dbpassword%@%dbname% file=d:\backup\scott%Date:~0,4%_%Date:~5,2%_%Date:~8,2%. Dmprar A%rarfilename%%dmpfilename%-M5-Dfecho%timestring%ECHO========================================ECHO has exported the DMP file:"%dmpfilename%"REM PAUSE

Saving the file as a. bat file allows you to double-click to export.

Oracle Export Database DMP file

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.