Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: RAC with OCFS on Win2K - archive logs destination
Sorry, haven't checked the thread in awhile. First I have a batch file
(be careful because some of the lines wrapped; also, robocopy should be
on the server already I think; just change your paths/server names as
needed):
set ARCLOG_SOURCE=r:\oradata\rac\arch_logs set ARCLOG_DEST_NODE1=\\node1\d$\oracle\oradata\rac\arch_logs set ARCLOG_DEST_NODE2=\\node2\d$\oracle\oradata\rac\arch_logs set LOG_FILE_NODE1=\\node1\d$\log\copy_arch_logs_to_node1.logset LOG_FILE_NODE2=\\node2\d$\log\copy_arch_logs_to_node2.log set ORA_BIN=d:\oracle\ora920\bin
%ORA_BIN%\sqlplus.exe -s /nolog @%BATCH%\%SQL_SCRIPT%
robocopy %ARCLOG_SOURCE% %ARCLOG_DEST_NODE1% *.* /XN /XO
/LOG+:%LOG_FILE_NODE1%
robocopy %ARCLOG_SOURCE% %ARCLOG_DEST_NODE2% *.* /XN /XO
/LOG+:%LOG_FILE_NODE2%
If you run the above from each DB server, it will cause a log switch as often as you have the task scheduled to run (i.e. Win2k3 Task Scheduler). The log switch occurs via the following called SQL script:
Hope this helps... Received on Fri Mar 04 2005 - 15:45:44 CST
![]() |
![]() |