Hi All
Can someone confirm the following syntax/proceedure for me.
I need to backup the entire contents of an oracle database,
and then copy the files to a another directory in a linux environment.
Assumptions:
I need control file and all tablespaces backedup.
1. Check files I need.
select name from sys.v_$datafile;
select member from sys.v_$logfile;
select name from sys.v_$controlfile;
2. How do you find tablespaces you have?...they conrespond with data/log files?
ALTER TABLESPACE xyz BEGIN BACKUP;
! cp xyfFile1 /backupDir/
ALTER TABLESPACE xyz END BACKUP;
3. ALTER SYSTEM SWITCH LOGFILE; -- Force log switch to update control file headers
ALTER DATABASE BACKUP CONTROLFILE TO '/backupDir/control.dbf';
Has any one got a scipt to do this?...any help appreciated.
Thanks
9iDB on Red Hat Enterprise
Can someone confirm the following syntax/proceedure for me.
I need to backup the entire contents of an oracle database,
and then copy the files to a another directory in a linux environment.
Assumptions:
I need control file and all tablespaces backedup.
1. Check files I need.
select name from sys.v_$datafile;
select member from sys.v_$logfile;
select name from sys.v_$controlfile;
2. How do you find tablespaces you have?...they conrespond with data/log files?
ALTER TABLESPACE xyz BEGIN BACKUP;
! cp xyfFile1 /backupDir/
ALTER TABLESPACE xyz END BACKUP;
3. ALTER SYSTEM SWITCH LOGFILE; -- Force log switch to update control file headers
ALTER DATABASE BACKUP CONTROLFILE TO '/backupDir/control.dbf';
Has any one got a scipt to do this?...any help appreciated.
Thanks
9iDB on Red Hat Enterprise