<?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>Oracle Database Tips blog &#187; Standby DBs</title>
	<atom:link href="http://oracle-database-tips.com/wp/category/standby/feed" rel="self" type="application/rss+xml" />
	<link>http://oracle-database-tips.com/wp</link>
	<description>News for Oracle professionals</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:37:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Standby database commands.</title>
		<link>http://oracle-database-tips.com/wp/standby/standby-database-commands</link>
		<comments>http://oracle-database-tips.com/wp/standby/standby-database-commands#comments</comments>
		<pubDate>Fri, 23 Oct 2009 11:53:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Standby DBs]]></category>
		<category><![CDATA[archived logs]]></category>
		<category><![CDATA[backup routine]]></category>
		<category><![CDATA[database shutdown]]></category>
		<category><![CDATA[database technology]]></category>
		<category><![CDATA[dest]]></category>
		<category><![CDATA[hardware failure]]></category>
		<category><![CDATA[oracle data]]></category>
		<category><![CDATA[oracle standby databas commands]]></category>
		<category><![CDATA[oracle standby database]]></category>
		<category><![CDATA[quick reference]]></category>
		<category><![CDATA[seq]]></category>
		<category><![CDATA[standby databases]]></category>

		<guid isPermaLink="false">http://oracle-database-tips.com/wp/?p=105</guid>
		<description><![CDATA[oracle standby databases: quick command reference]]></description>
			<content:encoded><![CDATA[<p>This section, <strong>standby db tutorials</strong> aims to give you          real-life examples and practical advice on<br />
setting up and maintaining Oracle&#8217;s standby database technology, now called          Oracle Data Guard.</p>
<p>Standby databases are no longer very complex to set up.<br />
By using Data Guard Broker, all the hard work is done for you in the background,<br />
and all you have to do is click a few buttons.</p>
<p>If you would rather get your hands dirty, this is the place         for you.</p>
<p>The tutorials below will take you through all the steps needed to set          up and maintain an Oracle standby database.</p>
<p>The examples are all related to a physical standby database, not a logical          one.</p>
<p>Standby databases are really Oracle&#8217;s gift to the DBA community.</p>
<p>Gone are the days where hardware failure meant days of restoring backup          files from tapes,<br />
which were probably far away in an offsite vault,<br />
while hoping that the tapes were not corrupt and that no bug had crept          into your backup routine.</p>
<p>With a standby database in place, you can be up and running in no time,<br />
minimizing the impact on your users and their businesses.</p>
<h2>Quick reference to monitor, start and stop a physical standby database</h2>
<p>Starting a physical standby database:</p>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="textbox">
<div>startup nomount;<br />
alter database mount standby database;</div>
</div>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   -->Starting the managed recovery:<br />
<!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="textbox">
<div>alter database recover managed standby database            disconnect from session;</div>
</div>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   -->Stop the managed recovery:</p>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="textbox">
<div>alter database recover managed standby database            cancel;</div>
</div>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   -->Shutdown the physical standby database:</p>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="textbox">
<div>shutdown immediate;</div>
</div>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   -->Monitor primary&#8217;s archive destination status:<br />
<!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="textbox">
<div>select destination, status, archived_thread#,            archived_seq# from v$archive_dest_status<br />
where status &lt;&gt; &#8216;deferred&#8217;  and status &lt;&gt; &#8216;inactive&#8217;;</div>
</div>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   -->Check if archived logs are synching OK, compare both results:</p>
<ul>
<li>on primary db</li>
</ul>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="textbox">
<div>select max(sequence#) from v$log_history;</div>
</div>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<ul>
<li>on standby db:</li>
</ul>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="textbox">
<div>select max(sequence#) from v$archived_log;</div>
</div>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   -->Check Dataguard processes status:</p>
<ul>
<li> on standby db:</li>
</ul>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="textbox">
<div>select process, status, thread#, sequence#, block#,            blocks from v$managed_standby;</div>
</div>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<p><!-- ****************************************************************************************   --></p>
<h3>Recommended reading:</h3>
<div id="content">
<li><a title="opens new window" onclick="window.open('http://www.oracle-database-tips.com/cgi-bin/counter.pl?url=http%3A%2F%2Fdownload.oracle.com%2Fdocs%2Fcd%2FB19306_01%2Fserver.102%2Fb14239%2Ftoc.htm&amp;referrer=http%3A%2F%2Fwww.oracle-database-tips.com%2Fstandby_db_tutorials.html'); return false;" href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/toc.htm" target="_blank">Oracle online documentation: Data Guard Concepts and Administration</a></li>
<li><a title="opens new window" onclick="window.open('http://www.oracle-database-tips.com/cgi-bin/counter.pl?url=http%3A%2F%2Fdownload.oracle.com%2Fdocs%2Fcd%2FB19306_01%2Fserver.102%2Fb14239%2Fmanage_ps.htm%23i1006374&amp;referrer=http%3A%2F%2Fwww.oracle-database-tips.com%2Foracle_standby_commands.html'); return false;" href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1006374" target="_blank">Oracle   online documentation:Data Guard Concepts and Administration , Managing a Physical Standby database.</a></li>
</div>
]]></content:encoded>
			<wfw:commentRss>http://oracle-database-tips.com/wp/standby/standby-database-commands/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

