<?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>Personal Weblog of John Wood &#187; Uncategorized</title>
	<atom:link href="http://www.webofwood.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webofwood.com</link>
	<description>Wordpress weblog of John Wood, a Database Administrator</description>
	<lastBuildDate>Thu, 29 Jul 2010 14:00:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Easy Oracle Backup Deployment with Grid Control</title>
		<link>http://www.webofwood.com/2010/03/03/oracle-backup-deployment/</link>
		<comments>http://www.webofwood.com/2010/03/03/oracle-backup-deployment/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 20:52:53 +0000</pubDate>
		<dc:creator>John Wood</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.webofwood.com/?p=88</guid>
		<description><![CDATA[I recently installed GRID Control and while “playing around” with it, I discovered the fantastic capability to build a job once and deploy over many targets. I thought this is very cool after experiencing so many problems with Dbconsole. I found you can create a Job with minimal effort and deploy it to various targets with minimal [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed GRID Control and while “playing around” with it, I discovered the fantastic capability to build a job once and deploy over many targets. I thought this is very cool after experiencing so many problems with Dbconsole.</p>
<p>I found you can create a Job with minimal effort and deploy it to various targets with minimal effort. Database backups fit this mold exceptionally well. In my shop, all of our backups are rather routine and all share common properties: complete backup, daily at 6PM. All of our databases are small enough for complete backups rather than incremental.</p>
<p><span id="more-88"></span>If you want to quickly and easily build the backups for a dozen or more databases, you can try this process. I’m sure you will find it simple and effective. The basic steps involved are:</p>
<ol>
<li>Build a Job “template” and save it in the Job Library</li>
<li>Choose between submitting the Job for scheduling against multiple targets or submitting the Job for each target. <strong>This process</strong> submits the Job for each target. I chose this method because I believe it gives me more flexibility to accommodate future changes for individual target requirements. You can try both methods to see which best suits your needs.</li>
</ol>
<p>To start, bring up Oracle Grid Control and then choose the Jobs tab at the top. My screen is shown below. <strong>Now click on Job Library tab</strong> of that screen.</p>
<p style="text-align: center;"><a href="http://www.webofwood.com/wp-content/uploads/2010/03/jobs000.jpg" target="_blank"><img class="aligncenter" style="display: inline; border-width: 0px;" title="jobs-000" src="http://www.webofwood.com/wp-content/uploads/2010/03/jobs000_thumb.jpg" border="0" alt="jobs-000" width="240" height="167" /></a></p>
<p>You should now be in the Job Library. Follow the numbered sequences on the next image below to <strong>create a new Library Job</strong></p>
<p style="text-align: center;"><a href="http://www.webofwood.com/wp-content/uploads/2010/03/jobs001.jpg" target="_blank"><img class="aligncenter" style="display: inline; border-width: 0px;" title="jobs-001" src="http://www.webofwood.com/wp-content/uploads/2010/03/jobs001_thumb.jpg" border="0" alt="jobs-001" width="240" height="99" /></a></p>
<p>Fill in <strong>General</strong> information about the Job</p>
<p style="text-align: center;"><a href="http://www.webofwood.com/wp-content/uploads/2010/03/jobs002.jpg"><img class="aligncenter" style="display: inline; border: 0px;" title="jobs-002" src="http://www.webofwood.com/wp-content/uploads/2010/03/jobs002_thumb.jpg" border="0" alt="jobs-002" width="244" height="108" /></a></p>
<p>Key or paste in your RMAN script into the <strong>Parameters</strong> screen. I use a very generic script which uses all of the defaults I had previously established in Backup Settings for the target. A copy of my RMAN script is available here for cut &amp; paste.</p>
<pre class="brush: sql">run {
backup device type disk database;
backup device type disk archivelog all not backed up delete all input;
delete noprompt obsolete device type disk;
}</pre>
<p>After entering the script you’ll go on to specifying the Schedule. We won’t worry about the <em>Credentials</em> tab until we deploy to a target.</p>
<p style="text-align: center;"><a href="http://www.webofwood.com/wp-content/uploads/2010/03/jobs004.jpg"><img class="aligncenter" style="display: inline; border: 0px;" title="jobs-004" src="http://www.webofwood.com/wp-content/uploads/2010/03/jobs004_thumb.jpg" border="0" alt="jobs-004" width="244" height="92" /></a></p>
<p>Set up your <strong>Schedule</strong>. Because we are deploying to individual targets, you will be able to change this later per target. In my case, all the targets have the same schedule so I can set it here and not worry about it when I deploy.</p>
<p style="text-align: center;"><a href="http://www.webofwood.com/wp-content/uploads/2010/03/jobs007.jpg"><img class="aligncenter" style="display: inline; border: 0px;" title="jobs-007" src="http://www.webofwood.com/wp-content/uploads/2010/03/jobs007_thumb.jpg" border="0" alt="jobs-007" width="244" height="136" /></a></p>
<p><strong>Deploy</strong> your new Job by selecting it from the list and then clicking the <em>Submit</em> button.</p>
<p style="text-align: center;"><a href="http://www.webofwood.com/wp-content/uploads/2010/03/jobs008.jpg"><img class="aligncenter" style="display: inline; border: 0px;" title="jobs-008" src="http://www.webofwood.com/wp-content/uploads/2010/03/jobs008_thumb.jpg" border="0" alt="jobs-008" width="244" height="142" /></a></p>
<p>Now you will see another Job creation screen with the General settings. However, this one is now in the Jobs category and not the Job Library. You may notice, the Job name has been filled in with the name from your Job Library along with a suffix (most likely .1).  This is the time to add a Target or Targets.</p>
<p style="text-align: center;"><a href="http://www.webofwood.com/wp-content/uploads/2010/03/jobs010.jpg"><img class="aligncenter" style="display: inline; border: 0px;" title="jobs-010" src="http://www.webofwood.com/wp-content/uploads/2010/03/jobs010_thumb.jpg" border="0" alt="jobs-010" width="244" height="181" /></a></p>
<p>Select one or more from the <strong>Targets List.</strong> I chose to use one target for each deployment. However, you can deploy one Job to multiple targets at the same time. My preference is to run the deployment for each target thereby creating a Job for each.</p>
<p style="text-align: center;"><a href="http://www.webofwood.com/wp-content/uploads/2010/03/jobs012.jpg"><img class="aligncenter" style="display: inline; border: 0px;" title="jobs-012" src="http://www.webofwood.com/wp-content/uploads/2010/03/jobs012_thumb.jpg" border="0" alt="jobs-012" width="244" height="185" /></a></p>
<p>We’re back to the <strong>General</strong> information screen of the Job creation. At this time I also change the suffix for the Job name to match the Instance name of my target.</p>
<p style="text-align: center;"><a href="http://www.webofwood.com/wp-content/uploads/2010/03/jobs013.jpg"><img class="aligncenter" style="display: inline; border: 0px;" title="jobs-013" src="http://www.webofwood.com/wp-content/uploads/2010/03/jobs013_thumb.jpg" border="0" alt="jobs-013" width="244" height="112" /></a></p>
<p>The <strong>Credentials</strong> screen gives you the opportunity to choose which credentials you want to use. In my case I am using the preferred credentials which I had already set up for each target.</p>
<p style="text-align: center;"><a href="http://www.webofwood.com/wp-content/uploads/2010/03/jobs014.jpg"><img class="aligncenter" style="display: inline; border: 0px;" title="jobs-014" src="http://www.webofwood.com/wp-content/uploads/2010/03/jobs014_thumb.jpg" border="0" alt="jobs-014" width="244" height="122" /></a></p>
<p><strong>The final Job</strong> scheduled to run every day at 6PM according to the time of the target ( you could have targets in differing time-zones).</p>
<p style="text-align: center;"><a href="http://www.webofwood.com/wp-content/uploads/2010/03/jobs015.jpg"><img class="aligncenter" style="display: inline; border: 0px;" title="jobs-015" src="http://www.webofwood.com/wp-content/uploads/2010/03/jobs015_thumb.jpg" border="0" alt="jobs-015" width="244" height="125" /></a> </p>
<p style="text-align: left;">If you chose, as I did, to deploy to individual targets, you would now return to the Job Library, select your job, and click submit. This would be repeated for each target.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webofwood.com/2010/03/03/oracle-backup-deployment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix a SQL Server Login which has MUST_CHANGE set to ON</title>
		<link>http://www.webofwood.com/2009/01/29/fix-a-sql-server-login-which-has-must_change-set-to-on/</link>
		<comments>http://www.webofwood.com/2009/01/29/fix-a-sql-server-login-which-has-must_change-set-to-on/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 14:37:39 +0000</pubDate>
		<dc:creator>Woody</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.webofwood.com/2009/01/29/fix-a-sql-server-login-which-has-must_change-set-to-on/</guid>
		<description><![CDATA[This is one of those nasty little thorns that sticks you every once in a while. You add a new SQL Server authentication login with Server Manager and you forget to uncheck the boxes for User must change password, Enforce password, and Enforce Expiration. Being this is an application user for which you don&#8217;t want [...]]]></description>
			<content:encoded><![CDATA[<p><em>This is one of those nasty little thorns that sticks you every once in a while.</em> </p>
<p>You add a new SQL Server authentication login with Server Manager and you forget to uncheck the boxes for <strong>User must change password</strong>, <strong>Enforce password</strong>, and <strong>Enforce Expiration</strong>. Being this is an <em>application</em> user for which you don&#8217;t want to enforce password restrictions and which uses ODBC, therefore never seeing a login dialog, they never get an opportunity to <em>change</em> the password. Consequently the login can&#8217;t be used as is.<br /><a href="http://www.webofwood.com/wp-content/uploads/2009/01/image.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="485" alt="image" src="http://www.webofwood.com/wp-content/uploads/2009/01/image-thumb.png" width="540" border="0"></a> </p>
<p>Ok, you realize your mistake too late. The login has been created. It has been associated with one or more databases and/or schemas. Permissions have been granted, etc., etc., etc. How do you fix it? Guess what? If you try to just want to uncheck the &#8220;User must change&#8221; check box, you can&#8217;t! It is greyed out. </p>
<p>This conundrum perplexed me to no end when first encountered. Searching the internet turned up several solutions like this one:<br />ALTER LOGIN test_must_change WITH PASSWORD = &#8216;newpass&#8217;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CHECK_POLICY = OFF,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CHECK_EXPIRATION = OFF;</p>
<p>Guess what happens (you have three choices and the first two don&#8217;t count). You get this error message <br />Msg 15128, Level 16, State 1, Line 1<br />The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_CHANGE is ON.</p>
<p>If you try to user Server Manager and just uncheck the &#8216;Enforce password policy&#8217; or &#8216;Enforce password expiration&#8217; boxes, you get this<br /><img src="http://i275.photobucket.com/albums/jj319/hytekdude/weblog/1-29-20099-12-39AM.png"> </p>
<h3>THE FIX</h3>
<p>You <strong>MUST </strong>change the password first and it must be done <em>without changing the other password policy options</em>. You CAN change the password to be the same as the existing one. However, you do it, you still must effect a change on the password an then change the policy options as a separate step. If you choose to use the Server Manager wizard, when you <em>change</em> the password, the &#8216;User must change password&#8217; check box will become available and you can then uncheck it (do not uncheck the other policy check boxes if they already were). You can then save the change, open the wizard again, uncheck the other policy restrictions, and save it again. </p>
<p>If you decide to use a query, you can use code similar to this<br />USE Master<br />GO<br />ALTER LOGIN test_must_change WITH PASSWORD = &#8216;samepassword&#8217;<br />GO<br />ALTER LOGIN test_must_change WITH<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CHECK_POLICY = OFF,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CHECK_EXPIRATION = OFF;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webofwood.com/2009/01/29/fix-a-sql-server-login-which-has-must_change-set-to-on/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>eHarmony spurns Microsoft, finds match with Oracle 10g</title>
		<link>http://www.webofwood.com/2007/08/28/eharmony-spurns-microsoft-finds-match-with-oracle-10g/</link>
		<comments>http://www.webofwood.com/2007/08/28/eharmony-spurns-microsoft-finds-match-with-oracle-10g/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 18:15:01 +0000</pubDate>
		<dc:creator>Woody</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Tech of Interest]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.webofwood.com/2007/08/28/eharmony-spurns-microsoft-finds-match-with-oracle-10g/</guid>
		<description><![CDATA[eHarmony&#8217;s Vice President of Technology, Mark Douglas, cites SQL Server&#8217;s row locking mechanics as the biggest detractor. It appears this was a major roadblock to scaling their application enough to accommodate their fast growth. Find out more from the entire article here&#8230; eHarmony spurns Microsoft, finds match with Oracle 10g]]></description>
			<content:encoded><![CDATA[<p>eHarmony&#8217;s Vice President of Technology, Mark Douglas, cites SQL Server&#8217;s row locking mechanics as the biggest detractor. It appears this was a major roadblock to scaling their application enough to accommodate their fast growth. Find out more from the entire article here&#8230;</p>
<p><a href="http://searchoracle.techtarget.com/originalContent/0,289142,sid41_gci1269811,00.html?track=NL-333&amp;ad=600149&amp;asrc=EM_NLN_2073559&amp;uid=655725">eHarmony spurns Microsoft, finds match with Oracle 10g</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webofwood.com/2007/08/28/eharmony-spurns-microsoft-finds-match-with-oracle-10g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
