<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Irrelevant thoughts of an oracle DBA</title>
	<atom:link href="http://freekdhooge.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://freekdhooge.wordpress.com</link>
	<description>oracle and rants</description>
	<pubDate>Tue, 10 Jun 2008 18:01:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>bottle water</title>
		<link>http://freekdhooge.wordpress.com/2008/06/10/bottle-water/</link>
		<comments>http://freekdhooge.wordpress.com/2008/06/10/bottle-water/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 23:06:06 +0000</pubDate>
		<dc:creator>dhoogfr</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://freekdhooge.wordpress.com/?p=41</guid>
		<description><![CDATA[This weekend I saw a documentary on television about the sense or nonsense of bottle water.
In this documentary is was pointed out that in mosts part of the world, tap water is perfectly save to drink (in Belgium it is actually more strictlty regulated then bottle water), that tap water is cheaper and that bottle [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This weekend I saw a documentary on television about the sense or nonsense of bottle water.<br />
In this documentary is was pointed out that in mosts part of the world, tap water is perfectly save to drink (in Belgium it is actually more strictlty regulated then bottle water), that tap water is cheaper and that bottle water has a high impact on the environment (mainly because of transportation and the plastic bottles, even when they are recycled).</p>
<p>They also zoomed in to some of the more extreme forms of bottle water: Appereantly there exists something that is called &#8220;cloud juice&#8221; which can be ordered in the more fancier restaurants and is nothing more then rain water from  King Island, Australia.  Another example was water from Fiji, an area where lots of people don&#8217;t have access to clean water!</p>
<p>I must admit that I had not given it much thought until today, and in spite of the fact that I always have drunk tap water at my parents, I&#8217;m drinking bottled water today.<br />
But after having seen this documentary my wife and I decided to switch to tap water. No more heavy lifting of  bottles of water (except for little Gunnar who still requires water with a low level of minerals).</p>
<p>Ok, to be honest I&#8217;m drinking bottle water as I&#8217;m writing this. A special kind even: fire water aka a 14 year old anConoc single malt  :)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/freekdhooge.wordpress.com/41/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/freekdhooge.wordpress.com/41/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freekdhooge.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freekdhooge.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freekdhooge.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freekdhooge.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freekdhooge.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freekdhooge.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freekdhooge.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freekdhooge.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freekdhooge.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freekdhooge.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freekdhooge.wordpress.com&blog=1999228&post=41&subd=freekdhooge&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://freekdhooge.wordpress.com/2008/06/10/bottle-water/feed/</wfw:commentRss>
		</item>
		<item>
		<title>So, you think to know who is blocking you, do you?</title>
		<link>http://freekdhooge.wordpress.com/2008/05/24/so-you-think-to-know-who-is-blocking-you-do-you/</link>
		<comments>http://freekdhooge.wordpress.com/2008/05/24/so-you-think-to-know-who-is-blocking-you-do-you/#comments</comments>
		<pubDate>Sat, 24 May 2008 21:09:59 +0000</pubDate>
		<dc:creator>dhoogfr</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://freekdhooge.wordpress.com/?p=36</guid>
		<description><![CDATA[Recently I needed to verify why an update kept hanging on one of our client&#8217;s new rac system.
I suspected this to be a locking issue, so I queried v$session with a self join on the blocking_session column to check if the session was indeed blocked and if so who was blocking it.
The result showed that [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I needed to verify why an update kept hanging on one of our client&#8217;s new rac system.<br />
I suspected this to be a locking issue, so I queried v$session with a self join on the blocking_session column to check if the session was indeed blocked and if so who was blocking it.</p>
<p>The result showed that the session was indeed blocked and that the blocking session was issued by the sysman user.<br />
Which was a little bit odd.</p>
<p>After running some queries to find out what the hell sysman was doing (which resulted in zero answers), I ran an older script I have that joins v$lock with v$session (next to v$locked_object and dba_objects) which showed a different session as blocking session.<br />
Which was a little bit odd.</p>
<p>Additional queries confirmed that it was indeed this other session which was holding the lock (comming of course from the same user on a different machine, on which he forgot to issue a commit).</p>
<p>Currious about this, I checked the output from the queries again and I noticed that the two reported sessions where off by 1. In v$session.blocking_session the value was 1 higher then reported from v$lock.<br />
So I did some tests if this result was consistent.</p>
<blockquote>
<pre>C:\&gt;sqlplus fdh/fdh

SQL*Plus: Release 10.2.0.1.0 - Production on Wed May 14 17:40:25 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters and Data Mining options

fdh@TRIDION&gt; create table test
  2  ( veld1  number)
  3  tablespace sysaux;

Table created.

fdh@TRIDION&gt; insert into test values (1);

1 row created.

fdh@TRIDION&gt; commit;

Commit complete.

fdh@TRIDION&gt; select sid from v$mystat where rownum = 1;

       SID
----------
       502

fdh@TRIDION&gt; update test set veld1 = 2;

1 row updated.

fdh@TRIDION&gt;</pre>
</blockquote>
<p>I now have an unfinished transaction in session with sid 502.<br />
I will now open a new session (on the same instance) and try to update the same statement.</p>
<blockquote>
<pre>C:\&gt;sqlplus fdh/fdh

SQL*Plus: Release 10.2.0.1.0 - Production on Wed May 14 17:40:40 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters and Data Mining options

fdh@TRIDION&gt; select sid from v$mystat where rownum = 1;

       SID
----------
       322

fdh@TRIDION&gt; update test set veld1 = 3;</pre>
</blockquote>
<p>I now have a blocking lock, so lets check v$session to see the value of the blocking_session column:</p>
<blockquote>
<pre>sys@TRIDION&gt; select sid, serial#, username, blocking_session from gv$session where blocking_session is not null;

SID    SERIAL# USERNAME                       BLOCKING_SESSION
---------- ---------- ------------------------------ ----------------
322      17689 FDH                                         503</pre>
</blockquote>
<p>I did the test several times, each time the value in blocking_session was 1 higher then the actual blocking session.<br />
However, If the 2 sessions where on different nodes, the reported sid was correct. Same for single instances.<br />
So I rule seems to be that if both the blocking and the blocked session are on the same rac instance, the value in the blocking_session column in v$session is 1 higher then the actual blocking sid.</p>
<p>A search on metalink showed that this is in fact a known bug: Bug 5481650, and that it is fixed in 10.2.0.4.<br />
An interim patch is availabe for 10.2.0.2 and 10.2.0.3 for both solaris sparc as linux 64bit (don&#8217;t know if the problem is restricted to these two platforms).</p>
<p>So be warned the next time you need to verify a locking issue on your rac database, oracle might lie to you about who is guilty</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/freekdhooge.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/freekdhooge.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freekdhooge.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freekdhooge.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freekdhooge.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freekdhooge.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freekdhooge.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freekdhooge.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freekdhooge.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freekdhooge.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freekdhooge.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freekdhooge.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freekdhooge.wordpress.com&blog=1999228&post=36&subd=freekdhooge&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://freekdhooge.wordpress.com/2008/05/24/so-you-think-to-know-who-is-blocking-you-do-you/feed/</wfw:commentRss>
		</item>
		<item>
		<title>10.2.0.4 available on solaris sparc 64bit</title>
		<link>http://freekdhooge.wordpress.com/2008/05/05/10204-available-on-solaris-sparc-64bit/</link>
		<comments>http://freekdhooge.wordpress.com/2008/05/05/10204-available-on-solaris-sparc-64bit/#comments</comments>
		<pubDate>Mon, 05 May 2008 09:27:09 +0000</pubDate>
		<dc:creator>dhoogfr</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://freekdhooge.wordpress.com/?p=35</guid>
		<description><![CDATA[Just noticed on www.dba-village.com that the 10.2.0.4 patch is finally available for sparc 64bit.
Just to let you know&#8230;
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just noticed on www.dba-village.com that the 10.2.0.4 patch is finally available for sparc 64bit.</p>
<p>Just to let you know&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/freekdhooge.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/freekdhooge.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freekdhooge.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freekdhooge.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freekdhooge.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freekdhooge.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freekdhooge.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freekdhooge.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freekdhooge.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freekdhooge.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freekdhooge.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freekdhooge.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freekdhooge.wordpress.com&blog=1999228&post=35&subd=freekdhooge&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://freekdhooge.wordpress.com/2008/05/05/10204-available-on-solaris-sparc-64bit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>open source or freeware</title>
		<link>http://freekdhooge.wordpress.com/2008/04/01/open-source-or-freeware/</link>
		<comments>http://freekdhooge.wordpress.com/2008/04/01/open-source-or-freeware/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 08:39:22 +0000</pubDate>
		<dc:creator>dhoogfr</dc:creator>
		
		<category><![CDATA[opinion]]></category>

		<guid isPermaLink="false">http://freekdhooge.wordpress.com/?p=33</guid>
		<description><![CDATA[Say you have put in a lot of effort in developing a pl/sql package that helps you in your job.
You think it does a reasonable decent job and you are thinking about releasing it to the rest of the oracle community.
However you are affraid to lose control over your application. I mean, you have put [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Say you have put in a lot of effort in developing a pl/sql package that helps you in your job.<br />
You think it does a reasonable decent job and you are thinking about releasing it to the rest of the oracle community.<br />
However you are affraid to lose control over <b>your </b>application. I mean, you have put so much work in it, can you then just give it out hand or would you still want to control it?</p>
<p>Of course you could wrap it and distribute it as freeware, but who would install a wrapped package from the internet into their production databases?<br />
You could try to work arround that by splitting of part of the package needing a higher level of privileges into separate packages which are left unwrapped and can be installed into a different schema. But would this be sufficient?</p>
<p>You would also be the sole responsible for support and bug fixing as you are the only one with access to the code. That is the only one, excluding those who have access to an unwrapper, with which they can revert your code back into its original state (including variable names).</p>
<p>Another option would be to share the source code, but what would happen then? Probably people would start modifying <b>your</b> code.<br />
Is this a bad thing? Maybe that depends if they afterwards would start bothering you with questions as &#8220;why it doesn&#8217;t work&#8221; or not.<br />
Would you allow people to send in their modifications or would you only maintain your own version? Could these modified &#8220;versions&#8221; then still use the same name as your original package or not?</p>
<p>Then there is the question of licensing. Would you just publish the code, or would you put a licensing on it? If so, which one?</p>
<p>Many questions and few answers.<br />
So tell me, what would you do and how would you do it?</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/freekdhooge.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/freekdhooge.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freekdhooge.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freekdhooge.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freekdhooge.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freekdhooge.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freekdhooge.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freekdhooge.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freekdhooge.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freekdhooge.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freekdhooge.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freekdhooge.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freekdhooge.wordpress.com&blog=1999228&post=33&subd=freekdhooge&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://freekdhooge.wordpress.com/2008/04/01/open-source-or-freeware/feed/</wfw:commentRss>
		</item>
		<item>
		<title>fun with frequenty based histograms</title>
		<link>http://freekdhooge.wordpress.com/2008/03/31/fun-with-frequenty-based-histograms/</link>
		<comments>http://freekdhooge.wordpress.com/2008/03/31/fun-with-frequenty-based-histograms/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 23:49:47 +0000</pubDate>
		<dc:creator>dhoogfr</dc:creator>
		
		<category><![CDATA[CBO]]></category>

		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://freekdhooge.wordpress.com/?p=32</guid>
		<description><![CDATA[Recently I was reading in Jonathan Lewis&#8217; book &#8220;cost-based oracle fundamentals&#8221; ( I&#8217;m reading this small peaces at a time, otherwise my brain gets overloaded and my head feels like it&#8217;s going to explode) about histograms, when I got to page 168 where Jonathan shows the output of tests with frequenty based histograms. In these [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I was reading in Jonathan Lewis&#8217; book &#8220;cost-based oracle fundamentals&#8221; ( I&#8217;m reading this small peaces at a time, otherwise my brain gets overloaded and my head feels like it&#8217;s going to explode) about histograms, when I got to page 168 where Jonathan shows the output of tests with frequenty based histograms. In these tests Jonathan modifys some CBO statistics by using the set_table_stats and the set_column_stats procedures of the dbms_stats package.</p>
<p>In the first test Jonathan decreases the num_rows of the table, resulting in a decrease of the cardinality in the execution plan. I was surprised by this result, as with a frequenty based histogram available, Oracle knows the exact number of records for the given predicate. Why then would changing the number of rows of the table change the cardinality? So, I did what I always do when I don&#8217;t understand something: I try to work out an example myself.</p>
<p>First I created a table with 10 different values, 1 of the values appearing in 50% of the records.</p>
<blockquote>
<pre>fdh@LOKI&gt; drop table t;

Table dropped.

fdh@LOKI&gt; create table t (veld1 number(10,0));

Table created.

fdh@LOKI&gt; insert into t
  2  select mod(rownum, 9) + 1
  3  from all_objects, all_objects
  4  where rownum  insert into t
  2  select 10
  3  from all_objects, all_objects
  4  where rownum  commit;

Commit complete.

fdh@LOKI&gt; select veld1, count(*) counted
  2  from t
  3  group by veld1
  4  order by veld1;

     VELD1    COUNTED
---------- ----------
         1       5555
         2       5556
         3       5556
         4       5556
         5       5556
         6       5556
         7       5555
         8       5555
         9       5555
        10      50000

10 rows selected.</pre>
</blockquote>
<p>After creating the data I gathered the statistics, asking for a histogram on the field &#8220;VELD1&#8243; with 10 buckets ( which would generate a frequenty based histogram ).</p>
<blockquote>
<pre>fdh@LOKI&gt; BEGIN
2
3      dbms_stats.gather_table_stats
4          ( ownname           =&gt;  NULL,
5            tabname           =&gt;  'T',
6            method_opt        =&gt;  'FOR COLUMNS VELD1 SIZE 10'
7          );
8
9  END;
10  /

PL/SQL procedure successfully completed.

fdh@LOKI&gt; select num_distinct, num_nulls, num_buckets, histogram, density from user_tab_col_statistics where table_name = 'T' and column_name = 'VELD1';

NUM_DISTINCT  NUM_NULLS NUM_BUCKETS HISTOGRAM            DENSITY
------------ ---------- ----------- --------------- ------------
          10          0          10 FREQUENCY         ,000004918

fdh@LOKI&gt; select endpoint_number, endpoint_value from user_tab_histograms where table_name = 'T' and column_name = 'VELD1';

ENDPOINT_NUMBER ENDPOINT_VALUE
--------------- --------------
            314              1
            635              2
            943              3
           1269              4
           1573              5
           1911              6
           2200              7
           2512              8
           2802              9
           5592             10

10 rows selected.</pre>
</blockquote>
<p>Apparently the CBO is thinking that the value 10 appeared 2.790 times (5592 - 2802), which is far less then the 50.000 I would have expected. Also the other values where much lower then the actual counts. The reason for this became clear after querying the user_tables view:</p>
<blockquote>
<pre>fdh@LOKI&gt; select num_rows, sample_size from user_tables where table_name = 'T';  

  NUM_ROWS SAMPLE_SIZE
---------- -----------
    101673        5592</pre>
</blockquote>
<p>Oracle generated the statistics based upon a sample, not the entire table.<br />
A quick check on the dbms_stats.gather_table_stats procedure indeed revealed that I had not included the estimate_percent parameter and that this parameter in 10g did not have the default value of &#8220;NULL&#8221; (compute) anymore. The values showed where the values occuring in the sample. It took me a while to realise that this was also the reason why lowering the num_rows would change the cardinality, but eventually it seeped into my numbed brain: oracle always extrapolates the values it finds in the histograms. It is just that when you don&#8217;t use a sample, the num_rows equals the sample_size, giving a fraction of 1. When you later on then lower the value of num_rows the fraction changes and thus does the cardinality. Therefor the cardinality for a predicate of the form column = constant (with a frequenty based histogram in place) would be:</p>
<pre>           row_count * (user_tables.num_rows / user_tables.sample_size)</pre>
<p>where row_count is the number derived from the histogram.</p>
<p>A second example given by Jonathan however showed that the num_nulls also played a role in the calculation, changing the formula to:</p>
<pre>           row_count * ((user_tables.num_rows - user_tab_columns.num_nulls) / user_tables.sample_size)</pre>
<p>But this striked me as odd. It would only make sense if the sample size did not include the record for which the value was NULL. Something which is not possible for the sample_size column in user_tables as the number of nulls would differ per column. A quick look on the columns of the user_tab_columns view revealed that there was indeed a sample_size column in this view as well ( the cbo can use a different sample size for the histograms then for the table). To test this further, I updated the table - setting veld1=NULL where veld1 = 1 - and gathered the statistics again (using compute this time).</p>
<blockquote>
<pre>fdh@LOKI&gt; select sample_size, num_distinct, num_nulls, num_buckets, histogram, density from user_tab_columns where table_name = 'T' and column_name ='VELD1';

SAMPLE_SIZE NUM_DISTINCT  NUM_NULLS NUM_BUCKETS HISTOGRAM             DENSITY
----------- ------------ ---------- ----------- --------------- -------------
      94445            9       5555           9 FREQUENCY         ,0000052941

fdh@LOKI&gt; set autotrace traceonly explain
fdh@LOKI&gt; select veld1 from t where veld1 = 10;

Execution Plan
----------------------------------------------------------
Plan hash value: 1601196873

--------------------------------------------------------------------------
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
--------------------------------------------------------------------------
|   0 | SELECT STATEMENT  |      | 50000 |    97K|    36   (3)| 00:00:01 |
|*  1 |  TABLE ACCESS FULL| T    | 50000 |    97K|    36   (3)| 00:00:01 |
--------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

1 - filter("VELD1"=10)</pre>
</blockquote>
<p>Which shows that the sample_size was indeed excluding the num_nulls and that the cardinality of the query would still be correct. So the formulla actually becomes:</p>
<pre>           row_count * ((user_tables.num_rows - user_tab_columns.num_nulls) / user_tab_columns.sample_size)</pre>
<p>Although I now understand why changing the number of rows or the number of nulls will change the cardinality I&#8217;m left with the question of why oracle is not just storing the extrapolated numbers, instead of making the calculation each time it needs to now the cardinality? Maybe I&#8217;m overestimating the cost of this calculation, but it just seems to me as a more efficient thing to do.</p>
<p>Oh well, 1 question answered, 99 to go&#8230; .</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/freekdhooge.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/freekdhooge.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freekdhooge.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freekdhooge.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freekdhooge.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freekdhooge.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freekdhooge.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freekdhooge.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freekdhooge.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freekdhooge.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freekdhooge.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freekdhooge.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freekdhooge.wordpress.com&blog=1999228&post=32&subd=freekdhooge&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://freekdhooge.wordpress.com/2008/03/31/fun-with-frequenty-based-histograms/feed/</wfw:commentRss>
		</item>
		<item>
		<title>bugs introduced via patches</title>
		<link>http://freekdhooge.wordpress.com/2008/03/08/bugs-introduced-via-patches/</link>
		<comments>http://freekdhooge.wordpress.com/2008/03/08/bugs-introduced-via-patches/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 12:58:43 +0000</pubDate>
		<dc:creator>dhoogfr</dc:creator>
		
		<category><![CDATA[infrastructure]]></category>

		<category><![CDATA[rac]]></category>

		<guid isPermaLink="false">http://freekdhooge.wordpress.com/?p=31</guid>
		<description><![CDATA[&#8220;Sometimes&#8221; you have to apply patches to your oracle system to fix bugs. This is however not without risk, as patches are just code and thus can contain bugs themself. The same is true for the scripts used to apply the patches, as I found out first hand.
Recently I needed to perform a drop node [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&#8220;Sometimes&#8221; you have to apply patches to your oracle system to fix bugs. This is however not without risk, as patches are just code and thus can contain bugs themself. The same is true for the scripts used to apply the patches, as I found out first hand.<br />
Recently I needed to perform a drop node / add node procedure on an oracle 10gR2 rac (on solaris 10).<br />
During this procedure I ran into the following problems:</p>
<p>When using ocrconfig to check the backups of the cluster registry, I got the following error:</p>
<blockquote>
<pre>ld.so.1: ocrconfig: fatal: libocr10.so: open failed: No such file or directory
Killed</pre>
</blockquote>
<p>After some searching on metalink I found the following bug: 6342492 - ld.so.1: ocrcheck: fatal: libocr10.so: open failed after patch 6000740.<br />
Patch 6000740 is bundle patch MLR7, and the problem with this patch is that the path to make has been hardcoded to a value which is not correct on solaris 10. The solution is to create a symbolic link from /usr/ccs/bin/make to /usr/bin/make, and perform a relink all.</p>
<p>Yep, a hardcoded path. The same problem which requires you to create symbolic links for scp and ssh into the /usr/local/bin directory on solaris 10 when installing a rac system. You would think they learn from their mistakes&#8230; .</p>
<p>The second problem I ran into, appeared during the addnode procedure. During the copy of the cluster home to the new node, oracle complained that not all files could be copied.<br />
When I checked the logfile I found the following messages:</p>
<blockquote>
<pre>WARNING: Error while copying directory /opt/oracle/crs with exclude file list '/tmp/OraInstall2008-02-09_04-20-28PM/installExcludeFile.lst' to no
des 'eocpc-rc01'. [PRKC-1073 : Failed to transfer directory "/opt/oracle/crs" to any of the given nodes "eocpc-rc01 ".
Error on node eocpc-rc01:tar: ./lib/prod/lib: Permission denied
tar: ./lib/prod/lib: Permission denied
tar: cannot open ./lib/prod/lib No such file or directory
tar: ./lib/prod/lib: Permission denied
tar: cannot open ./lib/prod/lib/v9 No such file or directory
tar: ./lib/prod/lib: Permission denied
tar: cannot open ./lib/prod/lib/v9 No such file or directory
tar: ./lib/prod/lib: Permission denied
tar: cannot open ./lib/prod/lib/v9 No such file or directory
tar: ./lib/prod/lib: Permission denied
tar: cannot open ./lib/prod/lib/v9 No such file or directory
tar: ./lib/prod/lib: Permission denied
tar: cannot open ./lib/prod/lib/v9 No such file or directory
tar: ./lib/prod/lib: Permission denied
tar: cannot open ./lib/prod/lib/v9 No such file or directory
tar: ./lib/prod/lib: Permission denied
tar: cannot open ./lib/prod/lib/v9 No such file or directory]</pre>
</blockquote>
<p>All problem files where located in the same directory, and this directory was lacking write privileges for the oracle user.</p>
<blockquote>
<pre>[oracle@eocpc-rc02:~]$ find /opt/oracle/crs/lib/prod -exec ls -ald {} \;
<font color="#ff0000">dr-xrwx&#8212;   3 oracle   oinstall     512 May  5  2007 /opt/oracle/crs/lib/prod</font>
drwxrwx&#8212;   3 oracle   oinstall     512 May  5  2007 /opt/oracle/crs/lib/prod/lib
drwxrwx&#8212;   2 oracle   oinstall     512 May  5  2007 /opt/oracle/crs/lib/prod/lib/v9
-rw-rw&#8212;-   1 oracle   oinstall    2824 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/CCrti.o
-rw-rw&#8212;-   1 oracle   oinstall    1232 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/CCrtn.o
-rw-rw&#8212;-   1 oracle   oinstall    3064 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/crt1.o
-rw-rw&#8212;-   1 oracle   oinstall     776 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/crti.o
-rw-rw&#8212;-   1 oracle   oinstall     712 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/crtn.o
-rw-rw&#8212;-   1 oracle   oinstall   14736 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/libCCexcept.so.1
-rw-rw&#8212;-   1 oracle   oinstall   19056 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/libldstab_ws.so</pre>
</blockquote>
<p>A quick check on a new, net yet patched installation confirmed that this was not a normal situation:</p>
<blockquote>
<pre>-[oracle@eocsp-rc51:~]$ find /opt/oracle/crs/lib/prod -exec ls -ald {} \;
<font color="#ff0000">drwxrwx&#8212;   3 oracle   oinstall     512 Feb  7 23:47 /opt/oracle/crs/lib/prod</font>
drwxrwx&#8212;   3 oracle   oinstall     512 Feb  7 23:47 /opt/oracle/crs/lib/prod/lib
drwxrwx&#8212;   2 oracle   oinstall     512 Feb  7 23:48 /opt/oracle/crs/lib/prod/lib/v9
-rw-rw&#8212;-   1 oracle   oinstall    2824 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/CCrti.o
-rw-rw&#8212;-   1 oracle   oinstall    1232 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/CCrtn.o
-rw-rw&#8212;-   1 oracle   oinstall    3064 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/crt1.o
-rw-rw&#8212;-   1 oracle   oinstall     776 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/crti.o
-rw-rw&#8212;-   1 oracle   oinstall     712 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/crtn.o
-rw-rw&#8212;-   1 oracle   oinstall   14736 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/libCCexcept.so.1
-rw-rw&#8212;-   1 oracle   oinstall   19056 Mar 13  2003 /opt/oracle/crs/lib/prod/lib/v9/libldstab_ws.so</pre>
</blockquote>
<p>Making the lib/prod directory in the crs home writable again for the oinstall group did indeed solve the problem.<br />
Sofar I have found 2 different patches which introduces this problem:</p>
<ul>
<li>6000740                MLR7</li>
<li>5749953                ons sigbus error after install patchset 10.2.0.3 for crs</li>
</ul>
<p>A quick search on metalink did not found this problem listed as a known bug. I will file one next week. (If I find the time)</p>
<p>Interesting to note is that these 2 problems are also not likely to be discovered by applying the patch on a test system.<br />
I don&#8217;t think there are many dba&#8217;s who are performing an addnode procedure when testing a new patchset&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/freekdhooge.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/freekdhooge.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freekdhooge.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freekdhooge.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freekdhooge.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freekdhooge.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freekdhooge.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freekdhooge.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freekdhooge.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freekdhooge.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freekdhooge.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freekdhooge.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freekdhooge.wordpress.com&blog=1999228&post=31&subd=freekdhooge&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://freekdhooge.wordpress.com/2008/03/08/bugs-introduced-via-patches/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Gunnar</title>
		<link>http://freekdhooge.wordpress.com/2008/02/17/gunnar/</link>
		<comments>http://freekdhooge.wordpress.com/2008/02/17/gunnar/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 12:52:59 +0000</pubDate>
		<dc:creator>dhoogfr</dc:creator>
		
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://freekdhooge.wordpress.com/?p=29</guid>
		<description><![CDATA[Hello World,
My name is Gunnar D&#8217;Hooge, and I&#8217;m Freek and Edda&#8217;s son.
I just dropped by to inform you all of my birth on 14, Februari.
Yes, I&#8217;m feeling well, thank you.
I&#8217;m looking forward to start working with Oracle, but my dad told me I will still have to wait a couple of years before I can [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hello World,</p>
<p>My name is Gunnar D&#8217;Hooge, and I&#8217;m Freek and Edda&#8217;s son.<br />
I just dropped by to inform you all of my birth on 14, Februari.<br />
Yes, I&#8217;m feeling well, thank you.</p>
<p>I&#8217;m looking forward to start working with Oracle, but my dad told me I will still have to wait a couple of years before I can start working on a pc.<br />
I was really sad when I heard this, so dad bought me a special lamp. It has the shape of a penguin. Not sure what this means, but I&#8217;m sure it is important.</p>
<p>Anyway, here you have a picture of me. Ain&#8217;t I cute?</p>
<p><a href="http://freekdhooge.files.wordpress.com/2008/02/gunnar_web.jpg" title="gunnar"><img src="http://freekdhooge.files.wordpress.com/2008/02/gunnar_web.thumbnail.jpg" alt="gunnar" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/freekdhooge.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/freekdhooge.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freekdhooge.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freekdhooge.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freekdhooge.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freekdhooge.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freekdhooge.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freekdhooge.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freekdhooge.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freekdhooge.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freekdhooge.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freekdhooge.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freekdhooge.wordpress.com&blog=1999228&post=29&subd=freekdhooge&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://freekdhooge.wordpress.com/2008/02/17/gunnar/feed/</wfw:commentRss>
	
		<media:content url="http://freekdhooge.files.wordpress.com/2008/02/gunnar_web.thumbnail.jpg" medium="image">
			<media:title type="html">gunnar</media:title>
		</media:content>
	</item>
		<item>
		<title>rman backup to tape when you don&#8217;t have a tape</title>
		<link>http://freekdhooge.wordpress.com/2008/02/04/rman-backup-to-tape-when-you-dont-have-a-tape/</link>
		<comments>http://freekdhooge.wordpress.com/2008/02/04/rman-backup-to-tape-when-you-dont-have-a-tape/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 22:14:13 +0000</pubDate>
		<dc:creator>dhoogfr</dc:creator>
		
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://freekdhooge.wordpress.com/?p=28</guid>
		<description><![CDATA[Something I already knew for a couple of years, but recently rediscovered it: rman has the possibility to mimic a backup to tape.
You can do this by specifying the oracle test disk api when allocating the channel:


[oracle@ragna oracle]$ cd /opt/oracle
[oracle@ragna oracle]$ mkdir tape_backup
[oracle@ragna oracle]$ export ORACLE_SID=LOKI
[oracle@ragna oracle]$ rman target / nocatalog

Recovery Manager: Release 10.2.0.3.0 - [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Something I already knew for a couple of years, but recently rediscovered it: rman has the possibility to mimic a backup to tape.<br />
You can do this by specifying the oracle test disk api when allocating the channel:</p>
<blockquote>
<pre>
[oracle@ragna oracle]$ cd /opt/oracle
[oracle@ragna oracle]$ mkdir tape_backup
[oracle@ragna oracle]$ export ORACLE_SID=LOKI
[oracle@ragna oracle]$ rman target / nocatalog

Recovery Manager: Release 10.2.0.3.0 - Production on Mon Feb 4 21:04:33 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

connected to target database: LOKI (DBID=2591136617)
using target database control file instead of recovery catalog

RMAN&gt; run {
 <font color="#ff0000"><b>allocate channel ch00 device type &#8216;SBT_TAPE&#8217;
    PARMS=&#8221;SBT_LIBRARY=oracle.disksbt,
    ENV=(BACKUP_DIR=/opt/oracle/tape_backup)&#8221;;</b></font>
 backup datafile 1 format=&#8217;%U&#8217;;
}
2&gt; 3&gt; 4&gt; 5&gt; 6&gt;
allocated channel: ch00
channel ch00: sid=140 devtype=SBT_TAPE
channel ch00: WARNING: Oracle Test Disk API

Starting backup at 04-FEB-08
channel ch00: starting full datafile backupset
channel ch00: specifying datafile(s) in backupset
input datafile fno=00001 name=/opt/oracle/oradata/LOKI/system01.dbf
channel ch00: starting piece 1 at 04-FEB-08
channel ch00: finished piece 1 at 04-FEB-08
piece handle=1dj7t4rb_1_1 tag=TAG20080204T210443 comment=API Version 2.0,MMS Version 8.1.3.0
channel ch00: backup set complete, elapsed time: 00:00:25
channel ch00: starting full datafile backupset
channel ch00: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel ch00: starting piece 1 at 04-FEB-08
channel ch00: finished piece 1 at 04-FEB-08
piece handle=1ej7t4s4_1_1 tag=TAG20080204T210443 comment=API Version 2.0,MMS Version 8.1.3.0
channel ch00: backup set complete, elapsed time: 00:00:06
Finished backup at 04-FEB-08
released channel: ch00

RMAN&gt; list backup;

List of Backup Sets
===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;
36      Full    346.25M    SBT_TAPE    00:00:23     04-FEB-08
        BP Key: 36   Status: AVAILABLE  Compressed: NO  Tag: TAG20080204T210443
        Handle: 1dj7t4rb_1_1   Media:
  List of Datafiles in backup set 36
  File LV Type Ckp SCN    Ckp Time  Name
  &#8212;- &#8212; &#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212; &#8212;-
  1       Full 2854789    04-FEB-08 /opt/oracle/oradata/LOKI/system01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;
37      Full    8.75M      SBT_TAPE    00:00:04     04-FEB-08
        BP Key: 37   Status: AVAILABLE  Compressed: NO  Tag: TAG20080204T210443
        Handle: 1ej7t4s4_1_1   Media:
  Control File Included: Ckp SCN: 2854804      Ckp time: 04-FEB-08
  SPFILE Included: Modification time: 04-FEB-08

RMAN&gt; exit

Recovery Manager complete.
[oracle@ragna oracle]$ ls -lhd tape_backup/
drwxr-xr-x  2 oracle oinstall 4.0K Feb  4 21:05 tape_backup/
[oracle@ragna oracle]$ ls -lh tape_backup/
total 356M
-rw-rw-rw-  1 oracle oinstall 347M Feb  4 21:05 1dj7t4rb_1_1
-rw-rw-rw-  1 oracle oinstall 8.8M Feb  4 21:05 1ej7t4s4_1_1
-rw-r&#8211;r&#8211;  1 oracle oinstall 2.0K Feb  4 21:05 Oracle_Disk_SBT_Catalog</pre>
</blockquote>
<p>Neat isn&#8217;t it?<br />
But what can you use it for, I hear you say?<br />
Well, euh&#8230;..  Testing I suppose or maybe for learning purposes. I&#8217;m sure someone might know a good use for it.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/freekdhooge.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/freekdhooge.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freekdhooge.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freekdhooge.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freekdhooge.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freekdhooge.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freekdhooge.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freekdhooge.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freekdhooge.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freekdhooge.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freekdhooge.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freekdhooge.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freekdhooge.wordpress.com&blog=1999228&post=28&subd=freekdhooge&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://freekdhooge.wordpress.com/2008/02/04/rman-backup-to-tape-when-you-dont-have-a-tape/feed/</wfw:commentRss>
		</item>
		<item>
		<title>oracle unbreakable linux with Wim Coekaerts</title>
		<link>http://freekdhooge.wordpress.com/2008/01/25/oracle-unbreakable-linux-with-wim-coekaerts/</link>
		<comments>http://freekdhooge.wordpress.com/2008/01/25/oracle-unbreakable-linux-with-wim-coekaerts/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 23:26:45 +0000</pubDate>
		<dc:creator>dhoogfr</dc:creator>
		
		<category><![CDATA[Oracle VM]]></category>

		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://freekdhooge.wordpress.com/?p=27</guid>
		<description><![CDATA[Today we had an Oracle partner meeting with Wim Coekaerts.
For those who don&#8217;t know who Wim Coekaerts is, he is vice president of Linux Engineering for Oracle (and originating from Belgium, but living in the US for more then 10 years now) and is also known as Oracle&#8217;s Mr. Linux.
Needless to say that when I [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today we had an Oracle partner meeting with Wim Coekaerts.<br />
For those who don&#8217;t know who Wim Coekaerts is, he is vice president of Linux Engineering for Oracle (and originating from Belgium, but living in the US for more then 10 years now) and is also known as Oracle&#8217;s Mr. Linux.<br />
Needless to say that when I received an inventation to attend a partner meeting with him, I was quickly to confirm my presence.</p>
<p>The presentation that Wim gave was divided into 2 parts: Oracle unbreakable linux and Oracle VM. Both parts where very interesting and at the end we had more then enough time to ask questions.</p>
<p>Some key points that I have written down:</p>
<h5>Enterprise linux:</h5>
<ul>
<li>Oracle did not launched oracle enterprise linux to bully Redhat or to push Redhat out of the market.<br />
They came with their own linux support because they felt that oracle customers where not helped sufficiently by Redhat support. As oracle software can be freely downloaded for testing and this is not possible with Redhat linux, oracle came with an own rebuild.</li>
</ul>
<ul>
<li>Oracle Enterprise linux is not a separate fork and never will be. It is, and stays completely compatible with Redhat linux.<br />
In fact, when oracle tests its software, they don&#8217;t differentiate between Oracle Enterprise linux and Redhat linux as os platform.</li>
</ul>
<ul>
<li>Oracle did not include an option to the installer to provide it with &#8220;preset&#8221; options suited to host an oracle database (needed rpm&#8217;s, kernel parameters, &#8230;), because they did not want to create the appearance that they are creating a fork.<br />
Instead oracle created the &#8220;oracle validated configuration&#8221; rpm. When installing this rpm, it will also install all rpm&#8217;s necessary, creates the oracle user and sets the kernel parameters and user os limites.</li>
</ul>
<ul>
<li>Linux (32bit) is the reference platform for all development.<br />
It is also the platform for all internal servers.</li>
</ul>
<h5>Oracle VM:</h5>
<ul>
<li>Wim claimed (and a paper about this would be appearing soon) that an oracle database running in oracle VM will perform at about 90% compared to running it on a real server. With VMware this would only be 70%.</li>
</ul>
<ul>
<li>You no longer have to license your database for all physical processors on the oracle VM server, but only the number of cpu&#8217;s defined in the guest.<br />
According to Wim there should be a document about this on the oracle site, but the document I found stated that this was only true when using hard partitioning with Oracle VM (http://www.oracle.com/corporate/pricing/partitioning.pdf).<br />
I will check this further.</li>
</ul>
<ul>
<li>The license policy for oracle on vmware was not going to change.</li>
</ul>
<ul>
<li>Grid control 11g will have buildin functionality to manage Oracle VM servers (deploying guests, performing life migrations, &#8230;), but the VM-Manager will not disappear.</li>
</ul>
<ul>
<li>The oracle supplied guest images will be certified for production use somewhere during the second half of this year.<br />
This would mean that you could download a database image from the oracle site and use it as a production database.</li>
</ul>
<p>That was about it.<br />
After the presentation I felt more assured that OEL would be here to stay and that the compatibility between Redhat linux and OEL would not disappear in the future.<br />
Not to sure about Oracle VM though, I&#8217;m still a little bit anxious of running production databases in a virtualized environment (according to my shrink I have a problem with losing control).</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/freekdhooge.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/freekdhooge.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freekdhooge.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freekdhooge.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freekdhooge.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freekdhooge.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freekdhooge.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freekdhooge.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freekdhooge.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freekdhooge.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freekdhooge.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freekdhooge.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freekdhooge.wordpress.com&blog=1999228&post=27&subd=freekdhooge&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://freekdhooge.wordpress.com/2008/01/25/oracle-unbreakable-linux-with-wim-coekaerts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Askimet spam filter</title>
		<link>http://freekdhooge.wordpress.com/2008/01/20/askimet-spam-filter/</link>
		<comments>http://freekdhooge.wordpress.com/2008/01/20/askimet-spam-filter/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 22:35:05 +0000</pubDate>
		<dc:creator>dhoogfr</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://freekdhooge.wordpress.com/2008/01/20/askimet-spam-filter/</guid>
		<description><![CDATA[I have noticed that the spam counter has been going up without new spam messages being listed in the spam filter.  So it looks like the askimet spam filter is marking some posts as spam without giving me the possibility to moderate them.
If you notice that a posted comment is not published on the blog, [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have noticed that the spam counter has been going up without new spam messages being listed in the spam filter.  So it looks like the askimet spam filter is marking some posts as spam without giving me the possibility to moderate them.</p>
<p>If you notice that a posted comment is not published on the blog, then please send an email to the address listed in the &#8220;about&#8221; section.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/freekdhooge.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/freekdhooge.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freekdhooge.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freekdhooge.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freekdhooge.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freekdhooge.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freekdhooge.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freekdhooge.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freekdhooge.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freekdhooge.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freekdhooge.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freekdhooge.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freekdhooge.wordpress.com&blog=1999228&post=26&subd=freekdhooge&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://freekdhooge.wordpress.com/2008/01/20/askimet-spam-filter/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>