<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TheBonsai&#039;s Blog &#187; Oracle</title>
	<atom:link href="http://www.thebonsai.net/category/a-must-and-a-nice-one-if-its-the-right-one/the-one-and-only-dbms-suite/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thebonsai.net</link>
	<description>About the days and nights of TheBonsai</description>
	<lastBuildDate>Thu, 13 May 2010 08:43:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fehlerbeseitigung</title>
		<link>http://www.thebonsai.net/2010/05/11/fehlerbeseitigung/</link>
		<comments>http://www.thebonsai.net/2010/05/11/fehlerbeseitigung/#comments</comments>
		<pubDate>Tue, 11 May 2010 19:08:40 +0000</pubDate>
		<dc:creator>TheBonsai</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[deutsch]]></category>
		<category><![CDATA[idiots]]></category>

		<guid isPermaLink="false">http://www.thebonsai.net/?p=198</guid>
		<description><![CDATA[Erlebnis des Tages:
Dienstleister bittet die Datenbankadministration um die Beseitigung des folgenden (Zitat) Datenbankfehlers: ORA-00054: resource busy and acquire with NOWAIT specified
&#8230;der manchmal bei einem SELECT FOR UPDATE NOWAIT kommt.
Ist meine Datenbank kaputt?
]]></description>
			<content:encoded><![CDATA[<h3>Erlebnis des Tages:</h3>
<p>Dienstleister bittet die <em>Datenbankadministration</em> um die Beseitigung des folgenden (Zitat) <span style="color: #ff0000;"><em>Datenbankfehlers</em></span>: <strong><em>ORA</em>-<em>00054</em>: resource busy and acquire with NOWAIT specified</strong></p>
<p>&#8230;der manchmal bei einem SELECT FOR UPDATE NOWAIT kommt.</p>
<p>Ist meine Datenbank kaputt?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thebonsai.net/2010/05/11/fehlerbeseitigung/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Motto des Tages</title>
		<link>http://www.thebonsai.net/2010/04/27/motto-des-tages/</link>
		<comments>http://www.thebonsai.net/2010/04/27/motto-des-tages/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 10:29:21 +0000</pubDate>
		<dc:creator>TheBonsai</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[deutsch]]></category>

		<guid isPermaLink="false">http://www.thebonsai.net/?p=189</guid>
		<description><![CDATA[Motto des heutigen Tages:

Datenbank statt Gartenbank!

(vielen Dank an die zynischen Kollegen der Netzwerkadministration&#8230;)
]]></description>
			<content:encoded><![CDATA[<p>Motto des heutigen Tages:</p>
<blockquote>
<h2>Datenbank statt Gartenbank!</h2>
</blockquote>
<p>(vielen Dank an die zynischen Kollegen der Netzwerkadministration&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thebonsai.net/2010/04/27/motto-des-tages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First touches: Oracle 11g Release 2</title>
		<link>http://www.thebonsai.net/2009/10/22/first-touches-oracle-11g-release-2/</link>
		<comments>http://www.thebonsai.net/2009/10/22/first-touches-oracle-11g-release-2/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 05:36:39 +0000</pubDate>
		<dc:creator>TheBonsai</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.thebonsai.net/?p=155</guid>
		<description><![CDATA[At the beginning of the week we lost a 10gR2 test server (some mass data application &#8211; sizes similar to warehousing) due to the complete loss of a RAID6 (don&#8217;t ask!).
Well, test server is test server: We (me as DBA, and a collegue as the responsible application developer) finally decided to step into the Oracle [...]]]></description>
			<content:encoded><![CDATA[<p>At the beginning of the week we lost a 10gR2 test server (some mass data application &#8211; sizes similar to warehousing) due to the complete loss of a RAID6 (don&#8217;t ask!).</p>
<p>Well, test server is test server: We (me as DBA, and a collegue as the responsible application developer) finally decided to step into the Oracle 11 world: The new system will be 11gR2</p>
<p>After some reading in I had no problems to understand the new separated architecture with its HA daemon (keyword: Grid Infrastructure) and install the whole software and create a database. And, very important, there was no, not one damn small, problem when importing 10gR2 datapump files (from the productive system). I heard some weird stories before, and I was a bit afraid about that. But nothing, all data was pumped in like a charm.</p>
<p>The first thing I changed, for me as DBA one of the most interesting features on those large databases, I really parallelized RMAN for backup. I hope I can reduce the backup time to a useful amount with that. This was one of the biggest discrepance in 10g: You can create very large datafiles, but you can&#8217;t backup them in a true parallel manner. I&#8217;ll check my logfiles today and hope&#8230;</p>
<p>Well, so far so good, I will see what 11g (especially R2 here) brings to me and, more important, the applications. It will take some time to really explore the pros.</p>
<p>For all of you still at 10g and loose a test system by accident (and have a developer that really wants it&#8230;): Try it <img src='http://www.thebonsai.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thebonsai.net/2009/10/22/first-touches-oracle-11g-release-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>A UNIX pathname is a UNIX pathname&#8230;or not? ORACLE fooled me again!</title>
		<link>http://www.thebonsai.net/2009/05/05/a-unix-pathname-is-a-unix-pathnameor-not-oracle-fooled-me-again/</link>
		<comments>http://www.thebonsai.net/2009/05/05/a-unix-pathname-is-a-unix-pathnameor-not-oracle-fooled-me-again/#comments</comments>
		<pubDate>Tue, 05 May 2009 17:26:30 +0000</pubDate>
		<dc:creator>TheBonsai</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[asm]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[ORACLE_HOME]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[sqlplus]]></category>

		<guid isPermaLink="false">http://www.thebonsai.net/?p=130</guid>
		<description><![CDATA[For a new system on SLES10SP2 I wanted to operate 3 separate instances (ASM, 2 databases) from 3 separate ORACLE_HOMEs. The theory isn&#8217;t that complex, so I simply installed and patched up the 3 different ORACLE_HOMEs.
After configuring the ASM instance with the creation assistant and enabling the instance in /etc/oratab, I did a reboot. Finally [...]]]></description>
			<content:encoded><![CDATA[<p>For a new system on SLES10SP2 I wanted to operate 3 separate instances (ASM, 2 databases) from 3 separate ORACLE_HOMEs. The theory isn&#8217;t that complex, so I simply installed and patched up the 3 different ORACLE_HOMEs.</p>
<p>After configuring the ASM instance with the creation assistant and enabling the instance in /etc/oratab, I did a reboot. Finally I wrote a small shell function db_change() to change ORACLE_HOME, ORACLE_SID and PATH on the fly to operate on the different instances.</p>
<p>Nothing. I wasn&#8217;t able to connect with sqlplus.<span id="more-130"></span> I verified the instance &#8220;+ASM&#8221; still was running, but I couldn&#8217;t connect. I checked my ORACLE_SID and ORACLE_HOME, but I couldn&#8217;t connect. I even called a friend of mine (thanks Martin!) to make sure I have no conceptual mistake. Nothing. Sqlplus always said &#8220;connected to an idle instance&#8221; &#8211; as if no ASM instance was running at all (or as if I had a typo in the SID).</p>
<p>Since the +ASM instance started fine during system startup, and started fine using the orarun-initscript from SuSE, something had to smell in my setup. After 30 minutes of checking all corners, I decided to compare my current process environment to the process environment of the started ASM PMON (thanks to Linux&#8217; /proc/ filesystem and some shell vodoo, it&#8217;s not a big deal to get a good diff).</p>
<p>After eliminating all the unimportant differences, one was left:</p>
<pre>ORACLE_HOME=/opt/oracle/product/10.2/asm_1</pre>
<pre>ORACLE_HOME=/opt/oracle/product/10.2/asm_1<span style="color: #ff0000;">/
</span></pre>
<p><span style="color: #333333;">See it? Believe it or not, that was it! My shell function set an ORACLE_HOME with a trailing slash, and that drove sqlplus crazy! This may be documented somewhere, I didn&#8217;t look, but it&#8217;s definitely not something intuitive. Finally, that automatically means that things may fail if you put pathes with trailing slash in your /etc/oratab, too.<br />
</span></p>
<h2><span style="color: #333333;">O.R.A.C.L.E!!!<br />
</span></h2>
<p><span style="color: #333333;">Applies to the setup:</span></p>
<ul>
<li><span style="color: #333333;">SLES10SP2</span></li>
<li><span style="color: #333333;">Oracle 10.2.0.4 w/ recommendec patchset 4<br />
</span></li>
</ul>
<p>Have a nice day, and better don&#8217;t trust your common sense! Comments welcome, &#8217;cause I&#8217;m sure this is a well known behaviour and I&#8217;m just too stupid <img src='http://www.thebonsai.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>(and yes, I&#8217;ll rewrite my small shell function to actually parse /etc/oratab!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thebonsai.net/2009/05/05/a-unix-pathname-is-a-unix-pathnameor-not-oracle-fooled-me-again/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Finally: BIND9 and Oracle RDBMS are compatible!</title>
		<link>http://www.thebonsai.net/2009/04/24/finally-bind9-and-oracle-rdbms-are-compatible/</link>
		<comments>http://www.thebonsai.net/2009/04/24/finally-bind9-and-oracle-rdbms-are-compatible/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 05:04:45 +0000</pubDate>
		<dc:creator>TheBonsai</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[BIND]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.thebonsai.net/?p=125</guid>
		<description><![CDATA[This morning I had a really good start. Get the first cup of coffee, activate the NX session, open the IRC client, go to Freenode&#8217;s #oracle channel, and saw a question:
super noob question , how do i query my oracle database online, do i need to setup bind9 and allow incoming connections so it can [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I had a really good start. Get the first cup of coffee, activate the NX session, open the IRC client, go to Freenode&#8217;s #oracle channel, and saw a question:</p>
<blockquote><p>super noob question , how do i query my oracle database online, do i need to setup bind9 and allow incoming connections so it can be accessed</p></blockquote>
<p>I just wanted to share that <img src='http://www.thebonsai.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Have a good day!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thebonsai.net/2009/04/24/finally-bind9-and-oracle-rdbms-are-compatible/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Five hours, ORACLE, dbca, ASM and a customized SQL*Plus prompt&#8230;</title>
		<link>http://www.thebonsai.net/2009/01/31/five-hoirs-oracle-dbca-asm-and-a-customized-sqlplus-prompt/</link>
		<comments>http://www.thebonsai.net/2009/01/31/five-hoirs-oracle-dbca-asm-and-a-customized-sqlplus-prompt/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 12:30:01 +0000</pubDate>
		<dc:creator>TheBonsai</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[asm]]></category>
		<category><![CDATA[dbca]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.thebonsai.net/?p=115</guid>
		<description><![CDATA[Yesterday was a bad day. I wanted to completely rebuild a database with a corrupt data dictionary. My plan:

Backup/exports
Shutdown DB, remove userspace files
Cleanup files inside ASM
DBCA to make new one (no scripts available)

You see, nothing unusual. So far so good, everything fine except the last step. The scripts I had from the first installation didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday was a bad day. I wanted to completely rebuild a database with a corrupt data dictionary. My plan:</p>
<ul>
<li>Backup/exports</li>
<li>Shutdown DB, remove userspace files</li>
<li>Cleanup files inside ASM</li>
<li><strong>DBCA to make new one (no scripts available)</strong></li>
</ul>
<p>You see, nothing unusual. So far so good, everything fine except the last step. The scripts I had from the first installation didn&#8217;t run through, so I just wanted to click something together. But DBCA spit out:</p>
<blockquote><p>DBCA could not startup the ASM instance configured on this node. To proceed with database creation using ASM you need the aSM instance to be up and running. Do you want to recreate the ASM instance on this node?</p></blockquote>
<p>Er.. what? ASM instance is up and running and some minutes before the old database ran fine with it! So what? Metalink, Google: Environment variables, Listener configuration etc etc etc. Nothing applied. The only thing I really knew 100% was that the ASM setup was rocksolid.</p>
<p><span id="more-115"></span></p>
<p>DBCA failed in the following cases in my experiments (I removed and re-added ASM instance):</p>
<ul>
<li>it detected offline ASM and failed trying to start it</li>
<li>it detected online ASM and failed</li>
<li>it detected no ASM, successfully created one, and failed to add disks etc..</li>
</ul>
<p>Long story short: <strong>Every combination of DBCA and ASM actions failed.</strong></p>
<p>After several hours we got the <strong>solution</strong>. I was about to give up and manually rewrote another DB installation script to use it for this DB environment. The last hours we turned around nearly every bit of that installation, we nearly did everything except reinstall the software. We even rebooted the server <img src='http://www.thebonsai.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . My collegue was hopeless, too. But we both were fanatic to find the &#8220;why&#8221; &#8211; it was one of these things where workarounds may work, but don&#8217;t satisfy the admins.</p>
<p>I hacked a glogin.sql startup file several weeks ago, that displays a nice prompt with instance and username and some timing statistics when you use SQL*Plus. This is something fine and useful for me (and in general).</p>
<p>But we (infact my collegue) found out:</p>
<p>DBCA seems to communicate with the ASM instance using SQL*Plus. My changed output (infact only the prompt and the time statistics) made the SQL*Plus text parsers of DBCA going crazy. Without one word in the right direction in any log of DBCA. DBCA log always said it found the ASM disks and listed them (in the log). So, it was a simple <strong>text parsing issue</strong>! The developers of DBCA or the JAVA-classes that manage the communication <em>seem to assume that nobody personaziles</em> his SQL*Plus. Only bad software makes such assumptions <img src='http://www.thebonsai.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Now I know why ORACLE recommends to use different ORACLE_HOMEs. I didn&#8217;t try it, but I can imagine that the SQL*Plus of the ORACLE_HOME from the ASM instance is used when different.</p>
<p>The evening in numbers:</p>
<ul>
<li>applies to ORACLE software 10.2.0.4, most likely others, too</li>
<li>happened on SLES10 SP2</li>
<li><strong>may</strong> be documented somewhere, but I didn&#8217;t find it on min. 200 pages I read on the Internet</li>
<li>gave us min. 500 million new grey hairs</li>
<li>took us 5 hours</li>
</ul>
<p>I really begin to love ORACLE <img src='http://www.thebonsai.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  At least life isn&#8217;t boring&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thebonsai.net/2009/01/31/five-hoirs-oracle-dbca-asm-and-a-customized-sqlplus-prompt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
