<?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 Examples</title>
	<atom:link href="http://oracleexamples.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://oracleexamples.wordpress.com</link>
	<description>Examples for day to day Oracle administration</description>
	<lastBuildDate>Wed, 25 Jan 2012 02:00:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='oracleexamples.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/1b5c21728f49a01f9da430d2a26990e1?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Oracle Examples</title>
		<link>http://oracleexamples.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://oracleexamples.wordpress.com/osd.xml" title="Oracle Examples" />
	<atom:link rel='hub' href='http://oracleexamples.wordpress.com/?pushpress=hub'/>
		<item>
		<title>virtualbox script to control Virtual Machines</title>
		<link>http://oracleexamples.wordpress.com/2011/08/12/virtualbox-script-to-control-virtual-machines/</link>
		<comments>http://oracleexamples.wordpress.com/2011/08/12/virtualbox-script-to-control-virtual-machines/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 01:50:52 +0000</pubDate>
		<dc:creator>Carlos Acosta</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Oracle Server]]></category>
		<category><![CDATA[script to control virtual machines]]></category>
		<category><![CDATA[vbox]]></category>
		<category><![CDATA[vbox script]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://oracleexamples.wordpress.com/?p=468</guid>
		<description><![CDATA[Additional to my daily job, I need to &#8220;play&#8221; from time to time in my home server, it&#8217;s a quad core machine with 8 gigs of RAM and two hard drives, nothing special about it, the important thing is that &#8230; <a href="http://oracleexamples.wordpress.com/2011/08/12/virtualbox-script-to-control-virtual-machines/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=468&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Additional to my daily job, I need to &#8220;play&#8221; from time to time in my home server, it&#8217;s a quad core machine with 8 gigs of RAM and two hard drives, nothing special about it, the important thing is that it does the job.</p>
<p>About 8 month ago I upgraded the OS and VMWare server started to &#8220;complain&#8221;, specially the graphical interface, it was discontinued and almost dead, so I decided to move to VirtualBox, I also updated the OS to Oracle Linux 6.</p>
<p>I&#8217;m surprised on how complete VirtualBox is and the multiple configuration options available, the graphical interface just doesn&#8217;t make justice to the product.</p>
<p>I started creating virtual machines to test my new toy and I realized that when the virtual machines are started from the graphical interface (I use gnome) they have a &#8220;collateral&#8221; impact on the host performance, having that GUI interface sitting there cost cpu and memory, after that I understood the importance on correctly setting the &#8220;VRDE&#8221; (Virtual Box Remote Desktop Extension), let me tell you something, it really rocks.<br />
VRDE allows you to connect to your machines, linux, windows or whatever, using your normal Windows remote desktop connection, is a true console that works even if the virtual machine you are connecting to have no network.</p>
<p>I want to share with you a script that I developed using bash shell scripting to control machines on VirtualBox 4, I call it vbctl (VirtualBox control), and it really helps controlling the machines states (startup, pause,shutdown ,save state, etc).</p>
<p>Features<br />
- It will scan the virtual machines in the system and list them (screenshot 1).<br />
- It will allow you to perform operations on them (screenshot 2).<br />
- Designed for headless machines, it will only start headless machines and it will show the RDC port (VRDE Port) in the listing (screenshot 1).<br />
- VRDE activation, if you start a machine with VRDE disabled it will enable it and ask for a port number (between 5000 and 5050).</p>
<p>I want to state that this is not an intelligent script, it will do whatever you ask it to do (with some minor exceptions), for example, it will allow you to shut down a machine that&#8217;s already down.</p>
<p>Installation instructions:<br />
- Create a directory (with the virtualbox administrator user).<br />
- Save the script as vbctl.sh<br />
- chmod 740 vbctl.sh<br />
- edit your .bash_profile and create an alias (optional)<br />
alias vbctl=&#8217;/&lt;path&gt;/vbctl.sh&#8217;</p>
<div id="attachment_470" class="wp-caption aligncenter" style="width: 650px"><a href="http://oracleexamples.files.wordpress.com/2011/08/vboxctl_machines.jpg"><img class="size-full wp-image-470 " title="vboxctl_machines" src="http://oracleexamples.files.wordpress.com/2011/08/vboxctl_machines.jpg?w=640&#038;h=330" alt="Click to enlarge" width="640" height="330" /></a><p class="wp-caption-text">Screenshot 1 - Click to enlarge</p></div>
<div id="attachment_471" class="wp-caption aligncenter" style="width: 650px"><a href="http://oracleexamples.files.wordpress.com/2011/08/vboxctl_machine_details.jpg"><img class="size-full wp-image-471 " title="vboxctl_machine_details" src="http://oracleexamples.files.wordpress.com/2011/08/vboxctl_machine_details.jpg?w=640&#038;h=373" alt="click to enlarge" width="640" height="373" /></a><p class="wp-caption-text">screenshot2 - Click to enlarge</p></div>
<p>One last thing, if you improve this script please share it back!</p>
<p>Enjoy!</p>
<p><strong>Update:</strong></p>
<p>Well, the OperSource spirit arrived sooner than I expected.</p>
<p>In less than two weeks I received the first important improvement!</p>
<ul>
<li>V1.3  can now be downloaded from <a href="http://db.tt/lE2g7lZ" target="_blank">here</a></li>
</ul>
<p>Mr. <a href="http://www.enide.net/webcms/index.php?page=vbctl" target="_blank">João Figueiredo</a> improved the visual presentation and added colors! he also fixed minor problem when Virtual machine names have spaces.</p>
<p>Please <a href="http://www.enide.net/webcms/index.php?page=vbctl" target="_blank">visit his website for screenshots and details</a> or download the script <a href="http://www.enide.net/webcms/uploads/file/projects/vbctl/vbctl.sh" target="_blank">directly from his website</a>.</p>
<p>Version 1.2 is still available for <a title="vbctl_v1.2.sh" href="http://db.tt/0Zd70E3" target="_blank">download</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleexamples.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleexamples.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleexamples.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleexamples.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleexamples.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleexamples.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleexamples.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleexamples.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleexamples.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleexamples.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleexamples.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleexamples.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleexamples.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleexamples.wordpress.com/468/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=468&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleexamples.wordpress.com/2011/08/12/virtualbox-script-to-control-virtual-machines/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30021c7592fed01c1fadd84c02a884e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">carlosacostaalamo</media:title>
		</media:content>

		<media:content url="http://oracleexamples.files.wordpress.com/2011/08/vboxctl_machines.jpg" medium="image">
			<media:title type="html">vboxctl_machines</media:title>
		</media:content>

		<media:content url="http://oracleexamples.files.wordpress.com/2011/08/vboxctl_machine_details.jpg" medium="image">
			<media:title type="html">vboxctl_machine_details</media:title>
		</media:content>
	</item>
		<item>
		<title>How to install ASMLIB from Oracle&#8217;s public YUM</title>
		<link>http://oracleexamples.wordpress.com/2011/08/08/how-to-install-asmlib-from-oracles-public-yum/</link>
		<comments>http://oracleexamples.wordpress.com/2011/08/08/how-to-install-asmlib-from-oracles-public-yum/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 00:43:15 +0000</pubDate>
		<dc:creator>Carlos Acosta</dc:creator>
				<category><![CDATA[High-Availability]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Oracle Server]]></category>
		<category><![CDATA[asm]]></category>
		<category><![CDATA[asmlib]]></category>
		<category><![CDATA[Public YUM Server]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://oracleexamples.wordpress.com/?p=445</guid>
		<description><![CDATA[There are several ways to get ASMLIB, we can download it from the OTN here, or we can download it from from ULN (Unbreakable Linux Network). Also it comes in the the Unbreakable Linux media, but if you are not &#8230; <a href="http://oracleexamples.wordpress.com/2011/08/08/how-to-install-asmlib-from-oracles-public-yum/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=445&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are several ways to get ASMLIB, we can download it from the OTN <a href="http://www.oracle.com/technetwork/server-storage/linux/downloads/index-088143.html" target="_blank">here</a>, or we can download it from from ULN (Unbreakable Linux Network).</p>
<p>Also it comes in the the Unbreakable Linux media, but if you are not subscribed to ULN and you are not using Unbreakable Linux then most people go to the OTN, where you have to select your Linux flavor and then navigate to the correct file according to the linux kernel and then download the 3 files one by one.</p>
<p>I&#8217;m going to explain here how easy is to get it from Oracle&#8217;s public YUM repository (<a href="http://oracleexamples.wordpress.com/2009/12/10/how-to-setup-a-public-yum-server-for-oracle-rpms/">how to configure the public YUM repository?</a>)</p>
<p>Once you have the public YUM enabled do as root:</p>
<p><pre class="brush: plain;">

yum install oracleasm-support oracleasmlib oracleasm-`uname -r`</pre></p>
<p>ET VOILA!!! it will take just one minute to complete!.</p>
<p>Here is an example on a CentOS 5.4</p>
<p><pre class="brush: plain;">[root@scen503 yum.repos.d]# yum install oracleasm-support oracleasmlib oracleasm-`uname -r`
..
..   skipping a bunch of things...
..
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package oracleasm-2.6.18-194.el5.x86_64 0:2.0.5-1.el5 set to be updated
---&gt; Package oracleasm-support.x86_64 0:2.1.4-1.el5 set to be updated
--&gt; Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package                      Arch       Version          Repository       Size
================================================================================
Installing:
oracleasm-2.6.18-194.el5     x86_64     2.0.5-1.el5      el5_u5_base      25 k
oracleasm-support            x86_64     2.1.4-1.el5      ol5_u6_base      87 k

Transaction Summary
================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 113 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm   |  25 kB     00:00
(2/2): oracleasm-support-2.1.4-1.el5.x86_64.rpm          |  87 kB     00:00
--------------------------------------------------------------------------------
Total                                           133 kB/s | 113 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : oracleasm-support                                        1/2
Installing     : oracleasm-2.6.18-194.el5                                 2/2

Installed:
oracleasm-2.6.18-194.el5.x86_64 0:2.0.5-1.el5
oracleasm-support.x86_64 0:2.1.4-1.el5

Complete!</pre></p>
<p>Then just follow the installation guide&#8230;here are some quick steps to configure ASMLIB:</p>
<p><pre class="brush: plain;">[root@scen503]# oracleasm configure -i
Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded on boot and what permissions it will have.  The current values
will be shown in brackets ('[]').  Hitting &lt;ENTER&gt; without typing an
answer will keep that current value.  Ctrl-C will abort.

Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done</pre><br />
<pre class="brush: plain;">[root@scen503]# /usr/sbin/oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module &quot;oracleasm&quot;: oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm</pre></p>
<p>Then we need to create all disks, change <span style="color:#808080;">ASMLIBDISK1</span> according to your naming conventions:</p>
<p><pre class="brush: plain;">
/usr/sbin/oracleasm createdisk ASMLIBDISK1 /dev/sdb1
Writing disk header: done
Instantiating disk: done</pre></p>
<p>and finally scan and list the disks</p>
<p><pre class="brush: plain;">
/usr/sbin/oracleasm scandisks

/usr/sbin/oracleasm listdisks
</pre></p>
<p>Find more of ASM <a href="http://www.oracle.com/technetwork/server-storage/linux/uln-095759.html">here.</a></p>
<p>Good luck!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleexamples.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleexamples.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleexamples.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleexamples.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleexamples.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleexamples.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleexamples.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleexamples.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleexamples.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleexamples.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleexamples.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleexamples.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleexamples.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleexamples.wordpress.com/445/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=445&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleexamples.wordpress.com/2011/08/08/how-to-install-asmlib-from-oracles-public-yum/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30021c7592fed01c1fadd84c02a884e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">carlosacostaalamo</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle 11.2 XE (beta) is out!</title>
		<link>http://oracleexamples.wordpress.com/2011/04/05/oracle-11-2-xe-beta-is-out/</link>
		<comments>http://oracleexamples.wordpress.com/2011/04/05/oracle-11-2-xe-beta-is-out/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 13:48:34 +0000</pubDate>
		<dc:creator>Carlos Acosta</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Oracle Server]]></category>
		<category><![CDATA[11.2]]></category>
		<category><![CDATA[available]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[Express edition]]></category>
		<category><![CDATA[XE]]></category>

		<guid isPermaLink="false">http://oracleexamples.wordpress.com/?p=434</guid>
		<description><![CDATA[Hi eveyone, I&#8217;m so happy about this news because I have successfully used Oracle 10.2 XE before for personal and business solutions (even on banks and telecommunication companies) and it was getting older and older&#8230; Oracle 11.2 XE (beta) is &#8230; <a href="http://oracleexamples.wordpress.com/2011/04/05/oracle-11-2-xe-beta-is-out/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=434&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi eveyone, I&#8217;m so happy about this news because I have successfully used Oracle 10.2 XE before for personal and business solutions (even on banks and telecommunication companies) and it was getting older and older&#8230;</p>
<p>Oracle 11.2 XE (beta) is <a href="http://www.oracle.com/technetwork/database/express-edition/11gxe-beta-download-302519.html">available for download here</a>, for Windows 32bit and Linux 64bit.</p>
<p>You can find the <a href="http://download.oracle.com/docs/cd/E17781_01/index.htm">documentation here</a>.</p>
<p>Download size for Linux 64bit is 271MB</p>
<p>The limitations are:</p>
<ul>
<li> Only one instance can be installed per server.</li>
<li> It will use only one of the available processors.</li>
<li> It will support up to 11B of data (not including system data).</li>
<li> It will use up to 1GB of available RAM.</li>
</ul>
<p>These and other limitations like features not included can be <a href="http://download.oracle.com/docs/cd/E17781_01/license.112/e18068/toc.htm#BABJBGGA" target="_blank">found here</a>.</p>
<p>About a year ago I couln&#8217;t find a thing about the XE roadmap, I was a little bit worried about how old the 10.2 XE was and it even came to my mind that they were going to let it die, so these are very good news!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleexamples.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleexamples.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleexamples.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleexamples.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleexamples.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleexamples.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleexamples.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleexamples.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleexamples.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleexamples.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleexamples.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleexamples.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleexamples.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleexamples.wordpress.com/434/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=434&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleexamples.wordpress.com/2011/04/05/oracle-11-2-xe-beta-is-out/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30021c7592fed01c1fadd84c02a884e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">carlosacostaalamo</media:title>
		</media:content>
	</item>
		<item>
		<title>Exadata workshop &#8211; impressions and notes</title>
		<link>http://oracleexamples.wordpress.com/2011/02/09/exadata-workshop-impressions-and-notes/</link>
		<comments>http://oracleexamples.wordpress.com/2011/02/09/exadata-workshop-impressions-and-notes/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 23:49:09 +0000</pubDate>
		<dc:creator>Carlos Acosta</dc:creator>
				<category><![CDATA[High-Availability]]></category>
		<category><![CDATA[Oracle Server]]></category>
		<category><![CDATA[Performance & Tuning]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[exadata]]></category>
		<category><![CDATA[Intelligent Storage]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[storage cell]]></category>

		<guid isPermaLink="false">http://oracleexamples.wordpress.com/?p=409</guid>
		<description><![CDATA[I have read articles and specs on Exadata before, but now I have had the opportunity to assist to an Exadata Hands-On workshop. I&#8217;m writing these impressions without talking too much about the specs, they are everywhere, some links here. &#8230; <a href="http://oracleexamples.wordpress.com/2011/02/09/exadata-workshop-impressions-and-notes/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=409&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have read articles and specs on Exadata before, but now I have had the opportunity to assist to an Exadata Hands-On workshop.</p>
<p>I&#8217;m writing these impressions without talking too much about the specs, they are everywhere, <a title="Oracle Unveils Exadata Version 2" href="http://oracleexamples.wordpress.com/2009/09/21/oracle-unveils-exadata-version-2-the-first-database-machine-for-oltp/" target="_blank">some links here</a>.</p>
<p>Basically, Exadata&#8217;s architecture splits processing in two different layers, Database servers (compute processing) and the Storage servers called &#8220;Storage Cells&#8221; (data processing). Each Storage Cell consist of servers with 12 internal disks each (the numbers of servers will vary from Quarter, Mid or Full rack configurations), when a request arrives, the storage evaluates and filters out unneeded rows, Oracle explains that its common to send 10x less data to the database servers, this translate into improved IO and smaller SGAs, on top of that the servers have dual ported cards 40Gb/sec InfiniBand.</p>
<p>Other things that Exadata can offload to the storage side is the filtering for the incremental backups and the processing power for the encryption.</p>
<p><span id="more-409"></span></p>
<p>Note that joins, aggregations and other complex query processing is done on the database servers, not the storage.</p>
<p>Also, the storage can create indexes that maintain summary of the data in memory, like MIN and MAX values, this way Oracle knows if a block contains data within the range of the where condition and skip those that don&#8217;t, storage indexes are completely automatic and transparent.</p>
<p>Exadata also offers two types of compression, Query (speed optimized) and Archive (size optimized), 2 levels each (HIGH and LOW), the compression is built on &#8220;Hybrid Columnar Compression Technology&#8221; meaning that the data is organized and compressed by column.</p>
<p>Reading compressed tables is also faster, reducing the IO in a proportion similar to the compression ratio. I saw compression ratios from 1.6 (OLTP Low) to 54.7 (Archive High), companies can save a lot on storage while speeding up the IO.</p>
<p>In addition to the disks, Exadata can use Flash cards, yes, that&#8217;s right, no SAS or SATA interfaces but internal cards, it can be used as CACHE which will speed up the access, specially OLTP databases, the flash memory can also be configured as ASM diskgroups.</p>
<p>Oracle is also marketing Exadata for database consolidation, so it includes some features as a resource manager for the IO (IORM &#8211; programmed directly on the cells) and the database caging (limit the number of CPUs a database can use) allowing companies to mix and consolidate databases while maintaining priorities.</p>
<p>I also noticed that Exadata relies a lot of its processing on parallelism, Enterprise manager allows to see the parallel degree of the queries and some other important values: <em>Database time</em>, <em>real time</em> and also <em>how much processing is being offloaded on the storage side</em> (cool!). </p>
<p>The way I see it, Exadata is such a beast because:</p>
<ol>
<li>- Two layers of processing &#8211; database nodes and storage cells working together. Database servers dedicated to compute data,  offloading to the storage row-filtering, compression, encryption,etc.</li>
<li>-  Brute and modular force, Powerful servers, plenty of memory and ultra fast networking, fast storage, all of them coordinating tasks to make things faster, simply put &#8211; less bottlenecks.</li>
</ol>
<p>Please notice that I just experienced all this in a workshop, not the &#8220;real world&#8221;, I do consider that the architecture is robust and intelligent, it provides brute force and speed &#8220;bumper to bumper&#8221;, so far, I love it!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleexamples.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleexamples.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleexamples.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleexamples.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleexamples.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleexamples.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleexamples.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleexamples.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleexamples.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleexamples.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleexamples.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleexamples.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleexamples.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleexamples.wordpress.com/409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=409&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleexamples.wordpress.com/2011/02/09/exadata-workshop-impressions-and-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30021c7592fed01c1fadd84c02a884e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">carlosacostaalamo</media:title>
		</media:content>
	</item>
		<item>
		<title>Benefits and consequences of the NOLOGGING option</title>
		<link>http://oracleexamples.wordpress.com/2010/08/28/benefits-and-consequences-of-the-nologging-option/</link>
		<comments>http://oracleexamples.wordpress.com/2010/08/28/benefits-and-consequences-of-the-nologging-option/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 03:53:49 +0000</pubDate>
		<dc:creator>Carlos Acosta</dc:creator>
				<category><![CDATA[Backup & Recovery]]></category>
		<category><![CDATA[Oracle Server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[create table as select]]></category>
		<category><![CDATA[ctas]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[nologging]]></category>
		<category><![CDATA[ORA-26040]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[recoverable]]></category>

		<guid isPermaLink="false">http://oracleexamples.wordpress.com/?p=381</guid>
		<description><![CDATA[I still find confusion out there about the LOGGING and NOLOGGING clauses when performing DML and DDL operations, the reality is that the NOLOGGING clause will work only on particular conditions, but all regular inserts,updates and deletes will still log &#8230; <a href="http://oracleexamples.wordpress.com/2010/08/28/benefits-and-consequences-of-the-nologging-option/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=381&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I still find confusion out there about the LOGGING and NOLOGGING clauses when performing DML and DDL operations, the reality is that the NOLOGGING clause will work only on particular conditions, but all regular inserts,updates and deletes will still log the operations.</p>
<p>The benefits of the NOLOGGING option are:</p>
<ul>
<li> Will save disk space when the archive option is enabled.</li>
<li>Will largely reduce I/O on the redologs.</li>
<li> Will reduce the time it takes to complete the operation.</li>
</ul>
<p>Please note that NOLOGGING operations will only reduce -not eliminate- the logging.</p>
<p>Lets see an example -</p>
<p><pre class="brush: sql;">

--   First: we create an empty table with the nologging clause
SQL&gt;  create table logging_example nologging as select * from dba_objects where 1=2;

Table created.

--Now let's enable the statistics and perform a couple of tests:

SQL&gt; set autotrace on statistics
SQL&gt; set timing on

-- insert the records the traditional way
SQL&gt; alter system flush buffer_cache;  --clean the cache to compare the speeds in equal conditions

System altered.

Elapsed: 00:00:01.49

SQL&gt; insert into logging_example select * from dba_objects;

50864 rows created.

Elapsed: 00:00:01.59

Statistics
----------------------------------------------------------
 0  recursive calls
 5250  db block gets
 6766  consistent gets
 982  physical reads
5636712  redo size --without the APPEND hint
 670  bytes sent via SQL*Net to client
 586  bytes received via SQL*Net from client
 3  SQL*Net roundtrips to/from client
 1  sorts (memory)
 0  sorts (disk)
 50864  rows processed

-- insert the records with the APPEND hint (nologging)
SQL&gt; alter system flush buffer_cache;  --clean the cache to compare the speeds in equal conditions

System altered.

Elapsed: 00:00:01.06

SQL&gt; insert /*+ append */  into logging_example select * from dba_objects;

50864 rows created.

Elapsed: 00:00:00.59

Statistics
----------------------------------------------------------
 0  recursive calls
 743  db block gets
 5374  consistent gets
 944  physical reads
2200  redo size --with the APPEND hint
 654  bytes sent via SQL*Net to client
 604  bytes received via SQL*Net from client
 3  SQL*Net roundtrips to/from client
 1  sorts (memory)
 0  sorts (disk)
 50864  rows processed

</pre></p>
<p>We can see that there is a big difference on the<strong> redo size</strong> generated by each insert, there are many post and articles on the internet  that show the speed benefits when using the NOLOGGING option, but here I mainly want to clarify that a regular insert (no APPEND hint) will still generate redologs even if the table have been created with the NOLOGGING option.</p>
<p><strong>What happens to the data after a restore when a nologging operation was performed on it?</strong><br />
<span id="more-381"></span><br />
I will present some scenarios to show the consequences when we need to perform a restore after a nologging transaction, this way we will know what to expect and we can better prepare ourselves in case of a disaster.</p>
<p>I took a full database backup, now I will create several tables with different options to see what happens after a restore, you might see some surprises here!</p>
<p>Scenarios:</p>
<ul>
<li>Table &#8220;create as select&#8221; with the nologging option (table_ctas_nologging).</li>
<li>Regular table &#8220;create as select&#8221; (table_ctas_logging)</li>
<li>A nologging table created empty, and a regular (logging) insert (table_ctas_nologging_insert)</li>
<li>Table created with nologging, then two inserts, one with and one without logging (table_insert_mixed)</li>
<li>Regular logging table, with a nologging index (table_ctas_index_nologging)</li>
</ul>
<p><pre class="brush: sql;">
SQL&gt; create table table_ctas_nologging nologging as select * from dba_objects;

Table created.

SQL&gt; create table table_ctas_logging as select * from dba_objects;

Table created.

SQL&gt; create table table_ctas_nologging_insert nologging as select * from dba_objects where 1=2;

Table created.

SQL&gt;  insert into table_ctas_nologging_insert  select * from dba_objects;

50864 rows created.

SQL&gt; commit;

Commit complete.

SQL&gt; create table table_insert_mixed nologging as select * from dba_objects where 1=2;

Table created.

SQL&gt; insert into table_insert_mixed select * from dba_objects;

50866 rows created.

SQL&gt; insert into table_insert_mixed select /*+ append */ * from dba_objects;

50866 rows created.

SQL&gt; commit;

Commit complete.

SQL&gt; select count(*) from table_insert_mixed;

 COUNT(*)
----------
 101732

SQL&gt; create table table_ctas_index_nologging as select * from dba_objects;

Table created.

SQL&gt; create index IDXNOLOG  on  table_ctas_index_nologging (object_id)  nologging;

Index created.

</pre></p>
<p>Now I will shutdown the database and restore the tablespace from the backup.<br />
Next is an extract from RMAN</p>
<p><pre class="brush: sql;">
rman target /

Recovery Manager: Release 10.2.0.4.0 - Production on Wed Aug 25 17:32:20 2010

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: ORCL (DBID=1247573001)

RMAN&gt; shutdown immediate

using target database control file instead of recovery catalog
database closed
database dismounted
Oracle instance shut down

RMAN&gt; startup mount;

Oracle instance started
database mounted

Total System Global Area     285212672 bytes

Fixed Size                     1267068 bytes
Variable Size                155191940 bytes
Database Buffers             125829120 bytes
Redo Buffers                   2924544 bytes

RMAN&gt; restore tablespace users;

Starting restore at 25-AUG-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=152 devtype=DISK

channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00004 to +DATA/orcl/datafile/users.259.719792191
channel ORA_DISK_1: reading from backup piece +DATA/orcl/backupset/2010_08_25/nnndf0_tag20100825t171657_0.272.727982219
channel ORA_DISK_1: restored backup piece 1
piece handle=+DATA/orcl/backupset/2010_08_25/nnndf0_tag20100825t171657_0.272.727982219 tag=TAG20100825T171657
channel ORA_DISK_1: restore complete, elapsed time: 00:00:05
Finished restore at 25-AUG-10

RMAN&gt; recover tablespace users;

Starting recover at 25-AUG-10
using channel ORA_DISK_1

starting media recovery
media recovery complete, elapsed time: 00:00:05

Finished recover at 25-AUG-10

RMAN&gt; alter database open;

database opened
</pre></p>
<p>Now lets see the status of the tables:</p>
<p><pre class="brush: sql;">
SQL&gt; select count(*) from table_ctas_nologging ;
 select count(*) from table_ctas_nologging
 *
 ERROR at line 1:
 ORA-01578: ORACLE data block corrupted (file # 4, block # 404)
 ORA-01110: data file 4: '+DATA/orcl/datafile/users.259.719792191'
 ORA-26040: Data block was loaded using the NOLOGGING option
</pre></p>
<p>That doesn&#8217;t look good, lets see the next table</p>
<p><pre class="brush: sql;">SQL&gt; select count(*) from table_ctas_logging ;

COUNT(*)
----------
50863
</pre></p>
<p>Good, no problem here, the next scenario is more interesting, the table was created with the NOLOGGING option, but the inserts were done without the APPEND hint</p>
<p><pre class="brush: sql;">
SQL&gt; select count (*) from table_ctas_nologging_insert;

COUNT(*)
----------
50864
</pre></p>
<p>Good, no problem here, now let&#8217;s see our table with half data inserted with logging and half with nologging</p>
<p><pre class="brush: sql;">
SQL&gt; select count(*) from table_insert_mixed;
select count(*) from table_insert_mixed
*
ERROR at line 1:
ORA-01578: ORACLE data block corrupted (file # 4, block # 4363)
ORA-01110: data file 4: '+DATA/orcl/datafile/users.259.719792191'
ORA-26040: Data block was loaded using the NOLOGGING option
</pre></p>
<p>Wow, the whole table is unredable!</p>
<p>Now lets see the table with the NOLOGGING  index .</p>
<p><pre class="brush: sql;">
&lt;pre&gt;SQL&gt; select  count(*) from table_ctas_index_nologging;

COUNT(*)
----------
50865
</pre></p>
<p>Ok, thats nice, the table is accessible, but what happend if we try to use the index?</p>
<p><pre class="brush: sql;">
SQL&gt;  select object_id from table_ctas_index_nologging  where object_id=1;
select object_id from table_ctas_index_nologging  where object_id=1
*
ERROR at line 1:
ORA-01578: ORACLE data block corrupted (file # 4, block # 2821)
ORA-01110: data file 4: '+DATA/orcl/datafile/users.259.719792191'
ORA-26040: Data block was loaded using the NOLOGGING option
</pre></p>
<p>I tried to rebuil the index but I was still getting the same error message, at the end I was forced to drop it and recreate it.</p>
<p>Conclusions:</p>
<ul>
<li> Use the NOLOGGING option only on temporary/working/staging tables.</li>
<li> Always perform a backup after a NOLOGGING operation.</li>
<li> Unless explicitly indicated, DDLs like CTAS and DMLs like inserts will log all operations.</li>
</ul>
<blockquote><p><strong>FROM ORACLE DOCUMENTATION:</strong></p>
<p><code>NOLOGGING</code> is supported in only a subset of the locations that support <code>LOGGING</code>. Only the following operations support the <code>NOLOGGING</code> mode:</p>
<p><a id="SQLRF52284" name="SQLRF52284"></a></p>
<p>DML:</p>
<ul>
<li> Direct-path <code>INSERT</code> (serial or parallel) resulting either from an <code>INSERT</code> or a <code>MERGE</code> statement. <code>NOLOGGING</code> is not applicable to any <code>UPDATE</code> operations resulting from the <code>MERGE</code> statement.</li>
<li> Direct Loader (SQL*Loader)</li>
</ul>
<p><a id="SQLRF52285" name="SQLRF52285"></a></p>
<p>DDL:</p>
<ul>
<li> <code>CREATE</code> <code>TABLE</code> &#8230; <code>AS</code> <code>SELECT</code></li>
<li> <code>CREATE</code> <code>TABLE</code> &#8230; <code>LOB_storage_clause</code> &#8230; <code>LOB_parameters</code> &#8230; <code>NOCACHE</code> | <code>CACHE</code> <code>READS</code></li>
<li> <code>ALTER</code> <code>TABLE</code> &#8230; <code>LOB_storage_clause</code> &#8230; <code>LOB_parameters</code> &#8230; <code>NOCACHE</code> | <code>CACHE</code> <code>READS</code> (to specify logging of newly created LOB columns)</li>
<li> <code>ALTER</code> <code>TABLE</code> &#8230; <code>modify_LOB_storage_clause</code> &#8230; <code>modify_LOB_parameters</code> &#8230; <code>NOCACHE</code> | <code>CACHE</code> <code>READS</code> (to change logging of existing LOB columns)</li>
<li> <code>ALTER</code> <code>TABLE</code> &#8230; <code>MOVE</code></li>
<li> <code>ALTER</code> <code>TABLE</code> &#8230; (all partition operations that involve data movement)
<ul>
<li> <code>ALTER</code> <code>TABLE</code> &#8230; <code>ADD</code> <code>PARTITION</code> (hash partition only)</li>
<li> <code>ALTER</code> <code>TABLE</code> &#8230; <code>MERGE</code> <code>PARTITIONS</code></li>
<li> <code>ALTER</code> <code>TABLE</code> &#8230; <code>SPLIT</code> <code>PARTITION</code></li>
<li> <code>ALTER</code> <code>TABLE</code> &#8230; <code>MOVE</code> <code>PARTITION</code></li>
<li> <code>ALTER</code> <code>TABLE</code> &#8230; <code>MODIFY</code> <code>PARTITION</code> &#8230; <code>ADD SUBPARTITION</code></li>
<li> <code>ALTER</code> <code>TABLE</code> &#8230; <code>MODIFY</code> <code>PARTITION</code> &#8230; <code>COALESCE</code> <code>SUBPARTITION</code></li>
</ul>
</li>
<li> <code>CREATE</code> <code>INDEX</code></li>
<li> <code>ALTER</code> <code>INDEX</code> &#8230; <code>REBUILD</code></li>
<li> <code>ALTER</code> <code>INDEX</code> &#8230; <code>REBUILD</code> <code>[SUB]PARTITION</code></li>
<li> <code>ALTER</code> <code>INDEX</code> &#8230; <code>SPLIT</code> <code>PARTITION</code></li>
</ul>
<p>For objects other than LOBs, if you omit  this clause, then the logging attribute of the object defaults to the  logging attribute of the tablespace in which it resides.</p>
<p>For LOBs, if you omit this clause, then:</p>
<ul>
<li> If you specify <code>CACHE</code>, then <code>LOGGING</code> is used (because you cannot have <code>CACHE</code> <code>NOLOGGING</code>).</li>
<li> If you specify <code>NOCACHE</code> or <code>CACHE</code> <code>READS</code>, then the logging attribute defaults to the logging attribute of the tablespace in which it resides.</li>
</ul>
<p><code>NOLOGGING</code> does not apply to LOBs that are stored internally (in the table with row data). If you specify <code>NOLOGGING</code> for LOBs with values less than 4000 bytes and you have not disabled <code>STORAGE</code> <code>IN</code> <code>ROW</code>, then Oracle ignores the <code>NOLOGGING</code> specification and treats the LOB data the same as other table data.</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleexamples.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleexamples.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleexamples.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleexamples.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleexamples.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleexamples.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleexamples.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleexamples.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleexamples.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleexamples.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleexamples.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleexamples.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleexamples.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleexamples.wordpress.com/381/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=381&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleexamples.wordpress.com/2010/08/28/benefits-and-consequences-of-the-nologging-option/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30021c7592fed01c1fadd84c02a884e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">carlosacostaalamo</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle Widgets for the Grid Control / Oracle Enterprise Manager</title>
		<link>http://oracleexamples.wordpress.com/2010/06/11/oracle-widgets-for-the-grid-control-oracle-enterprise-manager/</link>
		<comments>http://oracleexamples.wordpress.com/2010/06/11/oracle-widgets-for-the-grid-control-oracle-enterprise-manager/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 11:04:22 +0000</pubDate>
		<dc:creator>Carlos Acosta</dc:creator>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Oracle Server]]></category>
		<category><![CDATA[Performance & Tuning]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[OEM]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Enterprise Manager]]></category>
		<category><![CDATA[search OEM target]]></category>
		<category><![CDATA[search oracle grid control]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://oracleexamples.wordpress.com/?p=377</guid>
		<description><![CDATA[Oracle desktop Widgets for the Grid Control <a href="http://oracleexamples.wordpress.com/2010/06/11/oracle-widgets-for-the-grid-control-oracle-enterprise-manager/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=377&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">Hi to all</div>
<div id="_mcePaste">I found on the Oracle Website 3 desktop widgets for the Oracle OEM and I am starting to find them useful.</div>
<div id="_mcePaste">The first widget will allow you to search OEM targets on your desktop and open their page on your browser.</div>
<div id="_mcePaste">The second one will show the top 5 high-load databases(ordered by the Average Active Sessions performance or load metric) and the third one is for monitoring the health and availability.</div>
<div id="_mcePaste">In order to work you will have to provide them the URL console and the account username and password.</div>
<div id="_mcePaste">Enjoy!</div>
<div><a href="http://www.oracle.com/technetwork/oem/grid-control/index-084332.html" target="_blank">http://www.oracle.com/technetwork/oem/grid-control/index-084332.html</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleexamples.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleexamples.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleexamples.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleexamples.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleexamples.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleexamples.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleexamples.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleexamples.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleexamples.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleexamples.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleexamples.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleexamples.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleexamples.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleexamples.wordpress.com/377/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=377&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleexamples.wordpress.com/2010/06/11/oracle-widgets-for-the-grid-control-oracle-enterprise-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30021c7592fed01c1fadd84c02a884e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">carlosacostaalamo</media:title>
		</media:content>
	</item>
		<item>
		<title>Finding a locking session</title>
		<link>http://oracleexamples.wordpress.com/2010/04/08/find-a-locking-session/</link>
		<comments>http://oracleexamples.wordpress.com/2010/04/08/find-a-locking-session/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 20:03:43 +0000</pubDate>
		<dc:creator>Carlos Acosta</dc:creator>
				<category><![CDATA[Oracle Server]]></category>
		<category><![CDATA[Performance & Tuning]]></category>
		<category><![CDATA[locker]]></category>
		<category><![CDATA[locking sessions]]></category>
		<category><![CDATA[locks]]></category>
		<category><![CDATA[ORA-00054]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[waiter]]></category>

		<guid isPermaLink="false">http://oracleexamples.wordpress.com/?p=354</guid>
		<description><![CDATA[How to identify lockers This article will explain about locks on rows and on objects in ORACLE. Locks on rows can cause performance problems or even impede a transaction from finishing, when there are processes running for long time we &#8230; <a href="http://oracleexamples.wordpress.com/2010/04/08/find-a-locking-session/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=354&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How to identify lockers</p>
<p>This article will explain about locks on rows and on objects in ORACLE.</p>
<p>Locks on rows can cause performance problems or even impede a transaction from finishing, when there are processes running for long time we need to validate that they are not waiting on a row(s).</p>
<p>When there is a lock on a row there is also a lock on the dependent objects, if we want to perform a DDL on a locked object we will get an ORA-00054 error.</p>
<p><strong>Scenario 1:</strong></p>
<p>Terminal A is locking a row and Terminal B is waiting on it:<br />
<span id="more-354"></span><br />
<strong>&#8211;TERMINAL A</strong></p>
<p><pre class="brush: sql;">
SQL&gt; update map1 set col2='MYLOCK' where col1=300;

1 row updated.

SQL&gt;
(..no commit here..)
</pre></p>
<p><strong>&#8211;TERMINAL B</strong></p>
<p><pre class="brush: sql;">
SQL&gt; update map1 set col2='NEWVAL2' where col1=300;
(..waiting..)
</pre></p>
<p>Now, lets create a session as a DBA User to monitor the system, this query will tell the locking and waiting SIDs.</p>
<p><pre class="brush: sql;">
SELECT vh.sid locking_sid,
 vs.status status,
 vs.program program_holding,
 vw.sid waiter_sid,
 vsw.program program_waiting
FROM v$lock vh,
 v$lock vw,
 v$session vs,
 v$session vsw
WHERE     (vh.id1, vh.id2) IN (SELECT id1, id2
 FROM v$lock
 WHERE request = 0
 INTERSECT
 SELECT id1, id2
 FROM v$lock
 WHERE lmode = 0)
 AND vh.id1 = vw.id1
 AND vh.id2 = vw.id2
 AND vh.request = 0
 AND vw.lmode = 0
 AND vh.sid = vs.sid
 AND vw.sid = vsw.sid;
</pre></p>
<pre>LOCKING_SID STATUS   PROGRAM_HOLDING                WAITER_SID PROGRAM_WAITING
----------- -------- ------------------------------ ---------- ------------------------------
 144        ACTIVE   sqlplus@rh4_node1.fadeserver.n        131 sqlplus@rh4_node1.fadeserver.n
                     et (TNS V1-V3)                            et (TNS V1-V3)</pre>
<p>Here is an expanded version of the same query, it also includes jobs information.</p>
<p><pre class="brush: sql;">
SELECT vs.username,
 vs.osuser,
 vh.sid locking_sid,
 vs.status status,
 vs.module module,
 vs.program program_holding,
 jrh.job_name,
 vsw.username,
 vsw.osuser,
 vw.sid waiter_sid,
 vsw.program program_waiting,
 jrw.job_name,
 'alter system kill session ' || ''''|| vh.sid || ',' || vs.serial# || ''';'  &quot;Kill_Command&quot;
FROM v$lock vh,
 v$lock vw,
 v$session vs,
 v$session vsw,
 dba_scheduler_running_jobs jrh,
 dba_scheduler_running_jobs jrw
WHERE     (vh.id1, vh.id2) IN (SELECT id1, id2
 FROM v$lock
 WHERE request = 0
 INTERSECT
 SELECT id1, id2
 FROM v$lock
 WHERE lmode = 0)
 AND vh.id1 = vw.id1
 AND vh.id2 = vw.id2
 AND vh.request = 0
 AND vw.lmode = 0
 AND vh.sid = vs.sid
 AND vw.sid = vsw.sid
 AND vh.sid = jrh.session_id(+)
 AND vw.sid = jrw.session_id(+);
</pre></p>
<pre>USERNAME OSUSER  LOCKING_SID STATUS   MODULE  PROGRAM_HO JOB_N USERNAME OSUSER  WAITER_SID PROGRAM_WA JOB_N Kill_
-------- ------- ----------- -------- ------- ---------- ----- -------- ------- ---------- ---------- ----- -----
CACOSTA  oracle          144 ACTIVE   SQL*Plu sqlplus@rh       CACOSTA  oracle         131 sqlplus@rh       alter
                                      s       4_node1.fa                                   4_node1.fa        syst
                                              deserver.n                                   deserver.n       em ki
                                              et (TNS V1                                   et (TNS V1       ll se
                                              -V3)                                         -V3)             ssion
                                                                                                            '144
                                                                                                            ,3897
                                                                                                            3';</pre>
<p>We can see that the user CACOSTA, sid 144 is locking the session 131.</p>
<p><strong>Scenario 2:</strong><br />
We are performing a DDL (alter somehow the object) and we get an ORA-00054 error.</p>
<p>I have canceled the waiting session in the example above and now I&#8217;m creating an index on the table:</p>
<p><pre class="brush: sql;">
SQL&gt; create index ind2 on map1(col2);
create index ind2 on map1(col2)
 *
ERROR at line 1:
ORA-00054: resource busy and acquire with NOWAIT specified
</pre></p>
<p>If I re-run the query fromt he previous scenario it won&#8217;t return any rows, because there are no waiting sessions (I canceled the waiting update).</p>
<p>First we need to find out the object ID:</p>
<p><pre class="brush: sql;">
SQL&gt; select object_id from dba_objects
 2  where owner='CACOSTA'
 3  and object_name='MAP1';

 OBJECT_ID
----------
 52255
</pre></p>
<p>Now lets see who is blocking the object 52255</p>
<p><pre class="brush: sql;">
SELECT c.owner,
 c.object_name,
 c.object_type,
 b.sid,
 b.serial#,
 b.status,
 b.osuser,
 b.machine
FROM v$locked_object a, v$session b, dba_objects c
WHERE b.sid = a.session_id AND a.object_id = c.object_id
and a.object_id=52255;

</pre></p>
<pre>OWNER    OBJECT_NAME   OBJECT_TYPE                SID    SERIAL# STATUS   OSUSER  MACHINE
-------- ------------- ------------------- ---------- ---------- -------- ------- ---------------
CACOSTA  MAP1          TABLE                      144      38973 ACTIVE   oracle  rh4_node1.fades
                                                                                  erver.net</pre>
<p>Good luck!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleexamples.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleexamples.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleexamples.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleexamples.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleexamples.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleexamples.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleexamples.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleexamples.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleexamples.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleexamples.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleexamples.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleexamples.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleexamples.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleexamples.wordpress.com/354/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=354&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleexamples.wordpress.com/2010/04/08/find-a-locking-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30021c7592fed01c1fadd84c02a884e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">carlosacostaalamo</media:title>
		</media:content>
	</item>
		<item>
		<title>expdp error: 31623 and ORA-12805 in cluster 10.2.0.4</title>
		<link>http://oracleexamples.wordpress.com/2010/02/17/expdp-error-31623-and-ora-12805-in-cluster-10-2-0-4/</link>
		<comments>http://oracleexamples.wordpress.com/2010/02/17/expdp-error-31623-and-ora-12805-in-cluster-10-2-0-4/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 22:16:49 +0000</pubDate>
		<dc:creator>Carlos Acosta</dc:creator>
				<category><![CDATA[Backup & Recovery]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Oracle Server]]></category>
		<category><![CDATA[31623]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[expdp]]></category>
		<category><![CDATA[ORA-12805]]></category>

		<guid isPermaLink="false">http://oracleexamples.wordpress.com/?p=325</guid>
		<description><![CDATA[I was getting an error with expdp in our cluster 10.2.0.4 running on Red-Hat UDE-00008: operation generated ORACLE error 31623 ORA-31623: a job is not attached to this session via the specified handle ORA-06512: at &#8220;SYS.DBMS_DATAPUMP&#8221;, line 2772 ORA-06512: at &#8230; <a href="http://oracleexamples.wordpress.com/2010/02/17/expdp-error-31623-and-ora-12805-in-cluster-10-2-0-4/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=325&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was getting an error with expdp in our cluster 10.2.0.4 running on Red-Hat</p>
<p><span style="color:#008000;">UDE-00008: operation generated ORACLE error 31623<br />
ORA-31623: a job is not attached to this session via the specified handle<br />
ORA-06512: at &#8220;SYS.DBMS_DATAPUMP&#8221;, line 2772<br />
ORA-06512: at &#8220;SYS.DBMS_DATAPUMP&#8221;, line 3886<br />
ORA-06512: at line 1</span></p>
<p><span style="color:#008000;">ORA-12805: parallel query server died unexpectedly</span></p>
<p>I found the solution in metalink, it is actually a bug and Oracle recommends to run these scripts, they will rebuild Datapump&#8217;s dictionary objects and the last one will recompile the invalid ones:</p>
<p><pre class="brush: plain;">-

@$ORACLE_HOME/rdbms/admin/catdph.sql

@$ORACLE_HOME/rdbms/admin/prvtdtde.plb

@$ORACLE_HOME/rdbms/admin/catdpb.sql

@$ORACLE_HOME/rdbms/admin/dbmspump.sql

@$ORACLE_HOME/rdbms/admin/utlrp.sql</pre></p>
<p>After I ran all the scripts I had to bounce the database, but at least I have my exports up and running again.<br />
be careful with the utlrp.sql, because if there are other DDLs running you might get deadlocks</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleexamples.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleexamples.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleexamples.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleexamples.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleexamples.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleexamples.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleexamples.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleexamples.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleexamples.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleexamples.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleexamples.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleexamples.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleexamples.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleexamples.wordpress.com/325/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=325&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleexamples.wordpress.com/2010/02/17/expdp-error-31623-and-ora-12805-in-cluster-10-2-0-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30021c7592fed01c1fadd84c02a884e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">carlosacostaalamo</media:title>
		</media:content>
	</item>
		<item>
		<title>Commonly used srvctl commands</title>
		<link>http://oracleexamples.wordpress.com/2010/01/22/most-used-srvctl-commands/</link>
		<comments>http://oracleexamples.wordpress.com/2010/01/22/most-used-srvctl-commands/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 17:22:33 +0000</pubDate>
		<dc:creator>Carlos Acosta</dc:creator>
				<category><![CDATA[High-Availability]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Oracle Server]]></category>
		<category><![CDATA[asm]]></category>
		<category><![CDATA[instance]]></category>
		<category><![CDATA[nodeapps]]></category>
		<category><![CDATA[RAC]]></category>
		<category><![CDATA[rac commands]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[srvctl]]></category>
		<category><![CDATA[srvctl commands]]></category>
		<category><![CDATA[start rac database]]></category>
		<category><![CDATA[stop rac database]]></category>

		<guid isPermaLink="false">http://oracleexamples.wordpress.com/?p=312</guid>
		<description><![CDATA[What is srvctl? it is the Server Control Utility, we use SRVCTL to start and stop the database and instances, manage configuration information, and to add, move or remove instances and services. These are some of the srvctl commands I &#8230; <a href="http://oracleexamples.wordpress.com/2010/01/22/most-used-srvctl-commands/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=312&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What is srvctl? it is the Server Control Utility, we use SRVCTL to start and stop the database and instances, manage configuration information, and to add, move or remove instances and services.</p>
<p>These are some of the srvctl commands I frequently use, this is not a complete reference guide.</p>
<p>I organized the commands as follow:</p>
<ul>
<li>To start a rac database</li>
<li>To stop a rac database</li>
<li>To check status and configurations</li>
<li>To start and stop instances</li>
<li>To start, stop and manage services</li>
</ul>
<p><span id="more-312"></span><strong>Start a rac database (order: nodeapps &#8211; asm &#8211; database)</strong></p>
<p><span style="color:#808000;">srvctl start nodeapps -n <em>nodename</em><br />
srvctl start asm -n </span><span style="color:#808000;"><em>nodename</em></span><span style="color:#808000;"><em></em></span><br />
<span style="color:#808000;"> srvctl start database -d <em>dbname</em><br />
<span style="color:#000000;">options are: </span>srvctl start database -d </span><span style="color:#808000;"><em>dbname </em></span><span style="color:#808000;">-o open | -o mount | -o nomount</span></p>
<p><strong>Stop a rac database (order: database &#8211; asm &#8211; nodeapps)</strong><br />
<span style="color:#808000;"> srvctl stop database -d </span><span style="color:#808000;"><em>dbname </em></span><span style="color:#808000;">-o immediate</span><br />
options are: <span style="color:#808000;">srvctl stop database -d </span><span style="color:#808000;"><em>dbname </em></span><span style="color:#808000;">-o normal | -o transactional | -o immediate | -o abort</span></p>
<p><span style="color:#808000;">srvctl stop asm -n </span><span style="color:#808000;"><em>nodename</em></span><span style="color:#808000;"><em></em></span><br />
options are: <span style="color:#808000;">srvctl stop asm -n </span><span style="color:#808000;"><em>nodename </em></span><span style="color:#808000;">-o immediate</span></p>
<p><span style="color:#808000;">srvctl stop nodeapps -n </span><span style="color:#808000;"><em>nodename</em></span><span style="color:#808000;"><em></em></span></p>
<p><strong>To check status and configurations</strong><br />
Nodeapps:<br />
<span style="color:#808000;"> srvctl status nodeapps -n </span><span style="color:#808000;"><em>nodename</em></span><span style="color:#808000;"><em></em></span></p>
<p><span style="color:#808000;">srvctl config nodeapps -n </span><span style="color:#808000;"><em>nodename</em></span><span style="color:#808000;"><em></em></span></p>
<p>ASM:<br />
<span style="color:#808000;"> srvctl status asm -n </span><span style="color:#808000;"><em>nodename</em></span><span style="color:#808000;"><em></em></span><br />
<span style="color:#808000;"> srvctl config asm -n </span><span style="color:#808000;"><em>nodename</em></span><span style="color:#808000;"><em></em></span></p>
<p>Database:<br />
<span style="color:#808000;"> srvctl status database -d </span><span style="color:#808000;"><em>dbname</em></span><br />
<span style="color:#808000;">srvctl config database -d </span><span style="color:#808000;"><em>dbname</em></span><span style="color:#808000;"> </span>(shows instances name, node and oracle home)</p>
<p>Instance:<br />
<span style="color:#808000;"> srvctl status instance -d </span><span style="color:#808000;"><em>dbname </em></span><span style="color:#808000;">-i <em>instancename</em><br />
</span></p>
<p>Services:<br />
<span style="color:#808000;"> srvctl status service -d </span><span style="color:#808000;"><em>dbname</em></span></p>
<p><strong>To start and stop instances</strong></p>
<p><span style="color:#808000;">srvctl start instance -d </span><span style="color:#808000;"><em>dbname </em></span><span style="color:#808000;">-i </span><span style="color:#808000;"><em>instancename</em></span><br />
<span style="color:#808000;"> srvctl stop instance -d </span><span style="color:#808000;"><em>dbname</em></span><span style="color:#808000;"> -i </span><span style="color:#808000;"><em>instancename</em></span></p>
<p><strong>To start, stop and manage services</strong><br />
<span style="color:#808000;"> srvctl status service -d </span><span style="color:#808000;"><em>dbname</em></span><br />
<span style="color:#808000;"> srvctl config service -d </span><span style="color:#808000;"><em>dbname</em></span><br />
<span style="color:#808000;"> srvctl start service -d </span><span style="color:#808000;"><em>dbname </em></span><span style="color:#808000;">-s <em>servicename</em><br />
srvctl stop service -d </span><span style="color:#808000;"><em>dbname </em></span><span style="color:#808000;">-s </span><span style="color:#808000;"><em>servicename</em></span></p>
<p><span style="color:#808000;">srvctl relocate service -d </span><span style="color:#808000;"><em>dbname </em></span><span style="color:#808000;">-s </span><span style="color:#808000;"><em>servicename </em></span><span style="color:#808000;">-i <em>instancename</em> -t <em>newinstancename</em> [-f]</span></p>
<p>srvctl documentation for Oracle <a href="http://download-east.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm" target="_blank">10G</a> R2 and <a href="http://download.oracle.com/docs/cd/B28359_01/rac.111/b28254/srvctladmin.htm" target="_blank">11G</a></p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:195px;width:1px;height:1px;"><span style="color:#808000;"><em>node1</em></span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleexamples.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleexamples.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleexamples.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleexamples.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleexamples.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleexamples.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleexamples.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleexamples.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleexamples.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleexamples.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleexamples.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleexamples.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleexamples.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleexamples.wordpress.com/312/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=312&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleexamples.wordpress.com/2010/01/22/most-used-srvctl-commands/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30021c7592fed01c1fadd84c02a884e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">carlosacostaalamo</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle + Sun strategy &#8211; Live Webcast</title>
		<link>http://oracleexamples.wordpress.com/2010/01/22/oracle-sun-strategy-live-webcast/</link>
		<comments>http://oracleexamples.wordpress.com/2010/01/22/oracle-sun-strategy-live-webcast/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 16:43:35 +0000</pubDate>
		<dc:creator>Carlos Acosta</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle-sun strategy]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[webcast]]></category>

		<guid isPermaLink="false">http://oracleexamples.wordpress.com/?p=307</guid>
		<description><![CDATA[Oracle now have a very broad range of products: Hardware + OS + Java + Database + Virtualization (Oracle and Sun Virtual Box), application servers, ORM, etc,etc,etc We also now that major companies loves and appreciate to talk to a &#8230; <a href="http://oracleexamples.wordpress.com/2010/01/22/oracle-sun-strategy-live-webcast/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=307&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Oracle now have a very broad range of products: Hardware + OS + Java + Database + Virtualization (Oracle and Sun Virtual Box), application servers, ORM, etc,etc,etc</p>
<p>We also now that major companies loves and appreciate to talk to a single company for support.</p>
<p>So what will be the strategy here? probably Oracle will start selling attractive &#8220;combos&#8221; or they will play with the licensing prices when using Sparc CPUs?</p>
<p><a href="http://www.oracle.com/webapps/events/EventsDetail.jsp?p_eventId=108481&amp;src=6806472&amp;src=6806472&amp;Act=22" target="_blank">Register the live Webcast</a> with Larry Ellison to learn about the strategy Oracle-Sun (on January 27)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleexamples.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleexamples.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleexamples.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleexamples.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleexamples.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleexamples.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleexamples.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleexamples.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleexamples.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleexamples.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleexamples.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleexamples.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleexamples.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleexamples.wordpress.com/307/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleexamples.wordpress.com&amp;blog=7129083&amp;post=307&amp;subd=oracleexamples&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleexamples.wordpress.com/2010/01/22/oracle-sun-strategy-live-webcast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/30021c7592fed01c1fadd84c02a884e0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">carlosacostaalamo</media:title>
		</media:content>
	</item>
	</channel>
</rss>
