Script de sauvegarde avec mise en place de l'ARCHIVELOG
voici le script :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| archive log list;
alter system switch logfile;
alter tablespace SYSTEM begin backup;
alter tablespace UNDOTBS1 begin backup;
alter tablespace SYSAUX begin backup;
alter tablespace TEMP begin backup;
alter tablespace USERS begin backup;
alter tablespace REP begin backup;
alter tablespace TAN begin backup;
alter tablespace TON begin backup;
host xcopy /Y D:\ORACLE\10GR2\ORADATA\ORAINET\USERS01.DBF \\TITI\TOTO\oracle
host xcopy /Y D:\ORACLE\10GR2\ORADATA\ORAINET\SYSAUX01.DBF \\TITI\TOTO\oracle
host xcopy /Y D:\ORACLE\10GR2\ORADATA\DB\UNDOTBS01.DBF \\TITI\TOTO\oracle
host xcopy /Y D:\ORACLE\10GR2\ORADATA\DB\SYSTEM01.DBF \\TITI\TOTO\oracle
host xcopy /Y D:\ORACLE\10GR2\ORADATA\ORAINET\SANGHA01.DBF \\TITI\TOTO\oracle
host xcopy /Y D:\ORACLE\10GR2\ORADATA\DB\TITI.DBF \\TITI\TOTO\oracle
host xcopy /Y D:\ORACLE\10GR2\ORADATA\DB\TOTO.DBF \\TITI\TOTO\oracle
alter tablespace SYSTEM end backup;
alter tablespace UNDOTBS1 end backup;
alter tablespace SYSAUX end backup;
alter tablespace TEMP end backup;
alter tablespace USERS end backup;
alter tablespace REP end backup;
alter tablespace TAN end backup;
alter tablespace TON end backup;
alter database backup controlfile to '\\TITI\TOTO\oracle/control.ctl' REUSE;
alter system switch logfile;
archive log list; |
ma question est la suivante, dans cet exemple on ne sauvegarde que les tablespaces et les données. les autres fichiers sont ils necessaires comme on le ferait avec des export à froid