How to export Oracle database using windows batch file with auto file name
Hi folks, this tip is for the DBA’s and developers who do the tedious task - Daily back up of database!!!
Every day run a script to export oracle database. Each day you would have to modify your export batch file with the current date and to do it.
I thought of creating a batch file that accepts the user name and password and then exports the database and creates a dump file with auto filename. You will get a new dump file each day, with the date appended in the file name. No need to manually type the date each time.
Copy paste the below code to create a batch file (*.bat)
|
|
If there is any issue, suggestion or feedback please put it in comments. Share it if you liked!
Author: Deepu Mohan Puthrote
Link: https://deepumohan.com/tech/export-oracle-database-with-auto-file/
This work by Deepu Mohan Puthrote is licensed under a Creative Commons Attribution 4.0 International License