<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.6.5" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Oracle Standby redo Logs</title>
	<link>http://www.pythian.com/blogs/581/oracle-standby-redo-logs</link>
	<description>News and views from Pythian DBAs</description>
	<pubDate>Fri,  5 Dec 2008 02:19:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: SATISH NAWLE</title>
		<link>http://www.pythian.com/blogs/581/oracle-standby-redo-logs#comment-255808</link>
		<dc:creator>SATISH NAWLE</dc:creator>
		<pubDate>Mon, 11 Aug 2008 08:43:41 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/581/oracle-standby-redo-logs#comment-255808</guid>
		<description>Directory structure is the same on both primary and standby machines. 
Backup is going locally to disk at location source_backup_directory 
TNSNAMES entry STANDBY points to standby db on both machines. 
TNSNAMES entry PROD points to prod db on both machines. 
RMAN catalog exists, and is resolved via TNSNAMES entry rcatdb. 
RMAN default channel locations. 
On Source/Primary db:

su - oracle
rman target / catalog rcat_owner@rcatdb
RMAN&#62; BACKUP CURRENT CONTROLFILE FOR STANDBY;
RMAN&#62; BACKUP CHECK LOGICAL FULL DATABASE PLUS ARCHIVELOG;
RMAN&#62; exit;

scp source_backup_directory oracle@standby:standby_backup_directoryOn Destination or Standby db:

sqlplus "/ as sysdba"
startup nomount
exit;On Source/Primary db:

rman target / catalog rcat_owner@rcatdb auxiliary sys@STANDBY

RMAN&#62; DUPLICATE TARGET DATABASE FOR STANDBY NOFILENAMECHECK DORECOVER;
RMAN&#62; exit;On Source/primary db:

show parameter log_archive_dest;
alter system set log_archive_dest_x = 'SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PROD';
alter system set log_archive_dest_state_x = 'ENABLE';On Destination or Auxiliary STANDBY:

alter system set FAL_SERVER = 'PROD';
alter system set FAL_CLIENT = 'STANDBY';

shutdown immediate;
startup nomount;
alter database mount standby database;
alter database recover managed standby database disconnect from session;To check progress:

On Primary:

column destination format a30

select dest_id,destination,status,database_mode,recovery_mode,error from V$ARCHIVE_DEST_STATUS
where status != 'INACTIVE';To check progress on Primary or Standby:

select * from v$managed_standby;



