<?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>Dbvisit - Standby Database Technology Blog</title>
	<atom:link href="http://blog.dbvisit.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dbvisit.com</link>
	<description>Oracle Disaster Recovery and Standby Database blog</description>
	<lastBuildDate>Fri, 12 Mar 2010 05:04:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dbvisit 5.2.22 released</title>
		<link>http://blog.dbvisit.com/dbvisit-5-2-22-released/</link>
		<comments>http://blog.dbvisit.com/dbvisit-5-2-22-released/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 05:04:26 +0000</pubDate>
		<dc:creator>Arjen Visser</dc:creator>
				<category><![CDATA[Dbvisit release]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://blog.dbvisit.com/?p=465</guid>
		<description><![CDATA[We have just released Dbvisit 5.2.22 for all platforms.
This version allows for a different Standby Database name (ORACLE_SID_DEST) and different admin directories during the creation of the standby database. It also has a number of fixes, a number of which are related to NLS settings of non English.
The full details of this release are:
New features:

Dbvisit [...]]]></description>
			<content:encoded><![CDATA[<p>We have just released Dbvisit 5.2.22 for all platforms.</p>
<p>This version allows for a different Standby Database name (ORACLE_SID_DEST) and different admin directories during the creation of the standby database. It also has a number of fixes, a number of which are related to NLS settings of non English.</p>
<p>The full details of this release are:</p>
<p><strong>New features:</strong></p>
<ol>
<li>Dbvisit now allows the Oracle admin directories on standby to be different from the primary database during creation of the Standby Database.</li>
</ol>
<p><strong>Fixes:</strong></p>
<ol>
<li>Dbvisit does not pick up the correct sequence for RAC on the standby when NLS is set to Spanish.</li>
<li>Fix issue with quotes around multiple email addresses: can&#8217;t extract address at ..</li>
<li>Improve obtaining asmcmd version for Windows.</li>
<li>Dbvisit does not pick up the archive log destination when NLS is set to Spanish during graceful switchover.</li>
<li>Create standby database may fail in Oracle 8i due to long tablespace names. This has been fixed.</li>
<li>Update check and add more tracing to determine if previous Dbvisit process is still running.</li>
<li>Update dbvisit help text.</li>
<li>If Dbvisit is unable to create Windows Oracle service during creation of standby database, Dbvisit will suggest to create the service manually.</li>
<li>Ignore the following SQLPLUS error message when creating Dbvisit repository using dbvisit_setup: Error accessing PRODUCT_USER_PROFILE</li>
<li>Dbvisit will detect if ORACLE_HOME_DR is set to a non-existing or not  valid directory on the standby server when creating a standby database and display a warning.</li>
<li>Dbvisit may not correctly detect the creation of Oracle Windows service in other languages during creation of standby database. This has been fixed.</li>
</ol>
<p>The latest version of Dbvisit can be downloaded from <a href="http://www.dbvisit.com/download.php">http://www.dbvisit.com/download.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbvisit.com/dbvisit-5-2-22-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Dbvisit service desk</title>
		<link>http://blog.dbvisit.com/new-dbvisit-service-desk/</link>
		<comments>http://blog.dbvisit.com/new-dbvisit-service-desk/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 02:48:53 +0000</pubDate>
		<dc:creator>Arjen Visser</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.dbvisit.com/?p=435</guid>
		<description><![CDATA[We have released a new online service desk to further improve our support for Dbvisit. Tickets can be created online for any Dbvisit support issue. Tickets can be viewed and tracked at any stage to ensure progress is being made.
Any updates to the tickets will be automatically emailed to the person who created the ticked.
To [...]]]></description>
			<content:encoded><![CDATA[<p>We have released a new online service desk to further improve our support for Dbvisit. Tickets can be created online for any Dbvisit support issue. Tickets can be viewed and tracked at any stage to ensure progress is being made.</p>
<p>Any updates to the tickets will be automatically emailed to the person who created the ticked.</p>
<p>To create a new ticket in our service desk please go to:<a href="http://www.dbvisit.com/support.php" target="_blank"> http://www.dbvisit.com/support.php</a></p>
<p><img class="alignnone size-full wp-image-440" title="Dbvisit Service Desk" src="http://blog.dbvisit.com/wp-content/uploads/2010/03/ServiceDesk3-e1268016388911.png" alt="Dbvisit Service Desk" width="600" height="405" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbvisit.com/new-dbvisit-service-desk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between failover and switchover</title>
		<link>http://blog.dbvisit.com/difference-between-failover-and-switchover/</link>
		<comments>http://blog.dbvisit.com/difference-between-failover-and-switchover/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 23:30:27 +0000</pubDate>
		<dc:creator>Arjen Visser</dc:creator>
				<category><![CDATA[Standby Database]]></category>

		<guid isPermaLink="false">http://blog.dbvisit.com/?p=415</guid>
		<description><![CDATA[We often get asked what is the difference between switchover and failover? The easiest way to understand is that:
Switchover &#8211; This is done when both primary and standby databases are available. It is pre-planned.
Failover &#8211; This is done when the primary database is NO longer available (ie in a Disaster). It is not pre-planned.
A switchover [...]]]></description>
			<content:encoded><![CDATA[<p>We often get asked what is the difference between switchover and failover? The easiest way to understand is that:</p>
<p><strong>Switchover &#8211; </strong>This is done when both primary and standby databases are available. It is pre-planned.</p>
<p><strong>Failover &#8211; </strong>This is done when the primary database is NO longer available (ie in a Disaster). It is not pre-planned.</p>
<p>A <strong>switchover</strong> (or graceful switchover) is a planned role reversal between the primary and the standby databases. This is used when there is a planned outage on the primary database or primary server and you do not want to have extended downtime on the primary database. The switchover allows you to  switch the roles of the databases so that the standby databases now becomes a primary databases and all your users and applications can continue operations on the &#8220;new&#8221; primary database (on the standby server). During the switchover operation there is a small outage. How long the outage lasts, depends on a number of factors including the network, the number and sizes of the redo logs. The switchover operation happens on both the primary and standby database.</p>
<p>A <strong>failover</strong> operation is what happens when the primary database is no longer available. The failover operation only happens on the standby database. The failover operation <strong>activates</strong> the standby database and turns this into a primary database. This process cannot be reversed so the decision to failover should be carefully made. The failover process is initiated during a real disaster or severe outage.</p>
<p><strong>Automatic Failover</strong></p>
<p>Automatic failover is where the software determines when the standby database should be activated to become the new primary database. There are numerous conditions that can occur (ie: network glitches/outages) in any system which theoretically could disrupt communications between the primary and standby sites. Because of the importance of this decision and the number of variances, we believe it is best not to automate this process but to leave it in the hands of a human.</p>
<p>More information on what happens during a failover: <a href="http://blog.dbvisit.com/activating-standby-database-failover/">http://blog.dbvisit.com/activating-standby-database-failover/</a></p>
<p><strong>Dbvisit and failover/switchover</strong></p>
<p>In Dbvisit both failover and switchover is possible. The Dbvisit commands are as follows:</p>
<p><strong>Failover</strong>:<br />
<em>dbv_oraStartStop activate orcl1</em><br />
(where orcl1 is the name of the database)</p>
<p>This command is run on the standby server. Now the standby database has been activated and is now the new primary database.</p>
<p><strong>Switchover:<br />
</strong><em>dbv_oraStartStop switchover orcl1</em><br />
(where orcl1 is the name of the database)</p>
<p>This command is run on <strong>both </strong>the primary and standby servers. The primary database will become the standby database, and the standby database becomes the primary database. Dbvisit will continue to operate to keep the new standby database up to date from the new primary database. No configuration changes need to be made.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbvisit.com/difference-between-failover-and-switchover/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dbvisit 5.2.20 released</title>
		<link>http://blog.dbvisit.com/dbvisit-5-2-20-released/</link>
		<comments>http://blog.dbvisit.com/dbvisit-5-2-20-released/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 05:09:50 +0000</pubDate>
		<dc:creator>Arjen Visser</dc:creator>
				<category><![CDATA[Dbvisit release]]></category>

		<guid isPermaLink="false">http://blog.dbvisit.com/?p=410</guid>
		<description><![CDATA[We have just released Dbvisit 5.2.20 for all platforms.
This version allows for passwords to be stored in encrypted form in the Dbvisit Database Configuration (DDC) file.
The full details of this release are:
New features:

Add ENCRYPT_PASSWDS variable to specify if all passwords should be stored encrypted in the DDC file or not. To change the setting run [...]]]></description>
			<content:encoded><![CDATA[<p>We have just released Dbvisit 5.2.20 for all platforms.</p>
<p>This version allows for passwords to be stored in encrypted form in the Dbvisit Database Configuration (DDC) file.</p>
<p>The full details of this release are:</p>
<p><strong>New features:</strong></p>
<ol>
<li>Add ENCRYPT_PASSWDS variable to specify if all passwords should be stored encrypted in the DDC file or not. To change the setting run dbvisit_setup and choose option 6.</li>
<li>Add SWITCHOVER_WAIT_IN_SEC to control how long Dbvisit waits between each checkpoint iteration for graceful switchover. Total time Dbvisit waits for each checkpoint is set by SWITCHOVER_TIMEOUT_IN_SEC.</li>
</ol>
<p><strong>Fixes:</strong></p>
<ol>
<li>When standby redo logs are using OMF, graceful switchover may fail. This has been fixed.</li>
<li>When log_archive_format on Windows contains %S, the sequence number can be truncated by Oracle. Ensure that Dbvisit also truncates the number the same way.</li>
<li>Running dbvisit_setup: Update Dbvisit Database configuration (DDC) file may error for older DDC files.</li>
<li>Improve error message for ORA-27048.</li>
<li>Improve error message for creation of standby when datafile contains spaces.</li>
<li>Improve message for error 5005 when standby controlfile does not contain the archive log sequence.</li>
</ol>
<p>Dbvisit can be downloaded from our website <a href="http://www.dbvisit.com/">http://www.dbvisit.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbvisit.com/dbvisit-5-2-20-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Seasons Greetings from New Zealand</title>
		<link>http://blog.dbvisit.com/2009_seasons-greetings-from-new-zealand/</link>
		<comments>http://blog.dbvisit.com/2009_seasons-greetings-from-new-zealand/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 22:14:21 +0000</pubDate>
		<dc:creator>Arjen Visser</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.dbvisit.com/?p=400</guid>
		<description><![CDATA[From the team at Dbvisit we hope you have a fantastic festive season, and a relaxing and enjoyable New Year.
We had our Dbvisit Christmas party and although not everyone was there because our team spans several countries, we had a great time.





2010. The Year Ahead.
We are excited about what&#8217;s in store for 2010. Work is [...]]]></description>
			<content:encoded><![CDATA[<p>From the team at Dbvisit we hope you have a fantastic festive season, and a relaxing and enjoyable New Year.</p>
<p>We had our Dbvisit Christmas party and although not everyone was there because our team spans several countries, we had a great time.</p>
<div class="mceTemp">
<dl id="attachment_401" class="wp-caption alignnone" style="width: 310px;">
<dt class="wp-caption-dt"><img class="size-medium wp-image-401 " title="Dbvisit_xmas_party" src="http://blog.dbvisit.com/wp-content/uploads/2009/12/Dbvisit_xmas_party-300x225.jpg" alt="Dbvisit Xmas party" width="300" height="225" /></dt>
</dl>
</div>
<h3>2010. The Year Ahead.</h3>
<p>We are excited about what&#8217;s in store for 2010. Work is already underway on a number of exciting plans and projects, which will bring significant benefit to new and existing customers. So what do we have in mind?</p>
<ul>
<li>A web based interface for Dbvisit</li>
<li>24&#215;7 support services</li>
<li>Helpdesk ticketing system</li>
</ul>
<p>We look forward to communicating with you in 2010.</p>
<p>Warm regards.<br />
the Dbvisit team</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbvisit.com/2009_seasons-greetings-from-new-zealand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-27048 errors in 11g</title>
		<link>http://blog.dbvisit.com/ora-27048_11g/</link>
		<comments>http://blog.dbvisit.com/ora-27048_11g/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 22:55:58 +0000</pubDate>
		<dc:creator>Arjen Visser</dc:creator>
				<category><![CDATA[Standby Database]]></category>

		<guid isPermaLink="false">http://blog.dbvisit.com/?p=369</guid>
		<description><![CDATA[Recently, when running Dbvisit with Oracle 11g, we encountered the following error under certain circumstances with one of our standby databases:
 ORA-27048: skgfifi: file header information is invalid
This error suggests that Oracle is possibly trying to use a non-database file as a database file. However we were pretty sure that this was not the case.
As [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, when running Dbvisit with Oracle 11g, we encountered the following error under certain circumstances with one of our standby databases:</p>
<pre> ORA-27048: skgfifi: file header information is invalid</pre>
<p>This error suggests that Oracle is possibly trying to use a non-database file as a database file. However we were pretty sure that this was not the case.</p>
<p>As part of normal Dbvisit processing, Dbvisit can issue the statement “SQL&gt;recover standby database &#8230;” to bring the standby database up to date. It was at this point that the error was occurring. Our thanks goes to one our team members, Vit Spinka who determined the cause of the error:</p>
<p>When the &#8220;recover standby database &#8230;&#8221; SQL statement is issued in 11g, Oracle scans the entire archive log:<br />
/oracle/app/oracle/flash_recovery_area/&lt;dbname&gt;/archivelog<br />
directory when <strong>Flash Recover Area</strong> (FRA) is used.</p>
<p>Any files that are not Oracle related will cause the ORA-27048 error. So any archive files that are <strong>compressed</strong> will cause this error, even if it is an old archive log that is completely irrelevant.<br />
So this error is occurring because there are archives in FRA that are compressed. Uncompressing those archives will stop the error.</p>
<p>With Dbvisit this error only occurs once Graceful Switchover has been initiated <strong>twice. </strong>It is only at this point that there will be compressed archive logs in FRA on the standby server. Before switchover has occurred, the standby database will not have any archive files in its FRA as the standby database does not produce archive log files. After switchover the new primary (old standby) will start producing archive log files.  Then when <strong>another</strong> switchover occurs to bring the configuration back to its <strong>orginal</strong> state, the original standby will have archive log files in its FRA. If those archives are compressed then the ORA-27048 error will occur.</p>
<p>So, what is the solution?<br />
There are several options to solve this issue:</p>
<ol>
<li>Stop Oracle from scanning the FRA by setting the following command in the Dbvisit Database configuration (DDC) file:
<pre> _SQL_ALTER_SESSION_1 = set logsource "/oracle/oraarch/xxxx"</pre>
<p>(It does not really matter what logsource is set to)<br />
You can add this to the end of the DDC file. Setting this does not have any impact, nor do you lose any Dbvisit functionality. Remember to alway edit the DDC file on the primary server only. Dbvisit will replicate the DDC file to the standby server when changes are detected.</li>
<li>Leave the archives uncompressed on the servers. The archives will be still be compressed before transfer.<br />
Update the DDC file and set the following:</p>
<pre> LEAVE_COMPRESS_SOURCE = No</pre>
<pre> LEAVE_COMPRESS_DEST = No</pre>
</li>
</ol>
<p>It is always interesting to see how Oracle can modify its behaviour between different releases, and sobering to consider how changes like this really have the potential to catch you out. One of the great benefits of having a team like Dbvisit Support on your side is that they keep up to date with the latest Oracle changes, and are committed to ensuring that Dbvisit functions seamlessly with the database &#8211; maintaining the same great high level of protection and continuity for your systems. And this safety net equals peace of mind, for you, the customer.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbvisit.com/ora-27048_11g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dbvisit 5.2.18 released</title>
		<link>http://blog.dbvisit.com/dbvisit-5-2-18-released/</link>
		<comments>http://blog.dbvisit.com/dbvisit-5-2-18-released/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 00:30:46 +0000</pubDate>
		<dc:creator>Arjen Visser</dc:creator>
				<category><![CDATA[Dbvisit release]]></category>

		<guid isPermaLink="false">http://blog.dbvisit.com/?p=353</guid>
		<description><![CDATA[We have just released Dbvisit 5.2.18 for all platforms. 
This release incorporates a number of suggestions from our customers, which will improve usability of the software. We would like to thank those of you who have made suggestions, and we greatly appreciate your feedback.
From this release forward, all Dbvisit production releases will be an even [...]]]></description>
			<content:encoded><![CDATA[<p>We have just released Dbvisit 5.2.18 for all platforms. </p>
<p>This release incorporates a number of suggestions from our customers, which will improve usability of the software. We would like to thank those of you who have made suggestions, and we greatly appreciate your feedback.</p>
<p>From this release forward, all Dbvisit production releases will be an even release number (18, 20, 22, etc) and the development or stage releases will be an uneven number (17, 19, 21 etc).<br />
So 5.2.18 is the production release of 5.2.17.</p>
<p>Some of the highlights in this release are:</p>
<ul>
<li>Allow for multiple archive log destinations to be managed by Dbvisit.</li>
<li>Archive logs can now be managed by specifying partial days. For example keep the archive log files for 3.5 days.
<li>Improve remote checksum processing. If remote checksum process fails, then only checksum process is repeated, not the whole transfer process.</li>
<li>Allow for Database which has been recovered with point-in-time recovery with resetlogs where SCN may be lower than current SCN.</li>
</ul>
<p>The full details of this release are:<br />
  <strong>New features:</strong></p>
<ol>
<li>Allow for multiple archive log destinations in AMM (Archive Management Module) processing (AMM_PROCESS_MULTIPLE_ARCH_DEST).
<li>Improve restartability of standby database creation. Standby Database is now shutdown after all the standby database parameters are obtained.
<li>Graceful switchover synchronisation process now includes retries if there are network issues.
<li>Improve remote checksum processing. If remote checksum process fails, then only checksum process is repeated, not the whole transfer process.
<li>Allow for decimal numbers for DAYS_TO_KEEP_ARCHSOURCE and DAYS_TO_KEEP_ARCHDEST. For example 3.5 days.
<li>Detect Oracle XE admin location for Linux.
<li>Check for Standby archive log destination during graceful switchover. If location does not exist, then exit as switchover will not be successful.
<li>Reduce number of trace file that Dbvisit keeps on server:<br />
     NUM_TRACE_TO_KEEP = 100, DAYS_TO_KEEP_TRACE = 10</p>
<li>Check that Database is in archivelog mode.
<li>Allow for Database which has been recovered with point-in-time recovery with resetlogs where SCN may be lower than current SCN.
<li>Allow for &#8220;-&#8221; in the DDC file. Example: dbv_prod-vm2.env
</ol>
<p> <strong> Fixes:</strong></p>
<ol>
<li>Improve duplicate archive log handling for OMF files. Include a unique identifier to ensure the same file does not get renamed more than once.
<li>Add check for ORA-00342: archived log does not have expected resetlogs SCN.
<li>If same archive log is needed more than once by standby database for non RAC, ensure archive log can be compressed.
<li>Allow for multiple NLS_LANGUAGE setting during RAC processing.
<li>Add 24hour time clock to trace file.
<li>Fixed calling AMM from dbv_functions -A
<li>Improve error message in Windows if during standby database creation the standby database fails to start.
<li>Fixed issue if first_change# is displayed as float, then graceful switchover was not successful.
<li>Allow for different instance_name to database_name for graceful switchover.
<li>Notify if create standby database process is not able to remove file on standby database.
<li>Allow for %d log_archive_format.
<li>Check and report if &#8220;ORA-00332: archived log is too small&#8221; is found.
</ol>
<p>Dbvisit can be downloaded from our website <a href="http://www.dbvisit.com">http://www.dbvisit.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbvisit.com/dbvisit-5-2-18-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dbvisit in action</title>
		<link>http://blog.dbvisit.com/dbvisit-in-action/</link>
		<comments>http://blog.dbvisit.com/dbvisit-in-action/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 21:04:38 +0000</pubDate>
		<dc:creator>Arjen Visser</dc:creator>
				<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Standby Database]]></category>

		<guid isPermaLink="false">http://blog.dbvisit.com/?p=332</guid>
		<description><![CDATA[During recent testing, a datafile from one of our development databases was deleted. At the same time the same datafile was also deleted from the standby database. So this meant that our development primary and standby databases were no longer available.
However Dbvisit came to our rescue, and the functionality we have been recommending to our [...]]]></description>
			<content:encoded><![CDATA[<p>During recent testing, a datafile from one of our development databases was deleted. At the same time the same datafile was also deleted from the standby database. So this meant that our development primary and standby databases were no longer available.</p>
<p>However Dbvisit came to our rescue, and the functionality we have been recommending to our customers for a number of years now actually saved us! We employed Dbvisit to successfully recreate our primary and standby databases.</p>
<p>We have the following development servers:<br />
<strong>Dev servers 1</strong><br />
dbvisit11 &#8211; primary database server<br />
dbvisit12 &#8211; standby database server for dbvisit11</p>
<p><strong>Dev servers 2</strong><br />
avisit31 &#8211; primary database server<br />
avisit32 &#8211; standby database server for avisit31</p>
<p><strong>Dev servers 2</strong> are a clone of <strong>dev servers 1</strong> with the same databases.<br />
Due to the deletetion of the datafiles, the databases on dbvisit11 and dbvisit12 were gone.</p>
<p>Here is what we did to get the databases back on dbvisit11 and dbvisit12:</p>
<ol>
<li>Logged onto avisit32 and used <em>dbvisit_setup</em> to automatically create a new standby database on dbvisit12.</li>
<li>Activated the standby database on dbvisit12 to become a new primary database.</li>
<li>Used <em>dbvisit_setup</em> on dbvisit12 to create a new standby database on dbvisit11.</li>
<li>Used <em>graceful switchover</em> to switch the roles between dbvisit12 and dbvisit11.</li>
</ol>
<p>And so in 4 easy steps we had our databases back on our Dev servers 1: dbvisit11 (primary database) and dbvisit12 (standby database).</p>
<p>It is very rewarding to be able to use our own technology to recover a primary and standby database.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbvisit.com/dbvisit-in-action/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a standby database</title>
		<link>http://blog.dbvisit.com/creating-a-standby-database/</link>
		<comments>http://blog.dbvisit.com/creating-a-standby-database/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 19:07:24 +0000</pubDate>
		<dc:creator>Arjen Visser</dc:creator>
				<category><![CDATA[Standby Database]]></category>

		<guid isPermaLink="false">http://blog.dbvisit.com/?p=297</guid>
		<description><![CDATA[Creating standby databases is not something that is done everyday so even experienced DBA&#8217;s sometimes forget the exact steps that are involved. Also the concepts behind a standby database are not always well understood.
What is a standby database?
A standby database is a clone of a normal or primary database, but is most often not open [...]]]></description>
			<content:encoded><![CDATA[<p>Creating standby databases is not something that is done everyday so even experienced DBA&#8217;s sometimes forget the exact steps that are involved. Also the concepts behind a standby database are not always well understood.</p>
<p><strong>What is a standby database?</strong><br />
A standby database is a clone of a normal or primary database, but is most often<strong> not</strong> open for normal READ-WRITE operations like the primary database. A standby database is usually used for disaster recovery or high availability purposes when the primary database is no longer available. In this situation the standby database is activated to become a primary database and all the users can connect to this database to continue operations. The standby database can also be used for reporting or backup purposes to offset loads from the primary database.</p>
<p>A standby database is held up to date by applying all the latest changes from the primary database to the standby database. Typically the standby database is always a little behind the primary database. Most sites have around 10-15 minutes lag times between the primary and the standby database.</p>
<p><strong>Two types of standby databases:</strong><br />
The two types of standby databases are <em>logical standby</em> and <em>physical standby</em>. For disaster recovery and high availability, the physical standby database is most often used as it is the simplest and most robust. Physical standby databases are held up to date by applying redo or archived redo logs to the standby database. Logical standby databases are held up to date by applying SQL to the standby database. There are no limitations to the physical standby database, whereas the logical standby database has some limitations as to what can be replicated. With logical standby some data types like function based indexes will not be applied to the standby database.</p>
<p><strong>The standby server</strong> is what we call the server that will host the standby database.</p>
<p><strong>How to create a physical standby database?</strong><br />
A physical standby database must be a clone from the primary database and must follow a certain creation method. If this method is not followed then it is not a true standby database, and you will not be able to keep in it sync with the primary database.</p>
<p>Before the standby database can be created the following must first be in place on the standby server:</p>
<ol>
<li>The databases admin directories like the bdump, cdump, udump.</li>
<li>The pfile/spfile (this can have different settings to the primary database pfile/spfile).</li>
<li>The database password file.</li>
<li>Database datafile directories.</li>
<li>Redo and archive directories.</li>
<li>Complete Oracle software installation.</li>
<li>The primary database must be in ARCHIVE LOG mode.</li>
</ol>
<p>Once the Oracle environment is created, then the standby database can be created. The overall steps to creating the standby database are:</p>
<ol>
<li>Create a standby controlfile and copy this to the standby server.</li>
<li>Create a backup of the primary database. This can be done through normal hot or cold backup methods or through RMAN.</li>
<li>Copy the backup of the primary database to the standby server.</li>
<li>Copy the standby controlfile to the correct location(s) on the standby server.</li>
<li>Copy the backup database files to the correct location(s) on the standby server.</li>
<lil>Copy any archives files that have been created during the hot backup process to the standby server.
<li>Start and mount the database as a standby database.</li>
<li>Apply the latest changes from the primary database.</li>
</ol>
<p>Normally the physical standby database does have redo logs. If using Data Guard with Enterprise Edition, then standby redo log files can be created.</p>
<p>Creating the standby database sounds complicated? Fortunately <strong>Dbvisit</strong> has automated the whole standby creation process including the preliminary steps. Dbvisit copies the pfile/spfile and the password file to the standby server and will check the standby server to ensure the Oracle environment is setup correct and will let you know the outstanding items that are still needed. For example if you have not yet created all the Oracle directories, Dbvisit will let you know which ones are still required.</p>
<p>If you do not have access to Dbvisit or prefer to setup the standby database manually, here is some documentation that explain the steps involved:</p>
<ul>
<li>Creating a standby database for Linux/Unix (<a href="http://www.dbvisit.com/docs/Creating_a_standby_database_linux.pdf">PDF</a>)</li>
<li>Creating a standby database for Windows (<a href="http://www.dbvisit.com/docs/Creating_a_standby_database_windows.pdf">PDF</a>)</li>
</ul>
<p><strong>What things can go wrong when creating a standby database?</strong><br />
When using the hot-backup method, the tablespace must be in hot backup mode when copying the tablespace datafile. Do not forget to take the tablespace out of backup mode once the tablespace is finished.<br />
The standby database controlfile SCN number must be higher than any of the datafiles of the standby database. If this is not the case then the error ORA-01152: file 1 was not restored from a sufficiently old backup, and also ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below, will result.</p>
<p>For more information about standby databases, see our other <a href="http://blog.dbvisit.com/what-is-a-standby-database/">post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbvisit.com/creating-a-standby-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>After Oracle Open World 2009</title>
		<link>http://blog.dbvisit.com/top-new-feature-oracle-11gr2/</link>
		<comments>http://blog.dbvisit.com/top-new-feature-oracle-11gr2/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 22:58:53 +0000</pubDate>
		<dc:creator>Arjen Visser</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.dbvisit.com/?p=277</guid>
		<description><![CDATA[Oracle Open World 2009 is now behind us. It is a massive event that attracted 32,000 people and had about 1,900 sessions. It is  very well organised by Oracle and partners. It is held in 3 huge convention centres that are across the road from each other. One road is permanently closed to traffic [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Oracle Open World 2009</strong> is now behind us. It is a massive event that attracted 32,000 people and had about 1,900 sessions. It is  very well organised by Oracle and partners. It is held in 3 huge convention centres that are across the road from each other. One road is permanently closed to traffic as they have erected big tents to use as lunch and entertainment venue. Almost the whole city of San Francisco is taken over by OOW as you see delegates walking with badges on the street wherever you are in San Francisco.</p>
<p>It was nice to meet up again with old friends and it was also a privilege to meet so many new Oracle DBA&#8217;s and Developers. OOW is certainly a place to bring the worlds best Oracle specialists together in one place. It is a great opportunity for networking and sharing knowledge and ideas.</p>
<p>My <strong>two presentations</strong> went very well and had a good turnout. One presentation was on Disaster Recovery and another on Perl. For details of my presentations and to download the slides and &#8220;homework&#8221; please go to <a href="http://www.dbvisit.com/oow2009.php">OOW2009</a>.</p>
<p>I think the <strong>Perl presentation</strong> hit a chord with many DBA&#8217;s as it is a highly effective tool for DBA&#8217;s, one that is too often overlooked, and one that many DBA&#8217;s would like to learn. But as with many programming languages you need someway to get you started, to learn the fundamentals and for someone to show you the right way to learn the language so that you do not start off with &#8220;bad&#8221; habits. This presentation was about how to start learning Perl and to go over some of the language fundamentals and best practices. The presentation was very well received as I received many positive comments from the audience. I was asked to submit this presentation for <a href="http://collaborate10.ioug.org/">Collaborate 10</a> in Las Vegas next April which I now have done.</p>
<p>The <strong>Wednesday night party</strong> had everyone (all 32,000) transported in buses to an island in San Francisco Bay that is reachable by bridge. This was a huge party with 2 large stages. The entertainment was Aerosmith, Roger Daltry, Three Dog Night and The Wailers. What a great party and great food and drinks! I think Oracle hired all the buses, taxis and limos that are available in San Francisco.</p>
<p><strong>What was the top new</strong> feature of Oracle 11gR2. For me this is &#8220;Edition-based redefinition&#8221;. As Tom Kyte said in his presentation: &#8220;It is the killer feature Of Oracle Database 11g Release 2. It is worth 2 features!&#8221;. It is like version control within the database. Not version control on the data itself but version control on the schema objects. The schema objects types that are editionable include Synonyms, Views and PL/SQL object types (like triggers, functions, procedures etc). So tables are not included in this.</p>
<p><strong>Edition-Based Redefinition</strong> or EBR allows significantly less downtime when you are upgrading applications as you no longer need to wait for all the users to stop using the application before upgrading. Currently if releasing new PL/SQL code, the code needs to be recompiled but you cannot recompile until all users have stopped using the code. There are always a lot of dependencies when compiling PL/SQL, so basically it means no one can use the application when this is happening. With EBR, you can now compile the new code without affecting the current application. EBR is available in all editions of Oracle 11gR2.</p>
<p>In summary it was an event that was well worth attending and it was a privilege to be presenting at such a great event. Hope to see you there next year!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbvisit.com/top-new-feature-oracle-11gr2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
