<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.12-alpha" -->
<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/"
	>

<channel>
	<title>Frits Hoogland Weblog</title>
	<link>http://frits.homelinux.com/wordpress</link>
	<description>Linux, oracle and other technical stuff...</description>
	<pubDate>Thu, 05 Nov 2009 16:00:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.12-alpha</generator>
	<language>en</language>
			<item>
		<title>Do you crash your database on machine shutdown?</title>
		<link>http://frits.homelinux.com/wordpress/?p=54</link>
		<comments>http://frits.homelinux.com/wordpress/?p=54#comments</comments>
		<pubDate>Thu, 05 Nov 2009 15:49:19 +0000</pubDate>
		<dc:creator>Frits Hoogland</dc:creator>
		
		<category>Oracle</category>

		<category>Linux</category>

		<guid isPermaLink="false">http://frits.homelinux.com/wordpress/?p=54</guid>
		<description><![CDATA[Most DBA&#8217;s would say &#8216;NO&#8217; without hesitation. I dare you to take another look.
What is this blog about?
This blog is about DBA&#8217;s who run databases on linux. Linux sysadmins are target audience too; this blog is about the stop/start system on linux, and to be more precise: about the specific implementation of the stop/start system [...]]]></description>
			<content:encoded><![CDATA[<p>Most DBA&#8217;s would say &#8216;NO&#8217; without hesitation. I dare you to take another look.</p>
<p>What is this blog about?<br />
This blog is about DBA&#8217;s who run databases on <strong>linux</strong>. Linux sysadmins are target audience too; this blog is about the stop/start system on linux, and to be more precise: about the specific implementation of the stop/start system on redhat and it&#8217;s derivatives (Oracle&#8217;s enterprise linux for example, but also centos) </p>
<p>What about it?<br />
The redhat stop/start system looks and feels like the traditional unix system V stop/start system found on most unixes. Correct usage of the redhat stop/start system is in fact quite different from that.</p>
<p>The traditional unix system V stop/start uses an executable script in the init.d directory (often /etc/init.d or /etc/rc.d/init.d) and uses a symbolic link in the runlevel directories (rc1.d, rc2.d, rc3.d, etc.) from the script in init.d, but prefixing the name it with &#8216;S&#8217; (for start) or &#8216;K&#8217; (for kill, thus stop) and a two digit number to indicate the order for starting or stopping.</p>
<p>The redhat stop/start system works with an executable script in the init.d directory (/etc/rc.d/init.d). The correct way to enable stop/start is using the chkconfig command:<br />
<code>chkconfig --add yourscript</code><br />
This command check if the script <code>yourscript</code> is present in /etc/rc.d/init.d, then reads a line looking like this in the stop/start script:<br />
<code>#chkconfig: 2345 80 05</code><br />
This tells chkconfig that the script should run in runlevels 2,3,4 and 5 with order number 80 and stopped (killed) with order number 05.<br />
To check if chkconfig did understand your script, use:<br />
<code>chkconfig --list</code><br />
Further reading about chkconfig:<br />
<code>man chkconfig</code></p>
<p>Alright, but what about crashing the database?<br />
A lesser known fact is that the redhat stop/start system uses a file with the same name as the stop/start script in <code>/var/lock/subsys</code> to determine if the script is already started (so it doesn&#8217;t get started if it&#8217;s already started in a previous runlevel) and needs to be created in the start part, but more importantly it determines if the script needs to execute the stop procedure by checking the existence of this file in <code>/var/lock/subsys</code>. As part of the stop procedure the file needs to be removed, so the stop procedure isn&#8217;t run again in another runlevel.</p>
<p>In many custom made scripts this file doesn&#8217;t get created in <code>/var/lock/subsys</code> in the start procedure, so the stop procedure actually <strong>is never executed</strong>, because the script is already stopped from the perspective of the stop/start system. This typically means that the oracle stop/start script does a perfect job starting the database, but actually <strong>never</strong> stops the database, which means that during a shutdown or a reboot, the database actually crashes.</p>
<p>Sadly, I see very much scripts forgetting this (even ones from respectable sources, like redhat; see: <a href="http://www.redhat.com/f/pdf/summit/blikosar_340_beginnersguide.pdf" onclick="javascript:urchinTracker ('/outbound/article/www.redhat.com');">Redhat summit beginner&#8217;s guide to running oracle on RHEL</a>, for example, there are much more). Check your stop/start script today!
</p>
]]></content:encoded>
			<wfw:commentRss>http://frits.homelinux.com/wordpress/?feed=rss2&amp;p=54</wfw:commentRss>
		</item>
		<item>
		<title>I&#8217;m an Oracle ACE now!</title>
		<link>http://frits.homelinux.com/wordpress/?p=53</link>
		<comments>http://frits.homelinux.com/wordpress/?p=53#comments</comments>
		<pubDate>Wed, 26 Aug 2009 08:58:49 +0000</pubDate>
		<dc:creator>Frits Hoogland</dc:creator>
		
		<category>Oracle</category>

		<guid isPermaLink="false">http://frits.homelinux.com/wordpress/?p=53</guid>
		<description><![CDATA[I received an email from Oracle with an invitation for the Oracle ACE program! I must admit I am proud of the recognition from &#8220;the industry&#8221; for my community efforts. See my ACE profile here.
For this recognition I must thank Doug Burns, but also all other friends who helped me solving problems, help with presentations, [...]]]></description>
			<content:encoded><![CDATA[<p>I received an email from Oracle with an invitation for <a href="http://www.oracle.com/technology/community/oracle_ace/index.html" onclick="javascript:urchinTracker ('/outbound/article/www.oracle.com');">the Oracle ACE program</a>! I must admit I am proud of the recognition from &#8220;the industry&#8221; for my community efforts. See my ACE profile <a href="http://apex.oracle.com/pls/otn/f?p=19297:4:1430601614959471::NO:4:P4_ID:1004" onclick="javascript:urchinTracker ('/outbound/article/apex.oracle.com');">here</a>.</p>
<p>For this recognition I must thank <a href="http://oracledoug.com/serendipity/" onclick="javascript:urchinTracker ('/outbound/article/oracledoug.com');">Doug Burns</a>, but also all other friends who helped me solving problems, help with presentations, or helping me in other aspects. Thank you! Last but not least <a href="http://www.vxcompany.com/?s=1&#038;m=254&#038;v=54" onclick="javascript:urchinTracker ('/outbound/article/www.vxcompany.com');">my employer, VX Company.</a>.
</p>
]]></content:encoded>
			<wfw:commentRss>http://frits.homelinux.com/wordpress/?feed=rss2&amp;p=53</wfw:commentRss>
		</item>
		<item>
		<title>Operating system security for the oracle database</title>
		<link>http://frits.homelinux.com/wordpress/?p=52</link>
		<comments>http://frits.homelinux.com/wordpress/?p=52#comments</comments>
		<pubDate>Wed, 12 Aug 2009 07:05:21 +0000</pubDate>
		<dc:creator>Frits Hoogland</dc:creator>
		
		<category>Oracle</category>

		<guid isPermaLink="false">http://frits.homelinux.com/wordpress/?p=52</guid>
		<description><![CDATA[A paper written as a companion for my presentation &#8216;Oracle security done right&#8217;, which will be presented at the Slovenian International Oracle User Group (SIOUG), and at the UKOUG has been put on technet in the security section: http://www.oracle.com/technology/deploy/security/index.html
If you are interested in enhancing security on linux/unix based systems and making DBA usage audit-able, fetch [...]]]></description>
			<content:encoded><![CDATA[<p>A paper written as a companion for my presentation &#8216;Oracle security done right&#8217;, which will be presented at the <a href="http://www.sioug.si/index.php?option=com_content&#038;view=category&#038;layout=blog&#038;id=10&#038;Itemid=17" onclick="javascript:urchinTracker ('/outbound/article/www.sioug.si');">Slovenian International Oracle User Group (SIOUG)</a>, and at the <a href="http://www.ukoug.org/" onclick="javascript:urchinTracker ('/outbound/article/www.ukoug.org');">UKOUG</a> has been put on technet in the security section: http://www.oracle.com/technology/deploy/security/index.html</p>
<p>If you are interested in enhancing security on linux/unix based systems and making DBA usage audit-able, fetch the paper. Of course, any comments are appreciated!
</p>
]]></content:encoded>
			<wfw:commentRss>http://frits.homelinux.com/wordpress/?feed=rss2&amp;p=52</wfw:commentRss>
		</item>
		<item>
		<title>SQL*Plus and commandline history again</title>
		<link>http://frits.homelinux.com/wordpress/?p=50</link>
		<comments>http://frits.homelinux.com/wordpress/?p=50#comments</comments>
		<pubDate>Mon, 15 Jun 2009 09:57:05 +0000</pubDate>
		<dc:creator>Frits Hoogland</dc:creator>
		
		<category>Oracle</category>

		<guid isPermaLink="false">http://frits.homelinux.com/wordpress/?p=50</guid>
		<description><![CDATA[Various people have written about how you can add commandline history to sqlplus on Linux (and probably unix too?) 
If someone is using Redhat Enterprise Linux, or one of the clones (Oracle Enterprise Linux, Centos), and are using yum (and I can see only very limited reasons for not using it; if you have to [...]]]></description>
			<content:encoded><![CDATA[<p>Various people have written about how you can add commandline history to sqlplus on Linux (and probably unix too?) </p>
<p>If someone is using Redhat Enterprise Linux, or one of the clones (Oracle Enterprise Linux, Centos), and are using <a href="http://fedoraproject.org/wiki/Tools/yum" onclick="javascript:urchinTracker ('/outbound/article/fedoraproject.org');">yum</a> (and I can see only very limited reasons for not using it; if you have to administer multiple machines, setting up a yum server will be a real timesaver, if the number is very small, use the internet repositories directly), add the EPEL repository: <a href="http://fedoraproject.org/wiki/EPEL" onclick="javascript:urchinTracker ('/outbound/article/fedoraproject.org');">EPEL</a>.</p>
<p>EPEL contains packages not present in the package collection of RHEL. One of these packages is rlwrap, which can give SQL*Plus commandline history. Installing rlwrap with EPEL is as simple as:</p>
<p><code>yum install rlwrap</code></p>
<p>Please notice this gives the SQL*Plus commandline some of the properties you have in the bash shell (when sqlplus is invoked with rlwrap of course: rlwrap sqlplus username/password@database). This means you can also search the history with the key combination CTRL + R.</p>
<p>Another property of the bash shell is autocompletion with the TAB key (something I use extensively). It would be extremely handy to have TAB autocompletion for Oracle keywords and a list of choices (if it can&#8217;t autocomplete because several options exist) with TAB - TAB (TAB two times).</p>
<p><a href="http://www.linuxification.at/" onclick="javascript:urchinTracker ('/outbound/article/www.linuxification.at');">Johannes Gritsch</a> has written a little script to overcome some rlwrap difficulties and lists with autocompletion for keywords and data dictionary: <a href="http://www.linuxification.at/rlwrap_ext.html.en" onclick="javascript:urchinTracker ('/outbound/article/www.linuxification.at');">http://www.linuxification.at/rlwrap_ext.html.en</a></p>
<p>Please note the tar needs to be extracted in &#8216;/usr/share/rlwrap&#8217; when using the rlwrap version of EPEL, instead of the path listed in the readme. This path also needs to be modified in the &#8217;sql+&#8217; script.</p>
]]></content:encoded>
			<wfw:commentRss>http://frits.homelinux.com/wordpress/?feed=rss2&amp;p=50</wfw:commentRss>
		</item>
		<item>
		<title>Unknown host, reported by the database</title>
		<link>http://frits.homelinux.com/wordpress/?p=49</link>
		<comments>http://frits.homelinux.com/wordpress/?p=49#comments</comments>
		<pubDate>Mon, 11 May 2009 19:47:48 +0000</pubDate>
		<dc:creator>Frits Hoogland</dc:creator>
		
		<category>Oracle</category>

		<guid isPermaLink="false">http://frits.homelinux.com/wordpress/?p=49</guid>
		<description><![CDATA[I use vmware fusion virtual machines for experimenting with the database on windows, linux and solaris.
I&#8217;ve just copied my plain linux operating system install and installed oracle 10 and oracle 11. Of course, I&#8217;ve renamed the machine. That is what this blogpost is about.
To honest, I am quite lazy. So lazy that I forgot to [...]]]></description>
			<content:encoded><![CDATA[<p>I use vmware fusion virtual machines for experimenting with the database on windows, linux and solaris.</p>
<p>I&#8217;ve just copied my plain linux operating system install and installed oracle 10 and oracle 11. Of course, I&#8217;ve renamed the machine. That is what this blogpost is about.</p>
<p>To honest, I am quite lazy. So lazy that I forgot to link the system name set in /etc/sysconfig/network to the ip-address given (done in /etc/hosts).</p>
<p>This does not affect the software installation, but does affect the creating of the database. It is reported as an internal error (ORA-600):</p>
<blockquote><p>
ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
</p></blockquote>
<p>Meaning: the hostname can not be translated to an ip-address.<br />
Resolution: lookup hostname using the <code>hostname</code> command, lookup the ip-address using the <code>/sbin/ifconfig -a</code> command, and link both in /etc/hosts</p>
]]></content:encoded>
			<wfw:commentRss>http://frits.homelinux.com/wordpress/?feed=rss2&amp;p=49</wfw:commentRss>
		</item>
		<item>
		<title>How to view your website from the outside while being on the inside</title>
		<link>http://frits.homelinux.com/wordpress/?p=47</link>
		<comments>http://frits.homelinux.com/wordpress/?p=47#comments</comments>
		<pubDate>Mon, 04 May 2009 11:08:25 +0000</pubDate>
		<dc:creator>Frits Hoogland</dc:creator>
		
		<category>Linux</category>

		<guid isPermaLink="false">http://frits.homelinux.com/wordpress/?p=47</guid>
		<description><![CDATA[Sound cryptic, doesn&#8217;t it?
In most situations where you do configuration, tuning or other settings of web environments (apache, oracle http server, OC4J, weblogic, websphere, etc.) you have access from &#8216;the inside&#8217;, most of the time access via a separate LAN (often called &#8216;administration LAN&#8217;) which let&#8217;s you get access in another way than the regular [...]]]></description>
			<content:encoded><![CDATA[<p>Sound cryptic, doesn&#8217;t it?</p>
<p>In most situations where you do configuration, tuning or other settings of web environments (apache, oracle http server, OC4J, weblogic, websphere, etc.) you have access from &#8216;the inside&#8217;, most of the time access via a separate LAN (often called &#8216;administration LAN&#8217;) which let&#8217;s you get access in another way than the regular web traffic, which comes in from &#8216;the outside&#8217; which is firewalled different (or is the only connection being firewalled), thus is handled different.</p>
<p>There are situations where you want to see what traffic from &#8216;the outside&#8217; does instead of your &#8216;inside connection&#8217;, for example:<br />
- ssl/certificates/wallets<br />
- connecting webservers with the webcache<br />
- altering hostnames<br />
- review firewalling and webtraffic routing<br />
- review NIDS (network intrusion detection)</p>
<p>This is where <a href="http://www.torproject.org/" onclick="javascript:urchinTracker ('/outbound/article/www.torproject.org');">tor</a> comes in. </p>
<p>What does Tor do?  The best explanation is on <a href="http://www.torproject.org/overview.html.en" onclick="javascript:urchinTracker ('/outbound/article/www.torproject.org');">the tor website</a>. What it does is route your traffic encrypted through an anonymous, distributed network. Tor accomplishes much security related things, for this subject it&#8217;s important it setups an connection randomly on the internet.</p>
<p>Tor is not available on the RHEL/OEL/CentOS CD/DVD&#8217;s and network repositories. It&#8217;s also not present in <a href="http://fedoraproject.org/wiki/EPEL" onclick="javascript:urchinTracker ('/outbound/article/fedoraproject.org');">EPEL (extra packages for Enterprise Linux)</a>, so it must be downloaded from the <a href="http://www.torproject.org/download-unix.html.en" onclick="javascript:urchinTracker ('/outbound/article/www.torproject.org');">tor download page (choose &#8217;stable&#8217;)</a>.</p>
<p>In order to fully use it, you need <a href="http://www.privoxy.org/" onclick="javascript:urchinTracker ('/outbound/article/www.privoxy.org');">privoxy</a>, which is present in the repository (thus can be installed using yum).</p>
<p>After the installation of both, there&#8217;s a little <a href="http://www.torproject.org/docs/tor-doc-unix.html.en" onclick="javascript:urchinTracker ('/outbound/article/www.torproject.org');">configuration</a> necessary, but then you&#8217;ve got a proxy setup which let&#8217;s you browse the internet (anonymously) from a random place on the internet!</p>
<p>For people who have security considerations, and/or doubts about anonymity of their traffic, anything which can use a proxy can use it. </p>
<p>This means <a href="http://www.cirt.net/nikto2" onclick="javascript:urchinTracker ('/outbound/article/www.cirt.net');">nikto</a> can be used entirely anonymous, whilst things like <a href="http://nmap.org/" onclick="javascript:urchinTracker ('/outbound/article/nmap.org');">nmap</a>, <a href="http://www.nessus.org/nessus/" onclick="javascript:urchinTracker ('/outbound/article/www.nessus.org');">nessus</a> can&#8217;t with this setup.</p>
]]></content:encoded>
			<wfw:commentRss>http://frits.homelinux.com/wordpress/?feed=rss2&amp;p=47</wfw:commentRss>
		</item>
		<item>
		<title>The hidden gem &#8217;sosreport&#8217; in RHEL and OEL</title>
		<link>http://frits.homelinux.com/wordpress/?p=46</link>
		<comments>http://frits.homelinux.com/wordpress/?p=46#comments</comments>
		<pubDate>Fri, 01 May 2009 12:56:58 +0000</pubDate>
		<dc:creator>Frits Hoogland</dc:creator>
		
		<category>Linux</category>

		<guid isPermaLink="false">http://frits.homelinux.com/wordpress/?p=46</guid>
		<description><![CDATA[During a stroll through the filesystem I encountered an executable (a python script actually) called &#8217;sosreport&#8217;. You&#8217;ve got to admit: the name sounds intriguing.
The man-page says &#8216;Generate debugging information for this system&#8217;. This is getting even more interesting&#8230;
Lets run it!

$ /usr/sbin/sosreport
sosreport (version 1.7)
sosreport requires root permissions to run.

The utility requires root permissions. Not very surprising, [...]]]></description>
			<content:encoded><![CDATA[<p>During a stroll through the filesystem I encountered an executable (a python script actually) called &#8217;sosreport&#8217;. You&#8217;ve got to admit: the name sounds intriguing.</p>
<p>The man-page says &#8216;Generate debugging information for this system&#8217;. This is getting even more interesting&#8230;</p>
<p>Lets run it!<br />
<code><br />
$ /usr/sbin/sosreport</p>
<p>sosreport (version 1.7)</p>
<p>sosreport requires root permissions to run.<br />
</code><br />
The utility requires root permissions. Not very surprising, root got all permissions to get internal system information.</p>
<p>Again, now as root:<br />
<code><br />
# sosreport</p>
<p>sosreport (version 1.7)</p>
<p>This utility will collect some detailed  information about the<br />
hardware and  setup of your  Red Hat Enterprise Linux  system.<br />
The information is collected and an archive is  packaged under<br />
/tmp, which you can send to a support representative.<br />
Red Hat will use this information for diagnostic purposes ONLY<br />
and it will be considered confidential information.</p>
<p>This process may take a while to complete.<br />
No changes will be made to your system.</p>
<p>Press ENTER to continue, or CTRL-C to quit.</p>
<p>Please enter your first initial and last name [localhost]: frits hoogland<br />
Please enter the case number that you are generating this report for: 9999</p>
<p> Progress [###################100%##################][05:15/05:15]</p>
<p>Creating compressed archive...</p>
<p>Your sosreport has been generated and saved in:<br />
  /tmp/sosreport-fritshoogland.9999-725705-3400ad.tar.bz2</p>
<p>The md5sum is: 8bac4b5ccbb8c1a79dd6571f293400ad</p>
<p>Please send this file to your support representative.<br />
</code></p>
<p>Let&#8217;s see what it provides, and see if it got any benefits above Oracle&#8217;s RDA&#8230;<br />
It produces two files in /tmp:<br />
<code><br />
-rw-r--r--  1 root   root       33 May  1 14:34 sosreport-fritshoogland.9999-725705-3400ad.tar.bz2.md5<br />
-rw-------  1 root   root   631098 May  1 14:34 sosreport-fritshoogland.9999-725705-3400ad.tar.bz2<br />
</code></p>
<p>The list of files when extracting sosreport-fritshoogland.9999-725705-3400ad.tar.bz2 simply is too big to put in the blogpost.<br />
It contains <strong>all</strong> linux configuration files (yes, that&#8217;s a bold statement), all startup/shutdown scripts, all kind of current system information (dmidecode, lsmod, lspci, netstat, iptables, rpm, network routes, LVM, device mapper, EMC multipathing, etc.),  could go on and on!</p>
<p>This command is able to let anyone who can get access to the system make a file with all relevant settings for troubleshooting. That&#8217;s handy! It&#8217;s very hard to get information about network configuration, firewall (iptables), etc. out of inexperienced administrators. This command lets you get all information so you can do the troubleshooting out of the archive instead of a question and answer game with the administrator!</p>
]]></content:encoded>
			<wfw:commentRss>http://frits.homelinux.com/wordpress/?feed=rss2&amp;p=46</wfw:commentRss>
		</item>
		<item>
		<title>3rd Planboard DBA Symposium</title>
		<link>http://frits.homelinux.com/wordpress/?p=45</link>
		<comments>http://frits.homelinux.com/wordpress/?p=45#comments</comments>
		<pubDate>Wed, 29 Apr 2009 10:47:08 +0000</pubDate>
		<dc:creator>Frits Hoogland</dc:creator>
		
		<category>Oracle</category>

		<guid isPermaLink="false">http://frits.homelinux.com/wordpress/?p=45</guid>
		<description><![CDATA[On May 26, Planboard organises it&#8217;s 3rd Planboard DBA Symposium. It&#8217;s an event by Oracle DBA&#8217;s for Oracle DBA&#8217;s, with presentations covering a wide range of topics (RAC Rolling upgrades, grouping in SQL, APEX and security to name a few)! See the full lineup here: http://www.planboard.com/?q=node/71
All other information (location, price, etc.) are on that page [...]]]></description>
			<content:encoded><![CDATA[<p>On May 26, Planboard organises it&#8217;s 3rd Planboard DBA Symposium. It&#8217;s an event by Oracle DBA&#8217;s for Oracle DBA&#8217;s, with presentations covering a wide range of topics (RAC Rolling upgrades, grouping in SQL, APEX and security to name a few)! See the full lineup here: http://www.planboard.com/?q=node/71</p>
<p>All other information (location, price, etc.) are on that page too. If you are an Oracle database professional and want to learn something and be able to discuss various things with likeminded professionals, be there!
</p>
]]></content:encoded>
			<wfw:commentRss>http://frits.homelinux.com/wordpress/?feed=rss2&amp;p=45</wfw:commentRss>
		</item>
		<item>
		<title>IBM AIX Concurrent IO howto</title>
		<link>http://frits.homelinux.com/wordpress/?p=44</link>
		<comments>http://frits.homelinux.com/wordpress/?p=44#comments</comments>
		<pubDate>Tue, 28 Apr 2009 12:33:49 +0000</pubDate>
		<dc:creator>Frits Hoogland</dc:creator>
		
		<category>Oracle</category>

		<guid isPermaLink="false">http://frits.homelinux.com/wordpress/?p=44</guid>
		<description><![CDATA[I recently got some questions about IBM AIX and Concurrent IO (CIO).
First of all, there&#8217;s Direct IO (DIO) and Concurrent IO (DIO). The advantage of DIO and CIO is the data for both reading and writing is not buffered at the operating system level. This means &#8216;double buffering&#8217; is omitted, which saves CPU cycles. If [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got some questions about IBM AIX and Concurrent IO (CIO).</p>
<p>First of all, there&#8217;s Direct IO (DIO) and Concurrent IO (DIO). The advantage of DIO and CIO is the data for both reading and writing is not buffered at the operating system level. This means &#8216;double buffering&#8217; is omitted, which saves CPU cycles. If the database uses the operating system buffering (for example if there&#8217;s plenty of memory on the system), performance can degrade when DIO or CIO is used, because then all IO&#8217;s are done physically from the operating system&#8217;s perspective (it could be buffered at the lower layer, which could be a SAN or NAS).</p>
<p>The difference between DIO and CIO is the way write concurrency is handled (this is a bit simplified). DIO serialises IO&#8217;s to prevent writes from corrupting each other, whilst CIO does not serialise, because it assumes the writer has done proper serialisation. With the Oracle database, this is the case (remember, Oracle can work without a filesystem too).</p>
<p>The IBM JFS filesystem has DIO implemented, the IBM JFS2 filesystem has CIO implemented. </p>
<p>In order to implement CIO, there are two ways:<br />
-Use a database parameter: FILESYSTEMIO_OPTIONS; set it to &#8217;setall&#8217; (which also implements Asynchronous IO), or &#8216;directIO&#8217; (which opens files in DIO mode on JFS, and in CIO mode on JFS2)<br />
-Use a mount option (&#8217;cio&#8217;) to make all IO&#8217;s to the filesystem behave as if CIO was done</p>
<p>A note on Oracle&#8217;s metalink (&#8217;Direct I/O or Concurrent I/O on AIX 5L&#8217;; ML 272520.1) describes this behavior. This note also states that BOTH should be enabled. I don&#8217;t find this the best way to make a database do CIO; merely setting FILESYSTEMIO_OPTIONS properly (&#8217;setall&#8217;,'directIO&#8217;) will do, mounting the filesystem with the &#8216;cio&#8217; option will not add anything, it will make regular IO&#8217;s do CIO, of which some do not benefit. For example, if the database software and the dump destinations are on this filesystem too.</p>
]]></content:encoded>
			<wfw:commentRss>http://frits.homelinux.com/wordpress/?feed=rss2&amp;p=44</wfw:commentRss>
		</item>
		<item>
		<title>Oracle&#8217;s public yum server available!</title>
		<link>http://frits.homelinux.com/wordpress/?p=43</link>
		<comments>http://frits.homelinux.com/wordpress/?p=43#comments</comments>
		<pubDate>Fri, 20 Mar 2009 09:00:31 +0000</pubDate>
		<dc:creator>Frits Hoogland</dc:creator>
		
		<category>Oracle</category>

		<guid isPermaLink="false">http://frits.homelinux.com/wordpress/?p=43</guid>
		<description><![CDATA[Last night chris jones notified me the Oracle public yum server is available.
The default page of the website (http://public-yum.oracle.com/) contains information about how to setup OEL4, OEL5 and Oracle VM 2 to use it, both the i386 and the x86_64 version.
As I&#8217;ve guessed in my previous post, the yum server does not contain an update [...]]]></description>
			<content:encoded><![CDATA[<p>Last night chris jones notified me the Oracle public yum server is available.</p>
<p>The default page of the website (http://public-yum.oracle.com/) contains information about how to setup OEL4, OEL5 and Oracle VM 2 to use it, both the i386 and the x86_64 version.</p>
<p>As I&#8217;ve guessed in my previous post, the yum server does not contain an update channel, it just contains the contents of the installation media.
</p>
]]></content:encoded>
			<wfw:commentRss>http://frits.homelinux.com/wordpress/?feed=rss2&amp;p=43</wfw:commentRss>
		</item>
	</channel>
</rss>