SATISH NAWLE
SQL STAR 
9224639278</description>
		<content:encoded><![CDATA[<p>Directory structure is the same on both primary and standby machines.<br />
Backup is going locally to disk at location source_backup_directory<br />
TNSNAMES entry STANDBY points to standby db on both machines.<br />
TNSNAMES entry PROD points to prod db on both machines.<br />
RMAN catalog exists, and is resolved via TNSNAMES entry rcatdb.<br />
RMAN default channel locations.<br />
On Source/Primary db:</p>
<p>su - oracle<br />
rman target / catalog rcat_owner@rcatdb<br />
RMAN&gt; BACKUP CURRENT CONTROLFILE FOR STANDBY;<br />
RMAN&gt; BACKUP CHECK LOGICAL FULL DATABASE PLUS ARCHIVELOG;<br />
RMAN&gt; exit;</p>
<p>scp source_backup_directory oracle@standby:standby_backup_directoryOn Destination or Standby db:</p>
<p>sqlplus &#8220;/ as sysdba&#8221;<br />
startup nomount<br />
exit;On Source/Primary db:</p>
<p>rman target / catalog rcat_owner@rcatdb auxiliary sys@STANDBY</p>
<p>RMAN&gt; DUPLICATE TARGET DATABASE FOR STANDBY NOFILENAMECHECK DORECOVER;<br />
RMAN&gt; exit;On Source/primary db:</p>
<p>show parameter log_archive_dest;<br />
alter system set log_archive_dest_x = &#8216;SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PROD&#8217;;<br />
alter system set log_archive_dest_state_x = &#8216;ENABLE&#8217;;On Destination or Auxiliary STANDBY:</p>
<p>alter system set FAL_SERVER = &#8216;PROD&#8217;;<br />
alter system set FAL_CLIENT = &#8216;STANDBY&#8217;;</p>
<p>shutdown immediate;<br />
startup nomount;<br />
alter database mount standby database;<br />
alter database recover managed standby database disconnect from session;To check progress:</p>
<p>On Primary:</p>
<p>column destination format a30</p>
<p>select dest_id,destination,status,database_mode,recovery_mode,error from V$ARCHIVE_DEST_STATUS<br />
where status != &#8216;INACTIVE&#8217;;To check progress on Primary or Standby:</p>
<p>select * from v$managed_standby;</p>
<p>SATISH NAWLE<br />
SQL STAR<br />
9224639278</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey Goryunov</title>
		<link>http://www.pythian.com/blogs/581/oracle-standby-redo-logs#comment-85407</link>
		<dc:creator>Andrey Goryunov</dc:creator>
		<pubDate>Thu, 16 Aug 2007 05:38:45 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/581/oracle-standby-redo-logs#comment-85407</guid>
		<description>Hi Paul,

you are right - RMAN's duplicate command does not do everything for you regarding standby redo logs (I am about the case when they are already created on primary database). But after duplication of the target database proper entries (taking into consideration log_file_name_convert parameter on standby side) for standby logs will be created, but without files under that. The files can be simply recreated through ALTER DATABASE CLEAR LOGFILE GROUP  (n - standby log file group) command. And after that you can continue with Data Guard (or Standby) configuration.

Regards,
Andrey Goryunov</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>you are right - RMAN&#8217;s duplicate command does not do everything for you regarding standby redo logs (I am about the case when they are already created on primary database). But after duplication of the target database proper entries (taking into consideration log_file_name_convert parameter on standby side) for standby logs will be created, but without files under that. The files can be simply recreated through ALTER DATABASE CLEAR LOGFILE GROUP  (n - standby log file group) command. And after that you can continue with Data Guard (or Standby) configuration.</p>
<p>Regards,<br />
Andrey Goryunov</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paulm</title>
		<link>http://www.pythian.com/blogs/581/oracle-standby-redo-logs#comment-85358</link>
		<dc:creator>paulm</dc:creator>
		<pubDate>Thu, 16 Aug 2007 00:26:56 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/581/oracle-standby-redo-logs#comment-85358</guid>
		<description>Indeed or you combine RAC with Dataguard and run a standby or two off the RAC cluster.

So you have the availability of RAC and the redundancy and Disaster Recovery (DR) of Dataguard.</description>
		<content:encoded><![CDATA[<p>Indeed or you combine RAC with Dataguard and run a standby or two off the RAC cluster.</p>
<p>So you have the availability of RAC and the redundancy and Disaster Recovery (DR) of Dataguard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason arneil</title>
		<link>http://www.pythian.com/blogs/581/oracle-standby-redo-logs#comment-85280</link>
		<dc:creator>jason arneil</dc:creator>
		<pubDate>Wed, 15 Aug 2007 20:13:32 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/581/oracle-standby-redo-logs#comment-85280</guid>
		<description>I like the technique, even adding the an extra SRL  over the number of redo logs. However I would dispute what you say about RAC:

"This is not the same level of redundancy or availability of Oracle RAC, but getting close." But if your building blows up or floods, unless you have a stretched RAC cluster your dataguard solution provides you much more protection way above the availability of RAC.


jason.</description>
		<content:encoded><![CDATA[<p>I like the technique, even adding the an extra SRL  over the number of redo logs. However I would dispute what you say about RAC:</p>
<p>&#8220;This is not the same level of redundancy or availability of Oracle RAC, but getting close.&#8221; But if your building blows up or floods, unless you have a stretched RAC cluster your dataguard solution provides you much more protection way above the availability of RAC.</p>
<p>jason.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
