# Directories used by backup/restore $tmpdir = "E:\\temp"; $sqltmp = "$tmpdir\\temp.sql"; # hot ####################### $logdir = "E:\\Oracle\\log"; $arcdir = "F:\\oracle\\backup"; # cold ###################### $coldarc = "E:\\Oracle\\coldstore"; # Add config data for Orcacle Instances here ... # WORK Instance $pfile{WORK} = 'E:\oracle\ora81\DATABASE\initWORK.ora'; $ORADIM{WORK} = 'E:\oracle\ora81\bin\ORADIM.EXE'; $SVRMGRL{WORK} = 'E:\oracle\ora81\bin\SVRMGRL.EXE'; $SQLPLUS{WORK} = 'E:\oracle\ora81\bin\SQLPLUS.EXE'; # TEST Instance $pfile{TEST} = 'E:\oracle\ora81\DATABASE\initTEST.ora'; $ORADIM{TEST} = 'E:\oracle\ora81\bin\ORADIM.EXE'; $SVRMGRL{TEST} = 'E:\oracle\ora81\bin\SVRMGRL.EXE'; $SQLPLUS{TEST} = 'E:\oracle\ora81\bin\SQLPLUS.EXE'; # pgts Instance $pfile{pgts} = 'E:\oracle\ora81\DATABASE\initPGTS.ora'; $ORADIM{pgts} = 'E:\oracle\ora81\bin\ORADIM.EXE'; $SVRMGRL{pgts} = 'E:\oracle\ora81\bin\SVRMGRL.EXE'; $SQLPLUS{pgts} = 'E:\oracle\ora81\bin\SQLPLUS.EXE'; # zip commands: # The following is pkzip (vers 2.5) # Also included are wzzip/wzunzip, which use old style pkzip commands # Uncomment/comment these lines accordingly $zipadd = "pkzip -add"; # $zipadd = "wzzip -a"; $zipmv = "pkzip -add -move"; # $zipmv = "wzzip -m"; $unzip = "pkzip -extr -over=all"; # $unzip = "wzunzip -o"; $zipview = "pkzip -view"; # $zipview = "wzzip -v"; # ------------------------------------------------------------------------ sub chk_env{ die "ORACLE_SID differs from $orasid\n" unless ($orasid eq $ENV{ORACLE_SID}); die "No pfile specified for $orasid\n" unless ($pfile{$orasid}); die "No oradim specified for $orasid\n" unless ($oradim = $ORADIM{$orasid}); die "No svrmgrl specified for $orasid\n" unless ( $svrmgrl = $SVRMGRL{$orasid}); die "No sqlplus specified for $orasid\n" unless ( $sqlplus = $SQLPLUS{$orasid}); }