<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fuad Arshad's Blog &#187; dataguard</title>
	<atom:link href="http://www.fuadarshad.net/wp/category/oracle/dataguard-oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fuadarshad.net/wp</link>
	<description>This is Just stuff i find on Oracle From various different sources or from my own personal experience I can also be found at http://www.twitter.com/fuadar</description>
	<lastBuildDate>Tue, 07 Sep 2010 12:16:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Physical Dataguard Password change</title>
		<link>http://www.fuadarshad.net/wp/2009/09/physical-dataguard-password-change/</link>
		<comments>http://www.fuadarshad.net/wp/2009/09/physical-dataguard-password-change/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 12:06:25 +0000</pubDate>
		<dc:creator>fuadar</dc:creator>
				<category><![CDATA[dataguard]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.fuadarshad.net/wp/?p=351</guid>
		<description><![CDATA[Oracle Performs redo shipping and authentication services between the primary and the standby using Password files and if your security protocols dictate a sys password change  you will start having issues with stopped log shipping with errors like . Error 1017 received logging on to the standby &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Check that the primary and standby are [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Oracle Performs redo shipping and authentication services between the primary and the standby using Password files and if your security protocols dictate a sys password change  you will start having issues with stopped log shipping with errors like .</p>
<p>Error 1017 received logging on to the standby<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Check that the primary and standby are using a password file<br />
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,<br />
and that the SYS password is same in the password files.<br />
returning error ORA-16191<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>The solution to fixing thiscan be</p>
<p>1. Open the physical Standby  read only  and change the sys password.</p>
<p>2. Use orapwd to create anew password file.</p>
<p>3. ship/sftp the password file from the primary.</p>
<p>11g Brings  a new twist to options 1 and 2 .</p>
<p>SEC_CASE_SENSITIVE_LOGON=TRUE by default in Oracle 11g which means the option 1 and 2 will generate different hash when done on different systems</p>
<p>Metalink note #<span style="font-family: helvetica;">462219.1 provides an explanation and the solution to this problem. The solution includes a new option in the orapwd utility which allows you to ignorecase.<br />
</span></p>
<p>$ORAPWD FILE=filename [ENTRIES=numusers] [FORCE={Y|N}] [IGNORECASE={Y|N}] [NOSYSDBA={Y|N}</p>
<p>The other solution includes  changing case sensitivity by changing SEC_CASE_SENSITIVE_LOGON=FALSE . This is a dynamic parameter.</p>
<p>Please evaluate and implement all solutions based on your company security practice.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.fuadarshad.net/wp/2009/09/physical-dataguard-password-change/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>User Defined Metrics in Oracle EM Grid Control</title>
		<link>http://www.fuadarshad.net/wp/2009/04/user-defined-metrics-in-oracle-em-grid-control/</link>
		<comments>http://www.fuadarshad.net/wp/2009/04/user-defined-metrics-in-oracle-em-grid-control/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 23:39:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[EM]]></category>
		<category><![CDATA[dataguard]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://fuadarshad.dreamhosters.com/blog/?p=143</guid>
		<description><![CDATA[Everyone has various ways to manage scripts. I have found UDM&#8217;s in Oracle Enterprise manager to be a nice way to catalog and standardize scripts across various platforms.UDM&#8217;s or User Defined Metrics are a great way to track, alert and look at trending information using Oracle Enterprise manager . Oracle provides UDM&#8217;s on a server [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div>Everyone has various ways to manage scripts. I have found <span class="blsp-spelling-error" id="SPELLING_ERROR_0">UDM&#8217;s</span> in Oracle Enterprise manager to be a nice way to catalog and standardize scripts across various platforms.<br /><span class="blsp-spelling-error" id="SPELLING_ERROR_1">UDM&#8217;s</span> or User Defined Metrics are a great way to track, alert and look at trending information using Oracle Enterprise manager .  Oracle provides <span class="blsp-spelling-error" id="SPELLING_ERROR_2">UDM&#8217;s</span> on a server level as well as an instance level. <span class="blsp-spelling-error" id="SPELLING_ERROR_3">UDM&#8217;s</span> can be cataloged and saved into a library for reuse.</div>
<p>
<div>I&#8217;ve been using <span class="blsp-spelling-error" id="SPELLING_ERROR_4">SQL</span> <span class="blsp-spelling-error" id="SPELLING_ERROR_5">UDM&#8217;s</span> to monitor and alert on <span class="blsp-spelling-error" id="SPELLING_ERROR_6">SQL</span> Apply Lag times in minutes  as well as restarting the logical <span class="blsp-spelling-error" id="SPELLING_ERROR_7">dataguard</span> environment .<br />To see if <span class="blsp-spelling-error" id="SPELLING_ERROR_8">Sql</span> Apply has stopped i check  select count(*) from v$<span class="blsp-spelling-error" id="SPELLING_ERROR_9">dataguard</span>_stats and based on the count 3 for good and 0 for bad run a corrective action to start the <span class="blsp-spelling-error" id="SPELLING_ERROR_10">sql</span> apply again. If the corrective action fails . The alert is then escalated to the pager for support.  Corrective Actions based on <span class="blsp-spelling-error" id="SPELLING_ERROR_11">UDM&#8217;s</span> if scripted right can help reduce support calls and keep environments in sync.<br />I&#8217;ve used <span class="blsp-spelling-error" id="SPELLING_ERROR_12">UDM&#8217;s</span> to pick up data from <span class="blsp-spelling-error" id="SPELLING_ERROR_13">DBA</span>_<span class="blsp-spelling-error" id="SPELLING_ERROR_14">LOGSTDBY</span>_EVENTS and execute alter database <span class="blsp-spelling-error" id="SPELLING_ERROR_15">datafiles</span> commands to keep my primary and <span class="blsp-spelling-corrected" id="SPELLING_ERROR_16">standby</span> in sync.<br />The <span class="blsp-spelling-error" id="SPELLING_ERROR_17">UDM</span>  creation screen is fairly simple and the wizard walks the user through all the information . If using external scripts  i would <span class="blsp-spelling-corrected" id="SPELLING_ERROR_18">definitely</span> recommend creating user that manages the scripts and then setting <span class="blsp-spelling-corrected" id="SPELLING_ERROR_19">preferred</span> <span class="blsp-spelling-corrected" id="SPELLING_ERROR_20">credentials</span> at that user level. This makes it easier to change passwords using the <span class="blsp-spelling-error" id="SPELLING_ERROR_21">emcli</span> command line interface and be compliant with audit policies.</p>
</div>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.fuadarshad.net/wp/2009/04/user-defined-metrics-in-oracle-em-grid-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Applying Datafile resize in logical standby</title>
		<link>http://www.fuadarshad.net/wp/2009/03/applying-datafile-resize-in-logical-standby/</link>
		<comments>http://www.fuadarshad.net/wp/2009/03/applying-datafile-resize-in-logical-standby/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 17:39:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[dataguard]]></category>

		<guid isPermaLink="false">http://fuadarshad.dreamhosters.com/blog/?p=142</guid>
		<description><![CDATA[Well,with the record_unsupported_operations-true . I was able to capture the commands that oracle skipped. using that info i was able to write a simple piece of code to use that information to getAlter database datafile commands executed on my logical standby database which in this case has exactly the same structure as my primary. /* [...]


Related posts:<ol><li><a href='http://www.fuadarshad.net/wp/2009/09/physical-dataguard-password-change/' rel='bookmark' title='Permanent Link: Physical Dataguard Password change'>Physical Dataguard Password change</a> <small>Oracle Performs redo shipping and authentication services between the primary...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Well,<br />with the record_unsupported_operations-true . I was  able to capture the commands that oracle skipped. using that info i was able to write  a simple piece of code to use that information to get<br />Alter database datafile commands executed on my logical standby database which in this case has exactly the same structure as  my primary.</p>
<p>/*  Program Name : Datafile Alter command capture<br />    Author   : Fuad Arshad<br />    Purpose : To capture alter database datafile commands from dba_logstdby_events<br />              and  execute on logical standby<br />    Prerequisites : dbms_logstdby.apply_set(&#8216;RECORD_UNSUPPORTED_OPERATIONS&#8217;,'TRUE&#8217;);<br />            dbms_LOGSTDBY.apply_set(&#8216;MAX_EVENTS&#8217;,'a value of your choosing based on events &#8216;);<br />    Licensed :   Creative Commons.<br />*/</p>
<p>set serveroutput on<br />declare<br />    p_errbuf             varchar2(500);<br />    p_retcode             number(1);<br />cursor dba_events is<br />   SELECT to_char(event) event1 FROM dba_logstdby_events WHERE status_code=&#8217;16226&#8242;and event_timestamp><span class="blsp-spelling-error" id="SPELLING_ERROR_0">systimestamp</span>-1<br />   and event like &#8216;ALTER DATABASE <span class="blsp-spelling-error" id="SPELLING_ERROR_1">DATAFILE</span>%&#8217;;<br /> begin<br />     for<br />    <span class="blsp-spelling-error" id="SPELLING_ERROR_2">dbevent</span> in <span class="blsp-spelling-error" id="SPELLING_ERROR_3">dba</span>_events LOOP<br />    DBMS_OUTPUT.PUT_LINE(&#8216;Statement : &#8216; || <span class="blsp-spelling-error" id="SPELLING_ERROR_4">dbevent</span>.event1    ); <br />    execute immediate  <span class="blsp-spelling-error" id="SPELLING_ERROR_5">dbevent</span>.event1;<br />   end LOOP;<br /> EXCEPTION<br />    when no_data_found then<br />     null;<br />     when others then<br />        p_<span class="blsp-spelling-error" id="SPELLING_ERROR_6">errbuf</span> := <span class="blsp-spelling-error" id="SPELLING_ERROR_7">sqlerrm</span>;<br />        p_<span class="blsp-spelling-error" id="SPELLING_ERROR_8">retcode</span> := 1;<br />     DBMS_OUTPUT.PUT_LINE(&#8216;Error : &#8216; || p_<span class="blsp-spelling-error" id="SPELLING_ERROR_9">errbuf</span>|| &#8216;Error Code&#8217; ||          p_<span class="blsp-spelling-error" id="SPELLING_ERROR_10">retcode</span>   ); <br />end;</p>
<p>This is a very simple way of  making sure all the <span class="blsp-spelling-error" id="SPELLING_ERROR_11">datafiles</span> on the standby look exactly the same as the Primary. I&#8217;m sure there are many other ways to do this and if there are please share how u would have taken care of the alter database <span class="blsp-spelling-error" id="SPELLING_ERROR_12">datafile</span> issue. Comments and improvements as well as ideas are always welcome.</p>


<p>Related posts:<ol><li><a href='http://www.fuadarshad.net/wp/2009/09/physical-dataguard-password-change/' rel='bookmark' title='Permanent Link: Physical Dataguard Password change'>Physical Dataguard Password change</a> <small>Oracle Performs redo shipping and authentication services between the primary...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.fuadarshad.net/wp/2009/03/applying-datafile-resize-in-logical-standby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DBMS_LOGSTDBY and recording unsupported operations</title>
		<link>http://www.fuadarshad.net/wp/2009/03/dbms_logstdby-and-recording-unsupported-operations/</link>
		<comments>http://www.fuadarshad.net/wp/2009/03/dbms_logstdby-and-recording-unsupported-operations/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 02:40:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[dataguard]]></category>

		<guid isPermaLink="false">http://fuadarshad.dreamhosters.com/blog/?p=141</guid>
		<description><![CDATA[DBMS_LOGSTDBY is the heart and soul of the logical standby management infrastructure . While trying to figure out how to get my alter database datafile operations . i bumped in a record unsupported operations in $logstdby_stats . There seems to be no mention in the documentation and no reference to this parameter being set anywhere [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>DBMS_LOGSTDBY is the heart and soul of the logical standby management infrastructure . While trying to figure out how to get my alter database datafile  operations . i bumped in a record unsupported operations in $logstdby_stats . There seems to be no mention in the documentation and no reference to this parameter being set anywhere . If you to set it though</p>
<p>>exec dbms_logstdby.apply_set(&#8216;RECORD_UNSUPPORTED_OPERATIONS&#8217;,'TRUE&#8217;);</p>
<p>This will help capture the unsupported operations as the ORA-16226 operations. I am planning on then reading the clob and re executing the statements onto the logical standy. I still have to figure that part out but stay tuned &#8230;.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.fuadarshad.net/wp/2009/03/dbms_logstdby-and-recording-unsupported-operations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Dataguard Broker and CFC</title>
		<link>http://www.fuadarshad.net/wp/2009/01/oracle-dataguard-broker-and-cfc/</link>
		<comments>http://www.fuadarshad.net/wp/2009/01/oracle-dataguard-broker-and-cfc/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 14:56:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[dataguard]]></category>

		<guid isPermaLink="false">http://fuadarshad.dreamhosters.com/blog/?p=139</guid>
		<description><![CDATA[During a recent implementation of Dataguard on  a Active/Passive Cluster. I started receiving weird errors using the installation/configuration phase. The Grid control add standby wizard which is something i like to use for smaller databases started out the the process  but would never complete it leaving the primary and the standby in a weird state.Errors [...]


Related posts:<ol><li><a href='http://www.fuadarshad.net/wp/2009/09/physical-dataguard-password-change/' rel='bookmark' title='Permanent Link: Physical Dataguard Password change'>Physical Dataguard Password change</a> <small>Oracle Performs redo shipping and authentication services between the primary...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div xmlns='http://www.w3.org/1999/xhtml'>During a recent implementation of Dataguard on  a Active/Passive Cluster. I started receiving weird errors using the installation/configuration phase. The Grid control add standby wizard which is something i like to use for smaller databases started out the the process  but would never complete it leaving the primary and the standby in a weird state.<br/>Errors like <br/><br/><b>DMON: cannot open configuration file &#8220;/usr/local/oracle/product/10.2/dbs/dr2test.dat&#8221;<br/>  ORA-27037: unable to obtain file status<br/><br/> error = ORA-16572<br/>DG 2009-01-15-08:26:48        0 2 0 NSV0: Failed to connect to remote database p<br/>rkmdb1. Error is ORA-12541<br/>DG 2009-01-15-08:26:48        0 2 0 NSV0: Failed to send message to site prkmdb1<br/>. Error code is ORA-12541.<br/> DMON: test unable to contact primary for DRC version check<br/>  DMON: status ORA-12541:<br/>~<br/><br/></b>The problem is that the dataguard broker cannot traverse through a  virtual  node name which is used in a Active/Passive or CFC  configuration,<br/>According to Metalink Note # 413696.1 which is very appropriately named <b>&#8220;Data Guard Broker does not support Cold Failover Clusters&#8221;  </b><br/>&#8220;The Data Guard Broker does not support Cold Failover Clusters (also called  Active/Passive clusters) in any version up to and including Oracle Database 10g  Release 2. You cannot use the Broker nor Enterprise Manager, you have to create  and manage your standby configuration using SQLPlus&#8221;<br/><br/>The support for  CFC&#8217;s come in a limited fashion in Oracle 11gR1 only if Oracle clusterware is used.<br/><br/>This means that a dataguard standby has to be manually created and configured and all instances have to be monitored individually.</p>
<p class='technorati-tags'><a rel='tag' href='http://technorati.com/tag/dataguard'>dataguard</a>, <a rel='tag' href='http://technorati.com/tag/oracle'>oracle</a></p>
</div>


<p>Related posts:<ol><li><a href='http://www.fuadarshad.net/wp/2009/09/physical-dataguard-password-change/' rel='bookmark' title='Permanent Link: Physical Dataguard Password change'>Physical Dataguard Password change</a> <small>Oracle Performs redo shipping and authentication services between the primary...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.fuadarshad.net/wp/2009/01/oracle-dataguard-broker-and-cfc/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
