One, Backup script command:
@ECHO off
If not exist d:\ora_dmp MD d:\ora_dmp
SET backpath=d:\ora_dmp
ECHO prepares to back up the database
REM 7 days a loop
IF EXIST%backpath%\one GOTO One
IF EXIST%backpath%\two GOTO Two
IF EXIST%backpath%\three GOTO THREE
IF EXIST%backpath%\four GOTO FOUR
IF EXIST%backpath%\five GOTO FIVE
IF EXIST%backpath%\six GOTO SIX
IF EXIST%backpath%\seven GOTO SEVEN
ECHO E >%backpath%\one
: one
Del%backpath%\*.*/q
ECHO E >%backpath%\one
SET backpath_full=%backpath%\01
REN%backpath%\one Two
GOTO back
: Two
SET backpath_full=%backpath%\02
REN%backpath%\two THREE
GOTO back
: THREE
SET backpath_full=%backpath%\03
REN%backpath%\three FOUR
GOTO back
: FOUR
SET backpath_full=%backpath%\04
REN%backpath%\four FIVE
GOTO back
: FIVE
SET backpath_full=%backpath%\05
REN%backpath%\five SIX
GOTO back
: SIX
SET backpath_full=%backpath%\06
REN%backpath%\six SEVEN
GOTO back
: SEVEN
SET backpath_full=%backpath%\07
REN%backpath%\seven One
GOTO back
: Back
EXP LCBYADMIN/LCBY0597ADMIN@XCORCL File=%backpath_full%.dmp
EXIT
Second, add a task schedule to achieve a scheduled backup.