Ronnie,
Here is a script which does exactly what you are requesting - it does an RMAN backup of the archivelog files and puts the backup into a different directory (where you can copy it to tape etc).
http://www.dotcomsolutionsinc.net/pr...in901_85_.html
This script was created with Installgen which automates creating backup/recovery scripts along with creating the documentation for performing 15 different database recovery scenarios.
You may download a demo version of Installgen so that you may conveniently look at or modify the scripts on your own computer:
http://www.dotcomsolutionsinc.net/do...are/index.html
Or you may choose to browse the individual output files via the web:
http://www.dotcomsolutionsinc.net/pr...es_win901.html
Here is a full-featured RMAN backup script I like to use for situations where I am not using a recovery catalog:
http://www.dotcomsolutionsinc.net/pr...in901_29_.html
RMAN is preferred by Oracle over the Hot Backup method because it generates less redo in the database and you can also throttle the amount of I/O used by RMAN. (I have implemented this functionality on my scripts.) This means that if necessary, you can perform the RMAN backup while users are actively using the server without consuming all of the I/O bandwidth of the server. You will need to adjust the default I/O rate to a value which is suitable for your server.
David Simpson
http://www.dotcomsolutionsinc.net
David Simpson
www.dotcomsolutionsinc.net