Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle Hot Backup Script

Status
Not open for further replies.

sethu

Programmer
Apr 15, 2000
29
US
Hi,<br><br>I have installed Oracle 8i in Solaris 2.7. I don't have a script to make hot backups to another disk(not tape), Please help me if any of you have it. Links to other sites which can provide me with one will also do. <br><br>Thanks in advance.<br><br>--Sethu.
 
Here is one that I have been using:<br><br>set heading off<br>set feedback on<br>select 'alter tablespace '¦¦tablespace_name¦¦' begin backup;'¦¦chr(10)¦¦<br>'host copy '¦¦file_name¦¦' e:\backup'¦¦chr(10)¦¦<br>'alter tablespace '¦¦tablespace_name¦¦' end backup;'<br>from dba_data_files;<br>spool bu.sql<br>/<br>spool off<br>@bu.sql<br>alter database backup controlfile to trace;<br>/<br>set heading on<br><br><br>This script copies all of my data files to the e:\backup subdirectory.&nbsp;&nbsp;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top