 




<?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>The Multifunctioning DBA &#187; DR</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/dba/tag/dr/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/dba</link>
	<description></description>
	<lastBuildDate>Wed, 06 Feb 2013 01:01:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Another DR Test</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/another-dr-test/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/another-dr-test/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 13:27:32 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[DR]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/another-dr-test/</guid>
		<description><![CDATA[So we have what sounds to be a great idea for our SQL Server DR. We are doing block level replication between datacenters and so we thought it might be a good idea to joust mount up our disk on another server that is in the DR Datacenter in case of a disaster. We want [...]]]></description>
				<content:encoded><![CDATA[<p>So we have what sounds to be a great idea for our SQL Server DR. We are doing block level replication between datacenters and so we thought it might be a good idea to joust mount up our disk on another server that is in the DR Datacenter in case of a disaster. We want to do that with the disk that holds all databases including the system databases. The thought is that if we build out the DR servers to look for the system DB&#8217;s in the same location as the prod server, once we bring that disk up and mount it to the DR servers we should be good and not have to worry about anything like, for example logins like we would have to with Mirroring.</p>
<p>So that is the thought and I am going to build out a couple servers in Virtual Box and try to test this out. Should be fun and simple enough to POC this idea. I will let you know more details on the test and if it works out or not.</p>
<p>Hope this might help</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/another-dr-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DR SQL Server Memory Test</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/dr-sql-server-memory-test/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/dr-sql-server-memory-test/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 13:32:06 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[DR]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[Settings]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/dr-sql-server-memory-test/</guid>
		<description><![CDATA[My new company has a DR Test coming up and we came up with a great idea on how to make the SQL Servers test pretty simple. We use SAN Block level replication so we should be able to mount up our shared disk to any server that has the correct version of SQL Server [...]]]></description>
				<content:encoded><![CDATA[<p>My new company has a DR Test coming up and we came up with a great idea on how to make the SQL Servers test pretty simple. We use SAN Block level replication so we should be able to mount up our shared disk to any server that has the correct version of SQL Server installed. One question that we had though was that if SQL Server is configured to take say 1024 MB of memory minimum but the server only has 4 GB total would it start up. The answer is yes it will. I tested this using SQL Server 2008 running in Virtual Box. I had SQL Server set up to grab 1024 MB minimum at startup. I shut down the VM and configured the maching to only have 52MB and then I started it back up. SQL Server came up just fine. So this tells me that it will start up and then we can modify the settings to be what we would like.</p>
<p>Hope this helps.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/dr-sql-server-memory-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fail over Mirror database with Powershell</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/fail-over-mirror-database-with-powershell/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/fail-over-mirror-database-with-powershell/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 20:23:40 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[DR]]></category>
		<category><![CDATA[Mirror]]></category>
		<category><![CDATA[Mirror Fail over]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/fail-over-mirror-database-with-powershell/</guid>
		<description><![CDATA[Today I was asked if I could help out by writing a simple script that would fail over a mirrored database from one server to the other and back if and when needed. I thought sure I can. I mean to do the failover with T-SQL is really simple but I can automate it. So [...]]]></description>
				<content:encoded><![CDATA[<p>Today I was asked if I could help out by writing a simple script that would fail over a mirrored database from one server to the other and back if and when needed. I thought sure I can. I mean to do the failover with T-SQL is really simple but I can automate it. So here is the T-SQL to fail over.</p>
<p><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: maroon">ALTER DATABASE Your_DBNAME SET PARTNER FAILOVER</span></p>
<p>Well that is very simple but to automate it will take a bit more work. No problem though. Break out the powershell and away we go.</p>
<p><!--[if gte mso 9]&gt;  Normal 0     false false false  EN-US X-NONE X-NONE              MicrosoftInternetExplorer4              &lt;![endif]--><!--[if gte mso 9]&gt;                                                                                                                                            &lt;![endif]--><!--[if gte mso 10]&gt;--><br />
 /* Style Definitions */<br />
 table.MsoNormalTable<br />
	{mso-style-name:&#8221;Table Normal&#8221;;<br />
	mso-tstyle-rowband-size:0;<br />
	mso-tstyle-colband-size:0;<br />
	mso-style-noshow:yes;<br />
	mso-style-priority:99;<br />
	mso-style-qformat:yes;<br />
	mso-style-parent:&#8221;";<br />
	mso-padding-alt:0in 5.4pt 0in 5.4pt;<br />
	mso-para-margin:0in;<br />
	mso-para-margin-bottom:.0001pt;<br />
	mso-pagination:widow-orphan;<br />
	font-size:11.0pt;<br />
	font-family:&#8221;Calibri&#8221;,&#8221;sans-serif&#8221;;<br />
	mso-ascii-font-family:Calibri;<br />
	mso-ascii-theme-font:minor-latin;<br />
	mso-fareast-font-family:&#8221;Times New Roman&#8221;;<br />
	mso-fareast-theme-font:minor-fareast;<br />
	mso-hansi-font-family:Calibri;<br />
	mso-hansi-theme-font:minor-latin;<br />
	mso-bidi-font-family:&#8221;Times New Roman&#8221;;<br />
	mso-bidi-theme-font:minor-bidi;}</p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: green">## Step one: Load SMO Assembly</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">[</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: saddlebrown">System.Reflection.Assembly</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">]::</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: saddlebrown">LoadWithPartialName</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">(</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: maroon">&#8216;Microsoft.SqlServer.SMO&#8217;</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> ) </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: blue">|</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: cadetblue">out-null</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: green">#Step Two: Define Variables</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$failover</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">=</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> 0</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$instances</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">=</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: maroon">&#8220;workdog&#8221;</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">, </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: maroon">&#8220;workdog\test&#8221;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: green">##Step Three: find current database that is the principal</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: blue">foreach</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> (</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$instance</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: blue">in</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$instances</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">)</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">{</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$s</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">=</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: cadetblue">New-Object</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> (</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: maroon">&#8216;Microsoft.SqlServer.Management.Smo.Server&#8217;</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> ) </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$instance</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$databases</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">=</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$s</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">.</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: saddlebrown">Databases</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: green">#$databases | select name, mirroringstatus, status</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: blue">foreach</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">(</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$db</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: blue">in</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$databases</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">)</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">{</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$name</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">=</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$db</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">.</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: saddlebrown">name</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$mirrorstatus</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">=</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$db</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">.</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: saddlebrown">MirroringStatus</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$mirrorstatus</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">=</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$mirrorstatus</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">.</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: saddlebrown">ToString</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">()</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$status</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">=</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$db</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">.</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: saddlebrown">Status</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: blue">if</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">((</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$mirrorstatus</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">-ne</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: maroon">&#8220;None&#8221;</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">) </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">-and</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> (</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$Status</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">-eq</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: maroon">&#8220;Normal&#8221;</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">) </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">-and</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> (</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$failover</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">-eq</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> 0))</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black">{</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: blue">echo</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: maroon">&#8220;$name is on $instance&#8221;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$query</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">=</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: maroon">&#8220;ALTER DATABASE $name SET PARTNER FAILOVER&#8221;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$failover</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: red">=</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> 1</span></p>
<p class="MsoNormal"><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: cadetblue">Invoke-Sqlcmd</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: cadetblue">-serverinstance</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$instance</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: cadetblue">-Database</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: blue">master</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: cadetblue">-Query</span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: black"> </span><span style="font-size: 10pt;font-family: &quot;Courier New&quot;color: purple">$query</span></p>
<p class="MsoNormal">
<p class="MsoNormal">So basically what I am doing is setting up SMO connections to my instances and looping thru all the databases. If I find a database that is mirrored and the primary then I know what instance to run the SQL Query against and I do. I also set $failover = 1 so that the script knows that if it iterates thru and finds that the second instance now has the primary do not run the failover again.</p>
<p class="MsoNormal">
<p class="MsoNormal">Hope this helps</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/fail-over-mirror-database-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabled SA account</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/disabled-sa-account/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/disabled-sa-account/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 02:11:40 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[DR]]></category>
		<category><![CDATA[enable sa]]></category>
		<category><![CDATA[sqlhelp]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/disabled-sa-account/</guid>
		<description><![CDATA[I recently had a situation where something happened to my SQL Server and I could no longer log in using windows authentication. I will get more into what happened in another post. Let me just preface all this by saying that I inherited this mess. Anyway, thanks to @afernandez and @banerjeeamit on twitter, and the [...]]]></description>
				<content:encoded><![CDATA[<p>I recently had a situation where something happened to my SQL Server and I could no longer log in using windows authentication. I will get more into what happened in another post. Let me just preface all this by saying that I inherited this mess. Anyway, thanks to <a href="http://twitter.com/afernandez">@afernandez</a> and <a href="http://twitter.com/banerjeeamit">@banerjeeamit</a> on <a href="www.twitter.com">twitter</a>, and the <a href="http://blogs.msdn.com/b/raulga/archive/2007/07/12/disaster-recovery-what-to-do-when-the-sa-account-password-is-lost-in-sql-server-2005.aspx">article here explaining how to enable sa</a>, I was able to get the sa account up, change the password, and then log in as sa to do what I needed to do. So thanks to all on #sqlhelp on twitter and if you are not on <a href="www.twitter.com">twitter</a> yet DO IT!.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/disabled-sa-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is DR??</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/what-is-dr/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/what-is-dr/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 08:00:02 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[DR]]></category>
		<category><![CDATA[Planning]]></category>
		<category><![CDATA[Recovery]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/what-is-dr/</guid>
		<description><![CDATA[What is DR? How do you define it? I would really like to know. Please put your thoughts in the comments but a recent event has made me re-think what DR truly is. I have a SQL Server that is very mission critical and if the database is not up and accessible the company is [...]]]></description>
				<content:encoded><![CDATA[<p>What is DR? How do you define it? I would really like to know. Please put your thoughts in the comments but a recent event has made me re-think what DR truly is.</p>
<p>I have a SQL Server that is very mission critical and if the database is not up and accessible the company is losing money. This is very important and needs to have as close to 100% uptime as possible since this application is part of a consolidation project and that means that the server is taking transactions just about 24 hours a day.</p>
<p>This is a server that I inherited and it seems like the vendor has had control of the environment pretty much exclusively. I have been brought in and I have made some recommendations to help improve performance and I have made some comments about HA and DR. I have made comments because the vendor is essentially using Transactional Replication as a solution for both. They do not have Primary keys in some tables so that means we do not have those tables on the replicated servers. They also are not replicating Indexes, Triggers, and Stored Procs. This would be OK if they had a system in place to script them out and apply them on the replicated database but they do not.</p>
<p>So, Something happened that caused kerberos to break and now we can only use sql server authentication to the instance.  We only have one SQL Server account and that account is dbo in the production database and has no other roles except public. The SA account has been disabled, and on top of that no one knows the password for it.</p>
<p>So to me this is a disaster. I also forgot to mention that the Agent will not start up. I do not think that a cluster would have helped us since the server/instance name for the cluster would be the same even when failed over to different hardware. So I classify this as a situation where DR needs to be in place.</p>
<p>What say you about what a Disaster is. I do not think it is when your entire data-center is taken out anymore. It could be just about anything and if you have not planned for it then you will pay the price as I did.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/what-is-dr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSDB Problems</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/msdb-problems/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/msdb-problems/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 21:46:41 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[corruption]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[DR]]></category>
		<category><![CDATA[On-Call]]></category>
		<category><![CDATA[Planning]]></category>
		<category><![CDATA[SQL Administration]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/msdb-problems/</guid>
		<description><![CDATA[Just the other morning at 3:00 AM I get a page, Love being on call, and I see some errors about MSDB. Well this concerns me but it is 3:00 AM and my head is not really on straight. I doze back to sleep, in ten more minutes I get two pages, This time I [...]]]></description>
				<content:encoded><![CDATA[<p>Just the other morning at 3:00 AM I get a page, Love being on call, and I see some errors about MSDB. Well this concerns me but it is 3:00 AM and my head is not really on straight. I doze back to sleep, in ten more minutes I get two pages, This time I get errors about MSDB again and I also get another page telling me that the instance that is associated with this MSDB is down.</p>
<p>Well now I get up, I know that this instance is a production instance or I would not be getting pages at 3:00 AM. I know this because I wrote all of our monitoring scripts. (I love Powershell) So I drag out of bed and go to my computer log in and what do I see. Errors saying that the solution may be to restore MSDB from a previous backup. Well I know that I back MSDB up but I honestly have never attempted to restore MSDB. I will be doing that soon though. Anyway, I start researching and I find that usually restarting the SQL Server will repair the issue and if not then restore. Well the service was already not running so all I did was started it. Everything came up fine but I was not really convinced yet so I did a dbcc checkdb and found that all actually did seem to be well.</p>
<p>I then wiped the sweat off my brow and continued to look for a reason that this may have occured and why the instance shut down. I have found nothing but I have had no issue with the server from that point until now. I would really like to know what went wrong but I can not find anything in the SQL Server logs or the Windows Logs. If anyone knows where I should look I would appreciate it.</p>
<p>That was a good experience for me, now I really understand that I do need to back up my system databases as well as verify that I can restore them. I would also like to set up a server and start simulating Database Corruption and work on how to recover. Document it and have a plan just in case.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/msdb-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Dataguard Replication Scare</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/oracle-dataguard-replication-scare/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/oracle-dataguard-replication-scare/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 16:52:41 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Dataguard]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[DR]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Administration]]></category>
		<category><![CDATA[Standby Database]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/oracle-dataguard-replication-scare/</guid>
		<description><![CDATA[I had to bring down the standby server for the power outage in our DR location a few nights agon. No big deal, shut off replication from the primary, go to the standby and do a shutdown imediate, since you can not do a shutdown on the standby server. When things cam up I go [...]]]></description>
				<content:encoded><![CDATA[<p>I had to bring down the standby server for the power outage in our DR location a few nights agon. No big deal, shut off replication from the primary, go to the standby and do a shutdown imediate, since you can not do a shutdown on the standby server. When things cam up I go to the secondary and do a startup nomount; and then alter database mount standby database; Well I thougt that was all I needed. About 10 minutes later I get some pages about the primary not being able to connect to the standby&#8230; DUH I forgot to start the listener on the standby. No Problem. I run lsnrctl start on the standby host and I am in business now. No more pages all is good. Well I thought so until after the cold backup that we run overnight from the standby database. Now I get a page saying that recover managed standby database cancel can not execute since this is not a managed standby database. I think that is odd and I check to see if archive logs are being applied and they are not and have not been for over 13 huors now. I find that I forgot to run alter database recover managed standby database; I run that command and look at that. Now my Archive logs are being applied. It took about 4 hours to get caught up but it did. So when bringing up the standby just do the following:</p>
<p>STARTUP NOMOUNT;</p>
<p>ALTER DATABASE MOUNT STANDBY DATABASE;</p>
<p>ALTER DATABASE RECOVER MANGED STANDBY DATABASE;</p>
<p>If you have enabled the primary to send archive logs then you are all set.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/oracle-dataguard-replication-scare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sybase Instance Scare</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/sybase-instance-scare/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/sybase-instance-scare/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 16:55:26 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[DR]]></category>
		<category><![CDATA[Sybase]]></category>
		<category><![CDATA[Sybase Administration]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/sybase-instance-scare/</guid>
		<description><![CDATA[Monday morning my company was putting in a new UPS at our DR facility. This is great but it means that all database instances that are running at that location are coming down as power to the entire site was down for 2 hours. No big deal right, I got a list of the instances [...]]]></description>
				<content:encoded><![CDATA[<p>Monday morning my company was putting in a new UPS at our DR facility. This is great but it means that all database instances that are running at that location are coming down as power to the entire site was down for 2 hours. No big deal right, I got a list of the instances and shut them all down properly before the host machines were shutdown. A couple hours later I get a call saying that all the power is back on and that all my hosts are ready as well. I login and I start to run my startup scripts for all my Sybase instances. I run into two servers that are not starting up and this is what I find in the log files.<br />
<strong><em>The configuration area in master device appears to be corrupt.</em></strong><br />
NOT COOL&#8230; I know that I have backups so that is OK but Master really in two instances&#8230; I dig around a bit more and I find that the two instances that are having issues run on the same physical host but are in Solaris Containers that use Veritas Disk mounts. I google the error to see if it may be disk related and not corruption in Master. I found it.<br />
<a href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc00768.1503/html/ase_ce_ug/ase_ce_ug280.htm"></a><br />
I called my storage guy and he looked into it. Called me about 30 minutes later and asked me to try again. WOW everything came up and I was a happy camper. Sure made for a long morning though and also made me realize the benefit to practicing DR situations. I think I will work with my team to have outages on out Test instances just so we can rebuild Master. It will be good to know and be practiced up on if it is ever not the disk.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/sybase-instance-scare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
