<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Oracle DBA - A lifelong learning experience</title>
	<atom:link href="http://jhdba.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jhdba.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 15 May 2013 22:08:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jhdba.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/fb0fcfbfdcaa4da40a758d64a29e8a07?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Oracle DBA - A lifelong learning experience</title>
		<link>http://jhdba.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jhdba.wordpress.com/osd.xml" title="Oracle DBA - A lifelong learning experience" />
	<atom:link rel='hub' href='http://jhdba.wordpress.com/?pushpress=hub'/>
		<item>
		<title>UKOUG Database SIG  Leeds- review</title>
		<link>http://jhdba.wordpress.com/2013/05/14/ukoug-database-sig-leeds-review/</link>
		<comments>http://jhdba.wordpress.com/2013/05/14/ukoug-database-sig-leeds-review/#comments</comments>
		<pubDate>Tue, 14 May 2013 18:54:34 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[UKOUG]]></category>
		<category><![CDATA[bms_workload_repository.add_colored_sql]]></category>
		<category><![CDATA[flashback database]]></category>
		<category><![CDATA[invisible indexes]]></category>
		<category><![CDATA[opatch auto]]></category>
		<category><![CDATA[OPTIMIZER_USE_INVISIBLE_INDEXES]]></category>
		<category><![CDATA[restore points]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1396</guid>
		<description><![CDATA[Last week we held the UKOUG Database SIG in Leeds as I described in a recent post. It was a well attended event in a  central location with excellent refreshments available. &#8211; Thank you to UKOUG&#8217;s  Anna Crellin for organising the day so well. The talks were all very good and I think the event [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1396&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last week we held the UKOUG Database SIG in Leeds as <a href="http://jhdba.wordpress.com/2013/04/25/ukoug-database-server-sig-leeds-may-9th/">I described in a recent post</a>. It was a well attended event in a  central location with excellent refreshments available. &#8211; Thank you to UKOUG&#8217;s  Anna Crellin for organising the day so well.</p>
<p>The talks were all very good and I think the event was enjoyed by all. <a href="http://oraganism.wordpress.com/2013/05/10/ukoug-database-server-sig-leeds-2013/">Neil Johnson wrote a blog entry about his experience of the day and of presenting for the first time</a>. He has now got the bit between his teeth and wants to present a 2 hour masterclass at the December conference in Manchester &#8211; (perhaps I am exaggerating slightly)</p>
<p>I ran the &#8216;BitsandPieces&#8217; session where audience participation was the key idea and this was achieved. The theme was small pieces of Oracle functionality that are not well known or used.</p>
<p>We discussed :-</p>
<p>The dbms_workload_repository.add_colored_sql procedure which allows you to capture specific pices of sql that individually would not appear as a top resource in AWR data. Using the package to add a sql_id and the data does then appear and performance can be fully explored. A good introductory  blog entry is available from Dion Cho at <a href="http://dioncho.wordpress.com/tag/colored-sql/" rel="nofollow">http://dioncho.wordpress.com/tag/colored-sql/</a></p>
<ul>
<li>The benefits of using restore points and  flashback database  were covered. Examples were given of flashing back through a 10g to 11g upgrade (if you might want to), using a restore point before making a major table or code change that might need to be rolled back (better than rolling forward from a previous backup) and using the same restore point repeatedly as part of performance testing. The point was made that anything that might include an OS command (such as dropping or resizing a datafile probably would not be recovered through so be careful with the command. My advice is that I consider it as the belt that goes with the braces of a full backup.</li>
<li>Invisible indexes &#8211; how easy they were to use and how they allowed the data_dictionary to be aware of the index but the optimizer ignores it. There was also a initialization parameter OPTIMIZER_USE_INVISIBLE_INDEXES  that allows the index to become visible at both a session and system level to allow full testing. Beware that if you rebuild an index it then becomes visible again.</li>
<li>One tip that came out was that in pre-packaged environments such as EBS when an index is not wanted, rather than drop it, mark it as invisible. Then when any upgrades or patches are applied the  index still exists in the dictionary and is not recreated as it might be if it had been dropped.</li>
<li>Another idea was the use of the opatch auto command. This came out in 11GR2 but not until PSU2. It manages a full GI and RDBMS patchset application and can stop all dependant databases, stop crs resources, stop crs, patch and restart everything. It can save a serious amount of time and is well worth investigating.</li>
</ul>
<p>I did pick up another few interesting thoughts which I want to do a bit of research on and I will blog about those shortly.</p>
<p>So overall it  as a good day with a lot of community interaction, networking and a good laugh afterwards when about 15 of us went for a few beers.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1396/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1396&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2013/05/14/ukoug-database-sig-leeds-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>UKOUG Database Server SIG &#8211; Leeds May 9th</title>
		<link>http://jhdba.wordpress.com/2013/04/25/ukoug-database-server-sig-leeds-may-9th/</link>
		<comments>http://jhdba.wordpress.com/2013/04/25/ukoug-database-server-sig-leeds-may-9th/#comments</comments>
		<pubDate>Thu, 25 Apr 2013 09:47:28 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[UKOUG]]></category>
		<category><![CDATA[Leeds]]></category>
		<category><![CDATA[UKOUG SIG]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1392</guid>
		<description><![CDATA[This is just a reminder for what I think is a strong Core DBA centric agenda being organised by the UKOUG The location is the Met Hotel in Leeds, right by the station and the last meeting in Leeds several years ago, was well attended so I am sure this one will be as well. [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1392&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This is just a reminder for what I think is a <a href="http://www.ukoug.org/events/ukoug-database-server-sig-meeting-may-2013/">strong Core DBA centric agenda</a> being organised by the UKOUG</p>
<p>The location is the Met Hotel in Leeds, right by the station and the last meeting in Leeds several years ago, was well attended so I am sure this one will be as well.</p>
<p>The agenda is below</p>
<p>&nbsp;</p>
<h1>UKOUG Database Server SIG Meeting</h1>
<p>Date: Thursday 9th May 2013</p>
<p>Time: 09:00 &#8211; 17:00</p>
<p>Location: Leeds/ West Yorkshire</p>
<p>Venue: The Met, Leeds</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<p align="center"><b>09:30</b><b></b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>Registration and coffee</p>
</td>
<td>
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td>
<p align="center"><b>10:00</b><b></b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>Welcome &amp; Introduction</p>
</td>
<td>John Hallas, SIG Committee</td>
</tr>
<tr>
<td>
<p align="center"><b>10:15</b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>Partition, Archive, Compress, Purge-Keeping your OLTP system on the road</p>
</td>
<td>David Kurtz, Go-Faster</td>
</tr>
<tr>
<td>
<p align="center"><b>11:00</b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>Bits ‘n’ pieces</p>
</td>
<td>John Hallas, Wm Morrison Supermarkets Plc</td>
</tr>
<tr>
<td>
<p align="center"><b>11:20</b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>Coffee &amp; networking</p>
</td>
<td> </td>
</tr>
<tr>
<td>
<p align="center"><b>11:40</b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>Oracle support Update</p>
</td>
<td>Owen Ireland, Oracle</td>
</tr>
<tr>
<td>
<p align="center"><b>12:00</b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>ZFS and NetApp provisioning for Oracle Databases</p>
</td>
<td>Mike Carew, Oracle</td>
</tr>
<tr>
<td>
<p align="center"><b>12:45</b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>Lunch</p>
</td>
<td> </td>
</tr>
<tr>
<td>
<p align="center"><b>13:45</b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>The Minimal Downtime PSU patching: proof of concept</p>
</td>
<td>Edgars Rudans, TSYS International</td>
</tr>
<tr>
<td>
<p align="center"><b>14:30</b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>Coffee &amp; networking</p>
</td>
<td> </td>
</tr>
<tr>
<td>
<p align="center"><b>14:50</b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>Contentious Small Tables</p>
</td>
<td>Neil Johnson, Osumo Ltd</td>
</tr>
<tr>
<td>
<p align="center"><b>15:35</b><b></b></p>
</td>
<td>
<p>&nbsp;</p>
</td>
<td>
<p>AOB &amp; Close</p>
</td>
<td>
<p>&nbsp;</p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1392/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1392&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2013/04/25/ukoug-database-server-sig-leeds-may-9th/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Migrating an Oracle Home  &#8211; dead easy?</title>
		<link>http://jhdba.wordpress.com/2013/03/20/migrating-an-oracle-home-dead-easy/</link>
		<comments>http://jhdba.wordpress.com/2013/03/20/migrating-an-oracle-home-dead-easy/#comments</comments>
		<pubDate>Wed, 20 Mar 2013 07:50:24 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[add new oracle hoime]]></category>
		<category><![CDATA[change Oracle Warehouse Builder home]]></category>
		<category><![CDATA[change OWB home]]></category>
		<category><![CDATA[change OWB oracle home]]></category>
		<category><![CDATA[chnage oracle home]]></category>
		<category><![CDATA[link listener.ora]]></category>
		<category><![CDATA[link tnsnames.ora]]></category>
		<category><![CDATA[RAC create service]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1385</guid>
		<description><![CDATA[Changing a database to use a new oracle home is easy isn’t it? A simple interview question that you would never get wrong. Everyone knows that you shutdown the database , edit the oratab file and restart the database again.  So then the interviewer presses and is obviously looking for more. You confidently follow-up with [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1385&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Changing a database to use a new oracle home is easy isn’t it? A simple interview question that you would never get wrong. Everyone knows that you shutdown the database , edit the oratab file and restart the database again.  So then the interviewer presses and is obviously looking for more.</p>
<p>You confidently follow-up with ‘of course I would have copied the passwd and the init.ora file to the new ORACLE_HOME/dbs folder during the outage.’ The interviewer says “go on, what else will you do?”.</p>
<p>It is getting a bit more awkward now, but you rise to the occasion with a comment about editing the listener to show the new ORACLE_HOME and then reloading the listener – but he still wants more and you begin to dry up a bit.</p>
<p>After a bit of hinting you recognise that you might need to go into OEM and edit the configuration but you have given your all, you’re are a spent force, wishing you could move onto the next easy question.</p>
<p>The above is from an interview question I asked only last week and unless a candidate has recently been migrating databases around then I think that would be representative of many people’s answers.  Therefore the idea of this post is just to put together a few things to form a checklist of things that may be required when migrating to a new ORACLE_HOME. I am sure all are not relevant and the OWB comment might well be replaced with some other tool you might be using.</p>
<p>So just a bullet point list follows and if I have failed my own interview question then I will be really pleased to accept suggestions and add them to the list<span id="more-1385"></span></p>
<ul>
<li>Edit  the oratab entry to update the database to reflect the new ORACLE_HOME</li>
<li>Copy the $ORACLE_HOME/dbs/orapwSID.ora and initSID.ora file to the new $ORACLE_HOME/dbs. You may hold these somewhere different  in which case the same principle applies. If  a RAC system ensure you do this on all nodes.</li>
<li>Edit the listener.ora file and restart or reload the listener</li>
<li>If you use Oracle Warehouse Builder then follow the note further down</li>
<li>Update  Oracle Enterprise Manager to reflect the new home</li>
<li>Review any ONAMES or OID or even LDAP config to see if they are in use or need to be changed</li>
<li>If your oraenv equivalent or login script does not set the path then check that you are now using the correct path. If it does then all should be OK</li>
<li>If you use a single listener and tnsnames file  for many homes on a server then you might want to them link them to the new ORACLE_HOME</li>
</ul>
<p style="padding-left:60px;">cd new $ ORACLE_HOME</p>
<p style="padding-left:60px;">ln -s /app/oracle/product/11.1.0/asm/network/admin/listener.ora listener.ora</p>
<p style="padding-left:60px;">ln -s /app/oracle/product/11.1.0/asm/network/admin/tnsnames.ora tnsnames.ora</p>
<ul>
<li>When changing an Oracle Home with either RAC or stand alone 11gr2 Oracle Restart, Oracle Clusterware needs to be modified for the new oracle home</li>
</ul>
<p style="padding-left:60px;"> srvctl modify database –d ORCL –o /app/oracle/product/11.2.0.3/dbhome_AWR1_1</p>
<p style="padding-left:30px;">Alternatively the resource can be deleted and re-created with</p>
<p style="padding-left:60px;"> srvctl stop service -d ORCL2A -s ORCL2</p>
<p style="padding-left:60px;">srvctl remove service -d ORCL2A -s ORCL2</p>
<p style="padding-left:60px;">srvctl remove database –d ORCL2A</p>
<p style="padding-left:60px;"> srvctl add database -d ORCL2A -o /app/oracle/product/11.2.0.3/dbhome_AWR1_1 -r PRIMARY</p>
<p style="padding-left:60px;">or</p>
<p style="padding-left:60px;">srvctl add database -d ORCL2B -o /app/oracle/product/11.2.0.1/dbhome_AWR1_1 -r PHYSICAL_STANDBY -s mount</p>
<p style="padding-left:30px;">Extra step for RAC onl<b>y</b></p>
<p style="padding-left:60px;">{</p>
<p style="padding-left:60px;">srvctl add instance -d ORCL2A -i ORCL2A1 -n node1</p>
<p style="padding-left:60px;">srvctl add instance -d ORCL2A -i ORCL2A2 -n node2</p>
<p style="padding-left:60px;">}</p>
<p style="padding-left:60px;"> crsctl status resource ora.ORCL2a.db -f | grep DEPENDENCIES</p>
<p style="padding-left:60px;">srvctl modify database -d ORCL2A -a &#8220;DATA,FRA&#8221;</p>
<p style="padding-left:60px;">crsctl status resource ora.ORCL2a.db -f | grep DEPENDENCIES</p>
<p style="padding-left:60px;">srvctl ad<span style="color:#000000;">d service -d ORCL2A</span> -r ORCL2A1,ORCL2A2 -s ORCL2 -l PRIMARY -e SELECT -m BASIC</p>
<p style="padding-left:60px;">srvctl modify service -d ORCL2A -s ORCL2 -z 180 -w 1</p>
<ul>
<li><code>Instructions to change OWB Home on the same server - 11GR1</code></li>
</ul>
<p style="padding-left:60px;"><code>Install the new Oracle Home</code></p>
<p style="padding-left:60px;"><code>Stop the OWB service</code></p>
<p style="padding-left:60px;"><code>Here I am assuming OWB_HOME is the same place as ORACLE_HOME</code></p>
<p style="padding-left:90px;"><code>$ORACLE_HOME/owb/rtp/sql/stop_service</code></p>
<p style="padding-left:60px;"><code> </code></p>
<p style="padding-left:90px;"><code>SQL&gt; select key, value from OWBSYS.OWBRTPS order by key;</code><br />
<code>SQL&gt; Update OWBSYS.OWBRTPS set VALUE='&lt;owb_new_home&gt;' where key='key_from_previous_SQL';</code><br />
<code>SQL&gt; commit;</code></p>
<p style="padding-left:90px;"><code>$ORACLE_HOME/owb/rtp/sql/start_service</code></p>
<p style="padding-left:60px;"><code> Connect via Control Centre and ensure everything works</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1385/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1385&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2013/03/20/migrating-an-oracle-home-dead-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Speeding up datapump exports in 11.1.0.7</title>
		<link>http://jhdba.wordpress.com/2013/03/19/speeding-up-datapump-exports-in-11-1-0-7/</link>
		<comments>http://jhdba.wordpress.com/2013/03/19/speeding-up-datapump-exports-in-11-1-0-7/#comments</comments>
		<pubDate>Tue, 19 Mar 2013 08:34:37 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Bug 10153617]]></category>
		<category><![CDATA[datapump slow]]></category>
		<category><![CDATA[expdp poor performance]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1369</guid>
		<description><![CDATA[I noticed that a small datapump export  involving a few tables was taking more than 30 minutes. I tried enabling parallelism, which was a mistake as for small tables parallelism is not utilised even if the parameter is used in the parameter file &#8211; that is probably worth a blog in itself. I then assumed it [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1369&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I noticed that a small datapump export  involving a few tables was taking more than 30 minutes. I tried enabling parallelism, which was a mistake as for small tables parallelism is not utilised even if the parameter is used in the parameter file &#8211; that is probably worth a blog in itself. I then assumed it was a disk performance issue until I tried it on other systems and realised it was quite a general thing.</p>
<p>I then came across bug 10153617  which is quite old (Sept 2010) but the 11.1.0.7  release is old now as well.</p>
<p>=========================================================================<br />
Interim Patch for Base Bug: 10153617<br />
=========================================================================</p>
<p>Date: Wed Sep 29 06:12:33 2010<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Platform Patch for          : Generic<br />
Product Patched             : ORACLE DATABASE<br />
Product Version #           : 11.1.0.7.0<br />
RAC Rolling Installable     : YES</p>
<p>Bugs Fixed by this patch:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
6460304: EXPDP TAKES MORE TIME<br />
7362589: GSIST12: EXPDP TABLE POOR PERFORMANCE OVERHEAD COMPARED TO ORIGINAL EXP<br />
7710931: DATAPUMP EXPORT IS EXTREMELY SLOW WHEN EXTRACTING SCHEMA<br />
7722575: DATAPUMP VIEW KU$_NTABLE_DATA_VIEW CAUSES POOR PLAN / SLOW EXPDP</p>
<p>I applied this as part of a general upgrade to PSU13 (it is not dependant upon any specific PSU) and the impact is very significant.</p>
<p>A simple test demonstrates the difference</p>
<pre class="brush: plain; title: ; notranslate">create user test identified by xxxxxx default tablespace users;

grant create session, create table to test;

create table test.test as select * from sys.dba_objects

exdp schemas=test directory=data_pump_dir content=ALL dumpfile=test.dmp logfile=test.log</pre>
<p>The first datapump export took 20 minutes before I killed the job and the second finished in less than 2 minutes and I have seen this repeated on a number of systems. I applied this on top of PSU 13 with no problems and I would recommend reviewing any 11.1.0.7 databases where  you might be exporting schemas or running a lot of datapump jobs. The test above or something similar shoudl provide an easy way of seeing if you are hitting the problem.</p>
<p>In the patch details above you will notice a bug 7710931 is also mentioned as being fixed by bug/patch 10153617. The detail of that suggests it is still valid in 11.2.0.1 but the same test above on a couple of systems did not indicate any poor performance</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1369/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1369&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2013/03/19/speeding-up-datapump-exports-in-11-1-0-7/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Rebuild of standby using incremental backup of primary</title>
		<link>http://jhdba.wordpress.com/2013/03/18/rebuild-of-standby-using-incremental-backup-of-primary/</link>
		<comments>http://jhdba.wordpress.com/2013/03/18/rebuild-of-standby-using-incremental-backup-of-primary/#comments</comments>
		<pubDate>Mon, 18 Mar 2013 07:18:33 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[11g new features]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[incremental recovery of standby from primary]]></category>
		<category><![CDATA[reman incremental standby]]></category>
		<category><![CDATA[rman differential]]></category>
		<category><![CDATA[rman noredo]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1375</guid>
		<description><![CDATA[I have a long to-do list of things I want to test out and one is rebuilding a standby by using an incremental backup from primary. Then along comes a note from my ex-colleague Vitaly Kaminsky  who had  recently been faced with the problem when a customer relocated two Primary 2-node RACs and a single [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1375&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have a long to-do list of things I want to test out and one is rebuilding a standby by using an incremental backup from primary. Then along comes a note from my ex-colleague<a href="uk.linkedin.com/pub/vitaly-kaminsky/20/434/244/"> Vitaly Kaminsky</a>  who had  recently been faced with the problem when a customer relocated two Primary 2-node RACs and a single node standby databases to a new location and just happened to start the standby databases in read-only mode. Vitaly tells the story :-</p>
<p>As you may know, the read-only mode will prevent any redo logs being applied to standby database, but on the surface everything looks OK – no errors and MRP0 process is running and showing “applying log” in  v$managed_standby.</p>
<p>The only problem is – the recovery is “stuck” on the last log the database was trying to apply before it was opened in read-only mode.</p>
<p>Unfortunately, the customer did not notice the omission for over 2 weeks and by the time I have had a chance to look at the environments, there were about 50G of redo logs accumulated for each and some of them were missing and/or corrupt which excluded the possibility of SCPing the logs over to the standby server and registering them with standby databases.</p>
<p>One of another factors which caused a lack of  attention to the standby databases falling behind is the absence of any error messages in the alert logs – every single log was shown as shipped and received.</p>
<p>In a case like this, the only option is to rebuild the standby database and in the past I did it using the traditional RMAN duplicate for standby routine.  However, in this particular case I had 2 databases to rebuild – one is small and another is large. The network between primary cluster and standby was slow as well.</p>
<p>For the small database I decided to use Grid Control GUI based wizard for creating the standby database and this process is quite straightforward and described in the documentation. For the large one, however, duplicating the database using RMAN would be too slow,there may have been a  performance degradation during the run and the maintenance window was too short for out-of-hours run.</p>
<p>This was a perfect case to try “incremental backup” approach. This method is described in a number of sources (if you Google it) but none of the “vanilla” cases worked for me.</p>
<p>I will not be listing the names and detailed output due to the production nature of the work – just the list of steps.</p>
<p>So, this is what I did at the end of the day:</p>
<p><b>PRE-REQUISITES:</b></p>
<p>Primary database can be single node or RAC and running OK.<br />
No downtime of Primary is required.<br />
All Dataguard settings are intact</p>
<p><b>Step-by-step:</b></p>
<ol>
<li><b>1.       </b><b>Get the latest SCN from standby:</b></li>
</ol>
<pre class="brush: plain; title: ; notranslate"> select to_char(current_scn) from v$database;

10615562421</pre>
<ol>
<li><b>2.       </b><b>Create incremental backup on Primary for all the changes since SCN on standby:</b></li>
</ol>
<pre class="brush: plain; title: ; notranslate">[oracle@primary backup]$ rman target /&lt;/pre&gt;
connected to target database: PRIMARY (DBID=720063942)

RMAN&gt; run

2&gt; {

3&gt; allocate channel d1 type disk;

4&gt; allocate channel d2 type disk;

5&gt; backup incremental from scn 10615562421 database format

6&gt; '/tmp/backup/primary_%U';

7&gt; release channel d1;

8&gt; release channel d2;
&lt;pre&gt;9&gt; }</pre>
<ol>
<li><b>3.       </b><b>Create copy of control file on Primary:</b></li>
</ol>
<pre class="brush: plain; title: ; notranslate"> alter database create standby controlfile as ‘/tmp/backup/stby.ctl’;</pre>
<ol>
<li><b>4.       </b><b>SCP the backup files and standby control file to the standby server. A little tip: if you copy the backup files to the directory with the same name (like /tmp/backup here), your controlfile will know about them and you can bypass the registration bit later on.</b></li>
</ol>
<ol>
<li><b>5.       </b><b>The next step is to replace the standby control file with the new one. May sound simple, but this proved to be the trickiest part due to the fact that standby controlfile is OMF and in ASM.  You will need to use RMAN for the restore operation: </b></li>
</ol>
<p>-          <b>Switch the database to nomount, then:</b></p>
<pre class="brush: plain; title: ; notranslate">restore controlfile from ‘/tmp/backup/stby.ctl';</pre>
<p>-          <b>Mount the database.</b></p>
<p>At this point you have the controlfile with the information about the files as they are on the Primary side, so, the next step is to register everything we have on Standby side:</p>
<pre class="brush: plain; title: ; notranslate">catalog start with '+data/standby/';</pre>
<p><b>Check the output and YES to register any reported standby files.</b></p>
<p>-          <b>Shutdown immediate your standby instance.</b></p>
<pre class="brush: plain; title: ; notranslate"> RMAN&gt; switch database to copy;

RMAN&gt; report schema;</pre>
<p><b>On this stage you should have a nice and clean list of actual standby files.</b></p>
<p><b> </b></p>
<p><b>Now we are ready to apply our differential backup to bring the standby in line with Primary:</b></p>
<pre class="brush: plain; title: ; notranslate">RMAN&gt; recover database noredo;</pre>
<p><i> </i>Because the online redo logs are lost, you must specify the <code>NOREDO</code> option in the <code>RECOVER</code> command.</p>
<p>You must also specify <code>NOREDO</code> if the online logs are available but the redo cannot be applied to the incrementals.</p>
<p>If you do not specify <code>NOREDO</code>, then RMAN searches for redo logs after applying the incremental backup, and issues an error message when it does not find them.</p>
<p><b>When the recovery completes, you may start the managed recovery process again:</b></p>
<pre class="brush: plain; title: ; notranslate">SQL&gt; alter database recover managed standby database using current logfile disconnect;</pre>
<p>Provided, all FAL settings are correct, your managed recovery will pick-up all logs generated on primary since the incremental backup and you will have fully synchronised standby again.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1375/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1375&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2013/03/18/rebuild-of-standby-using-incremental-backup-of-primary/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>database user xs$null</title>
		<link>http://jhdba.wordpress.com/2013/02/18/database-user-xsnull/</link>
		<comments>http://jhdba.wordpress.com/2013/02/18/database-user-xsnull/#comments</comments>
		<pubDate>Mon, 18 Feb 2013 06:44:32 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[locked accounts]]></category>
		<category><![CDATA[xs$null]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1350</guid>
		<description><![CDATA[When we put a new system into production we get the whole set of infrastructure penetration tested. Reading a recent review I saw the following recommendation as part of the database section. XS$null Recommendation: Ensure the XS$NULL account is not set to the default password even though it is locked. That brought two things to [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1350&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When we put a new system into production we get the whole set of infrastructure penetration tested. Reading a recent review I saw the following recommendation as part of the database section.</p>
<div>
<div align="left"><span style="font-family:Arial;font-size:small;"><b><i>XS$null Recommendation:</i></b></span></div>
<div align="left"><span style="font-family:Arial;font-size:small;">Ensure the XS$NULL account is not set to the default password even though it is locked.</span></div>
<div align="left"></div>
<div align="left">That brought two things to mind.</div>
<ol>
<li>What does the xs$null account actually do</li>
<li> If an account is locked why is the default password such an issue</li>
</ol>
<p>The focus of this article is to share some information about the xs$null account and then to ponder the changing of a default password on a locked account.</p>
<p>The oracle documentation for that user states</p>
<p style="padding-left:30px;">An internal account that represents the absence of a user in a session. Because XS$NULL is not a user, this account can only be accessed by the Oracle Database instance. XS$NULL has no privileges and no one can authenticate as XS$NULL, nor can authentication credentials ever be assigned to XS$NULL.</p>
<p>Which is enough to tell me that changing the password probably will not make a difference to any internal usage of that account that is supported by a MoS note which says  (in my simplified words) &#8211; don&#8217;t try to do anything with this account</p>
<p style="padding-left:30px;">When you try to alter user XS$NULL (for example to switch to another profile or to unlock it) you get the following error:</p>
<p style="padding-left:30px;">SQL&gt; alter user xs$null profile default;<br />
alter user xs$null profile default<br />
*<br />
ERROR at line 1:<br />
ORA-01031: insufficient privileges</p>
<p>When you dump a callstack for this error you will discover it is raised from <i>kzuial()</i>:</p>
<p style="padding-left:30px;">alter session set events &#8217;1031 trace name errorstack level 3&#8242;;<br />
alter user xs$null profile default;</p>
<p style="padding-left:30px;">&#8230;&#8230;</p>
<p style="padding-left:30px;">full trace dump details can be viewed in MoS note  &#8211; Cannot Alter User XS$NULL [ID 1325766.1]</p>
<div style="padding-left:30px;">
<p style="padding-left:30px;"><b>Changes</b></p>
</div>
<p style="padding-left:30px;">You upgraded to 11gR2</p>
<div style="padding-left:30px;">
<p style="padding-left:30px;"><b>Cause</b></p>
</div>
<p style="padding-left:30px;">In 11.2 development explicitly added a check in the code to make sure that nobody (not even user SYS) can alter user XS$NULL. This is the expected behaviour.</p>
<div style="padding-left:30px;">
<p style="padding-left:30px;"><b>Solution</b></p>
</div>
<p style="padding-left:30px;">You cannot alter user XS$NULL. This is the expected behaviour. User XS$NULL is internal and it may not be altered in any way. To guarantee the stability of the system, this was explicitly forbidden.</p>
<p style="padding-left:30px;">Even if this may work in earlier releases it is strongly recommended to not alter user XS$NULL.</p>
<p style="padding-left:30px;">If you try to do this because of some security auditing requirements (which for example demand that  all users should be in a certain profile) explain to the auditors that this is impossible.</p>
<p style="padding-left:30px;">Another reason why you may want this is to change the default tablespace of the user, while you cannnot alter this user specifically you can change the default tablespace at the database level and when you do this it will change the XS$NULL user temp tablespace as well.</p>
<p style="padding-left:30px;"><span style="color:#ff0000;">In version 11.2.0.4 an additional fix to bug 12822989 was introduced</span> that prevents the change of the password for internal user XS$NULL using the sqlplus &#8216;password&#8217; command (or using the OCIPasswordchange call in general), please do not use the &#8216;password&#8217; command in earlier releases to bypass the check, since it is unsupported to do so.</p>
<p>PS I do like the words &#8216;in 11.2.0.4 an additional fix was introduced&#8217; , in the past tense, which is interesting because 11.2.0.4 is reputed to be the 11GR2 terminal release and is not scheduled for release until at least late into Q3 2013 as I understand the situation.</p>
<p>The release we are on for this database is 11.2.0.1 (supportability issues with the application is the main/only reason for that). So I will be going back with the response that the account is locked and we will not be changing it on Oracle&#8217;s advice.</p>
<p>PPS a little test shows that you can change account in 11.1.0.7 but not do anything with it in 11.2.0.3</p>
<pre class="brush: plain; title: ; notranslate">
11.1.0.7

SQL&gt;select  username, profile from dba_users where username like 'XS%';

USERNAME                       PROFILE
------------------------------ ------------------------------
XS$NULL                        DEFAULT

SQL&gt;alter user xs$null profile m_std_profile identified by  Changepass123;

User altered.

connect xs$null/Changepass123
ERROR:
ORA-28000: the account is locked
SQL&gt;alter user xs$null account unlock;

User altered.

Connected.
SYS@MOMPTC2A SQL&gt;connect xs$null/Changepass123
ERROR:
ORA-01017: invalid username/password; logon denied

11.2.0.3

SQL&gt; select  username, profile from dba_users where username like 'XS%';

USERNAME                       PROFILE
------------------------------ ------------------------------
XS$NULL                        DEFAULT

SQL&gt; alter user xs$null profile m_std_profile identified by  Changepass123;
alter user xs$null profile m_std_profile identified by  Changepass123
*
ERROR at line 1:
ORA-01031: insufficient privileges</pre>
</div>
<p>Onto point 2. Now I am sure that there is a good reason to change a default password as well as locking the account but I fail to see it. My thought process would be that if someone has got into your database with enough privileges to unlock an account then changing a password is not going to be a big obstacle to them. Happy to have some explanation of that requirement. As the title of my  blog states &#8211; a lifelong learning experience</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1350/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1350&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2013/02/18/database-user-xsnull/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>UKOUG  Database Server SIG in Leeds, May 9th 2013</title>
		<link>http://jhdba.wordpress.com/2013/02/11/ukoug-database-server-sig-in-leeds-may-9th-2013/</link>
		<comments>http://jhdba.wordpress.com/2013/02/11/ukoug-database-server-sig-in-leeds-may-9th-2013/#comments</comments>
		<pubDate>Mon, 11 Feb 2013 09:02:23 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[UKOUG]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1345</guid>
		<description><![CDATA[Last time a database server SIG was held in Leeds we had a very good attendance and hopefully this will be repeated on Thursday May 9th 2013 when the Metropole Hotel will be the host. This 4 star hotel is very conveniently placed not more than a couple of hundred yards from the station and [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1345&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last time a database server SIG was held in Leeds we had a very good attendance and hopefully this will be repeated on Thursday May 9th 2013 when the <a href="http://www.metropole-hotel.co.uk/">Metropole Hotel </a>will be the host. This 4 star hotel is very conveniently placed not more than a couple of hundred yards from the station and should be a very good venue.</p>
<p>As always we are looking for good presentations from UKOUG members so that we can have a really strong database focused agenda.</p>
<p>If anyone wishes to present for the first time this would be a good opportunity but experienced presenters are always welcome. I am responsible for pulling the agenda together this time and hope I am inundated with offers.</p>
<p>The <a href="http://www.ukoug.org/events/ukoug-database-server-sig-meeting-may-2013/">UKOUG link </a>is here if anybody wishes to get more details or offer their support.</p>
<p>As a side note for Yorkshire based Oracle DBAs, <a href="uk.linkedin.com/in/epani">Eter Pani</a> has been organising meet-ups at the Adelphi for the last couple of months and the week before last we had 10 people attend for a night of chat about football, beer, and many other topics, as well as small measure of database stuff. It was a really good chance to meet others in the same job in the same area.  You never know it might make the next interview you go for easier if you have had a few beers previously with one of the interviewing panel. There again if you did not get a round in it might not have been a good move.</p>
<p>When I know the date of the next one I will post a note on this blog.</p>
<p>John</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1345/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1345&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2013/02/11/ukoug-database-server-sig-in-leeds-may-9th-2013/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding new ASM disks &#8211; what is best practise?</title>
		<link>http://jhdba.wordpress.com/2013/01/15/adding-new-asm-disks-what-is-best-practise/</link>
		<comments>http://jhdba.wordpress.com/2013/01/15/adding-new-asm-disks-what-is-best-practise/#comments</comments>
		<pubDate>Tue, 15 Jan 2013 09:01:52 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[ASM]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA['enq: DD - contention']]></category>
		<category><![CDATA['GPnP Get Item']]></category>
		<category><![CDATA[ALTER DISKGROUP MOUNT]]></category>
		<category><![CDATA[gpnp]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1327</guid>
		<description><![CDATA[According to My Oracle Support note &#8211; &#8220;How To Add a New Disk(s) to An Existing Diskgroup on RAC (Best Practices). [ID 557348.1]&#8221; you should create a test diskgroup using new storage before adding it to an existing diskgroup. That seems eminently sensible, although it is not something I normally do. It proves you can [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1327&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>According to My Oracle Support note &#8211; &#8220;How To Add a New Disk(s) to An Existing Diskgroup on RAC (Best Practices). [ID 557348.1]&#8221; you should create a test diskgroup using new storage before adding it to an existing diskgroup. That seems eminently sensible, although it is not something I normally do. It proves you can access the disk, and if there is a conflict (i.e the disk is already mapped and in use elsewhere) you are not risking your production DATA diskgroup. I have pasted the note info at the bottom of this post but basically you just create  a new diskgroup and add the new disk to it. If all is OK then drop the diskgroup and add the new disk to your existing diskgroup.</p>
<p>However the downside of that is that you can hit non-published bug:12398300 which is a duplicate of bug:12356910 (also non-published). Diskgroup Mount Hangs with RBAL Waiting on &#8216;GPnP Get Item&#8217; and &#8216;enq: DD &#8211; contention&#8217; [ID 1375505.1].  Note: This issue so far has been reported on RAC 11.2.0.2.3 and 11.2.0.3 environments which is where we saw it (RAC &#8211; 11.2.0.3 clusterware &#8211; 11.2.0.1 rdbms)</p>
<p>Simply the ALTER DISKGROUP MOUNT  just hangs and has to be interrupted (CTRL-C). No errors in the ASM alert log</p>
<p>Killing the ora.gpnpd on the node when ASM is blocked in the gpnp wait, permits not having  to stop the ASM instance. For details, please see <a href="https://support.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?id=1392934.1">Note:1392934.1</a>. Otherwise, restart the ASM instance that is causing the lock condition.</p>
<p>The fix will be included in future 11.2.0.3.x Patch Set Updates (PSUs) but no patches yet exists (at the time this article was written &#8211; Nov.9.2011). Also likely there will be patch requests for the fix to be included on top of existing 11.2.0.2 PSU, but none yet exist.</p>
<p>So I think I will stick with what I have always done, best practise or not.</p>
<pre class="brush: plain; title: ; notranslate">--From Node 1

. oraenv

-- specify ASM instance from node 1

+ASM1

-- sudo -u oracle sqlplus may not work when run the first time so run:

sudo -u oracle ls

sudo -u oracle sqlplus / as sysasm

CREATE DISKGROUP TEST EXTERNAL REDUNDANCY DISK '' [DISK ''];

SELECT STATE, NAME FROM V$ASM_DISKGROUP;

-- from node 2

. oraenv

+ASM2

sudo -u oracle sqlplus / as sysasm

&amp;nbsp;

ALTER DISKGROUP TEST MOUNT;

SELECT STATE, NAME FROM V$ASM_DISKGROUP;

&amp;nbsp;

-- if all ok then

-- from node 2

alter diskgroup test dismount;

&amp;nbsp;

-- from node 1

DROP DISKGROUP TEST;

Now we can add the disk to the desired diskgroup safely.

&amp;nbsp;

-- From node 1

. oraenv

+ASM1

sudo -u oracle sqlplus / as sysasm

-- check disks visible in v$asm_disk

-- header_status should be CANDIDATE or FORMER

set lines 120 pages 100

column path format a20

SELECT name, path, mode_status, state, header_status, os_mb, free_mb

FROM v$asm_disk ORDER BY name, path;

-- check diskgroups

select GROUP_NUMBER,NAME,STATE,TOTAL_MB,FREE_MB from v$asm_diskgroup;

-- add disks to appropriate diskgroups

alter diskgroup x add disk '/dev/hdiskX';

-- monitor rebalance

set lines 170

select * from v$asm_operation;

select GROUP_NUMBER,NAME,STATE,TOTAL_MB,FREE_MB from v$asm_diskgroup;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1327/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1327/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1327&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2013/01/15/adding-new-asm-disks-what-is-best-practise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>How to identify if a patch is available within a PSU</title>
		<link>http://jhdba.wordpress.com/2013/01/07/how-to-identify-if-a-patch-is-available-within-a-psu/</link>
		<comments>http://jhdba.wordpress.com/2013/01/07/how-to-identify-if-a-patch-is-available-within-a-psu/#comments</comments>
		<pubDate>Mon, 07 Jan 2013 08:45:08 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[identify patch]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[PSU]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1323</guid>
		<description><![CDATA[Within MoS there are a set of notes which list all the patches of each PSU and show in which PSU they came in (PSUs are cumulative). The READme.html file with each PSU does not contain this information 11.1.0.7 Patch Set Updates &#8211; List Of Fixes In Each PSU [ID 1337836.1] 11.2.0.1 Patch Set Updates [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1323&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Within MoS there are a set of notes which list all the patches of each PSU and show in which PSU they came in (PSUs are cumulative). The READme.html file with each PSU does not contain this information</p>
<p style="padding-left:30px;">11.1.0.7 Patch Set Updates &#8211; List Of Fixes In Each PSU [ID 1337836.1]<br />
11.2.0.1 Patch Set Updates &#8211; List Of Fixes In Each PSU [ID 1340010.1]<br />
11.2.0.2 Patch Set Updates &#8211; List Of Fixes In Each PSU [ID 1340011.1]<br />
11.2.0.3 Patch Set Updates &#8211; List Of Fixes In Each PSU [ID 1449750.1] </p>
<p><span style="font-family:Calibri;color:#000000;font-size:medium;">However beware if you are looking for a patch that is called Merged or something similar as you have to search the MoS notes for the included patches, not the merged patch itself</span></p>
<p><span style="font-family:Calibri;color:#000000;font-size:medium;"> </span><span style="font-family:Calibri;color:#000000;font-size:medium;">As an example Patch 12640090 is an ASM fix but it is not found in note 1337836.1</span></p>
<p><span style="font-family:Calibri;color:#000000;font-size:medium;">But if you look at patch 12640090 in MoS you find the information about the included patches</span></p>
<p style="padding-left:30px;"><span style="font-family:Calibri;color:#000000;font-size:medium;"> </span><span style="color:#000000;">(4) Bugs Fixed by This Patch</span></p>
<p style="padding-left:30px;"><span style="color:#000000;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span></p>
<p style="padding-left:30px;"><span style="color:#000000;">The following are the bugs fixed by this patch:</span></p>
<p style="padding-left:30px;"><span style="color:#000000;">  9007102: KFNMCLIENTSREGISTER12 WHEN HUNG UFG RECOVERS AND REGS FREED GPN</span></p>
<p style="padding-left:30px;"><span style="color:#000000;">  9029156: ADDITIONAL TRACING FOR ASMB AND ASMB CONNECTIONS</span></p>
<p><span style="color:#000000;"> </span><span style="font-family:Calibri;color:#000000;font-size:medium;">From note 1337836.1 I can see that 9007102 was included in PSU 8 but 9029156 is not quite as clear but it suggests it is included in PSU 13</span></p>
<p style="padding-left:30px;">Patch Details</p>
<p style="padding-left:30px;"> Patch 9029156: ADDITIONAL TRACING FOR ASMB AND ASMB CONNECTIONS </p>
<p style="padding-left:30px;">Last Updated 21-Oct-2012 21:42 (2+ months ago)<br />
Product Oracle Database Family Release Oracle 11.1.0.7.13</p>
<p style="padding-left:30px;">Size 104.5 KB<br />
Download Access Extended Support<br />
Classification General<br />
Patch Tag </p>
<p style="padding-left:30px;">Prerequisite Patches<br />
14275623<br />
DATABASE PATCH SET UPDATE 11.1.0.7.13 (INCLUDES CPUOCT2012)</p>
<p><span style="color:#000000;font-size:medium;"> </span><span style="font-family:Calibri;color:#000000;font-size:medium;">I understand Oracle have an easier tool for this but it is not generally available. I am sure there is a good reason for that but it escapes me</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1323/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1323&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2013/01/07/how-to-identify-if-a-patch-is-available-within-a-psu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Me and my Exadata Xmas present</title>
		<link>http://jhdba.wordpress.com/2012/12/25/me-and-my-exadata-xmas-present/</link>
		<comments>http://jhdba.wordpress.com/2012/12/25/me-and-my-exadata-xmas-present/#comments</comments>
		<pubDate>Tue, 25 Dec 2012 14:02:35 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Exadata]]></category>
		<category><![CDATA[xmas present]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1329</guid>
		<description><![CDATA[Actually it is a cardboard cutout &#8211; not me, the server. We have real ones downstairs in the data centre but my cardboard one doesn&#8217;t cost as much to support or keep air-conditioned. Merry Xmas to all<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1329&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Actually it is a cardboard cutout &#8211; not me, the server. We have real ones downstairs in the data centre but my cardboard one doesn&#8217;t cost as much to support or keep air-conditioned.</p>
<p>Merry Xmas to all</p>
<p><img class="alignleft size-large wp-image-1328" alt="IMG_0896" src="http://jhdba.files.wordpress.com/2012/12/img_0896.jpg?w=574&#038;h=1024" width="574" height="1024" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1329/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&#038;blog=1223552&#038;post=1329&#038;subd=jhdba&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2012/12/25/me-and-my-exadata-xmas-present/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>

		<media:content url="http://jhdba.files.wordpress.com/2012/12/img_0896.jpg?w=574" medium="image">
			<media:title type="html">IMG_0896</media:title>
		</media:content>
	</item>
	</channel>
</rss>
