|
|
|
|
|
|
|
|
Re: Script for Cold Backup [message #241204 is a reply to message #241105] |
Mon, 28 May 2007 17:12   |
DreamzZ
Messages: 1666 Registered: May 2007 Location: Dreamzland
|
Senior Member |
|
|
set heading off
select 'hosT copy '||file_name||' c:\backup\datafiles\
' from dba_data_files;
select 'host copy '||name||' c:\backup\datafiles\controlfiles\ ' from v$controlfile;
select 'host copy '||member||' c:\backup\datafiles\redologs\ ' from v$logile;
copy all the output in the file AND SAVE IT WITH .BAT and schedule it with window scdeullar according to your requirments like every day ,weekly or monthly.
i didnt run these scripts may be it not 100 accurate coz i dont have oracle installed on mine pc.
[Updated on: Mon, 28 May 2007 17:40] Report message to a moderator
|
|
|
|
|
Re: Script for Cold Backup [message #241759 is a reply to message #241551] |
Wed, 30 May 2007 10:09  |
DreamzZ
Messages: 1666 Registered: May 2007 Location: Dreamzland
|
Senior Member |
|
|
yes recovery catalog is good approch for hot backups.
Quote: | RMAN>RUN {
backup
incremental level 0
format 'E:/RMAN_BACKUP/F_BACKUP/%d_%s_%p'
filesperset 3
(database include current controlfile);
sql 'alter system archive log current';
}
|
level 0 always take full backup of database.
yes you can restore your rman backup on any other machine.
|
|
|