Difference between revisions of "Auto Backup of Oracle Database on Windows"
Jump to navigation
Jump to search
Mustafasajid (talk | contribs) |
Mustafasajid (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | ||
We are using batch file system for scheduling database. First write your export string in a notepad and save that notepad file as .bat file. | We are using batch file system for scheduling database. First write your export string in a notepad and save that notepad file as .bat file. | ||
− | + | ||
'''EXAMPLE:''' | '''EXAMPLE:''' | ||
+ | |||
+ | For example this is our export string: | ||
<pre> | <pre> | ||
− | |||
− | |||
EXPDP system/system@orcl schemas=smarthcm_allied directory=dump_dir logfile=smarthcm_allied.log dumpfile="smarthcm_allied_%date:/=_%_%time::=_%.DMP" | EXPDP system/system@orcl schemas=smarthcm_allied directory=dump_dir logfile=smarthcm_allied.log dumpfile="smarthcm_allied_%date:/=_%_%time::=_%.DMP" | ||
Line 22: | Line 22: | ||
− | + | ||
− | Write this export string in notepad file and save it as .bat file. | + | '''Write this export string in notepad file and save it as .bat file.''' |
− | |||
Line 32: | Line 31: | ||
− | + | ||
− | NOW, Schedule this batch file by TASK SCHEDULER of WINDOWS. | + | '''NOW, Schedule this batch file by TASK SCHEDULER of WINDOWS.''' |
− | + | ||
Line 40: | Line 39: | ||
[[File:database_backup_windows_3.png]] | [[File:database_backup_windows_3.png]] | ||
− | + | ||
− | Click create basic task. | + | '''Click create basic task.''' |
− | + | ||
Line 50: | Line 49: | ||
− | + | ||
− | Write Name and Description of task whatever you want. | + | '''Write Name and Description of task whatever you want.''' |
− | + | ||
Line 60: | Line 59: | ||
− | + | ||
− | Pick up Task Trigger i.e select duration or event when you want task to be performed. In our case we are selecting Daily. | + | '''Pick up Task Trigger i.e select duration or event when you want task to be performed. In our case we are selecting Daily.''' |
− | |||
Line 70: | Line 68: | ||
− | + | ||
− | Set timing of task. | + | '''Set timing of task.''' |
− | + | ||
Line 80: | Line 78: | ||
− | + | '''In our case action is Start a pro</pre>gram.''' | |
− | In our case action is Start a | ||
− | </pre> | ||
Line 90: | Line 86: | ||
− | + | ||
− | Browse to the batch file you have prepared earlier. | + | '''Browse to the batch file you have prepared earlier.''' |
− | + | ||
Line 105: | Line 101: | ||
− | + | ||
− | Finish the setup. | + | '''Finish the setup.''' |
− |
Latest revision as of 11:06, 2 February 2017
We are using batch file system for scheduling database. First write your export string in a notepad and save that notepad file as .bat file.
EXAMPLE:
For example this is our export string:
EXPDP system/system@orcl schemas=smarthcm_allied directory=dump_dir logfile=smarthcm_allied.log dumpfile="smarthcm_allied_%date:/=_%_%time::=_%.DMP" ="smarthcm_allied_%date:/=_%_%time::=_%.DMP" is used to have different name at every backup. By this timestamp method you can even schedule multiple backup at same day.
Write this export string in notepad file and save it as .bat file.
NOW, Schedule this batch file by TASK SCHEDULER of WINDOWS.
Click create basic task.
Write Name and Description of task whatever you want.
Pick up Task Trigger i.e select duration or event when you want task to be performed. In our case we are selecting Daily.
Set timing of task.
In our case action is Start a program.
Browse to the batch file you have prepared earlier.
Finish the setup.