Search code examples
oracle-databaseoracle10gdatabase-backups

Oracle daily db backup - without Enterprise Manager


I'm a SQL Server DBA, but we have an Oracle 10g database that I need to start performing daily backups on. We do not have Enterprise Manager. Is there a way to schedule a daily backup in Oracle like in SQL Server?

I apologize if this question is severely elementary for Oracle people, but I've had a very tough time trying to research this and coming up with an answer other than "Use EM".


Solution

  • Easiest in your case is to make a simple Windows Batch script that set ORACLE_HOME and PATH and uses rman to make the backup. Schedule the script in the Windows Task scheduler. Assuming your database is production and because of this runs in archive log mode your script could be something like this: (I am not a Windows expert so subtle errors might be easy to spot for you)

    rman_backup.bat:

    ORACLE_SID=your_oracle_sid
    ORACLE_HOME=d:/where/your/installation/is
    PATH=%ORACLE_HOME%/bin;%PATH%
    rman cmdfile=your_rman_actions_script.rman log=your_log_file.log
    

    your_rman_action_script.rman looks like

    connect target=/
    backup DATABASE PLUS ARCHIVELOG;
    

    For documentation look at Oracle 10g database documentation and start with 2 day dba. After that check out the backup docu found here Administration