<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>ORA600 blogs</title>
  <subtitle>Last resort Oracle recovery</subtitle>
  <link rel="alternate" type="text/html" href="http://www.ora600.be/blog"/>
  <link rel="self" type="application/atom+xml" href="http://www.ora600.be/blog/atom/feed"/>
  <id>http://www.ora600.be/blog/atom/feed</id>
  <updated>2008-12-17T14:29:25+01:00</updated>
  <entry>
    <title>Unloading history - old Oracle7 dictionary</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/node/10707" />
    <id>http://www.ora600.be/node/10707</id>
    <published>2010-09-02T17:11:18+02:00</published>
    <updated>2010-09-02T17:11:18+02:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="dude" />
    <category term="oracle dictionary" />
    <summary type="html"><![CDATA[<div>When I saw <a href="http://jonathanlewis.wordpress.com/2010/09/01/oracle-versions%20it%20reminded%20me">Jonathan's post</a> it reminded me of the work I did last weekend.</div><div>Friday evening I got 2 datafiles - one SYSTEM and one DATA datafile.</div><div><br /></div><div>I only knew the platform but I had send out a request for more information. You can quite easily find out endianness and blocksizes... but the Oracle version is a bit different.</div><div>With this one, I was quite certain they were Oracle 7 datafiles. For one thing, when DUDE scanned the fileheaders it decoded the filenumbers as being a multiple of 2. SYSTEM turned out to be file#=16. I'll explain later.</div><div> </div><div>Secondly, setting DUDE's VERSION parameter to '7', allowed me to unload the dictionary without too much trouble.</div><div><br /></div><div>However, when I wanted to unload data from the actual datafile, no data objectid's were found in obj$ or tab$ !!! How could that be !</div><div>So I started to investigate the dictionary - looking at the SYSTEM tablespace with an hex editor.</div><div>Blocks were fine, however, there was huge gap in objectid's being used, jumping from 3000 to 41000.</div><div>Hmm... a serious part of the dictionary was missing - maybe completely overwritten.</div><div><br /></div><div>I then got word back that this was an Oracle 8.0.x database and even more surprising, the database was up and running except for one datafile that had been offlined. (the one they needed data from).</div><div>So, the dictionary had to be good ! </div><div><br /></div><div>I was too puzzled at the time - it was only when I took a step back and thought about it for a while everything came together. </div><div>This was an Oracle 8.0.x, which was once an Oracle 7.3.4 migrated to 8.0.x using Oracle's 'mig' utility. 'mig' doesn't exist anymore - it's functionality has basically taken over by 'startup migrate' and the upgrade scripts. </div><div>Back in the day you had to run the mig utility on your database, which would upgrade your dictionary, using 'migrate.bsq' script. No startup migrate there!</div><div> </div><div>To migrate the dictionary, new dictionary tables were created. For example, if you had obj$, tab$, col$, then mig utility would create obj_mig$, tab_mig$ and col_mig$ and then it would migrate the data from the old dictionary to the new dictionary and basically switch names. That would mean that the objectid's (and of course data objectid's) of the base dictionary tables are totally different than a normal 8.0 database.</div><div>In this case, they would be in the 41000 range, because that was the range of objectid's of the most recent created object/segment. </div><div>The old dictionary would then be dropped ... but orphaned extents might sit untouched for years in your system tablespace.</div><div> </div><div>And that's exactly happened when I unloaded the dictionary with VERSION='7'. </div><div>DUDE found the left-overs of the old dictionary. However, DUDE should have unloaded the new dictionary !</div><div><br /></div><div>So how does Oracle find the dictionary ?</div><div> </div><div>Well, in the tablespace header block of the SYSTEM tablespace, there's a pointer pointing to the bootstrap$ table. The bootstrap$ table contains ddl for the base dictionary tables (and indexes) including data objectid's (and table numbers for clustered tables).</div><div>(you'll also find the ddl for the base dictionary in the sql.bsq script which is used when the database is created)</div><div> </div><div>Here's an example from bootstrap $: </div><div> 17&quot;,&quot;2407&quot;,&quot;CREATE TABLE OBJ$ ( OBJ# NUMBER NOT NULL, DATAOBJ# NUMBER, OWNER# NUMBER NOT NULL, NAME VARCHAR2(30) NOT NULL, NAMESPACE NUMBER NOT NULL, SUBNAME VARCHAR2(30), TYPE# NUMBER NOT NULL, CTIME DATE NOT NULL, MTIME DATE NOT NULL, STIME DATE NOT NULL, STATUS NUMBER NOT NULL, REMOTEOWNER VARCHAR2(30), LINKNAME VARCHAR2(128), FLAGS NUMBER, OID$ RAW(16), SPARE1 NUMBER, SPARE2 NUMBER, SPARE3 NUMBER, SPARE4 VARCHAR2(1000), SPARE5 VARCHAR2(1000), SPARE6 DATE) pctfree 10 pctused 40 initrans 1 maxtrans 255 storage ( initial 10240 next 126976 minextents 1 maxextents 121 pctincrease 50 <b>objno 2407</b> extents ( <b>file 40 block 247</b>))&quot;</div><div><br /></div><div>You'll notice that it contains some key pointers for the described table, like file# (40), offset (247) and dataobjectid (2407). For tables part of a clustered table, it will also contain the table number within the cluster.</div><div><br /></div><div>So once we have the bootstrap$ segment, we'll know the location of dictionary !</div><div><br /></div><div>DUDE actually has the ability to actually 'search' for the bootstrap$ segment based on it's characteristics.</div><div>It does not however parse the bootstrap ddl for objectid's and table numbers - but once you have the output for bootstrap$, it's quite straightforward to punch in DUDE's bootstrap parameters like :</div><div><ul>			<li>BOOTSTRAP_FILE_OID</li>		<li>BOOTSTRAP_OBJ_OID</li>		<li>BOOTSTRAP_COBJ_OID</li>		<li>BOOTSTRAP_CFILEBLOCK_OID</li>		<li>BOOTSTRAP_CTS_OID</li>		<li>BOOTSTRAP_CUSER_OID</li>		<li>BOOTSTRAP_TAB_TABNO</li>		<li>BOOTSTRAP_IND_TABNO</li>		<li>BOOTSTRAP_ICOL_TABNO</li>		<li>BOOTSTRAP_COL_TABNO</li>		<li>BOOTSTRAP_LOB_TABNO</li>		<li>BOOTSTRAP_SEG_TABNO</li>		<li>BOOTSTRAP_TS_TABNO</li>		<li>BOOTSTRAP_USER_TABNO </li></ul></div><div><br /></div><div>These parameters are explained in the <a href="http://www.ora600.be/DUDE_PRIMER.pdf" target="_blank">DUDE primer here</a>.</div><div><br /></div><div>Anyway, once I set these parameters, I was home free, unloading a complete Oracle8 dictionary !!!</div><div><br /></div><div><br /></div><div>So what about the SYSTEM datafile having a filenumber larger than 1 ?</div><div><br /></div><div>In Oracle 6 there were only 5 to 6 bits used for the file number. So only a maximum of 2^5-1 (31) or 2^6-1 (63) datafiles could be used (database wide).</div><div>In Oracle 7 this changed to 10bits or 2^10-1 (1023) datafiles (database wide). However, because of backward compatibility with Oracle 6 an encoding scheme was introduced splitting up the 10bits for file number into 6 and 4 bits and wrapping them around. It really depends on the platform. On intel windows and IBM AIX for example, I’ve seen an 8/2 split.</div><div> </div><div>SVRMGR&gt; select dump(chartorowid('00000000.0000.0001')) from dual ;</div><div>DUMP(CHARTOROWID('0000000</div><div>-------------------------</div><div>Typ=69 Len=6: 1,0,0,0,0,0</div><div>1 row selected.</div><div>SVRMGR&gt; select dump(chartorowid('00000000.0000.ffff')) from dual ;</div><div>DUMP(CHARTOROWID('00000000.00</div><div>-----------------------------</div><div>Typ=69 Len=6: 255,192,0,0,0,0</div><div>1 row selected.</div><div> </div><div>This means that the first file# is :</div><div>00000001 00000000 00000000 00000000 -&gt; file# 1</div><div> </div><div>And the maximum file# is :</div><div>11111111 11000000 00000000 00000000 -&gt; file# 1023</div><div> </div><div>So the 10bits encoding scheme is like this :</div><div>LLLL LLLL HH</div><div>Where L is the low order bits</div><div>And H the high order bits</div><div> </div><div>Now let’s open DUDE on a series of these datafiles :</div><div> </div><div>DUDE&gt; Initialising ...</div><div>DUDE&gt; Init : creating filenumber map ...</div><div>DUDE&gt; Scanning tablespace SYSTEM : BLOCKSIZE = 2048</div><div>DUDE&gt; File : <b>G:\sys1orcl.ora resolves to number : 4</b></div><div>DUDE&gt; File : <b>G:\sys2.ora resolves to number : 40</b></div><div> </div><div>You’ll notice that sys1orcl.ora which is basically the first file of the database has file# equal to 4. And we know that sys2.ora had file# equal to 10. How’s that possible ?</div><div> </div><div>File# 1 = 0000 0001 00 (LLLL LLLL HH) EQUALS 4 in Oracle 8 DBA format</div><div>File# 10 = 0000 1010 00 (LLLL LLLL HH) EQUALS 40 in Oracle 8 DBA format</div><div> </div><div>It’s clear that using the Oracle 8 DBA format encoding on the Oracle 7 wrapped DBA format, results in different file numbers. Basically, <b>the file number shifted 2 bits to the left (or x2x2)</b>. This is of course platform specific, but if the first file of SYSTEM has a file number that is a multiple of 2, you probably have a migrated database.</div><div> </div><div>So what happened when Oracle 8.0 came along and introduced 2^10-1 or 1023 datafiles per tablespace !</div><div> </div><div>Well – the DBA format stayed the same. However, the file numbers became relative to the tablespace. So 2 datafiles of the same database could have potentially the same file number, but belong to 2 different tablespaces!</div><div> </div><div>What happened to the Oracle 7 (absolute) file numbers when it was migrated to Oracle8. Surely, the mig utility didn’t update the DBA for all blocks ?</div><div> </div><div>Let’s check out an Oracle 7 database :</div><div> </div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SVRMGR&gt; desc file$</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">Column Name <span class="Apple-tab-span" style="white-space: pre">			</span>Null? <span class="Apple-tab-span" style="white-space: pre">	</span>Type</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">------------------------------ -------- ----</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">FILE# <span class="Apple-tab-span" style="white-space: pre">				</span>NOT NULL NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">STATUS$ <span class="Apple-tab-span" style="white-space: pre">			</span>NOT NULL NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">BLOCKS <span class="Apple-tab-span" style="white-space: pre">				</span>NOT NULL NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">TS# <span class="Apple-tab-span" style="white-space: pre">				</span>NOT NULL NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"> </span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SVRMGR&gt; select file#, ts# from file$ ;</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">FILE# <span class="Apple-tab-span" style="white-space: pre">		</span>TS#</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">---------- ----------</span></span></div><div><span class="Apple-style-span" style="font-size: small; font-family: 'courier new', courier"><span class="Apple-style-span" style="background-color: #ffff00">1 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">2 <span class="Apple-tab-span" style="white-space: pre">		</span>1</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">3 <span class="Apple-tab-span" style="white-space: pre">		</span>2</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">4 <span class="Apple-tab-span" style="white-space: pre">		</span>3</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">5 <span class="Apple-tab-span" style="white-space: pre">		</span>8</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">6 <span class="Apple-tab-span" style="white-space: pre">		</span>9</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">7 <span class="Apple-tab-span" style="white-space: pre">		</span>10</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">8 <span class="Apple-tab-span" style="white-space: pre">		</span>7</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">9 <span class="Apple-tab-span" style="white-space: pre">		</span>11</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><span class="Apple-style-span" style="background-color: #ffff00">10 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">10 rows selected.</span></span></div><div> </div><div>Ok – looks logical – we see that tablespace TS#=0 or SYSTEM has 2 datafiles with file#=1 and file#=10.</div><div> </div><div>Let’s do the same after a migration to 8.0 :</div><div> </div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SVRMGR&gt; desc file$</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">Column Name <span class="Apple-tab-span" style="white-space: pre">			</span>Null? <span class="Apple-tab-span" style="white-space: pre">		</span>Type</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">------------------------------ -------- <span class="Apple-tab-span" style="white-space: pre">	</span>----</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><b><span class="Apple-style-span" style="background-color: #ffff00">FILE# </span></b><span class="Apple-tab-span" style="white-space: pre"><b><span class="Apple-style-span" style="background-color: #ffff00">				</span></b></span><b><span class="Apple-style-span" style="background-color: #ffff00">NOT NULL </span></b><span class="Apple-tab-span" style="white-space: pre"><b><span class="Apple-style-span" style="background-color: #ffff00">	</span></b></span><b><span class="Apple-style-span" style="background-color: #ffff00">NUMBER</span></b></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">STATUS$ <span class="Apple-tab-span" style="white-space: pre">			</span>NOT NULL <span class="Apple-tab-span" style="white-space: pre">	</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">BLOCKS <span class="Apple-tab-span" style="white-space: pre">				</span>NOT NULL <span class="Apple-tab-span" style="white-space: pre">	</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">TS# <span class="Apple-tab-span" style="white-space: pre">						</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><b><span class="Apple-style-span" style="background-color: #ffff00">RELFILE# </span></b><span class="Apple-tab-span" style="white-space: pre"><b><span class="Apple-style-span" style="background-color: #ffff00">					</span></b></span><b><span class="Apple-style-span" style="background-color: #ffff00">NUMBER</span></b></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">MAXEXTEND <span class="Apple-tab-span" style="white-space: pre">					</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">INC <span class="Apple-tab-span" style="white-space: pre">						</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">CRSCNWRP <span class="Apple-tab-span" style="white-space: pre">					</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">CRSCNBAS <span class="Apple-tab-span" style="white-space: pre">					</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">OWNERINSTANCE <span class="Apple-tab-span" style="white-space: pre">					</span>VARCHAR2(30)</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SPARE1 <span class="Apple-tab-span" style="white-space: pre">						</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SPARE2 <span class="Apple-tab-span" style="white-space: pre">						</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SPARE3 <span class="Apple-tab-span" style="white-space: pre">						</span>VARCHAR2(1000)</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SPARE4 <span class="Apple-tab-span" style="white-space: pre">						</span>DATE</span></span></div><div> </div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SVRMGR&gt; select file#,ts# from file$ ;</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">FILE# <span class="Apple-tab-span" style="white-space: pre">		</span>TS#</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">---------- ----------</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><span class="Apple-style-span" style="background-color: #ffff00">1 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">2 <span class="Apple-tab-span" style="white-space: pre">		</span>1</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">3 <span class="Apple-tab-span" style="white-space: pre">		</span>2</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">4 <span class="Apple-tab-span" style="white-space: pre">		</span>3</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">5 <span class="Apple-tab-span" style="white-space: pre">		</span>8</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">6 <span class="Apple-tab-span" style="white-space: pre">		</span>9</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">7 <span class="Apple-tab-span" style="white-space: pre">		</span>10</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">8 <span class="Apple-tab-span" style="white-space: pre">		</span>7</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">9 <span class="Apple-tab-span" style="white-space: pre">		</span>11</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><span class="Apple-style-span" style="background-color: #ffff00">10 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">10 rows selected.</span></span></div><div> </div><div>So – the file# for the datafiles stayed the same. But we can see an add column in file$ - relfile# :</div><div> </div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SVRMGR&gt; select file#,relfile#,ts# from file$ ;</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">FILE# <span class="Apple-tab-span" style="white-space: pre">		</span><span class="Apple-style-span" style="background-color: #ffff00"><b>RELFILE#</b></span> <span class="Apple-tab-span" style="white-space: pre">	</span>TS#</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">---------- <span class="Apple-tab-span" style="white-space: pre">	</span>---------- <span class="Apple-tab-span" style="white-space: pre">	</span>----------</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><span class="Apple-style-span" style="background-color: #ffff00">1 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">4 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">2 <span class="Apple-tab-span" style="white-space: pre">		</span>8 <span class="Apple-tab-span" style="white-space: pre">		</span>1</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">3 <span class="Apple-tab-span" style="white-space: pre">		</span>12 <span class="Apple-tab-span" style="white-space: pre">		</span>2</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">4 <span class="Apple-tab-span" style="white-space: pre">		</span>16 <span class="Apple-tab-span" style="white-space: pre">		</span>3</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">5 <span class="Apple-tab-span" style="white-space: pre">		</span>20 <span class="Apple-tab-span" style="white-space: pre">		</span>8</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">6 <span class="Apple-tab-span" style="white-space: pre">		</span>24 <span class="Apple-tab-span" style="white-space: pre">		</span>9</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">7 <span class="Apple-tab-span" style="white-space: pre">		</span>28 <span class="Apple-tab-span" style="white-space: pre">		</span>10</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">8 <span class="Apple-tab-span" style="white-space: pre">		</span>32 <span class="Apple-tab-span" style="white-space: pre">		</span>7</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">9 <span class="Apple-tab-span" style="white-space: pre">		</span>36 <span class="Apple-tab-span" style="white-space: pre">		</span>11</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><span class="Apple-style-span" style="background-color: #ffff00">10 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">40 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">10 rows selected.</span></span></div><div> </div><div>Here we can clearly see the 2bit shift to the left – <b><span class="Apple-style-span" style="background-color: #ffff00">the Oracle 7 absolute filenumber became an Oracle 8 relative filenumber.</span></b></div><div>So the mig utility did not have to :</div><div><ul>			<li>update the DBA in a block</li>		<li>row addresses in chained and migrated rows</li></ul></div><div><br /></div><div>More info on the topic can be found on Metalink - see note 122926.1 ...</div><div> </div><div>I think I'll have to lay down now <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" border="0" alt="Wink" title="Wink" /> </div><div><br /></div>    ]]></summary>
    <content type="html"><![CDATA[<div>When I saw <a href="http://jonathanlewis.wordpress.com/2010/09/01/oracle-versions%20it%20reminded%20me">Jonathan's post</a> it reminded me of the work I did last weekend.</div><div>Friday evening I got 2 datafiles - one SYSTEM and one DATA datafile.</div><div><br /></div><div>I only knew the platform but I had send out a request for more information. You can quite easily find out endianness and blocksizes... but the Oracle version is a bit different.</div><div>With this one, I was quite certain they were Oracle 7 datafiles. For one thing, when DUDE scanned the fileheaders it decoded the filenumbers as being a multiple of 2. SYSTEM turned out to be file#=16. I'll explain later.</div><div> </div><div>Secondly, setting DUDE's VERSION parameter to '7', allowed me to unload the dictionary without too much trouble.</div><div><br /></div><div>However, when I wanted to unload data from the actual datafile, no data objectid's were found in obj$ or tab$ !!! How could that be !</div><div>So I started to investigate the dictionary - looking at the SYSTEM tablespace with an hex editor.</div><div>Blocks were fine, however, there was huge gap in objectid's being used, jumping from 3000 to 41000.</div><div>Hmm... a serious part of the dictionary was missing - maybe completely overwritten.</div><div><br /></div><div>I then got word back that this was an Oracle 8.0.x database and even more surprising, the database was up and running except for one datafile that had been offlined. (the one they needed data from).</div><div>So, the dictionary had to be good ! </div><div><br /></div><div>I was too puzzled at the time - it was only when I took a step back and thought about it for a while everything came together. </div><div>This was an Oracle 8.0.x, which was once an Oracle 7.3.4 migrated to 8.0.x using Oracle's 'mig' utility. 'mig' doesn't exist anymore - it's functionality has basically taken over by 'startup migrate' and the upgrade scripts. </div><div>Back in the day you had to run the mig utility on your database, which would upgrade your dictionary, using 'migrate.bsq' script. No startup migrate there!</div><div> </div><div>To migrate the dictionary, new dictionary tables were created. For example, if you had obj$, tab$, col$, then mig utility would create obj_mig$, tab_mig$ and col_mig$ and then it would migrate the data from the old dictionary to the new dictionary and basically switch names. That would mean that the objectid's (and of course data objectid's) of the base dictionary tables are totally different than a normal 8.0 database.</div><div>In this case, they would be in the 41000 range, because that was the range of objectid's of the most recent created object/segment. </div><div>The old dictionary would then be dropped ... but orphaned extents might sit untouched for years in your system tablespace.</div><div> </div><div>And that's exactly happened when I unloaded the dictionary with VERSION='7'. </div><div>DUDE found the left-overs of the old dictionary. However, DUDE should have unloaded the new dictionary !</div><div><br /></div><div>So how does Oracle find the dictionary ?</div><div> </div><div>Well, in the tablespace header block of the SYSTEM tablespace, there's a pointer pointing to the bootstrap$ table. The bootstrap$ table contains ddl for the base dictionary tables (and indexes) including data objectid's (and table numbers for clustered tables).</div><div>(you'll also find the ddl for the base dictionary in the sql.bsq script which is used when the database is created)</div><div> </div><div>Here's an example from bootstrap $: </div><div> 17&quot;,&quot;2407&quot;,&quot;CREATE TABLE OBJ$ ( OBJ# NUMBER NOT NULL, DATAOBJ# NUMBER, OWNER# NUMBER NOT NULL, NAME VARCHAR2(30) NOT NULL, NAMESPACE NUMBER NOT NULL, SUBNAME VARCHAR2(30), TYPE# NUMBER NOT NULL, CTIME DATE NOT NULL, MTIME DATE NOT NULL, STIME DATE NOT NULL, STATUS NUMBER NOT NULL, REMOTEOWNER VARCHAR2(30), LINKNAME VARCHAR2(128), FLAGS NUMBER, OID$ RAW(16), SPARE1 NUMBER, SPARE2 NUMBER, SPARE3 NUMBER, SPARE4 VARCHAR2(1000), SPARE5 VARCHAR2(1000), SPARE6 DATE) pctfree 10 pctused 40 initrans 1 maxtrans 255 storage ( initial 10240 next 126976 minextents 1 maxextents 121 pctincrease 50 <b>objno 2407</b> extents ( <b>file 40 block 247</b>))&quot;</div><div><br /></div><div>You'll notice that it contains some key pointers for the described table, like file# (40), offset (247) and dataobjectid (2407). For tables part of a clustered table, it will also contain the table number within the cluster.</div><div><br /></div><div>So once we have the bootstrap$ segment, we'll know the location of dictionary !</div><div><br /></div><div>DUDE actually has the ability to actually 'search' for the bootstrap$ segment based on it's characteristics.</div><div>It does not however parse the bootstrap ddl for objectid's and table numbers - but once you have the output for bootstrap$, it's quite straightforward to punch in DUDE's bootstrap parameters like :</div><div><ul>			<li>BOOTSTRAP_FILE_OID</li>		<li>BOOTSTRAP_OBJ_OID</li>		<li>BOOTSTRAP_COBJ_OID</li>		<li>BOOTSTRAP_CFILEBLOCK_OID</li>		<li>BOOTSTRAP_CTS_OID</li>		<li>BOOTSTRAP_CUSER_OID</li>		<li>BOOTSTRAP_TAB_TABNO</li>		<li>BOOTSTRAP_IND_TABNO</li>		<li>BOOTSTRAP_ICOL_TABNO</li>		<li>BOOTSTRAP_COL_TABNO</li>		<li>BOOTSTRAP_LOB_TABNO</li>		<li>BOOTSTRAP_SEG_TABNO</li>		<li>BOOTSTRAP_TS_TABNO</li>		<li>BOOTSTRAP_USER_TABNO </li></ul></div><div><br /></div><div>These parameters are explained in the <a href="http://www.ora600.be/DUDE_PRIMER.pdf" target="_blank">DUDE primer here</a>.</div><div><br /></div><div>Anyway, once I set these parameters, I was home free, unloading a complete Oracle8 dictionary !!!</div><div><br /></div><div><br /></div><div>So what about the SYSTEM datafile having a filenumber larger than 1 ?</div><div><br /></div><div>In Oracle 6 there were only 5 to 6 bits used for the file number. So only a maximum of 2^5-1 (31) or 2^6-1 (63) datafiles could be used (database wide).</div><div>In Oracle 7 this changed to 10bits or 2^10-1 (1023) datafiles (database wide). However, because of backward compatibility with Oracle 6 an encoding scheme was introduced splitting up the 10bits for file number into 6 and 4 bits and wrapping them around. It really depends on the platform. On intel windows and IBM AIX for example, I’ve seen an 8/2 split.</div><div> </div><div>SVRMGR&gt; select dump(chartorowid('00000000.0000.0001')) from dual ;</div><div>DUMP(CHARTOROWID('0000000</div><div>-------------------------</div><div>Typ=69 Len=6: 1,0,0,0,0,0</div><div>1 row selected.</div><div>SVRMGR&gt; select dump(chartorowid('00000000.0000.ffff')) from dual ;</div><div>DUMP(CHARTOROWID('00000000.00</div><div>-----------------------------</div><div>Typ=69 Len=6: 255,192,0,0,0,0</div><div>1 row selected.</div><div> </div><div>This means that the first file# is :</div><div>00000001 00000000 00000000 00000000 -&gt; file# 1</div><div> </div><div>And the maximum file# is :</div><div>11111111 11000000 00000000 00000000 -&gt; file# 1023</div><div> </div><div>So the 10bits encoding scheme is like this :</div><div>LLLL LLLL HH</div><div>Where L is the low order bits</div><div>And H the high order bits</div><div> </div><div>Now let’s open DUDE on a series of these datafiles :</div><div> </div><div>DUDE&gt; Initialising ...</div><div>DUDE&gt; Init : creating filenumber map ...</div><div>DUDE&gt; Scanning tablespace SYSTEM : BLOCKSIZE = 2048</div><div>DUDE&gt; File : <b>G:\sys1orcl.ora resolves to number : 4</b></div><div>DUDE&gt; File : <b>G:\sys2.ora resolves to number : 40</b></div><div> </div><div>You’ll notice that sys1orcl.ora which is basically the first file of the database has file# equal to 4. And we know that sys2.ora had file# equal to 10. How’s that possible ?</div><div> </div><div>File# 1 = 0000 0001 00 (LLLL LLLL HH) EQUALS 4 in Oracle 8 DBA format</div><div>File# 10 = 0000 1010 00 (LLLL LLLL HH) EQUALS 40 in Oracle 8 DBA format</div><div> </div><div>It’s clear that using the Oracle 8 DBA format encoding on the Oracle 7 wrapped DBA format, results in different file numbers. Basically, <b>the file number shifted 2 bits to the left (or x2x2)</b>. This is of course platform specific, but if the first file of SYSTEM has a file number that is a multiple of 2, you probably have a migrated database.</div><div> </div><div>So what happened when Oracle 8.0 came along and introduced 2^10-1 or 1023 datafiles per tablespace !</div><div> </div><div>Well – the DBA format stayed the same. However, the file numbers became relative to the tablespace. So 2 datafiles of the same database could have potentially the same file number, but belong to 2 different tablespaces!</div><div> </div><div>What happened to the Oracle 7 (absolute) file numbers when it was migrated to Oracle8. Surely, the mig utility didn’t update the DBA for all blocks ?</div><div> </div><div>Let’s check out an Oracle 7 database :</div><div> </div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SVRMGR&gt; desc file$</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">Column Name <span class="Apple-tab-span" style="white-space: pre">			</span>Null? <span class="Apple-tab-span" style="white-space: pre">	</span>Type</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">------------------------------ -------- ----</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">FILE# <span class="Apple-tab-span" style="white-space: pre">				</span>NOT NULL NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">STATUS$ <span class="Apple-tab-span" style="white-space: pre">			</span>NOT NULL NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">BLOCKS <span class="Apple-tab-span" style="white-space: pre">				</span>NOT NULL NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">TS# <span class="Apple-tab-span" style="white-space: pre">				</span>NOT NULL NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"> </span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SVRMGR&gt; select file#, ts# from file$ ;</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">FILE# <span class="Apple-tab-span" style="white-space: pre">		</span>TS#</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">---------- ----------</span></span></div><div><span class="Apple-style-span" style="font-size: small; font-family: 'courier new', courier"><span class="Apple-style-span" style="background-color: #ffff00">1 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">2 <span class="Apple-tab-span" style="white-space: pre">		</span>1</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">3 <span class="Apple-tab-span" style="white-space: pre">		</span>2</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">4 <span class="Apple-tab-span" style="white-space: pre">		</span>3</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">5 <span class="Apple-tab-span" style="white-space: pre">		</span>8</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">6 <span class="Apple-tab-span" style="white-space: pre">		</span>9</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">7 <span class="Apple-tab-span" style="white-space: pre">		</span>10</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">8 <span class="Apple-tab-span" style="white-space: pre">		</span>7</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">9 <span class="Apple-tab-span" style="white-space: pre">		</span>11</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><span class="Apple-style-span" style="background-color: #ffff00">10 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">10 rows selected.</span></span></div><div> </div><div>Ok – looks logical – we see that tablespace TS#=0 or SYSTEM has 2 datafiles with file#=1 and file#=10.</div><div> </div><div>Let’s do the same after a migration to 8.0 :</div><div> </div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SVRMGR&gt; desc file$</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">Column Name <span class="Apple-tab-span" style="white-space: pre">			</span>Null? <span class="Apple-tab-span" style="white-space: pre">		</span>Type</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">------------------------------ -------- <span class="Apple-tab-span" style="white-space: pre">	</span>----</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><b><span class="Apple-style-span" style="background-color: #ffff00">FILE# </span></b><span class="Apple-tab-span" style="white-space: pre"><b><span class="Apple-style-span" style="background-color: #ffff00">				</span></b></span><b><span class="Apple-style-span" style="background-color: #ffff00">NOT NULL </span></b><span class="Apple-tab-span" style="white-space: pre"><b><span class="Apple-style-span" style="background-color: #ffff00">	</span></b></span><b><span class="Apple-style-span" style="background-color: #ffff00">NUMBER</span></b></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">STATUS$ <span class="Apple-tab-span" style="white-space: pre">			</span>NOT NULL <span class="Apple-tab-span" style="white-space: pre">	</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">BLOCKS <span class="Apple-tab-span" style="white-space: pre">				</span>NOT NULL <span class="Apple-tab-span" style="white-space: pre">	</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">TS# <span class="Apple-tab-span" style="white-space: pre">						</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><b><span class="Apple-style-span" style="background-color: #ffff00">RELFILE# </span></b><span class="Apple-tab-span" style="white-space: pre"><b><span class="Apple-style-span" style="background-color: #ffff00">					</span></b></span><b><span class="Apple-style-span" style="background-color: #ffff00">NUMBER</span></b></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">MAXEXTEND <span class="Apple-tab-span" style="white-space: pre">					</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">INC <span class="Apple-tab-span" style="white-space: pre">						</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">CRSCNWRP <span class="Apple-tab-span" style="white-space: pre">					</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">CRSCNBAS <span class="Apple-tab-span" style="white-space: pre">					</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">OWNERINSTANCE <span class="Apple-tab-span" style="white-space: pre">					</span>VARCHAR2(30)</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SPARE1 <span class="Apple-tab-span" style="white-space: pre">						</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SPARE2 <span class="Apple-tab-span" style="white-space: pre">						</span>NUMBER</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SPARE3 <span class="Apple-tab-span" style="white-space: pre">						</span>VARCHAR2(1000)</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SPARE4 <span class="Apple-tab-span" style="white-space: pre">						</span>DATE</span></span></div><div> </div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SVRMGR&gt; select file#,ts# from file$ ;</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">FILE# <span class="Apple-tab-span" style="white-space: pre">		</span>TS#</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">---------- ----------</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><span class="Apple-style-span" style="background-color: #ffff00">1 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">2 <span class="Apple-tab-span" style="white-space: pre">		</span>1</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">3 <span class="Apple-tab-span" style="white-space: pre">		</span>2</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">4 <span class="Apple-tab-span" style="white-space: pre">		</span>3</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">5 <span class="Apple-tab-span" style="white-space: pre">		</span>8</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">6 <span class="Apple-tab-span" style="white-space: pre">		</span>9</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">7 <span class="Apple-tab-span" style="white-space: pre">		</span>10</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">8 <span class="Apple-tab-span" style="white-space: pre">		</span>7</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">9 <span class="Apple-tab-span" style="white-space: pre">		</span>11</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><span class="Apple-style-span" style="background-color: #ffff00">10 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">10 rows selected.</span></span></div><div> </div><div>So – the file# for the datafiles stayed the same. But we can see an add column in file$ - relfile# :</div><div> </div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">SVRMGR&gt; select file#,relfile#,ts# from file$ ;</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">FILE# <span class="Apple-tab-span" style="white-space: pre">		</span><span class="Apple-style-span" style="background-color: #ffff00"><b>RELFILE#</b></span> <span class="Apple-tab-span" style="white-space: pre">	</span>TS#</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">---------- <span class="Apple-tab-span" style="white-space: pre">	</span>---------- <span class="Apple-tab-span" style="white-space: pre">	</span>----------</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><span class="Apple-style-span" style="background-color: #ffff00">1 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">4 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">2 <span class="Apple-tab-span" style="white-space: pre">		</span>8 <span class="Apple-tab-span" style="white-space: pre">		</span>1</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">3 <span class="Apple-tab-span" style="white-space: pre">		</span>12 <span class="Apple-tab-span" style="white-space: pre">		</span>2</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">4 <span class="Apple-tab-span" style="white-space: pre">		</span>16 <span class="Apple-tab-span" style="white-space: pre">		</span>3</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">5 <span class="Apple-tab-span" style="white-space: pre">		</span>20 <span class="Apple-tab-span" style="white-space: pre">		</span>8</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">6 <span class="Apple-tab-span" style="white-space: pre">		</span>24 <span class="Apple-tab-span" style="white-space: pre">		</span>9</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">7 <span class="Apple-tab-span" style="white-space: pre">		</span>28 <span class="Apple-tab-span" style="white-space: pre">		</span>10</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">8 <span class="Apple-tab-span" style="white-space: pre">		</span>32 <span class="Apple-tab-span" style="white-space: pre">		</span>7</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">9 <span class="Apple-tab-span" style="white-space: pre">		</span>36 <span class="Apple-tab-span" style="white-space: pre">		</span>11</span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small"><span class="Apple-style-span" style="background-color: #ffff00">10 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">40 </span><span class="Apple-tab-span" style="white-space: pre"><span class="Apple-style-span" style="background-color: #ffff00">		</span></span><span class="Apple-style-span" style="background-color: #ffff00">0</span></span></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', courier"><span class="Apple-style-span" style="font-size: small">10 rows selected.</span></span></div><div> </div><div>Here we can clearly see the 2bit shift to the left – <b><span class="Apple-style-span" style="background-color: #ffff00">the Oracle 7 absolute filenumber became an Oracle 8 relative filenumber.</span></b></div><div>So the mig utility did not have to :</div><div><ul>			<li>update the DBA in a block</li>		<li>row addresses in chained and migrated rows</li></ul></div><div><br /></div><div>More info on the topic can be found on Metalink - see note 122926.1 ...</div><div> </div><div>I think I'll have to lay down now <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" border="0" alt="Wink" title="Wink" /> </div><div><br /></div>    ]]></content>
  </entry>
  <entry>
    <title>ORA600 - 5years later</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/ORA600-5-years-later" />
    <id>http://www.ora600.be/ORA600-5-years-later</id>
    <published>2010-08-26T12:48:26+02:00</published>
    <updated>2010-08-27T10:19:52+02:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="dude" />
    <category term="ora600" />
    <summary type="html"><![CDATA[<div>This summer is ORA600's 5th anniversary - and DUDE's 10th !</div><div> </div><div>So I thought it would be appropriate to look back and reflect on all crazy and weird things we've gone through.</div><div> </div><div>As many of you know, DUDE started out as jDUL on sourceforge. I started on it while I was working in South Africa - me and my buddy Kugendran Naidoo came up with all kinds of crazy idea's whilst enjoying a smoke in the smoking room. Wow, remember the days you could still smoke in the office ? </div><div> </div><div>I can't say the'Oracle community' was very appreciative to the idea of a DUL-like tool. Back in the day, the Oracle community, for me, consisted mostly of the cdos newsgroup (<a href="http://groups.google.com/group/comp.databases.oracle.server/topics">comp.database.oracle.server</a>). To be honest, I found cdos quite a hostile place - a lot of flames, rants, newbie bashing etc… all in all  sending out negative vibes. Thinking about it, it's just the opposite of the Oracle-l mailing list (<a href="http://www.freelists.org/archive/oracle-l">http://www.freelists.org/archive/oracle-l</a>). I'm not surprised cdos is now full of spam messages and almost completely abandoned. If it wasn't for cdos … I might have gone through open-sourcing jDUL/DUDE !</div><div> </div><div>Anyway - flash forward to the summer of 2005 - after a meeting with Mogens Norgaard from Miracle AS, ORA600 is born. (see also <a href="http://www.ora600.be/history">here</a>). That particular summer was quite fruitful as I spent most of my time implementing new features. To give you an idea - in 2001 the source code was 131Kb in size and 4393 lines long. By the end of 2005 it was 12390 lines of code and 446Kb in size. The current version is 1049Kb and 27817 lines long. I must admit, a lot of that is code documentation !</div><div> </div><div>Although Miracle AS worked as an incubator, Mogens introduced me to Daniel Fink in 2007 at a Miracle Scotland event in Edinburgh. Daniel was interested in representing DUDE in the US. Mogens didn't mind. Dan is a great guy to work with - very professional! After that I started collaborating with different companies around the globe, like <a href="http://www.pythian.com">Pythian</a>, <a href="http://www.evdbt.com/">Evdbt Inc</a> (Tim Gorman), <a href="http://www.nrgc.co.za">NRG Consulting</a> and <a href="http://www.hbtec.com.br">HBTec</a>. I really think local support is very important for potential customers even if it squeezes my profit margins.</div><div> </div><div>I have to admit - I have encountered some amazing corruption cases over the last 5 years. Some were solved fast and swiftly - others have costs me several years of my life <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /></div><div>Here are some recovery cases I will never remember :</div><div> </div><div>1.<span style="white-space: pre" class="Apple-tab-span">	</span>The one with the mixed data in a LONG column</div><div> </div><div>This case was *by far* the most stressful recovery I have done. The customer was a newspaper publisher and they needed their database online before Sunday 2PM. Having a deadline is always stressful, but this database contained a table with a LONG column that was on average a gigabyte large. Normally that's not a problem, but at that time I had a bug in my DMP API related to Java's garbage collector, that caused the unload to slow down …. It actually appeared to be hanging as there were no error messages being generated. I didn't know about the bug right away so I investigated the situation up to the point I opened several blocks in a hexeditor, following pointers of chained rows manually (did I mention the deadline?). What I saw was that the column contained readable text and then suddenly what looked like binary data. I immediately thought some blocks were partially corrupted and what I was seeing was garbage. Quite often on windows platforms you'll see file corruption, where files are partially overwritten by junk in multiples of 512bytes, spread all over. It's like someone takes a machinegun and puts some holes in the files. Worst case, the corruption is in the middle of a block so header and tail are fine and the corruption goes almost unnoticed. Until you try to trail the row directory to the row headers and you suddenly hit junk. It gets even worse, if by coincidence the header is identified as a chained row and thus you try to read the next dba…. Which of course will point to some non-existing datafile and offset!!!</div><div>Anyway that's what it look like at first glance … until I actually started to put things together with an hex-editor (try doing that at 3AM at night!). The blocks were fine, the row directory was valid, row headers were ok, chained row headers were pointing to valid row pieces. This led me to the conclusion the data was valid, just extremely weird !</div><div>At that point I focused on my DMP API and found out the garbage collector was doing too much work, cleaning up after processing 1Gb columns. </div><div>Once I fixed that, the unload was blazing fast - and I made the deadline… but boy… what an adrenaline rush !!!</div><div> </div><div> </div><div>2.<span style="white-space: pre" class="Apple-tab-span">	</span>The one with the even larger column</div><div> </div><div>DUDE is written in java - most JVM's are/were 32bit. Although DUDE is multithreaded (it has producer and consumer threads) and some platforms turn threads into procs,  I have to work with a 2Gb memory limitation in mind. At one point I had a case were DNA strands were being stored in CLOBs. These were all around 2Gb large. Needless to say I ran into some memory related issues ;-) At that point I had to react quickly - and these things always happen at night. The solution was to write on-disk data structures and thus avoiding the 2Gb limit. Performance is of course affected by this - but I can safely say that DUDE will unload very large LOB's on a 32bit platform. </div><div> </div><div> </div><div>3.<span style="white-space: pre" class="Apple-tab-span">	</span>The one without a system tablespace and just toooo many tables</div><div> </div><div>This one I will also never forget. Losing your system tablespace, and thus your dictionary is a disaster. But no worries - DUDE can identify tables and datatypes using an heuristic algorithm. However, table names, column names, logical column order … that's all stored in the dictionary. So recovery from such a situation involves intimate knowledge of your data, and a lot of guessing to map the flat files to the correct table. I've done it a number of times with a  hundred or so tables, always with the developer by my side. It's time consuming and very hard. One time we had a 'lost system tablespace' case. The db in itself was about 68Gb but it was a BAAN ERP system. That means thousands (5000+) of tables !</div><div>It took a team of 8 BAAN consultants to rebuild the database in 2 weeks ! I specially changed the code for them so that DUDE would generate BAAN specific flatfiles for easy loading through BAAN's loader tool. This is where the DUDE license really pays off for the customer - one fixed price no matter how long you need it !!!</div><div> </div><div> </div><div>4.<span style="white-space: pre" class="Apple-tab-span">	</span>The 'we don't use backups' case… but we're happy with that</div><div> </div><div>One time I got a call from a company who had a SAN crash. They had a 4TB datawarehouse sitting on it, and apparently were unable to restore the database. Because of the size of the DB I suggested to go with the license as clearly, the unload would take some time. A license is fixed priced for as long the unload takes and 4TB… well it can take a while! The next day I get a call back - 'hey this thing really works - we've got another database on that SAN we would like to see unload' - me:'what's the size?' - answer 'about 4TB'…   That's not all ! A year later - got a call from the same company different branch. 'We have a db crash - we've used your tool before - we would like to use it again. The DB size is 2TB!&quot;. So in 2years, 3 databases and a total of 10TB recovered for the same customer… my favorite customer… ever! They were also the first one who used table compression - so I can safely say my block compression algorithm has been tested on multiple terabytes <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /></div><div> </div><div> </div><div> As you can see - recovering data can be really stressful, but we take great pride in what we do, and if it means we have to change the code for your specific needs, we'll do it and make it work !</div><div> </div><div>The ORA600 vehicle also made it easier to network and meet new people - which is a bonus as I don't like large crowds. I can definitely say OOW is not for me - but UKOUG is. It's one of the best conferences out there and it allowed me to meet all sorts of interesting new people (you know who you are!). Well, I tasted HOTSOS first which was really great … but I don't like long flights either … and I definitely don't like all male dance parties …. Give me an English pub anytime <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /></div><div> Here's a picture of an infamous evening - you'll recognize a certain scottsman in the back, a couple of Danes and a couple of Finns... oh and me !</div><div style="text-align: center"> <img src="/system/files/u1/trouw.jpg" height="375" width="500" /></div><div> </div><div> </div><div>Anyway -  because of the anniversary I'll be giving <b>away the very last ORA600 poloshirts</b> !!!</div><div> </div><div>(to be honest, I have been remodeling the house to accommodate a nursery room as I will become father in December … so everything has got to go!!! <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" title="Laughing" alt="Laughing" border="0" /> )</div><div> </div><div style="text-align: center"><img src="/system/files/u1/dudeshirt.jpg" width="400" height="300" /> </div><div> </div><div>I have <b><s>5x size medium (M)</s></b><s>, </s><b><s>1x extra large (XL)</s></b><s> and </s><b><s>3x extra extra large (XXL) </s></b>- the first to respond to <a href="mailto:dude@ora600.be">dude@ora600.be </a>will get one !!! (don't forget to mention your size and address!!!)</div><div> </div><div><b>Update - all polo shirts are gone !!! </b></div><div> </div><div>Up to the next five years ! </div><div><br /></div><div><br /></div>    ]]></summary>
    <content type="html"><![CDATA[<div>This summer is ORA600's 5th anniversary - and DUDE's 10th !</div><div> </div><div>So I thought it would be appropriate to look back and reflect on all crazy and weird things we've gone through.</div><div> </div><div>As many of you know, DUDE started out as jDUL on sourceforge. I started on it while I was working in South Africa - me and my buddy Kugendran Naidoo came up with all kinds of crazy idea's whilst enjoying a smoke in the smoking room. Wow, remember the days you could still smoke in the office ? </div><div> </div><div>I can't say the'Oracle community' was very appreciative to the idea of a DUL-like tool. Back in the day, the Oracle community, for me, consisted mostly of the cdos newsgroup (<a href="http://groups.google.com/group/comp.databases.oracle.server/topics">comp.database.oracle.server</a>). To be honest, I found cdos quite a hostile place - a lot of flames, rants, newbie bashing etc… all in all  sending out negative vibes. Thinking about it, it's just the opposite of the Oracle-l mailing list (<a href="http://www.freelists.org/archive/oracle-l">http://www.freelists.org/archive/oracle-l</a>). I'm not surprised cdos is now full of spam messages and almost completely abandoned. If it wasn't for cdos … I might have gone through open-sourcing jDUL/DUDE !</div><div> </div><div>Anyway - flash forward to the summer of 2005 - after a meeting with Mogens Norgaard from Miracle AS, ORA600 is born. (see also <a href="http://www.ora600.be/history">here</a>). That particular summer was quite fruitful as I spent most of my time implementing new features. To give you an idea - in 2001 the source code was 131Kb in size and 4393 lines long. By the end of 2005 it was 12390 lines of code and 446Kb in size. The current version is 1049Kb and 27817 lines long. I must admit, a lot of that is code documentation !</div><div> </div><div>Although Miracle AS worked as an incubator, Mogens introduced me to Daniel Fink in 2007 at a Miracle Scotland event in Edinburgh. Daniel was interested in representing DUDE in the US. Mogens didn't mind. Dan is a great guy to work with - very professional! After that I started collaborating with different companies around the globe, like <a href="http://www.pythian.com">Pythian</a>, <a href="http://www.evdbt.com/">Evdbt Inc</a> (Tim Gorman), <a href="http://www.nrgc.co.za">NRG Consulting</a> and <a href="http://www.hbtec.com.br">HBTec</a>. I really think local support is very important for potential customers even if it squeezes my profit margins.</div><div> </div><div>I have to admit - I have encountered some amazing corruption cases over the last 5 years. Some were solved fast and swiftly - others have costs me several years of my life <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /></div><div>Here are some recovery cases I will never remember :</div><div> </div><div>1.<span style="white-space: pre" class="Apple-tab-span">	</span>The one with the mixed data in a LONG column</div><div> </div><div>This case was *by far* the most stressful recovery I have done. The customer was a newspaper publisher and they needed their database online before Sunday 2PM. Having a deadline is always stressful, but this database contained a table with a LONG column that was on average a gigabyte large. Normally that's not a problem, but at that time I had a bug in my DMP API related to Java's garbage collector, that caused the unload to slow down …. It actually appeared to be hanging as there were no error messages being generated. I didn't know about the bug right away so I investigated the situation up to the point I opened several blocks in a hexeditor, following pointers of chained rows manually (did I mention the deadline?). What I saw was that the column contained readable text and then suddenly what looked like binary data. I immediately thought some blocks were partially corrupted and what I was seeing was garbage. Quite often on windows platforms you'll see file corruption, where files are partially overwritten by junk in multiples of 512bytes, spread all over. It's like someone takes a machinegun and puts some holes in the files. Worst case, the corruption is in the middle of a block so header and tail are fine and the corruption goes almost unnoticed. Until you try to trail the row directory to the row headers and you suddenly hit junk. It gets even worse, if by coincidence the header is identified as a chained row and thus you try to read the next dba…. Which of course will point to some non-existing datafile and offset!!!</div><div>Anyway that's what it look like at first glance … until I actually started to put things together with an hex-editor (try doing that at 3AM at night!). The blocks were fine, the row directory was valid, row headers were ok, chained row headers were pointing to valid row pieces. This led me to the conclusion the data was valid, just extremely weird !</div><div>At that point I focused on my DMP API and found out the garbage collector was doing too much work, cleaning up after processing 1Gb columns. </div><div>Once I fixed that, the unload was blazing fast - and I made the deadline… but boy… what an adrenaline rush !!!</div><div> </div><div> </div><div>2.<span style="white-space: pre" class="Apple-tab-span">	</span>The one with the even larger column</div><div> </div><div>DUDE is written in java - most JVM's are/were 32bit. Although DUDE is multithreaded (it has producer and consumer threads) and some platforms turn threads into procs,  I have to work with a 2Gb memory limitation in mind. At one point I had a case were DNA strands were being stored in CLOBs. These were all around 2Gb large. Needless to say I ran into some memory related issues ;-) At that point I had to react quickly - and these things always happen at night. The solution was to write on-disk data structures and thus avoiding the 2Gb limit. Performance is of course affected by this - but I can safely say that DUDE will unload very large LOB's on a 32bit platform. </div><div> </div><div> </div><div>3.<span style="white-space: pre" class="Apple-tab-span">	</span>The one without a system tablespace and just toooo many tables</div><div> </div><div>This one I will also never forget. Losing your system tablespace, and thus your dictionary is a disaster. But no worries - DUDE can identify tables and datatypes using an heuristic algorithm. However, table names, column names, logical column order … that's all stored in the dictionary. So recovery from such a situation involves intimate knowledge of your data, and a lot of guessing to map the flat files to the correct table. I've done it a number of times with a  hundred or so tables, always with the developer by my side. It's time consuming and very hard. One time we had a 'lost system tablespace' case. The db in itself was about 68Gb but it was a BAAN ERP system. That means thousands (5000+) of tables !</div><div>It took a team of 8 BAAN consultants to rebuild the database in 2 weeks ! I specially changed the code for them so that DUDE would generate BAAN specific flatfiles for easy loading through BAAN's loader tool. This is where the DUDE license really pays off for the customer - one fixed price no matter how long you need it !!!</div><div> </div><div> </div><div>4.<span style="white-space: pre" class="Apple-tab-span">	</span>The 'we don't use backups' case… but we're happy with that</div><div> </div><div>One time I got a call from a company who had a SAN crash. They had a 4TB datawarehouse sitting on it, and apparently were unable to restore the database. Because of the size of the DB I suggested to go with the license as clearly, the unload would take some time. A license is fixed priced for as long the unload takes and 4TB… well it can take a while! The next day I get a call back - 'hey this thing really works - we've got another database on that SAN we would like to see unload' - me:'what's the size?' - answer 'about 4TB'…   That's not all ! A year later - got a call from the same company different branch. 'We have a db crash - we've used your tool before - we would like to use it again. The DB size is 2TB!&quot;. So in 2years, 3 databases and a total of 10TB recovered for the same customer… my favorite customer… ever! They were also the first one who used table compression - so I can safely say my block compression algorithm has been tested on multiple terabytes <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /></div><div> </div><div> </div><div> As you can see - recovering data can be really stressful, but we take great pride in what we do, and if it means we have to change the code for your specific needs, we'll do it and make it work !</div><div> </div><div>The ORA600 vehicle also made it easier to network and meet new people - which is a bonus as I don't like large crowds. I can definitely say OOW is not for me - but UKOUG is. It's one of the best conferences out there and it allowed me to meet all sorts of interesting new people (you know who you are!). Well, I tasted HOTSOS first which was really great … but I don't like long flights either … and I definitely don't like all male dance parties …. Give me an English pub anytime <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /></div><div> Here's a picture of an infamous evening - you'll recognize a certain scottsman in the back, a couple of Danes and a couple of Finns... oh and me !</div><div style="text-align: center"> <img src="/system/files/u1/trouw.jpg" height="375" width="500" /></div><div> </div><div> </div><div>Anyway -  because of the anniversary I'll be giving <b>away the very last ORA600 poloshirts</b> !!!</div><div> </div><div>(to be honest, I have been remodeling the house to accommodate a nursery room as I will become father in December … so everything has got to go!!! <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" title="Laughing" alt="Laughing" border="0" /> )</div><div> </div><div style="text-align: center"><img src="/system/files/u1/dudeshirt.jpg" width="400" height="300" /> </div><div> </div><div>I have <b><s>5x size medium (M)</s></b><s>, </s><b><s>1x extra large (XL)</s></b><s> and </s><b><s>3x extra extra large (XXL) </s></b>- the first to respond to <a href="mailto:dude@ora600.be">dude@ora600.be </a>will get one !!! (don't forget to mention your size and address!!!)</div><div> </div><div><b>Update - all polo shirts are gone !!! </b></div><div> </div><div>Up to the next five years ! </div><div><br /></div><div><br /></div>    ]]></content>
  </entry>
  <entry>
    <title>Oaktable Site</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/oaktable-website" />
    <id>http://www.ora600.be/oaktable-website</id>
    <published>2010-05-19T10:45:54+02:00</published>
    <updated>2010-05-19T10:46:56+02:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="drupal" />
    <category term="oaktable" />
    <summary type="html"><![CDATA[<div>Long overdue … and by now old news !</div><div><br /></div><div>Seems everybody has already mentioned it on their blog - I reckon so can I ;-)</div><div><br /></div><div>It seems the topic of 'a' new website had already been discussed during several Oracle events but there were no immediate plans to actually implement it.</div><div>So when a mail requesting volunteers popped up, Doug Burns made sure to mention my name.</div><div><br /></div><div>A quick ask-around revealed that the #1 must-have-feature was an oakie blog aggregator. </div><div>James Morle also had mentioned to scrap the old site and redo the whole thing in an open-source CMS, preferable Drupal. Which was fine by me as I had already done some work in drupal, including some custom drupal modules (like a drupal module to integrate user management with Oracle SSO/OID).</div><div>Anyway - as the only real requirement was a blog aggregator of Oaktable member's blogs and then some, I just started working on it in a kind of agile way ;-) </div><div><br /></div><div>Here are some of the modules I used :</div><div><ul>			<li>must-have modules : admin_menu, CCK (and several cck fields like email, date, imagefield), panels for the frontpage and you can't do without the views module</li>		<li>Imageapi, imagecache : needed for some on-the-fly rescaling of uploaded images, like for example member's avatars or book covers</li>		<li>Feedapi and feedapi_mapper : I prefer these modules for creating a blog aggregator instead of the standard aggregator module as it allows you to save feed content in a node, and thus making the content searchable and easier for google to digest. Also, you can map tags within feeds to node tags so they show up in your tag-cloud (double-bonus!)</li>		<li>Cumulus and tagadelic : for creating a funky tag-cloud</li>		<li>Twitter and juitter modules : for aggregating twitter feeds and showing twitter trends. I will add the twitter trends for all major events as I did for HOTSOS2010 and MOW2010.</li>		<li>Browscap and mobile_theme : if you use a mobile device, the site will switch to the iwebkit theme… looks ok on an iphone <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" border="0" alt="Wink" title="Wink" /></li>		<li>Content_slider : which allows you to create a kind of slide show from node content (for example the events and books slides)</li>		<li>Google_analytics, google_cse, pathauto, seo_checklist : make sure the whole thing is SEO </li>		<li>Subscriptions : authenticated users can subscribe to content - they will be notified when content is added or modified</li>		<li>Faq and faq_ask : I've used these to implement the oaktable challenge. It's not ideally as it does not allow me to migrate the old questions but it does the job.</li></ul><div><br /></div>I've also used some modules for oakie's only - like :<br /><ul>			<li>Announcements : add announcements to the site encouraging oakies to post content or start their own blog on the oaktable site… the site does not only aggregate but also allows members to write blogposts that are automatically included in the sites blog RSS feeds</li>		<li>Votingapi and advpoll : providing democracy to the oaktable when choosing when or where to eat during the next Oracle event using polls</li>		<li>Webform and webform_report : allows you to easily create html forms without programming and report on the results - already came in useful for ordering the new oaktable polo shirt <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" /></li></ul></div><div><br /></div><div>As you can see - these are all basic modules. There was some custom work though :</div><div><ul>			<li>I have a 'oakie' module : this provides a mapping between the user profile and feedapi, so users can add their blog rss feed through their profile instead of the more complex feedapi form</li>		<li>I had to tweak ask_faq for the oaktable challenge</li>		<li>By far the most difficult task was tweaking the themes 		<ul>						<li>'admire_gray' is the main theme - I had some issues on smaller resolutions so I had to make some modifications in its stylesheet</li>				<li>'iwebkit' - the mobile theme had some real bugs in it as it did not show pagers - had to dive in the theme code here to fix it !</li>		</ul>		</li></ul></div><div><br /></div><div>I migrated some old articles and scripts from the old site, leaving the rest to the original authors (as you can see … that didn't work out so well) - however, Jonathan Lewis, Tanel Poder and Christian Antognini have already added some new articles which gives me hope <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" border="0" alt="Wink" title="Wink" /></div><div><br /></div><div>Anyways - I hope you like it. </div><div> </div>    ]]></summary>
    <content type="html"><![CDATA[<div>Long overdue … and by now old news !</div><div><br /></div><div>Seems everybody has already mentioned it on their blog - I reckon so can I ;-)</div><div><br /></div><div>It seems the topic of 'a' new website had already been discussed during several Oracle events but there were no immediate plans to actually implement it.</div><div>So when a mail requesting volunteers popped up, Doug Burns made sure to mention my name.</div><div><br /></div><div>A quick ask-around revealed that the #1 must-have-feature was an oakie blog aggregator. </div><div>James Morle also had mentioned to scrap the old site and redo the whole thing in an open-source CMS, preferable Drupal. Which was fine by me as I had already done some work in drupal, including some custom drupal modules (like a drupal module to integrate user management with Oracle SSO/OID).</div><div>Anyway - as the only real requirement was a blog aggregator of Oaktable member's blogs and then some, I just started working on it in a kind of agile way ;-) </div><div><br /></div><div>Here are some of the modules I used :</div><div><ul>			<li>must-have modules : admin_menu, CCK (and several cck fields like email, date, imagefield), panels for the frontpage and you can't do without the views module</li>		<li>Imageapi, imagecache : needed for some on-the-fly rescaling of uploaded images, like for example member's avatars or book covers</li>		<li>Feedapi and feedapi_mapper : I prefer these modules for creating a blog aggregator instead of the standard aggregator module as it allows you to save feed content in a node, and thus making the content searchable and easier for google to digest. Also, you can map tags within feeds to node tags so they show up in your tag-cloud (double-bonus!)</li>		<li>Cumulus and tagadelic : for creating a funky tag-cloud</li>		<li>Twitter and juitter modules : for aggregating twitter feeds and showing twitter trends. I will add the twitter trends for all major events as I did for HOTSOS2010 and MOW2010.</li>		<li>Browscap and mobile_theme : if you use a mobile device, the site will switch to the iwebkit theme… looks ok on an iphone <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" border="0" alt="Wink" title="Wink" /></li>		<li>Content_slider : which allows you to create a kind of slide show from node content (for example the events and books slides)</li>		<li>Google_analytics, google_cse, pathauto, seo_checklist : make sure the whole thing is SEO </li>		<li>Subscriptions : authenticated users can subscribe to content - they will be notified when content is added or modified</li>		<li>Faq and faq_ask : I've used these to implement the oaktable challenge. It's not ideally as it does not allow me to migrate the old questions but it does the job.</li></ul><div><br /></div>I've also used some modules for oakie's only - like :<br /><ul>			<li>Announcements : add announcements to the site encouraging oakies to post content or start their own blog on the oaktable site… the site does not only aggregate but also allows members to write blogposts that are automatically included in the sites blog RSS feeds</li>		<li>Votingapi and advpoll : providing democracy to the oaktable when choosing when or where to eat during the next Oracle event using polls</li>		<li>Webform and webform_report : allows you to easily create html forms without programming and report on the results - already came in useful for ordering the new oaktable polo shirt <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" /></li></ul></div><div><br /></div><div>As you can see - these are all basic modules. There was some custom work though :</div><div><ul>			<li>I have a 'oakie' module : this provides a mapping between the user profile and feedapi, so users can add their blog rss feed through their profile instead of the more complex feedapi form</li>		<li>I had to tweak ask_faq for the oaktable challenge</li>		<li>By far the most difficult task was tweaking the themes 		<ul>						<li>'admire_gray' is the main theme - I had some issues on smaller resolutions so I had to make some modifications in its stylesheet</li>				<li>'iwebkit' - the mobile theme had some real bugs in it as it did not show pagers - had to dive in the theme code here to fix it !</li>		</ul>		</li></ul></div><div><br /></div><div>I migrated some old articles and scripts from the old site, leaving the rest to the original authors (as you can see … that didn't work out so well) - however, Jonathan Lewis, Tanel Poder and Christian Antognini have already added some new articles which gives me hope <img src="http://www.ora600.be/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" border="0" alt="Wink" title="Wink" /></div><div><br /></div><div>Anyways - I hope you like it. </div><div> </div>    ]]></content>
  </entry>
  <entry>
    <title>Expert Oracle Practices</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/expert-oracle-practices" />
    <id>http://www.ora600.be/expert-oracle-practices</id>
    <published>2010-01-29T11:08:07+01:00</published>
    <updated>2010-03-08T00:15:38+01:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="book" />
    <category term="oaktable" />
    <summary type="html"><![CDATA[<div>I was just woken up by the mailman, ringing my doorbell several times. </div><div></div><div>I jumped out of bed and opened the door half naked and still sleep drunk - I was on call this week and although there weren't many calls I went to bed at 2AM, each day. If there's one thing I hate is going to bed and getting a call an hour later - so I go to bed late at night and hope I don't get a call until 8AM when a colleague takes over.</div><div></div><div>Anyway, I knew it was the postman delivering the new Oaktable book '<a href="http://www.amazon.co.uk/Expert-Oracle-Practices-M-Moller/dp/1430226684/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1264759825&amp;sr=8-1" target="_blank">Expert Oracle Practices</a>'. </div><div>Because I had bought it at Amazon in the US, I knew I had to pay import taxes (10euro) and thus needed personal delivery. Hey, I wanted to have it asap <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /></div><div><br /></div><div>This is one of those books you just need to have !</div><div>I've already mentioned here that I love going to the UKOUG - and one of the main reasons is because I love to hear how other DBA's/developers do their work. How do they backup their databases, how do they tune their databases, what problems are they having.</div><div></div><div>The new Oaktable book is very much like that - how do some of the most respected database consultants handle their environments. It's not a low, lower, loooower, Steve Adams low level book. But at first glance it looks more technical than the first Oaktable book (<a href="http://www.amazon.co.uk/Insights-Jonathan-McDonald-Millsap-Vaidyanatha/dp/1590593871/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1264757070&amp;sr=8-2" target="_blank">Oracle Insights - Tales of the Oaktable</a>)  </div><div>And that was also the aim - competing with the other new Oracle 11g books out there.</div><div></div><div>I'm ashamed to admit that I turned down an offer to write a chapter (even two chapters). I was offered a chapter on backup and recovery and one on NLS issues.</div><div></div><div>The first one is obvious as I have some experiences with recovery <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /> - and I could have written some funny anecdotes and picked out some cases that went bad and why. </div><div>But the aim wasn't to write funny stories but technical content. </div><div></div><div>I have a confession to make - I hate writing technical content/documentation - but I love programming. </div><div>If you want to punish me - get me to write technical docs. One of the reasons I quit my previous job was because at one point, they had me writing more technical docs to be ISO9000/1/2 compliant than actually programming stuff. I don't know why I agreed on 2 chapters but with the words of a famous entrepreneur 'screw it, let's do it', I set myself a goal :</div><div><ul>	<li>try to write 10% of one chapter in one week</li></ul></div><div>Mind you this was the beginning of the summer, the worst possible timing for me, as I had filled up most of the summer weekends with other things to do. </div><div></div><div>For the backup and recovery chapter, I already had some ideas on how to handle the chapter - I wanted to do a bottom up approach. </div><div>Most books do a top down approach - they explain the concept, the wider picture, go to the commands and then some examples, and maybe some internals. </div><div>I seem to always learn things bottom up - start with the internals and then work my way up to the commands. It's like a bottom up and top down parser <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" />. If you understand the internals, the mechanics, you know what you're doing and thus, don't need to memorize all the commands ... you just need to understand to know what's possible!</div><div></div><div>Anyway the idea was to first explain block internals, how data is stored and how redo logging works, using a chessboard. </div><div>Let's say 2 guys are playing 10 chess games on 10 boards at the same time in the outdoors. They each move pieces, the movement  of the pieces get logged by a third person on a piece of paper and once in a while a 4th guy writes down the location of every chess piece on each board to another piece of paper. </div><div></div><div>The 2 guys playing the chess games are database processes changing rowpieces (chess pieces) in the datablocks (chess board) - the guy writing down the movement of the pieces (redo vectors) is the logwriter process. They guy writing down the complete chessboards to paper is the dbwr process. If it starts to rain, they just scrap the boards (shutdown abort). When they start playing again, they get the paper containing the complete chessboard layouts and the paper with the chess piece movements and redo the movements (instance recovery). It is basic journaling !</div><div>With this story in mind I could have explained backup and recovery in a very simple way so everybody understands, and then move my way up.</div><div></div><div>Anyways - after a week of writing in the evenings I had one page ! One page and I was so bored !!! I'm definitely not a technical writer … a blog now and then…ok. A presentation once a year … fine. But 2 chapters in a book … I don't think so.</div><div></div><div>So I got back to Jonathan Gennick after a week - I didn't make my goal - I could not see, with the deadlines in place, how I could find time (I have 2 jobs and need to sleep now and then)  to write those two chapters and I thought it would be best to let him know before I signed a contract. And you know what, I have not regret it since !</div><div></div><div>Btw - about the second chapter, NLS issues - I live in Belgium. We have 3 official languages : Dutch, French and German. And we use English to keep everybody happy. So we know allllll about NLS issues <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" title="Cool" alt="Cool" border="0" /></div><div></div><div></div><div>Now - go buy this book - it's awesome !</div><div><br /></div><div><i>On a different note …. I do have more time in the winter season and I was able to qualify for the Flemish Poker championship or 'Pokerkampioen Van Vlaanderen'. It's a freeze-out tournament covered by TV. It will be aired on March on 2BE and JimTV. There were 674 entries for the regional finals.  I made it through the semi finals and busted out on place 28. I wrote about it <a href="/pkvv">here</a>. It's all non-technical content ! <span style="font-style: normal" class="Apple-style-span"><img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" title="Laughing" alt="Laughing" border="0" /></span></i></div><div><br /></div>    ]]></summary>
    <content type="html"><![CDATA[<div>I was just woken up by the mailman, ringing my doorbell several times. </div><div></div><div>I jumped out of bed and opened the door half naked and still sleep drunk - I was on call this week and although there weren't many calls I went to bed at 2AM, each day. If there's one thing I hate is going to bed and getting a call an hour later - so I go to bed late at night and hope I don't get a call until 8AM when a colleague takes over.</div><div></div><div>Anyway, I knew it was the postman delivering the new Oaktable book '<a href="http://www.amazon.co.uk/Expert-Oracle-Practices-M-Moller/dp/1430226684/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1264759825&amp;sr=8-1" target="_blank">Expert Oracle Practices</a>'. </div><div>Because I had bought it at Amazon in the US, I knew I had to pay import taxes (10euro) and thus needed personal delivery. Hey, I wanted to have it asap <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /></div><div><br /></div><div>This is one of those books you just need to have !</div><div>I've already mentioned here that I love going to the UKOUG - and one of the main reasons is because I love to hear how other DBA's/developers do their work. How do they backup their databases, how do they tune their databases, what problems are they having.</div><div></div><div>The new Oaktable book is very much like that - how do some of the most respected database consultants handle their environments. It's not a low, lower, loooower, Steve Adams low level book. But at first glance it looks more technical than the first Oaktable book (<a href="http://www.amazon.co.uk/Insights-Jonathan-McDonald-Millsap-Vaidyanatha/dp/1590593871/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1264757070&amp;sr=8-2" target="_blank">Oracle Insights - Tales of the Oaktable</a>)  </div><div>And that was also the aim - competing with the other new Oracle 11g books out there.</div><div></div><div>I'm ashamed to admit that I turned down an offer to write a chapter (even two chapters). I was offered a chapter on backup and recovery and one on NLS issues.</div><div></div><div>The first one is obvious as I have some experiences with recovery <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /> - and I could have written some funny anecdotes and picked out some cases that went bad and why. </div><div>But the aim wasn't to write funny stories but technical content. </div><div></div><div>I have a confession to make - I hate writing technical content/documentation - but I love programming. </div><div>If you want to punish me - get me to write technical docs. One of the reasons I quit my previous job was because at one point, they had me writing more technical docs to be ISO9000/1/2 compliant than actually programming stuff. I don't know why I agreed on 2 chapters but with the words of a famous entrepreneur 'screw it, let's do it', I set myself a goal :</div><div><ul>	<li>try to write 10% of one chapter in one week</li></ul></div><div>Mind you this was the beginning of the summer, the worst possible timing for me, as I had filled up most of the summer weekends with other things to do. </div><div></div><div>For the backup and recovery chapter, I already had some ideas on how to handle the chapter - I wanted to do a bottom up approach. </div><div>Most books do a top down approach - they explain the concept, the wider picture, go to the commands and then some examples, and maybe some internals. </div><div>I seem to always learn things bottom up - start with the internals and then work my way up to the commands. It's like a bottom up and top down parser <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" />. If you understand the internals, the mechanics, you know what you're doing and thus, don't need to memorize all the commands ... you just need to understand to know what's possible!</div><div></div><div>Anyway the idea was to first explain block internals, how data is stored and how redo logging works, using a chessboard. </div><div>Let's say 2 guys are playing 10 chess games on 10 boards at the same time in the outdoors. They each move pieces, the movement  of the pieces get logged by a third person on a piece of paper and once in a while a 4th guy writes down the location of every chess piece on each board to another piece of paper. </div><div></div><div>The 2 guys playing the chess games are database processes changing rowpieces (chess pieces) in the datablocks (chess board) - the guy writing down the movement of the pieces (redo vectors) is the logwriter process. They guy writing down the complete chessboards to paper is the dbwr process. If it starts to rain, they just scrap the boards (shutdown abort). When they start playing again, they get the paper containing the complete chessboard layouts and the paper with the chess piece movements and redo the movements (instance recovery). It is basic journaling !</div><div>With this story in mind I could have explained backup and recovery in a very simple way so everybody understands, and then move my way up.</div><div></div><div>Anyways - after a week of writing in the evenings I had one page ! One page and I was so bored !!! I'm definitely not a technical writer … a blog now and then…ok. A presentation once a year … fine. But 2 chapters in a book … I don't think so.</div><div></div><div>So I got back to Jonathan Gennick after a week - I didn't make my goal - I could not see, with the deadlines in place, how I could find time (I have 2 jobs and need to sleep now and then)  to write those two chapters and I thought it would be best to let him know before I signed a contract. And you know what, I have not regret it since !</div><div></div><div>Btw - about the second chapter, NLS issues - I live in Belgium. We have 3 official languages : Dutch, French and German. And we use English to keep everybody happy. So we know allllll about NLS issues <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" title="Cool" alt="Cool" border="0" /></div><div></div><div></div><div>Now - go buy this book - it's awesome !</div><div><br /></div><div><i>On a different note …. I do have more time in the winter season and I was able to qualify for the Flemish Poker championship or 'Pokerkampioen Van Vlaanderen'. It's a freeze-out tournament covered by TV. It will be aired on March on 2BE and JimTV. There were 674 entries for the regional finals.  I made it through the semi finals and busted out on place 28. I wrote about it <a href="/pkvv">here</a>. It's all non-technical content ! <span style="font-style: normal" class="Apple-style-span"><img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" title="Laughing" alt="Laughing" border="0" /></span></i></div><div><br /></div>    ]]></content>
  </entry>
  <entry>
    <title>UKOUG2009 - I too can blog about it ...</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/ukoug-2009" />
    <id>http://www.ora600.be/ukoug-2009</id>
    <published>2009-12-03T15:24:27+01:00</published>
    <updated>2010-03-08T00:16:15+01:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="ukoug" />
    <summary type="html"><![CDATA[<p class="MsoNormal" align="left">I don't know how they do it ! </p><p class="MsoNormal" align="left">When I go to a conference, I make an agenda and mostly follow it all the way through - I might make a few changes here or there, but I won’t easily skip a slot… unless an emergency comes up … which happened only twice in these 3 days <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /> </p><p class="MsoNormal" align="left">That brings me to my first observation of UKOUG2009 … wifi sucked !!! </p><p class="MsoNormal" align="left">When I go to a conference I still need to be available – I *need*wifi access to survive. I only was able to get the ICC wifi to work during the parties! </p><p class="MsoNormal" align="left">The mickey mouse portables available at the exibition hall and registration area didn’t do me any good either – I couldn’t ssh out of them ! </p><p class="MsoNormal" align="left">Luckily I found some unprotected wifi signals in the exhibition area – my gratitude goes out to the people who had setup the NETGEAR wifi appliance – you delivered excellent internet services although I reckon this was unintentionally as it was protected the last day of the conference <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" title="Laughing" alt="Laughing" border="0" /> </p><p class="MsoNormal" align="left">Here ‘s a way to get people to come to your booth – if you have wifi – name the network to your company, and give people the password if they visit you – success guaranteed ! </p><p class="MsoNormal" align="left">Anyway – I got deferred – I was wondering how people do it –blogging and twittering during a conference while there is so much to do, so much to see, so much to process. And I reckon, a lot of people were twitteringand blogging … that probably was the cause for the bad wifi !!! <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" title="Cool" alt="Cool" border="0" /> </p><p class="MsoNormal" align="left">So I decided to blog a bit about UKOUG2009 when I got home. </p><p class="MsoNormal" align="left">We arrived on Sunday at Jurys Inn – which is about the best hotel you can get without going to the Hyatt. Every year I seem to bring mor eand more people of the company with me – this year our company had sent 9 people ! The hotel looked a bit quiet so we decided to head to All-bar-one.Which again looked a bit deserted … it seems the credit crunch had taken it’s toll here ! </p><p class="MsoNormal" align="left">So what about the sessions – I have a broad interest – the last couple of years I do more and more application server stuff, networking, identity management and programming than hardcore DBA work. </p><p class="MsoNormal" align="left">I had sessions on my agenda ranging from ‘Getting the best out of hardware loadbalancers’ to ‘Integrating forms with apex’ over ‘Authentication,SSO and authorization for WLS’ and Tanel’s ‘Latches and mutexes’ talk. And they say I am a database geek – I reckon I attend more talks on middleware thandatabases. </p><p class="MsoNormal" align="left">Now for those of you moaning about how bad some presentations were and how you could do so much better – go out there and do it. Write a apresentation and/or whitepaper and get your butt out there. </p><p class="MsoNormal" align="left">One of my colleagues attended a talk on ADF 11g by someonefrom Oracle – afterwards they had a chat and in between my colleague mentions how his team had created a kick ass app in ADF 11g. In which he got the reply ‘well– show it to me’ ! End result – if he writes a paper about it, he may present it at Oracle Openworld 2010! </p><p class="MsoNormal" align="left">So what about the sessions I attended – here are some highlights : </p><p class="MsoNormal" align="left">Alex Keh’s talk on Active Directory and Windows Security integration with Oracle databases – Alex presentation was great – excellent topic, good presentation style, working demos and I learned a couple of new things. </p><p class="MsoNormal" align="left">Joel Goodman from Oracle education had a strange presentation title – something about DB Links PART 2. I couldn’t find part 1 in the agenda. Apparently he had submitted 2 presentations but part 1 didn’t get accepted. Nonetheless – Joel Goodman knows his stuff – he also reminds me of Wolverine – deep voice, American accent … it’s almost as if he tries to hypnotize you while pumping valuable knowledge into your brain. (I wouldn’t mind having him around in a street fight ;-) ) This presentation was all about distributed transactions and how crashing databases, involved in distributed transaction,can lock complete tables until you force commit or force rollback the transactions. I had completely forgotten about that. The last time I had to do something like that was in the Oracle7 era. So 2 thumbs up ! Joel puts hispresentations free for downloading here: <a href="http://dbatrain.wordpress.com/articles-papers-and-presentations/" style="font-weight: bold; color: #333333; text-decoration: none" target="_blank">http://dbatrain.wordpress.com/articles-papers-and-presentations</a>  </p><p class="MsoNormal" align="left">Joel’s partner in crime Harald Van Breederode, and equally excellent presenter talked about 11g SQL Plan Management. This is something I get confronted with quite a lot – plan stability. Don’t you hate it when a new execution plan just hogs down a complete database. In my opinion, Oracle should have introduced SQL Plan Management when they introduced the CBO ! The one can’t live without the other and yet it has taken over a decade to get this feature –my guess is it was just too resource hungry for the hardware available back in the days. I love to quote Hannibal Smith on this : ‘I love it when a plan comes together!’ Harald hasn’t posted his presentation on his <a href="http://prutser.wordpress.com/" target="_blank">blog</a> – but who knows, one day he might!  </p><p class="MsoNormal" align="left">I’m a java guy but that doesn’t mean I can’t appreciate plsql – I like it better then say … perl – so I went to see Steven Feuerstein’s‘High Performance PL/SQL’ – very interesting stuff. He spent quite some time on ways to cache data in the pga/uga using all sorts of tricks, ending up with 11g’s result cache. Not too bad I thought – but Connor McDonald showed a little bit more skepticisms on the result cache. He proofed that if the result cache isbeing populated and concurrent sessions are running the same query which ispopulating the cache, extra locking occurs. As usual, Connor delivered one of the best, well probably most definitely *the* best presentation of UKOUG2009 inhis usual style, firing away *485* slides in 45 minutes ! </p><p class="MsoNormal" align="left">I went to quite a lot of weblogic/ias presentations. It looks like people that are Oracle acquired from the acquisitions haven’t the slightest idea of what Oracle Portal/Forms/Reports are, and *how many* people are still using it. Every presentation was heavily (not heavenly) focused on java functionality, with Forms/reports dangling, almost falling of the slides ! One guy was quite hilarious – it was a talk about SSO and WLS … to be honest I was expecting something about how ‘legacy’ apps like Oracle Forms/reports/portal and Oracle SSO (OC4J_Security) would integrate with the new Weblogic App server. Instead it was a talk about Oracle’s Identity &amp; Access Management suite build on top of WLS. No biggy – quite interesting especially from someone who co-wrote the SAML standards. </p><p class="MsoNormal" align="left">But what I suspected would happen, did happen … someone asked a question about how all this would integrate with Oracle Portal if they migrate from IAS 10.1.2.3 to Weblogic ………………. </p><p class="MsoNormal" align="left">This was going to be good as I was also interested in that. The answer was way off, it was quite clear he had no idea what Oracle Portal was or how it is deeply integrate with PLSQL (and the PLSQL SSO api) and OID. The person who asked the question tried to reframe the question but again … no serious answer –‘no, but in java … blah blah blah’ … you could see the disappointment as the person who asked the question politely nodded along and thanked the presenter for this very straightforward answer. </p><p class="MsoNormal" align="left">This confirms to me that Portal is *dead*. If you run a public website on Portal – get drupal. It’s cheap, it has way better SEO and thrives on a very large community. Oh – and I have created a drupal module that integrates drupal user management with Oracle SSO. Throw away Portal – it’s a real pain to migrate upwards (I’m stuck at Portal 10.1.2.3 as I’m unable to migrate to 10.1.4.2 even after a 2 week SR with Oracle). Throw it out… you’ll feel much better and people will like you for it <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-tongue-out.gif" title="Tongue out" alt="Tongue out" border="0" /> </p><p class="MsoNormal" align="left">One other hilarious moment was Julian Dyke’s presentation on 11gR2 new features. Julian makes excellent presentation/slides/animations. So for that reason alone, if I can, I tend to go to any of his talks. However, at the beginning of his presentation, he mentioned he had forgotten a word in his title : ‘RAC’ – ‘11gR2 *RAC* new features’. This resulted in quite a lot of people leaving the room. I decided to stay purely based on Julian’s reputation.However, I had to leave afterwards when I got an important phone call …(damn wifi) and I was glad I had an excuse to leave the room. I took the 11g RAC course in February of this year. When Julian started to talk about all the new RAC stuff like SCAN, I felt depressed. It was like I could throw away half thet hings I had learned in the course – ‘this is new, that’s new, that’s changed,this is obsolete, this works like that now …’ … too depressing … </p><o:p> </o:p> <p class="MsoNormal">To end this post – here’s a picture of a collegue of mine at the Fire &amp; Ice Party (disclaimer – the girl had already left – she’s not under the table)  </p><p class="MsoNormal"><img src="/system/files/u1/gert.jpg" title="Gert at UKOUG fire &amp; ice party" height="400" alt="Gert at UKOUG fire &amp; ice party" width="300" />  </p><p class="MsoNormal">I need to lay down now after another great UKOUG conference .... till next year !!!!  </p><p class="MsoNormal">&nbsp;</p>    ]]></summary>
    <content type="html"><![CDATA[<p class="MsoNormal" align="left">I don't know how they do it ! </p><p class="MsoNormal" align="left">When I go to a conference, I make an agenda and mostly follow it all the way through - I might make a few changes here or there, but I won’t easily skip a slot… unless an emergency comes up … which happened only twice in these 3 days <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /> </p><p class="MsoNormal" align="left">That brings me to my first observation of UKOUG2009 … wifi sucked !!! </p><p class="MsoNormal" align="left">When I go to a conference I still need to be available – I *need*wifi access to survive. I only was able to get the ICC wifi to work during the parties! </p><p class="MsoNormal" align="left">The mickey mouse portables available at the exibition hall and registration area didn’t do me any good either – I couldn’t ssh out of them ! </p><p class="MsoNormal" align="left">Luckily I found some unprotected wifi signals in the exhibition area – my gratitude goes out to the people who had setup the NETGEAR wifi appliance – you delivered excellent internet services although I reckon this was unintentionally as it was protected the last day of the conference <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" title="Laughing" alt="Laughing" border="0" /> </p><p class="MsoNormal" align="left">Here ‘s a way to get people to come to your booth – if you have wifi – name the network to your company, and give people the password if they visit you – success guaranteed ! </p><p class="MsoNormal" align="left">Anyway – I got deferred – I was wondering how people do it –blogging and twittering during a conference while there is so much to do, so much to see, so much to process. And I reckon, a lot of people were twitteringand blogging … that probably was the cause for the bad wifi !!! <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" title="Cool" alt="Cool" border="0" /> </p><p class="MsoNormal" align="left">So I decided to blog a bit about UKOUG2009 when I got home. </p><p class="MsoNormal" align="left">We arrived on Sunday at Jurys Inn – which is about the best hotel you can get without going to the Hyatt. Every year I seem to bring mor eand more people of the company with me – this year our company had sent 9 people ! The hotel looked a bit quiet so we decided to head to All-bar-one.Which again looked a bit deserted … it seems the credit crunch had taken it’s toll here ! </p><p class="MsoNormal" align="left">So what about the sessions – I have a broad interest – the last couple of years I do more and more application server stuff, networking, identity management and programming than hardcore DBA work. </p><p class="MsoNormal" align="left">I had sessions on my agenda ranging from ‘Getting the best out of hardware loadbalancers’ to ‘Integrating forms with apex’ over ‘Authentication,SSO and authorization for WLS’ and Tanel’s ‘Latches and mutexes’ talk. And they say I am a database geek – I reckon I attend more talks on middleware thandatabases. </p><p class="MsoNormal" align="left">Now for those of you moaning about how bad some presentations were and how you could do so much better – go out there and do it. Write a apresentation and/or whitepaper and get your butt out there. </p><p class="MsoNormal" align="left">One of my colleagues attended a talk on ADF 11g by someonefrom Oracle – afterwards they had a chat and in between my colleague mentions how his team had created a kick ass app in ADF 11g. In which he got the reply ‘well– show it to me’ ! End result – if he writes a paper about it, he may present it at Oracle Openworld 2010! </p><p class="MsoNormal" align="left">So what about the sessions I attended – here are some highlights : </p><p class="MsoNormal" align="left">Alex Keh’s talk on Active Directory and Windows Security integration with Oracle databases – Alex presentation was great – excellent topic, good presentation style, working demos and I learned a couple of new things. </p><p class="MsoNormal" align="left">Joel Goodman from Oracle education had a strange presentation title – something about DB Links PART 2. I couldn’t find part 1 in the agenda. Apparently he had submitted 2 presentations but part 1 didn’t get accepted. Nonetheless – Joel Goodman knows his stuff – he also reminds me of Wolverine – deep voice, American accent … it’s almost as if he tries to hypnotize you while pumping valuable knowledge into your brain. (I wouldn’t mind having him around in a street fight ;-) ) This presentation was all about distributed transactions and how crashing databases, involved in distributed transaction,can lock complete tables until you force commit or force rollback the transactions. I had completely forgotten about that. The last time I had to do something like that was in the Oracle7 era. So 2 thumbs up ! Joel puts hispresentations free for downloading here: <a href="http://dbatrain.wordpress.com/articles-papers-and-presentations/" style="font-weight: bold; color: #333333; text-decoration: none" target="_blank">http://dbatrain.wordpress.com/articles-papers-and-presentations</a>  </p><p class="MsoNormal" align="left">Joel’s partner in crime Harald Van Breederode, and equally excellent presenter talked about 11g SQL Plan Management. This is something I get confronted with quite a lot – plan stability. Don’t you hate it when a new execution plan just hogs down a complete database. In my opinion, Oracle should have introduced SQL Plan Management when they introduced the CBO ! The one can’t live without the other and yet it has taken over a decade to get this feature –my guess is it was just too resource hungry for the hardware available back in the days. I love to quote Hannibal Smith on this : ‘I love it when a plan comes together!’ Harald hasn’t posted his presentation on his <a href="http://prutser.wordpress.com/" target="_blank">blog</a> – but who knows, one day he might!  </p><p class="MsoNormal" align="left">I’m a java guy but that doesn’t mean I can’t appreciate plsql – I like it better then say … perl – so I went to see Steven Feuerstein’s‘High Performance PL/SQL’ – very interesting stuff. He spent quite some time on ways to cache data in the pga/uga using all sorts of tricks, ending up with 11g’s result cache. Not too bad I thought – but Connor McDonald showed a little bit more skepticisms on the result cache. He proofed that if the result cache isbeing populated and concurrent sessions are running the same query which ispopulating the cache, extra locking occurs. As usual, Connor delivered one of the best, well probably most definitely *the* best presentation of UKOUG2009 inhis usual style, firing away *485* slides in 45 minutes ! </p><p class="MsoNormal" align="left">I went to quite a lot of weblogic/ias presentations. It looks like people that are Oracle acquired from the acquisitions haven’t the slightest idea of what Oracle Portal/Forms/Reports are, and *how many* people are still using it. Every presentation was heavily (not heavenly) focused on java functionality, with Forms/reports dangling, almost falling of the slides ! One guy was quite hilarious – it was a talk about SSO and WLS … to be honest I was expecting something about how ‘legacy’ apps like Oracle Forms/reports/portal and Oracle SSO (OC4J_Security) would integrate with the new Weblogic App server. Instead it was a talk about Oracle’s Identity &amp; Access Management suite build on top of WLS. No biggy – quite interesting especially from someone who co-wrote the SAML standards. </p><p class="MsoNormal" align="left">But what I suspected would happen, did happen … someone asked a question about how all this would integrate with Oracle Portal if they migrate from IAS 10.1.2.3 to Weblogic ………………. </p><p class="MsoNormal" align="left">This was going to be good as I was also interested in that. The answer was way off, it was quite clear he had no idea what Oracle Portal was or how it is deeply integrate with PLSQL (and the PLSQL SSO api) and OID. The person who asked the question tried to reframe the question but again … no serious answer –‘no, but in java … blah blah blah’ … you could see the disappointment as the person who asked the question politely nodded along and thanked the presenter for this very straightforward answer. </p><p class="MsoNormal" align="left">This confirms to me that Portal is *dead*. If you run a public website on Portal – get drupal. It’s cheap, it has way better SEO and thrives on a very large community. Oh – and I have created a drupal module that integrates drupal user management with Oracle SSO. Throw away Portal – it’s a real pain to migrate upwards (I’m stuck at Portal 10.1.2.3 as I’m unable to migrate to 10.1.4.2 even after a 2 week SR with Oracle). Throw it out… you’ll feel much better and people will like you for it <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-tongue-out.gif" title="Tongue out" alt="Tongue out" border="0" /> </p><p class="MsoNormal" align="left">One other hilarious moment was Julian Dyke’s presentation on 11gR2 new features. Julian makes excellent presentation/slides/animations. So for that reason alone, if I can, I tend to go to any of his talks. However, at the beginning of his presentation, he mentioned he had forgotten a word in his title : ‘RAC’ – ‘11gR2 *RAC* new features’. This resulted in quite a lot of people leaving the room. I decided to stay purely based on Julian’s reputation.However, I had to leave afterwards when I got an important phone call …(damn wifi) and I was glad I had an excuse to leave the room. I took the 11g RAC course in February of this year. When Julian started to talk about all the new RAC stuff like SCAN, I felt depressed. It was like I could throw away half thet hings I had learned in the course – ‘this is new, that’s new, that’s changed,this is obsolete, this works like that now …’ … too depressing … </p><o:p> </o:p> <p class="MsoNormal">To end this post – here’s a picture of a collegue of mine at the Fire &amp; Ice Party (disclaimer – the girl had already left – she’s not under the table)  </p><p class="MsoNormal"><img src="/system/files/u1/gert.jpg" title="Gert at UKOUG fire &amp; ice party" height="400" alt="Gert at UKOUG fire &amp; ice party" width="300" />  </p><p class="MsoNormal">I need to lay down now after another great UKOUG conference .... till next year !!!!  </p><p class="MsoNormal">&nbsp;</p>    ]]></content>
  </entry>
  <entry>
    <title>Cloud computing - my server is out there man !</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/my-server-was-out-there-in-the-cloud" />
    <id>http://www.ora600.be/my-server-was-out-there-in-the-cloud</id>
    <published>2009-11-16T10:16:27+01:00</published>
    <updated>2009-11-16T10:22:44+01:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="cloud computing" />
    <category term="elastichosts.com" />
    <summary type="html"><![CDATA[<div><i><b>Price is non-negotiable</b></i></div><div> </div><div></div><div></div><div>This website is hosted on one of my servers co-located at a data centre near Brussels. It's a DELL Poweredge 850E with 340W powersupply.</div><div>I use my own dedicated server because I *sometimes* need large amount of storage. For example, if a customer has a crashed database and wants to upload his datafiles. We're speaking 100Gb or more.  </div><div>So I need large amounts of storage - not all the time - and bandwidth. The server is hooked up to a 100Mbit internet backbone so I got that one covered too !</div><div>A couple of years ago, my only option was to buy a physical server, find a hosting company that offers co-location and hire 1U rackspace.</div><div></div><div>Cloud computing has changed this game - that and the price of electricity at datacenters.</div><div></div><div>Two months ago I was thinking of buying a server to replace the old DELL server - it was 3y old and I wanted bigger disks <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" border="0" alt="Wink" title="Wink" /></div><div>Coincidentally, when I had configured a new 1U box on DELL's website, I got a call from my hosting company. </div><div>After hearing a whole story about how they got new racks (more current, better cooling, bla bla bla) and that I had to migrate my server, they dropped the bombshell on pricing. </div><div>Electricity prices had gone up and they had to re-negotiate prices with the datacenter. </div><div></div><div>Much to my surprise, the new price was three times the current price. Now I don't know about you - but if you have to pay 3x the price for getting the same service, something is wrong  <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" />(did I mention that the year before they also upped their price with 20%) </div><div>Suddenly a power supply of 340W became extremely expensive. Did you ever had a look at those 200W servers … I'd rather run a business on a laptop than on one of those mickey-mouse servers… at least my old DELL has hardware raid and a decent cpu...</div><div>So - either they were lousy negotiators - or they wanted their customers to pay for their new - probably golden - racks. </div><div>It was a lousy sales-pitch too - the sales guy offered me to think about it and check out the competition … which were all cheaper than them ;-) </div><div>Anyway - prices were non-negotiable - so I first checked out several competitors in the same and other datacenters.</div><div></div><div>Now with co-location - all you get is rackspace, current and network. That's it. </div><div>One hosting provider's current is not better than another's - so the only criteria are price and maybe the datacenter's reputation. (well ok - there are minor differences regarding network limits, but co-location is basically easy money for providers).</div><div>So there I was - comparing prices of different providers at different datacenters. And as price and network was my only criteria I chose to move to a small provider at the Scarlet datacenter in Vilvoorde. It's a really small and young provider/company as they only have 2 racks there (and 2 racks at another datacenter). </div><div></div><div>Now, I didn't want any downtime - that meant renting computing power,  temporarely migrating the website and all programs that allow for the generating DUDE licenses (which is a bit more complicated that running some 'make' or 'ant' scripts), switching DNS, while doing the physical transfer of the server.</div><div> </div><div></div><div></div><div></div><div></div><div> </div><div><b><i>The Anjo connection</i></b></div><div> </div><div></div><div>I remembered one time I was at Anjo Kolk's place. I had bought 2 second hand Sun servers from him. He had bought 40 of them in the US and had shipped them to The Netherlands, so he could spare a server or two <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-tongue-out.gif" border="0" alt="Tongue out" title="Tongue out" /></div><div>Anyway - I told him I was going to use the servers for a new project of mine, where I needed a linux cluster for running my own DNS servers. At which point he started demonstrating Amazon EC2 and how I could use cloud computing to do what I wanted to do, without the hassles of hiring extra rackspace or getting a NAS for storage. </div><div>I must say I was intrigued … but it all looked a bit fragile and over-complicated. </div><div>I mean, I just wanted some cpu, some storage and network. </div><div>With Amazon I had to choose from an aws image in the EC2 cloud - then, if I wanted persistent storage, I had to rent Amazon S3 storage. Huh persistent storage ? </div><div>It looks like Amazon's VM's are snapshots from common images and if you shutdown your VM or your VM crashes, the VM reverts to the original image, losing all your changes… unless you backed it up to your persistent S3 storage … which couldn't be mounted as a file systems but had to accessed through HTTP protocols … huh??? </div><div></div><div>I just want disk space … how hard is that ?</div><div></div><div>Anyway - because of migration and uptime issues I was facing, I took a new look at Amazon EC2 and it seems they finally have mountable persistent storage, which they call Amazon EBS (or elastic block device) or what I like to call - a disk. </div><div>Still, if your VM crashes, you lose your configuration unless you back it up to your EBS or somewhere else and reconfigure after the crash (someone correct me if I'm wrong).</div><div></div><div>That's OK as I only needed a VM for a day or 2, while my own server was physically being moved to the new datacenter. So I signed up for the Amazon EC2 service. And then I waited … and waited…. It took them 2 days to activate my account… too slow.</div><div> </div><div> </div><div></div><div></div><div></div><div><i><b>Amazon and goliath </b></i></div><div> </div><div></div><div>While I was waiting for my account activation at Amazon, I decided to look at other cloud providers … there is only a handful and most of them are based on virtualization software like VMware, Xen and KVM. The downside is that they all offer fixed configurations like :</div><div><ul>	<li>Small config  : 1 cpu core, 1Gb mem, 20Gb disk</li>		<li>Medium config : 2 cpu cure, 2Gb mem,  40Gb disk</li>		<li>Large …. You get the idea</li></ul></div><div>In my opinion - cloud computing should provide flexible configurations at flexible prices. </div><div>This was only cloud computing in the sense that you pay by the hour but it's not as flexible as Amazon that you can say - I want 1 cpu core, 1Gb of memory and 200Gb of disk. </div><div>Nooo, if you wanted 200Gb of disk space, you needed to take the *extra large config* with 16 cpu cores, 8Gb memory and that happened to come with 200Gb of disk space and will cost you as much as a half a rack and 4 DELLs if you keep running it for a whole year.</div><div></div><div>But wait - I've found the one exception, that absolutely lets you choose all 3 (cpu/mem/storage) independently - and they are called <a href="/Elastichosts.com" target="_blank">Elastichosts.com</a>, a UK based cloud provider. </div><div>And what's more - they let you try it out for free for 5 days ! </div><div>And … they give you a fixed IP address unlike Amazon's elastic IP address which will make you jump to 20 burning loops before you can receive/send mail to/from your server that is not <a href="http://solutions.amazonwebservices.com/connect/thread.jspa?threadID=37650&amp;tstart=0&amp;start=15" target="_blank">marked as spam</a>. </div><div></div><div><a href="http://www.elastichosts.com" target="_blank">Elastichosts</a> runs on Linux KVM and they have made sure that all interfaces are very simple - a disk is a disk - an static ip really is a static ip. </div><div></div><div>No fuzzy acronyms. </div><div></div><div>In fact, I was reminded of Larry Ellison's opinion of cloud computing … it's just a simple server that is 'out there' <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" />  - it needs cpu, memory, network and electricity - and for me affordable flexible pricing - that's it !!!</div><div>Maybe I'm an idiot but Amazon just took it a step too far and made it too complex !</div><div>In case you've misted Larry's interview on cloud computing :</div><div></div><div><object height="344" width="425">	<param value="http://www.youtube.com/v/0FacYAI6DY0&amp;hl=en_US&amp;fs=1&amp;" name="movie">	</param>	<param value="true" name="allowFullScreen">	</param>	<param value="always" name="allowscriptaccess">	</param>	<embed src="http://www.youtube.com/v/0FacYAI6DY0&amp;hl=en_US&amp;fs=1&amp;" height="344" width="425" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash"></embed></object></div><div><object height="344" width="425">	<param value="http://www.youtube.com/v/UOEFXaWHppE&amp;hl=en_US&amp;fs=1&amp;" name="movie">	</param>	<param value="true" name="allowFullScreen">	</param>	<param value="always" name="allowscriptaccess">	</param>	<embed src="http://www.youtube.com/v/UOEFXaWHppE&amp;hl=en_US&amp;fs=1&amp;" height="344" width="425" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash"></embed></object></div><div><br /></div><div><br /></div><div></div><div> </div><div><b><i>Epilogue</i></b></div><div></div><div><ul>	<li>Anjo has been running an Amazon AWS for over a year without crashing.</li></ul><ul>	<li>I migrated the ORA600 server without downtime to the Scarlet datacenter which is located in the same building as the Belgian Oracle office (you've got to love the irony <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" border="0" alt="Laughing" title="Laughing" /> )</li></ul><div></div><div><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-width: initial; border-color: initial; border-style: none; padding: 0px">	<img src="/system/files/u1/scarlet.jpg" alt="scarlet dc" title="scarlet dc" width="98" height="98" /> </blockquote></div><ul>	<li>A friend of mine who was also co-locating a server at my original provider was offered negotiable prices a couple of weeks later (maybe tripling their prices wasn't the best of ideas). He too migrated to another datacenter.</li></ul><ul>	<li>If a hosting company ever pulls a trick on me again, I'm throwing away my hardware and move to elastichosts.com for good. </li></ul><ul>	<li>Have a look at <a href="http://www.elastichosts.com" target="_blank">elastichosts.com</a> - it rocks !!!</li></ul></div><div><br /></div>    ]]></summary>
    <content type="html"><![CDATA[<div><i><b>Price is non-negotiable</b></i></div><div> </div><div></div><div></div><div>This website is hosted on one of my servers co-located at a data centre near Brussels. It's a DELL Poweredge 850E with 340W powersupply.</div><div>I use my own dedicated server because I *sometimes* need large amount of storage. For example, if a customer has a crashed database and wants to upload his datafiles. We're speaking 100Gb or more.  </div><div>So I need large amounts of storage - not all the time - and bandwidth. The server is hooked up to a 100Mbit internet backbone so I got that one covered too !</div><div>A couple of years ago, my only option was to buy a physical server, find a hosting company that offers co-location and hire 1U rackspace.</div><div></div><div>Cloud computing has changed this game - that and the price of electricity at datacenters.</div><div></div><div>Two months ago I was thinking of buying a server to replace the old DELL server - it was 3y old and I wanted bigger disks <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" border="0" alt="Wink" title="Wink" /></div><div>Coincidentally, when I had configured a new 1U box on DELL's website, I got a call from my hosting company. </div><div>After hearing a whole story about how they got new racks (more current, better cooling, bla bla bla) and that I had to migrate my server, they dropped the bombshell on pricing. </div><div>Electricity prices had gone up and they had to re-negotiate prices with the datacenter. </div><div></div><div>Much to my surprise, the new price was three times the current price. Now I don't know about you - but if you have to pay 3x the price for getting the same service, something is wrong  <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" />(did I mention that the year before they also upped their price with 20%) </div><div>Suddenly a power supply of 340W became extremely expensive. Did you ever had a look at those 200W servers … I'd rather run a business on a laptop than on one of those mickey-mouse servers… at least my old DELL has hardware raid and a decent cpu...</div><div>So - either they were lousy negotiators - or they wanted their customers to pay for their new - probably golden - racks. </div><div>It was a lousy sales-pitch too - the sales guy offered me to think about it and check out the competition … which were all cheaper than them ;-) </div><div>Anyway - prices were non-negotiable - so I first checked out several competitors in the same and other datacenters.</div><div></div><div>Now with co-location - all you get is rackspace, current and network. That's it. </div><div>One hosting provider's current is not better than another's - so the only criteria are price and maybe the datacenter's reputation. (well ok - there are minor differences regarding network limits, but co-location is basically easy money for providers).</div><div>So there I was - comparing prices of different providers at different datacenters. And as price and network was my only criteria I chose to move to a small provider at the Scarlet datacenter in Vilvoorde. It's a really small and young provider/company as they only have 2 racks there (and 2 racks at another datacenter). </div><div></div><div>Now, I didn't want any downtime - that meant renting computing power,  temporarely migrating the website and all programs that allow for the generating DUDE licenses (which is a bit more complicated that running some 'make' or 'ant' scripts), switching DNS, while doing the physical transfer of the server.</div><div> </div><div></div><div></div><div></div><div></div><div> </div><div><b><i>The Anjo connection</i></b></div><div> </div><div></div><div>I remembered one time I was at Anjo Kolk's place. I had bought 2 second hand Sun servers from him. He had bought 40 of them in the US and had shipped them to The Netherlands, so he could spare a server or two <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-tongue-out.gif" border="0" alt="Tongue out" title="Tongue out" /></div><div>Anyway - I told him I was going to use the servers for a new project of mine, where I needed a linux cluster for running my own DNS servers. At which point he started demonstrating Amazon EC2 and how I could use cloud computing to do what I wanted to do, without the hassles of hiring extra rackspace or getting a NAS for storage. </div><div>I must say I was intrigued … but it all looked a bit fragile and over-complicated. </div><div>I mean, I just wanted some cpu, some storage and network. </div><div>With Amazon I had to choose from an aws image in the EC2 cloud - then, if I wanted persistent storage, I had to rent Amazon S3 storage. Huh persistent storage ? </div><div>It looks like Amazon's VM's are snapshots from common images and if you shutdown your VM or your VM crashes, the VM reverts to the original image, losing all your changes… unless you backed it up to your persistent S3 storage … which couldn't be mounted as a file systems but had to accessed through HTTP protocols … huh??? </div><div></div><div>I just want disk space … how hard is that ?</div><div></div><div>Anyway - because of migration and uptime issues I was facing, I took a new look at Amazon EC2 and it seems they finally have mountable persistent storage, which they call Amazon EBS (or elastic block device) or what I like to call - a disk. </div><div>Still, if your VM crashes, you lose your configuration unless you back it up to your EBS or somewhere else and reconfigure after the crash (someone correct me if I'm wrong).</div><div></div><div>That's OK as I only needed a VM for a day or 2, while my own server was physically being moved to the new datacenter. So I signed up for the Amazon EC2 service. And then I waited … and waited…. It took them 2 days to activate my account… too slow.</div><div> </div><div> </div><div></div><div></div><div></div><div><i><b>Amazon and goliath </b></i></div><div> </div><div></div><div>While I was waiting for my account activation at Amazon, I decided to look at other cloud providers … there is only a handful and most of them are based on virtualization software like VMware, Xen and KVM. The downside is that they all offer fixed configurations like :</div><div><ul>	<li>Small config  : 1 cpu core, 1Gb mem, 20Gb disk</li>		<li>Medium config : 2 cpu cure, 2Gb mem,  40Gb disk</li>		<li>Large …. You get the idea</li></ul></div><div>In my opinion - cloud computing should provide flexible configurations at flexible prices. </div><div>This was only cloud computing in the sense that you pay by the hour but it's not as flexible as Amazon that you can say - I want 1 cpu core, 1Gb of memory and 200Gb of disk. </div><div>Nooo, if you wanted 200Gb of disk space, you needed to take the *extra large config* with 16 cpu cores, 8Gb memory and that happened to come with 200Gb of disk space and will cost you as much as a half a rack and 4 DELLs if you keep running it for a whole year.</div><div></div><div>But wait - I've found the one exception, that absolutely lets you choose all 3 (cpu/mem/storage) independently - and they are called <a href="/Elastichosts.com" target="_blank">Elastichosts.com</a>, a UK based cloud provider. </div><div>And what's more - they let you try it out for free for 5 days ! </div><div>And … they give you a fixed IP address unlike Amazon's elastic IP address which will make you jump to 20 burning loops before you can receive/send mail to/from your server that is not <a href="http://solutions.amazonwebservices.com/connect/thread.jspa?threadID=37650&amp;tstart=0&amp;start=15" target="_blank">marked as spam</a>. </div><div></div><div><a href="http://www.elastichosts.com" target="_blank">Elastichosts</a> runs on Linux KVM and they have made sure that all interfaces are very simple - a disk is a disk - an static ip really is a static ip. </div><div></div><div>No fuzzy acronyms. </div><div></div><div>In fact, I was reminded of Larry Ellison's opinion of cloud computing … it's just a simple server that is 'out there' <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" />  - it needs cpu, memory, network and electricity - and for me affordable flexible pricing - that's it !!!</div><div>Maybe I'm an idiot but Amazon just took it a step too far and made it too complex !</div><div>In case you've misted Larry's interview on cloud computing :</div><div></div><div><object height="344" width="425">	<param value="http://www.youtube.com/v/0FacYAI6DY0&amp;hl=en_US&amp;fs=1&amp;" name="movie">	</param>	<param value="true" name="allowFullScreen">	</param>	<param value="always" name="allowscriptaccess">	</param>	<embed src="http://www.youtube.com/v/0FacYAI6DY0&amp;hl=en_US&amp;fs=1&amp;" height="344" width="425" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash"></embed></object></div><div><object height="344" width="425">	<param value="http://www.youtube.com/v/UOEFXaWHppE&amp;hl=en_US&amp;fs=1&amp;" name="movie">	</param>	<param value="true" name="allowFullScreen">	</param>	<param value="always" name="allowscriptaccess">	</param>	<embed src="http://www.youtube.com/v/UOEFXaWHppE&amp;hl=en_US&amp;fs=1&amp;" height="344" width="425" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash"></embed></object></div><div><br /></div><div><br /></div><div></div><div> </div><div><b><i>Epilogue</i></b></div><div></div><div><ul>	<li>Anjo has been running an Amazon AWS for over a year without crashing.</li></ul><ul>	<li>I migrated the ORA600 server without downtime to the Scarlet datacenter which is located in the same building as the Belgian Oracle office (you've got to love the irony <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" border="0" alt="Laughing" title="Laughing" /> )</li></ul><div></div><div><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-width: initial; border-color: initial; border-style: none; padding: 0px">	<img src="/system/files/u1/scarlet.jpg" alt="scarlet dc" title="scarlet dc" width="98" height="98" /> </blockquote></div><ul>	<li>A friend of mine who was also co-locating a server at my original provider was offered negotiable prices a couple of weeks later (maybe tripling their prices wasn't the best of ideas). He too migrated to another datacenter.</li></ul><ul>	<li>If a hosting company ever pulls a trick on me again, I'm throwing away my hardware and move to elastichosts.com for good. </li></ul><ul>	<li>Have a look at <a href="http://www.elastichosts.com" target="_blank">elastichosts.com</a> - it rocks !!!</li></ul></div><div><br /></div>    ]]></content>
  </entry>
  <entry>
    <title>ORA600 Aggregator mobile theme</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/node/5348" />
    <id>http://www.ora600.be/node/5348</id>
    <published>2009-10-09T09:47:20+02:00</published>
    <updated>2009-10-09T09:48:57+02:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <summary type="html"><![CDATA[<p>
I caved in ... I bought an iPhone. 
</p>
<p>
I still think the price is a total rip-off here in Belgium - and there's a 6 week waiting list. 
</p>
<p>
All because in <a target="_blank" href="http://www.theregister.co.uk/2008/07/09/belgium_will_sell_iphone_simlock_free/">Belgium force bundling sales are not allowed</a>. This makes the iPhone simlock free but it comes at a price. 
</p>
<p>
Anyway - when I looked at the news <a href="/aggregator">aggregator</a>, I thought I could do better and so the aggregator now detects mobile browsers and switches to a mobile theme. The implementation uses an mobile theme, a browser detection (browscap), a themeswitcher and the <a target="_blank" href="http://iwebkit.net/">iWebKit</a>. The implementation was done in 15min all because of the <a href="http://www.drupal.org">drupal</a> framework <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" alt="Cool" title="Cool" />. I wonder how long this would take in Apex - or god forbid Portal ! 
</p>
<p>
When I started this site, and needed to pick a framework, I was favoring Apex because I knew it already. And I have some experience with Oracle Portal. However, the problem we were having at a customer site with Portal (or apex) and search engine optimisation (SEO), drove me into drupal which does a great job in SEO. It did involve learning php (but I already knew perl really well) and ofcourse the drupal hook api (which is really another way of thinking and programming). But the payoff comes with all free modules that you can find on the internet and build new functionality in a matter of minutes !!! 
</p>
<p>
&nbsp;
</p>
<p>
&nbsp;
</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>
I caved in ... I bought an iPhone. 
</p>
<p>
I still think the price is a total rip-off here in Belgium - and there's a 6 week waiting list. 
</p>
<p>
All because in <a target="_blank" href="http://www.theregister.co.uk/2008/07/09/belgium_will_sell_iphone_simlock_free/">Belgium force bundling sales are not allowed</a>. This makes the iPhone simlock free but it comes at a price. 
</p>
<p>
Anyway - when I looked at the news <a href="/aggregator">aggregator</a>, I thought I could do better and so the aggregator now detects mobile browsers and switches to a mobile theme. The implementation uses an mobile theme, a browser detection (browscap), a themeswitcher and the <a target="_blank" href="http://iwebkit.net/">iWebKit</a>. The implementation was done in 15min all because of the <a href="http://www.drupal.org">drupal</a> framework <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" alt="Cool" title="Cool" />. I wonder how long this would take in Apex - or god forbid Portal ! 
</p>
<p>
When I started this site, and needed to pick a framework, I was favoring Apex because I knew it already. And I have some experience with Oracle Portal. However, the problem we were having at a customer site with Portal (or apex) and search engine optimisation (SEO), drove me into drupal which does a great job in SEO. It did involve learning php (but I already knew perl really well) and ofcourse the drupal hook api (which is really another way of thinking and programming). But the payoff comes with all free modules that you can find on the internet and build new functionality in a matter of minutes !!! 
</p>
<p>
&nbsp;
</p>
<p>
&nbsp;
</p>
    ]]></content>
  </entry>
  <entry>
    <title>Oracle Performance Firefighting</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/node/4882" />
    <id>http://www.ora600.be/node/4882</id>
    <published>2009-09-10T21:23:58+02:00</published>
    <updated>2009-09-10T21:55:37+02:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="oracle books" />
    <summary type="html"><![CDATA[<p>I've been  - and still am - very busy lately. </p><p>However, when I saw <a href="http://coskan.wordpress.com/2009/09/10/oracle-performance-firefighting-by-craig-shallahamer/" target="_blank">Coskan's review</a> of Craig Shallahamer's book, <a href="http://www.amazon.com/Oracle-Performance-Firefighting-Craig-Shallahamer/dp/0984102302/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1252608788&amp;sr=8-1" target="_blank">Oracle Performance Firefighting</a>, it reminded me of the fact that I had put this topic on my blog todo list.</p><p>&nbsp;</p><img src="/system/files/u1/firefighting.jpg" align="left" height="240" width="240" alt="Oracle Performance Firefighting" /><p>But unlike the other topics on my list, I really wanted to get this one out first.</p><p>It's been a while since I've been so excited about a book. </p><p>Craig is the guy behind <a href="http://resources.orapub.com/aboutus.asp">Orapub</a> and also the author of <a href="http://www.amazon.com/Forecasting-Oracle-Performance-Craig-Shallahamer/dp/1590598024/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1252609159&amp;sr=1-2">Forecasting Oracle Performance.</a></p><p><a href="http://www.amazon.com/Forecasting-Oracle-Performance-Craig-Shallahamer/dp/1590598024/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1252609159&amp;sr=1-2"></a>I'm a bottom-up learner - like bottom-up parsers (as opposed to top-down parsers) I like to get my facts as detailed as possible and then work my way up to more general topics. For example, when I learned my backup &amp; recovery skills, I learned about block internals first as opposed to diving in all sorts of high level commands.</p><p>This means I really appriciate books like Steve Adams' <a href="http://www.amazon.com/Oracle8i-Internal-Services-Latches-Memory/dp/156592598X/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1252609752&amp;sr=1-1">Oracle8i internals</a>, James Morle's <a href="http://www.amazon.com/Scaling-Oracle8i-TM-Building-Architectures/dp/0201325748/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1252609803&amp;sr=1-1" target="_blank">Scaling Oracle8i</a> or Bach's all time classic <a href="http://www.amazon.com/Design-UNIX-Operating-System-Maurice/dp/0132017997/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1252609928&amp;sr=1-1" target="_blank">Design of the Unix OS</a>.</p><p>I think Craig's new book fits right in there.</p><p> I found out about the book a couple of months ago as Daniel Fink told me he was reviewing this book - I immediately ordered it on Craig's site before it was available on Amazon.</p><p>I must admit, I've only read chapters 6, 7 and 8 - covering buffer cache internals, redo internals and shared pool internals. These are 3 chapters <b>every dba </b>should read !!! Those 3 chapters are worth the price on their own !</p><p>So if you're buying only one Oracle book this year - buy this one !!!</p><p>And while you're buying books, get Christian Antognini's <a href="http://antognini.ch/top/" target="_blank">Troubleshooting Oracle Performance</a> too ! </p><p>&nbsp;</p><p>PS - for the fans of <a href="http://www.amazon.com/Oracle-Insights-Tales-Oak-Table/dp/1590593871/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1252610710&amp;sr=1-1" target="_blank">Oracle Insights - tales of the Oaktable</a> - TOTOT2 is on it's way !</p>    ]]></summary>
    <content type="html"><![CDATA[<p>I've been  - and still am - very busy lately. </p><p>However, when I saw <a href="http://coskan.wordpress.com/2009/09/10/oracle-performance-firefighting-by-craig-shallahamer/" target="_blank">Coskan's review</a> of Craig Shallahamer's book, <a href="http://www.amazon.com/Oracle-Performance-Firefighting-Craig-Shallahamer/dp/0984102302/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1252608788&amp;sr=8-1" target="_blank">Oracle Performance Firefighting</a>, it reminded me of the fact that I had put this topic on my blog todo list.</p><p>&nbsp;</p><img src="/system/files/u1/firefighting.jpg" align="left" height="240" width="240" alt="Oracle Performance Firefighting" /><p>But unlike the other topics on my list, I really wanted to get this one out first.</p><p>It's been a while since I've been so excited about a book. </p><p>Craig is the guy behind <a href="http://resources.orapub.com/aboutus.asp">Orapub</a> and also the author of <a href="http://www.amazon.com/Forecasting-Oracle-Performance-Craig-Shallahamer/dp/1590598024/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1252609159&amp;sr=1-2">Forecasting Oracle Performance.</a></p><p><a href="http://www.amazon.com/Forecasting-Oracle-Performance-Craig-Shallahamer/dp/1590598024/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1252609159&amp;sr=1-2"></a>I'm a bottom-up learner - like bottom-up parsers (as opposed to top-down parsers) I like to get my facts as detailed as possible and then work my way up to more general topics. For example, when I learned my backup &amp; recovery skills, I learned about block internals first as opposed to diving in all sorts of high level commands.</p><p>This means I really appriciate books like Steve Adams' <a href="http://www.amazon.com/Oracle8i-Internal-Services-Latches-Memory/dp/156592598X/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1252609752&amp;sr=1-1">Oracle8i internals</a>, James Morle's <a href="http://www.amazon.com/Scaling-Oracle8i-TM-Building-Architectures/dp/0201325748/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1252609803&amp;sr=1-1" target="_blank">Scaling Oracle8i</a> or Bach's all time classic <a href="http://www.amazon.com/Design-UNIX-Operating-System-Maurice/dp/0132017997/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1252609928&amp;sr=1-1" target="_blank">Design of the Unix OS</a>.</p><p>I think Craig's new book fits right in there.</p><p> I found out about the book a couple of months ago as Daniel Fink told me he was reviewing this book - I immediately ordered it on Craig's site before it was available on Amazon.</p><p>I must admit, I've only read chapters 6, 7 and 8 - covering buffer cache internals, redo internals and shared pool internals. These are 3 chapters <b>every dba </b>should read !!! Those 3 chapters are worth the price on their own !</p><p>So if you're buying only one Oracle book this year - buy this one !!!</p><p>And while you're buying books, get Christian Antognini's <a href="http://antognini.ch/top/" target="_blank">Troubleshooting Oracle Performance</a> too ! </p><p>&nbsp;</p><p>PS - for the fans of <a href="http://www.amazon.com/Oracle-Insights-Tales-Oak-Table/dp/1590593871/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1252610710&amp;sr=1-1" target="_blank">Oracle Insights - tales of the Oaktable</a> - TOTOT2 is on it's way !</p>    ]]></content>
  </entry>
  <entry>
    <title>Oracle buys sun ... time to buy some Oracle shares</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/oracle-buys-sun" />
    <id>http://www.ora600.be/oracle-buys-sun</id>
    <published>2009-04-20T14:03:35+02:00</published>
    <updated>2009-08-23T16:22:58+02:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="oracle" />
    <category term="sun" />
    <summary type="html"><![CDATA[<p>
&nbsp;
</p>
<p>
It seems Oracle succeeded where IBM failed : 
</p>
<p>
http://www.oracle.com/sun/index.html 
</p>
<p>
&quot;On April 20, 2009, Oracle announced it has entered into an agreement to acquire Sun Microsystems (Sun). The proposed transaction is subject to Sun stockholder approval, certain regulatory approvals and customary closing conditions. Until the deal closes, each company will continue to operate independently, and it is business as usual. 
</p>
<p>
The acquisition combines best-in-class enterprise software and mission-critical computing systems. Oracle plans to engineer and deliver an integrated system—applications to disk—where all the pieces fit and work together so customers do not have to do it themselves. Customers benefit as their system integration costs go down while system performance, reliability and security go up. 
</p>
<table padding="0" border="0" width="100%" cellPadding="0" cellSpacing="0" class="innerPgSignpost">
	<tbody>
		<tr>
			<td width="50%" vAlign="top"><!-- Begin Section Content--><!-- Begin Three Column Signpost-->
			<ul>
				<li><a s_oid="http://www.oracle.com/us/corporate/press/018363" s_oidt="0" href="http://www.oracle.com/us/corporate/press/018363">Read the press release</a> </li>
			</ul>
			</td>
			<td width="50%" vAlign="top"><!-- Begin Section Content-->  <!-- Begin Three Column Signpost--></td>
		</tr>
	</tbody>
</table>
<br />
<p>
<b>Investor Conference Call</b><br />
There will be a conference call to discuss the transaction at 5:30 a.m. Pacific time. 
</p>
<ul>
	<li>Investors can listen to the conference call by dialing +1.719.234.7870, passcode: 923645 </li>
	<li>A replay will be available for 24 hours after the call ends at +1.719.884.8882, passcode: 923645&quot;</li>
</ul>
<p>
&nbsp;
</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>
&nbsp;
</p>
<p>
It seems Oracle succeeded where IBM failed : 
</p>
<p>
http://www.oracle.com/sun/index.html 
</p>
<p>
&quot;On April 20, 2009, Oracle announced it has entered into an agreement to acquire Sun Microsystems (Sun). The proposed transaction is subject to Sun stockholder approval, certain regulatory approvals and customary closing conditions. Until the deal closes, each company will continue to operate independently, and it is business as usual. 
</p>
<p>
The acquisition combines best-in-class enterprise software and mission-critical computing systems. Oracle plans to engineer and deliver an integrated system—applications to disk—where all the pieces fit and work together so customers do not have to do it themselves. Customers benefit as their system integration costs go down while system performance, reliability and security go up. 
</p>
<table padding="0" border="0" width="100%" cellPadding="0" cellSpacing="0" class="innerPgSignpost">
	<tbody>
		<tr>
			<td width="50%" vAlign="top"><!-- Begin Section Content--><!-- Begin Three Column Signpost-->
			<ul>
				<li><a s_oid="http://www.oracle.com/us/corporate/press/018363" s_oidt="0" href="http://www.oracle.com/us/corporate/press/018363">Read the press release</a> </li>
			</ul>
			</td>
			<td width="50%" vAlign="top"><!-- Begin Section Content-->  <!-- Begin Three Column Signpost--></td>
		</tr>
	</tbody>
</table>
<br />
<p>
<b>Investor Conference Call</b><br />
There will be a conference call to discuss the transaction at 5:30 a.m. Pacific time. 
</p>
<ul>
	<li>Investors can listen to the conference call by dialing +1.719.234.7870, passcode: 923645 </li>
	<li>A replay will be available for 24 hours after the call ends at +1.719.884.8882, passcode: 923645&quot;</li>
</ul>
<p>
&nbsp;
</p>
    ]]></content>
  </entry>
  <entry>
    <title>FBI internal investigations...hidden virtual columns in 8i.</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/function-based-index-virtual-column" />
    <id>http://www.ora600.be/function-based-index-virtual-column</id>
    <published>2009-02-23T08:51:35+01:00</published>
    <updated>2010-04-13T16:26:11+02:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="function based index" />
    <category term="oracle virtual column" />
    <summary type="html"><![CDATA[<p>I was called in last week for a performance issue at a customer site.<br />Let's set scene a bit … </p><p>They had moved their main production OLTP database from AIX to Windows and had been struggling with performance for a couple of weeks. Hardware-wise, they went from expensive but old Bull hardware to a Dell box (with 8 cores). And they went from 4Gb to 16Gb RAM. So you would expect the database would fly on this new hardware. <br />Now - this database was/is pulling around a 1000 concurrent users…. The first thing they ran into was the process' addressable memory space on 32bit windows, being 2Gb. This of course led to a lot of ORA-04030 and angry users.  Actually,<a href="http://akolk.wordpress.com/2009/02/19/oracle-on-32-bit-windows-4030-errorsthe/" target="_blank"> Anjo recently made a blogentry about it</a>. </p><p>So actions were made to optimize Oracle for windows, which basically consists of putting the buffercache above the 2Gb limit - anyway metalink note 231159.1 explains all of this, but still, as this is an Oracle 8.1.7.4 database handling a thousand users, all other memory (remember sort_area_size, hash_area_size etc) related parameters were set to a minimum to avoid ORA-4030's. <br />The result of this memory balancing operation was, that performance was below average. And I was send in to have a look at it. I must admit - I hadn't tuned a whole environment for a while, but I had done a lot of 8.0 and 7.3 migrations to 8i back in the day, and knew pretty much what the problems of the 8i CBO were. Oh - why are the still running 8i … well the database application is to be decommissioned this year and so they didn't bother to move up to the latest Oracle version. The fact that they wanted to invest in getting performance up, proves power users were about to lynch the IT manager <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-tongue-out.gif" title="Tongue out" alt="Tongue out" border="0" /><br />Anyway - 5minutes into the meeting with IT, a second consultant from a rivaling company walks in. That's how bad performance was. I don't mind competition - in fact I didn't see it as competition. The guy was more than reasonable and during the day we acted as each-others soundboard. </p><p>The first thing I noticed were the bad response times on the disks and the large amount of physical IO the database was doing. The database running on a Dell SAN…. I didn't even know Dell produced SANs !!! :-p But I knew one thing - this SAN was sh*te. It used 8 disks in RAID5 (coming from 4 disks) and I reckon the write cache must have been quite small. In fact at first I thought the SAN cache must have been disabled - something I had encountered multiple times when the battery of the cache dies, the cache on the SAN is disabled to avoid corruption in case of power-failure. <br />Clearly, this DB was doing too much IO for the SAN… way past it's critical point in the hockey stick chart see also <a href="http://www.oaktable.net/getFile/109" target="_blank">Anjo's paper on this</a>  - oh and we couldn't increase any memory settings within the DB of course. </p><p><br />So the only option left, was hunting down individual sql statements and tune them, so the overall IO would decrease.  The impact of sql tuning can be *huge* - especially with a 1000 oltp users. Just imaging a sql that does 5000 physical IO's  that is run by these 1000 users every minute (5x10^6 IO/min) - if we can tune it to use only 20 physical IO's (20x10^3 IO/min)  than that would have a dramatic effect on overall performance. </p><p><br />I noticed that there were a lot of full tablescans … that's not necessarily bad thing, but sometimes it just is ! From the old days, I knew that Oracle 8i's CBO (with default settings) is quite fond of full tablescans and parallel query. I had a lot of migrations from 8.0 to 8i were performance went bad just because of that. Now we're not interested in PQ in an OLTP, so we disabled it.<br />Then there's Oracle 8i favor for full tablescans. The CBO didn't have any CPU costing back then, so one of the things to do was to set optimizer_index_caching and optimizer_index_cost_adj. There have been a lot of discussing of these parameters in the past, but my experience (in 8i and on OLTP db) is that about 95% of all queries benefit and 5% of the queries will perform worse. The main problem with lowering optimizer_index_cost_adj are rounding errors in the CBO's calculation costs. This can lead to the CBO picking an index based on it's alphabetical order.<br />Simply explained - let's assume the cost of using index A is 9 and the cost of using index B is 5. If optimizer_index_cost_adj is set to  10, then the cost is divided by 10. So the cost of index A will be 0.9 and index B will be 0.5. Or when rounding kicks in, the cost of both A &amp; B will be 1. And the optimizer will choose the index based on the alphabetical order of it's name. (disclaimer - simple explanation - read <a href="http://www.amazon.com/Cost-Based-Oracle-Fundamentals-Experts-Voice/dp/1590596366" target="_blank">Jonathan Lewis' book on Oracle CBO</a> ) </p><p>&lt;!--break--&gt;</p><p>As expected - disabling PQ and setting the optimizer_index_x parameters - dramatically improved performance. So now I could focus on individual statements still going slow. And then I hit what I call bad database design.<br />Some tables were using the CHAR datatype … nothing wrong with that if you like wasting space. But the CHAR datatype was also being used for storing NUMBERs !!! The CHAR columns were indexed but that doesn't help much using where clauses like <i>'where &lt;char column&gt;=number'</i>. </p><p>Let's setup a small testcase : </p><p><span style="font-size: x-small"><i>SQL&gt; create table duh ( n number, c char(30) );<br />Table created.<br />SQL&gt; create index i_duh_n on duh(n) ;<br />Index created.<br />SQL&gt; create index i_duh_c on duh(c) ;<br />Index created.<br />SQL&gt; insert into duh (n,c) select obj#,obj# from sys.obj$ ;<br />12201 rows created.<br />SQL&gt; commit ;<br />Commit complete.</i></span> </p><p>Querying the number column N will result in an index range scan : </p><p><i>SQL&gt; select * from duh where n=2 ;</i> </p><p><i>        N C<br />--------- ------------------------------<br />2 2</i> </p><p><i>Execution Plan<br />----------------------------------------------------------<br />0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=2 Bytes=76)<br />1    0   TABLE ACCESS (BY INDEX ROWID) OF 'DUH' (Cost=2 Card=2 Bytes=76)<br />2    1     INDEX (RANGE SCAN) OF 'I_DUH_N' (NON-UNIQUE) (Cost=1 Car d=2) </i></p><p>No problem here - but when we query the CHAR column C as shown below, the optimizer will perform an implicit cast, and thus no index can be used. </p><p><i>SQL&gt; select * from duh where c=2 ;</i> </p><p><i>        N C<br />--------- ------------------------------<br />2 2</i> </p><p><i>Execution Plan<br />----------------------------------------------------------<br />0      SELECT STATEMENT Optimizer=CHOOSE (Cost=44 Card=123 Bytes=4674)<br />1    0   TABLE ACCESS (FULL) OF 'DUH' (Cost=44 Card=123 Bytes=4674) </i></p><p>All problematic queries were like the ones above. Sometimes you saw a little variation like this : </p><p><i>SQL&gt; select * from duh where trim(c)='2' ;<br />N C<br />--------- ------------------------------<br />2 2</i> </p><p><i>Execution Plan<br />----------------------------------------------------------<br />0      SELECT STATEMENT Optimizer=CHOOSE (Cost=44 Card=123 Bytes=46 74)<br />1    0   TABLE ACCESS (FULL) OF 'DUH' (Cost=44 Card=123 Bytes=4674)</i> </p><p>This means the developers knew something was fishy about using CHAR as a NUMBER ;-)<br />Anyway - there's a quick fix for this - and it's called function based indexes (FBI). They were introduced in Oracle 8i, so, two thumbs up, I could use them. Well, I could use them after setting QUERY_REWRITE_ENABLED=TRUE and QUERY_REWRITE_INTEGRITY=TRUSTED<br />But I had already done this as I had seen a lot of 'WHERE UPPER(x)=UPPER(y)' type of where clauses - a developer's favorite performance killer !<br />So once I identified all the queries that were full table scanning these 'CHAR as NUMBER' tables, I could do the following with it : </p><p><i>SQL&gt; create index i_duh_c_fbi on duh(to_number(c)) ;<br />Index created.<br />SQL&gt; select * from duh where c=2 ;</i> </p><p><i>        N C<br />--------- ------------------------------<br />2 2</i> </p><p><br /><i>Execution Plan<br />----------------------------------------------------------<br />0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=2 Bytes=76)<br />1    0   TABLE ACCESS (BY INDEX ROWID) OF 'DUH' (Cost=2 Card=2 Bytes=76)<br />2    1     INDEX (RANGE SCAN) OF 'I_DUH_C_FBI' (NON-UNIQUE) (Cost=1      Card=2)</i> </p><p>BONUS! If you know that those tables were around 60 to 80Mb each and those queries were executed quite frequently, it doesn't take a genius to see what that does for IO and performance in general. The SAN could now cope with the number of IO's thrown to it. (see the hockey stick model) </p><p>There was, however, one other thing. These tables were also queried from remote databases, mainly one XE database running the web part of the application (APEX).<br />After the FBI's were implemented, some parts of the web app broke down. Looking at the user dumps, we found out that the remote server process crashed each time a table (or synonym) with an fbi on it was queried. Basically we had an ORA-07445 on the XE database session each time a remote query was launched on the fbi tables : </p><p><i>ksedmp: internal or fatal error<br />ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_ddfnetCFull+1379] [PC:0xFD1F13] [ADDR:0x8A10068] [UNABLE_TO_READ] []</i> </p><p>A brief search on Metalink clarified that this has something todo with 'hidden columns'.<br />Now ... I could only reproduce the ORA-07445 when the execution plan on the remote DB used the function based index. </p><p>So what happens if you create a function based index ? IS this really a kind of index or did the oracle kernel developers added some special trickery to the table ? Or does a function based index add a column to the table behind your back, materializing the result of the function, and indexes that ? </p><p>Let's look at the columns of table DUH without function based indexes :<br /><i>SQL&gt; select name,col#,intcol#,segcol#,property from sys.col$ where obj# = ( select obj# from sys.obj$ where name = upper('DUH') and type# = 2);</i> </p><p><i>NAME                                COL#   INTCOL#   SEGCOL#  PROPERTY<br />------------------------------ --------- --------- --------- ---------<br />N                                      1         1         1         0<br />C                                      2         2         2         0</i> </p><p>And let's dump a datablock of DUH (without fbi) to trace : </p><p><i>buffer tsn: 1 rdba: 0x00800821 (2/2081)<br />scn: 0x0000.00030bad seq: 0x01 flg: 0x02 tail: 0x0bad0601<br />frmt: 0x02 chkval: 0x0000 type: 0x06=trans data<br /><br />Block header dump:  0x00800821<br />Object id on Block? Y<br />seg/obj: 0x2fce  csc: 0x00.30b73  itc: 1  flg: -  typ: 1 - DATA<br />fsl: 0  fnx: 0x0 ver: 0x01<br /><br />Itl           Xid                  Uba         Flag  Lck        Scn/Fsc<br />0x01   xid:  0x0009.004.0000001f    uba: 0x00c025af.0010.0a  --U-   45  fsc 0x0000.00030bad<br /><br />data_block_dump<br />===============<br />tsiz: 0x7b8<br />hsiz: 0x6c<br />pbl: 0x0372a044<br />bdba: 0x00800821<br />flag=-----------<br />ntab=1<br />nrow=45<br />frre=-1<br />fsbo=0x6c<br />fseo=0x137<br />avsp=0xcb<br />tosp=0xcb<br />0xe:pti[0] nrow=45 offs=0<br />0x12:pri[0] offs=0x137<br />0x14:pri[1] offs=0x15c<br />0x16:pri[2] offs=0x181<br />...<br />0x6a:pri[44] offs=0x793<br />block_row_dump:<br />tab 0, row 0, @0x137<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 02<br />col  1: [30]<br />31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />tab 0, row 1, @0x15c<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 30<br />col  1: [30]<br />34 37 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />tab 0, row 2, @0x181<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 14<br />col  1: [30]<br />31 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />...<br />tab 0, row 44, @0x793<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 35<br />col  1: [30]<br />35 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />end_of_block_dump</i> </p><p>So - nothing exciting here ! </p><p>Now lets do the same after we've created a function based index on 'to_number(c)' :<br /><i>SQL&gt; select name,col#,intcol#,segcol#,property from sys.col$ where obj# = ( select obj# from sys.obj$ where name = upper('DUH') and type# = 2);</i> </p><p><i>NAME                                COL#   INTCOL#   SEGCOL#  PROPERTY<br />------------------------------ --------- --------- --------- ---------<br />N                                      1         1         1         0<br />C                                      2         2         2         0<br /><b>SYS_NC00003$                           0         3         0    327976</b></i> </p><p>Hmm - a system generated column !<br />Property 327976 or 0x50128=0x40000+0x10000+0x00100+0x00020+0x00008<br />means<br />0x40000 = virtual column is NLS dependent<br />0x10000 = virtual column <br />0x00100 = system-generated column <br />0x00020 = hidden column<br />0x00008 = virtual column </p><p>So we have a hidden, system generated, virtual column. <br />COL# is zero - this is consistent with the column being hidden.<br />And SEGCOL# is also zero - which tells us that the column is not materialized within the table's blocks and that's consistent with the column being virtual. </p><p>You can the property values from sql.bsq in $OH/rdbms/admin :<br /><i>property      number not null,           /* column properties (bit flags): */<br />/* 0x0001 =       1 = ADT attribute column                   */<br />/* 0x0002 =       2 = OID column                             */<br />/* 0x0004 =       4 = nested table column                    */<br />/* 0x0008 =       8 = virtual column                         */<br />/* 0x0010 =      16 = nested table's SETID$ column           */<br />/* 0x0020 =      32 = hidden column                          */<br />/* 0x0040 =      64 = primary-key based OID column           */<br />/* 0x0080 =     128 = column is stored in a lob              */<br />/* 0x0100 =     256 = system-generated column                */<br />/* 0x0200 =     512 = rowinfo column of typed table/view     */<br />/* 0x0400 =    1024 = nested table columns setid             */<br />/* 0x0800 =    2048 = column not insertable                  */<br />/* 0x1000 =    4096 = column not updatable                   */<br />/* 0x2000 =    8192 = column not deletable                   */<br />/* 0x4000 =   16384 = dropped column                         */<br />/* 0x8000 =   32768 = unused column - data still in row      */<br />/* 0x00010000 =   65536 = virtual column                         */<br />/* 0x00020000 =  131072 = place DESCEND operator on top          */<br />/* 0x00040000 =  262144 = virtual column is NLS dependent        */<br />/* 0x00080000 =  524288 = ref column (present as oid col)        */<br />/* 0x00100000 = 1048576 = hidden snapshot base table column      */<br />/* 0x00200000 = 2097152 = attribute column of a user-defined ref */<br />/* 0x00400000 = 4194304 = export hidden column,RLS on hidden col */<br />/* 0x00800000 = 8388608 = string column measured in characters   */<br />/* 0x01000000 = 16777216 = virtual column expression specified    */<br />/* 0x02000000 = 33554432 = typeid column                          */<br />/* 0x04000000 = 67108864 = Column is encrypted                    */<br />/* 0x20000000 = 536870912 = Column is encrypted without salt       */<br /></i>          <br />Let's double check the column hasn't materialized by dumping a block. </p><p><i>buffer tsn: 1 rdba: 0x00800821 (2/2081)<br />scn: 0x0000.00030bad seq: 0x01 flg: 0x02 tail: 0x0bad0601<br />frmt: 0x02 chkval: 0x0000 type: 0x06=trans data<br /><br />Block header dump:  0x00800821<br />Object id on Block? Y<br />seg/obj: 0x2fce  csc: 0x00.30b73  itc: 1  flg: -  typ: 1 - DATA<br />fsl: 0  fnx: 0x0 ver: 0x01<br /><br />Itl           Xid                  Uba         Flag  Lck        Scn/Fsc<br />0x01   xid:  0x0009.004.0000001f    uba: 0x00c025af.0010.0a  --U-   45  fsc 0x0000.00030bad<br /><br />data_block_dump<br />===============<br />tsiz: 0x7b8<br />hsiz: 0x6c<br />pbl: 0x0372a044<br />bdba: 0x00800821<br />flag=-----------<br />ntab=1<br />nrow=45<br />frre=-1<br />fsbo=0x6c<br />fseo=0x137<br />avsp=0xcb<br />tosp=0xcb<br />0xe:pti[0] nrow=45 offs=0<br />0x12:pri[0] offs=0x137<br />0x14:pri[1] offs=0x15c<br />0x16:pri[2] offs=0x181<br />...<br />0x6a:pri[44] offs=0x793<br />block_row_dump:<br />tab 0, row 0, @0x137<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 02<br />col  1: [30]<br />31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />tab 0, row 1, @0x15c<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 30<br />col  1: [30]<br />34 37 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />tab 0, row 2, @0x181<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 14<br />col  1: [30]<br />31 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />...<br />tab 0, row 44, @0x793<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 35<br />col  1: [30]<br />35 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />end_of_block_dump</i> </p><p>Nope - the table still has 2 physical columns. Just what we expected. </p><p>Let's dump a leaf block from the function based index... here we see the column is materialized. </p><p><i>buffer tsn: 1 rdba: 0x00800944 (2/2372)<br />scn: 0x0000.00030bc3 seq: 0x01 flg: 0x00 tail: 0x0bc30601<br />frmt: 0x02 chkval: 0x0000 type: 0x06=trans data<br /><br />Block header dump:  0x00800944<br />Object id on Block? Y<br />seg/obj: 0x2fcf  csc: 0x00.30bbe  itc: 2  flg: -  typ: 2 - INDEX<br />fsl: 0  fnx: 0x0 ver: 0x01<br /><br />Itl           Xid                  Uba         Flag  Lck        Scn/Fsc<br />0x01   xid:  0x0000.000.00000000    uba: 0x00000000.0000.00  ----    0  fsc 0x0000.00000000<br />0x02   xid:  0x000b.00c.00000015    uba: 0x00000000.0000.00  ----    0  fsc 0x0000.00000000<br /><br />Leaf block dump<br />===============<br />header address 57843804=0x372a05c<br />kdxcolev 0<br />kdxcolok 0<br />kdxcoopc 0x80: opcode=0: iot flags=--- is converted=Y<br />kdxconco 2<br />kdxcosdc 0<br />kdxconro 117<br />kdxcofbo 270=0x10e<br />kdxcofeo 472=0x1d8<br />kdxcoavs 202<br />kdxlespl 0<br />kdxlende 0<br />kdxlenxt 8390981=0x800945<br />kdxleprv 0=0x0<br />kdxledsz 0<br />kdxlebksz 1892<br />row#0[1880] flag: -----, lock: 0<br />col 0; len 2; (2):  c1 02<br />col 1; len 6; (6):  00 80 08 21 00 00<br />row#1[1868] flag: -----, lock: 0<br />col 0; len 2; (2):  c1 03<br />col 1; len 6; (6):  00 80 08 21 00 19<br />...<br />row#116[472] flag: -----, lock: 0<br />col 0; len 3; (3):  c2 02 11<br />col 1; len 6; (6):  00 80 08 23 00 1a<br />----- end of leaf block dump -----</i> </p><p>So a function based index is just a normal index on a virtual hidden column <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /> </p><p>Now all this sounds very familiar with ... Oracle 11g virtual columns ! </p><p>Let's create a table in 11g with a virtual column ... just for fun.<br /><i>create table duh11g ( n number, c char(30), v as (to_number(c)) ) ;</i> </p><p><i>select name,col#,intcol#,segcol#,property from sys.col$ where obj# = ( select obj# from sys.obj$ where name = upper('DUH11G') and type# = 2)<br />SQL&gt; /</i> </p><p><i>NAME                                 COL#    INTCOL#    SEGCOL#   PROPERTY<br />------------------------------ ---------- ---------- ---------- ----------<br />N                                       1          1          1          0<br />C                                       2          2          2          0<br /><b>V                                       3          3          0     327688</b></i> </p><p>Property 327688 = 0x50008=0x40000+0x10000+0x00008<br />0x40000 = virtual column is NLS dependent<br />0x10000 = virtual column <br />0x00008 = virtual column </p><p>COL# is non-zero - so it is visable. Clearly it's not system generated, but it isn't materialised because SEGCOL# is zero.<br />Now for fun - let's create an index on the virtual column V. </p><p><i>SQL&gt; create index i_duh11g_v on duh11g( v ) ;</i> </p><p><i>Index created.</i> </p><p>And now dump a leafblock of the index : </p><p><i>Block header dump:  0x004159db<br />Object id on Block? Y<br />seg/obj: 0x11587  csc: 0x00.ba00b  itc: 2  flg: -  typ: 2 - INDEX<br />fsl: 0  fnx: 0x0 ver: 0x01</i> </p><p><i> Itl           Xid                  Uba         Flag  Lck        Scn/Fsc<br />0x01   0x0006.001.000002ed  0x00c0028d.01f3.01  -B--    1  fsc 0x0000.00000000<br />0x02   0x0009.002.000002b7  0x00c0168b.0216.04  ----  540  fsc 0x0000.00000000<br />Leaf block dump<br />===============<br />header address 682344540=0x28abc05c<br />kdxcolev 0<br />KDXCOLEV Flags = - - -<br />kdxcolok 1<br />kdxcoopc 0x87: opcode=7: iot flags=--- is converted=Y<br />kdxconco 2<br />kdxcosdc 1<br />kdxconro 540<br />kdxcofbo 1116=0x45c<br />kdxcofeo 1116=0x45c<br />kdxcoavs 0<br />kdxlespl 0<br />kdxlende 0<br />kdxlenxt 4282844=0x4159dc<br />kdxleprv 0=0x0<br />kdxledsz 0<br />kdxlebksz 8032<br />row#0[1116] flag: ----S-, lock: 2, len=12<br />col 0; len 2; (2):  c1 02<br />col 1; len 6; (6):  00 41 59 c2 00 00<br />row#1[1128] flag: ----S-, lock: 2, len=12<br />col 0; len 2; (2):  c1 03<br />col 1; len 6; (6):  00 41 59 c2 00 01<br />...<br />row#539[8019] flag: ----S-, lock: 2, len=13<br />col 0; len 3; (3):  c2 06 29<br />col 1; len 6; (6):  00 41 59 c4 00 ae<br />----- end of leaf block dump -----</i> </p><p><br />What we got is that a normal index on a virtual column in 11g is the same as a function based index in 8i.<br />And if you use an fbi in 8i you have actually created a hidden virtual column. It doesn't add a physical column to your table, which of course would be very io intensive and could have let to row migration (and possible chaining).<br />So to get back to the bug - the work around is to created a view on the table in the remote database and then query the view as opposed to querying the actual table or synonym.<br />This bug is also fixed in 9.2.0.6 and 10g.... but then again ... we had to work with 8.1.7.4 <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /> </p><p>&nbsp;</p>    ]]></summary>
    <content type="html"><![CDATA[<p>I was called in last week for a performance issue at a customer site.<br />Let's set scene a bit … </p><p>They had moved their main production OLTP database from AIX to Windows and had been struggling with performance for a couple of weeks. Hardware-wise, they went from expensive but old Bull hardware to a Dell box (with 8 cores). And they went from 4Gb to 16Gb RAM. So you would expect the database would fly on this new hardware. <br />Now - this database was/is pulling around a 1000 concurrent users…. The first thing they ran into was the process' addressable memory space on 32bit windows, being 2Gb. This of course led to a lot of ORA-04030 and angry users.  Actually,<a href="http://akolk.wordpress.com/2009/02/19/oracle-on-32-bit-windows-4030-errorsthe/" target="_blank"> Anjo recently made a blogentry about it</a>. </p><p>So actions were made to optimize Oracle for windows, which basically consists of putting the buffercache above the 2Gb limit - anyway metalink note 231159.1 explains all of this, but still, as this is an Oracle 8.1.7.4 database handling a thousand users, all other memory (remember sort_area_size, hash_area_size etc) related parameters were set to a minimum to avoid ORA-4030's. <br />The result of this memory balancing operation was, that performance was below average. And I was send in to have a look at it. I must admit - I hadn't tuned a whole environment for a while, but I had done a lot of 8.0 and 7.3 migrations to 8i back in the day, and knew pretty much what the problems of the 8i CBO were. Oh - why are the still running 8i … well the database application is to be decommissioned this year and so they didn't bother to move up to the latest Oracle version. The fact that they wanted to invest in getting performance up, proves power users were about to lynch the IT manager <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-tongue-out.gif" title="Tongue out" alt="Tongue out" border="0" /><br />Anyway - 5minutes into the meeting with IT, a second consultant from a rivaling company walks in. That's how bad performance was. I don't mind competition - in fact I didn't see it as competition. The guy was more than reasonable and during the day we acted as each-others soundboard. </p><p>The first thing I noticed were the bad response times on the disks and the large amount of physical IO the database was doing. The database running on a Dell SAN…. I didn't even know Dell produced SANs !!! :-p But I knew one thing - this SAN was sh*te. It used 8 disks in RAID5 (coming from 4 disks) and I reckon the write cache must have been quite small. In fact at first I thought the SAN cache must have been disabled - something I had encountered multiple times when the battery of the cache dies, the cache on the SAN is disabled to avoid corruption in case of power-failure. <br />Clearly, this DB was doing too much IO for the SAN… way past it's critical point in the hockey stick chart see also <a href="http://www.oaktable.net/getFile/109" target="_blank">Anjo's paper on this</a>  - oh and we couldn't increase any memory settings within the DB of course. </p><p><br />So the only option left, was hunting down individual sql statements and tune them, so the overall IO would decrease.  The impact of sql tuning can be *huge* - especially with a 1000 oltp users. Just imaging a sql that does 5000 physical IO's  that is run by these 1000 users every minute (5x10^6 IO/min) - if we can tune it to use only 20 physical IO's (20x10^3 IO/min)  than that would have a dramatic effect on overall performance. </p><p><br />I noticed that there were a lot of full tablescans … that's not necessarily bad thing, but sometimes it just is ! From the old days, I knew that Oracle 8i's CBO (with default settings) is quite fond of full tablescans and parallel query. I had a lot of migrations from 8.0 to 8i were performance went bad just because of that. Now we're not interested in PQ in an OLTP, so we disabled it.<br />Then there's Oracle 8i favor for full tablescans. The CBO didn't have any CPU costing back then, so one of the things to do was to set optimizer_index_caching and optimizer_index_cost_adj. There have been a lot of discussing of these parameters in the past, but my experience (in 8i and on OLTP db) is that about 95% of all queries benefit and 5% of the queries will perform worse. The main problem with lowering optimizer_index_cost_adj are rounding errors in the CBO's calculation costs. This can lead to the CBO picking an index based on it's alphabetical order.<br />Simply explained - let's assume the cost of using index A is 9 and the cost of using index B is 5. If optimizer_index_cost_adj is set to  10, then the cost is divided by 10. So the cost of index A will be 0.9 and index B will be 0.5. Or when rounding kicks in, the cost of both A &amp; B will be 1. And the optimizer will choose the index based on the alphabetical order of it's name. (disclaimer - simple explanation - read <a href="http://www.amazon.com/Cost-Based-Oracle-Fundamentals-Experts-Voice/dp/1590596366" target="_blank">Jonathan Lewis' book on Oracle CBO</a> ) </p><p>&lt;!--break--&gt;</p><p>As expected - disabling PQ and setting the optimizer_index_x parameters - dramatically improved performance. So now I could focus on individual statements still going slow. And then I hit what I call bad database design.<br />Some tables were using the CHAR datatype … nothing wrong with that if you like wasting space. But the CHAR datatype was also being used for storing NUMBERs !!! The CHAR columns were indexed but that doesn't help much using where clauses like <i>'where &lt;char column&gt;=number'</i>. </p><p>Let's setup a small testcase : </p><p><span style="font-size: x-small"><i>SQL&gt; create table duh ( n number, c char(30) );<br />Table created.<br />SQL&gt; create index i_duh_n on duh(n) ;<br />Index created.<br />SQL&gt; create index i_duh_c on duh(c) ;<br />Index created.<br />SQL&gt; insert into duh (n,c) select obj#,obj# from sys.obj$ ;<br />12201 rows created.<br />SQL&gt; commit ;<br />Commit complete.</i></span> </p><p>Querying the number column N will result in an index range scan : </p><p><i>SQL&gt; select * from duh where n=2 ;</i> </p><p><i>        N C<br />--------- ------------------------------<br />2 2</i> </p><p><i>Execution Plan<br />----------------------------------------------------------<br />0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=2 Bytes=76)<br />1    0   TABLE ACCESS (BY INDEX ROWID) OF 'DUH' (Cost=2 Card=2 Bytes=76)<br />2    1     INDEX (RANGE SCAN) OF 'I_DUH_N' (NON-UNIQUE) (Cost=1 Car d=2) </i></p><p>No problem here - but when we query the CHAR column C as shown below, the optimizer will perform an implicit cast, and thus no index can be used. </p><p><i>SQL&gt; select * from duh where c=2 ;</i> </p><p><i>        N C<br />--------- ------------------------------<br />2 2</i> </p><p><i>Execution Plan<br />----------------------------------------------------------<br />0      SELECT STATEMENT Optimizer=CHOOSE (Cost=44 Card=123 Bytes=4674)<br />1    0   TABLE ACCESS (FULL) OF 'DUH' (Cost=44 Card=123 Bytes=4674) </i></p><p>All problematic queries were like the ones above. Sometimes you saw a little variation like this : </p><p><i>SQL&gt; select * from duh where trim(c)='2' ;<br />N C<br />--------- ------------------------------<br />2 2</i> </p><p><i>Execution Plan<br />----------------------------------------------------------<br />0      SELECT STATEMENT Optimizer=CHOOSE (Cost=44 Card=123 Bytes=46 74)<br />1    0   TABLE ACCESS (FULL) OF 'DUH' (Cost=44 Card=123 Bytes=4674)</i> </p><p>This means the developers knew something was fishy about using CHAR as a NUMBER ;-)<br />Anyway - there's a quick fix for this - and it's called function based indexes (FBI). They were introduced in Oracle 8i, so, two thumbs up, I could use them. Well, I could use them after setting QUERY_REWRITE_ENABLED=TRUE and QUERY_REWRITE_INTEGRITY=TRUSTED<br />But I had already done this as I had seen a lot of 'WHERE UPPER(x)=UPPER(y)' type of where clauses - a developer's favorite performance killer !<br />So once I identified all the queries that were full table scanning these 'CHAR as NUMBER' tables, I could do the following with it : </p><p><i>SQL&gt; create index i_duh_c_fbi on duh(to_number(c)) ;<br />Index created.<br />SQL&gt; select * from duh where c=2 ;</i> </p><p><i>        N C<br />--------- ------------------------------<br />2 2</i> </p><p><br /><i>Execution Plan<br />----------------------------------------------------------<br />0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=2 Bytes=76)<br />1    0   TABLE ACCESS (BY INDEX ROWID) OF 'DUH' (Cost=2 Card=2 Bytes=76)<br />2    1     INDEX (RANGE SCAN) OF 'I_DUH_C_FBI' (NON-UNIQUE) (Cost=1      Card=2)</i> </p><p>BONUS! If you know that those tables were around 60 to 80Mb each and those queries were executed quite frequently, it doesn't take a genius to see what that does for IO and performance in general. The SAN could now cope with the number of IO's thrown to it. (see the hockey stick model) </p><p>There was, however, one other thing. These tables were also queried from remote databases, mainly one XE database running the web part of the application (APEX).<br />After the FBI's were implemented, some parts of the web app broke down. Looking at the user dumps, we found out that the remote server process crashed each time a table (or synonym) with an fbi on it was queried. Basically we had an ORA-07445 on the XE database session each time a remote query was launched on the fbi tables : </p><p><i>ksedmp: internal or fatal error<br />ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_ddfnetCFull+1379] [PC:0xFD1F13] [ADDR:0x8A10068] [UNABLE_TO_READ] []</i> </p><p>A brief search on Metalink clarified that this has something todo with 'hidden columns'.<br />Now ... I could only reproduce the ORA-07445 when the execution plan on the remote DB used the function based index. </p><p>So what happens if you create a function based index ? IS this really a kind of index or did the oracle kernel developers added some special trickery to the table ? Or does a function based index add a column to the table behind your back, materializing the result of the function, and indexes that ? </p><p>Let's look at the columns of table DUH without function based indexes :<br /><i>SQL&gt; select name,col#,intcol#,segcol#,property from sys.col$ where obj# = ( select obj# from sys.obj$ where name = upper('DUH') and type# = 2);</i> </p><p><i>NAME                                COL#   INTCOL#   SEGCOL#  PROPERTY<br />------------------------------ --------- --------- --------- ---------<br />N                                      1         1         1         0<br />C                                      2         2         2         0</i> </p><p>And let's dump a datablock of DUH (without fbi) to trace : </p><p><i>buffer tsn: 1 rdba: 0x00800821 (2/2081)<br />scn: 0x0000.00030bad seq: 0x01 flg: 0x02 tail: 0x0bad0601<br />frmt: 0x02 chkval: 0x0000 type: 0x06=trans data<br /><br />Block header dump:  0x00800821<br />Object id on Block? Y<br />seg/obj: 0x2fce  csc: 0x00.30b73  itc: 1  flg: -  typ: 1 - DATA<br />fsl: 0  fnx: 0x0 ver: 0x01<br /><br />Itl           Xid                  Uba         Flag  Lck        Scn/Fsc<br />0x01   xid:  0x0009.004.0000001f    uba: 0x00c025af.0010.0a  --U-   45  fsc 0x0000.00030bad<br /><br />data_block_dump<br />===============<br />tsiz: 0x7b8<br />hsiz: 0x6c<br />pbl: 0x0372a044<br />bdba: 0x00800821<br />flag=-----------<br />ntab=1<br />nrow=45<br />frre=-1<br />fsbo=0x6c<br />fseo=0x137<br />avsp=0xcb<br />tosp=0xcb<br />0xe:pti[0] nrow=45 offs=0<br />0x12:pri[0] offs=0x137<br />0x14:pri[1] offs=0x15c<br />0x16:pri[2] offs=0x181<br />...<br />0x6a:pri[44] offs=0x793<br />block_row_dump:<br />tab 0, row 0, @0x137<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 02<br />col  1: [30]<br />31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />tab 0, row 1, @0x15c<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 30<br />col  1: [30]<br />34 37 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />tab 0, row 2, @0x181<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 14<br />col  1: [30]<br />31 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />...<br />tab 0, row 44, @0x793<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 35<br />col  1: [30]<br />35 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />end_of_block_dump</i> </p><p>So - nothing exciting here ! </p><p>Now lets do the same after we've created a function based index on 'to_number(c)' :<br /><i>SQL&gt; select name,col#,intcol#,segcol#,property from sys.col$ where obj# = ( select obj# from sys.obj$ where name = upper('DUH') and type# = 2);</i> </p><p><i>NAME                                COL#   INTCOL#   SEGCOL#  PROPERTY<br />------------------------------ --------- --------- --------- ---------<br />N                                      1         1         1         0<br />C                                      2         2         2         0<br /><b>SYS_NC00003$                           0         3         0    327976</b></i> </p><p>Hmm - a system generated column !<br />Property 327976 or 0x50128=0x40000+0x10000+0x00100+0x00020+0x00008<br />means<br />0x40000 = virtual column is NLS dependent<br />0x10000 = virtual column <br />0x00100 = system-generated column <br />0x00020 = hidden column<br />0x00008 = virtual column </p><p>So we have a hidden, system generated, virtual column. <br />COL# is zero - this is consistent with the column being hidden.<br />And SEGCOL# is also zero - which tells us that the column is not materialized within the table's blocks and that's consistent with the column being virtual. </p><p>You can the property values from sql.bsq in $OH/rdbms/admin :<br /><i>property      number not null,           /* column properties (bit flags): */<br />/* 0x0001 =       1 = ADT attribute column                   */<br />/* 0x0002 =       2 = OID column                             */<br />/* 0x0004 =       4 = nested table column                    */<br />/* 0x0008 =       8 = virtual column                         */<br />/* 0x0010 =      16 = nested table's SETID$ column           */<br />/* 0x0020 =      32 = hidden column                          */<br />/* 0x0040 =      64 = primary-key based OID column           */<br />/* 0x0080 =     128 = column is stored in a lob              */<br />/* 0x0100 =     256 = system-generated column                */<br />/* 0x0200 =     512 = rowinfo column of typed table/view     */<br />/* 0x0400 =    1024 = nested table columns setid             */<br />/* 0x0800 =    2048 = column not insertable                  */<br />/* 0x1000 =    4096 = column not updatable                   */<br />/* 0x2000 =    8192 = column not deletable                   */<br />/* 0x4000 =   16384 = dropped column                         */<br />/* 0x8000 =   32768 = unused column - data still in row      */<br />/* 0x00010000 =   65536 = virtual column                         */<br />/* 0x00020000 =  131072 = place DESCEND operator on top          */<br />/* 0x00040000 =  262144 = virtual column is NLS dependent        */<br />/* 0x00080000 =  524288 = ref column (present as oid col)        */<br />/* 0x00100000 = 1048576 = hidden snapshot base table column      */<br />/* 0x00200000 = 2097152 = attribute column of a user-defined ref */<br />/* 0x00400000 = 4194304 = export hidden column,RLS on hidden col */<br />/* 0x00800000 = 8388608 = string column measured in characters   */<br />/* 0x01000000 = 16777216 = virtual column expression specified    */<br />/* 0x02000000 = 33554432 = typeid column                          */<br />/* 0x04000000 = 67108864 = Column is encrypted                    */<br />/* 0x20000000 = 536870912 = Column is encrypted without salt       */<br /></i>          <br />Let's double check the column hasn't materialized by dumping a block. </p><p><i>buffer tsn: 1 rdba: 0x00800821 (2/2081)<br />scn: 0x0000.00030bad seq: 0x01 flg: 0x02 tail: 0x0bad0601<br />frmt: 0x02 chkval: 0x0000 type: 0x06=trans data<br /><br />Block header dump:  0x00800821<br />Object id on Block? Y<br />seg/obj: 0x2fce  csc: 0x00.30b73  itc: 1  flg: -  typ: 1 - DATA<br />fsl: 0  fnx: 0x0 ver: 0x01<br /><br />Itl           Xid                  Uba         Flag  Lck        Scn/Fsc<br />0x01   xid:  0x0009.004.0000001f    uba: 0x00c025af.0010.0a  --U-   45  fsc 0x0000.00030bad<br /><br />data_block_dump<br />===============<br />tsiz: 0x7b8<br />hsiz: 0x6c<br />pbl: 0x0372a044<br />bdba: 0x00800821<br />flag=-----------<br />ntab=1<br />nrow=45<br />frre=-1<br />fsbo=0x6c<br />fseo=0x137<br />avsp=0xcb<br />tosp=0xcb<br />0xe:pti[0] nrow=45 offs=0<br />0x12:pri[0] offs=0x137<br />0x14:pri[1] offs=0x15c<br />0x16:pri[2] offs=0x181<br />...<br />0x6a:pri[44] offs=0x793<br />block_row_dump:<br />tab 0, row 0, @0x137<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 02<br />col  1: [30]<br />31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />tab 0, row 1, @0x15c<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 30<br />col  1: [30]<br />34 37 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />tab 0, row 2, @0x181<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 14<br />col  1: [30]<br />31 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />...<br />tab 0, row 44, @0x793<br />tl: 37 fb: --H-FL-- lb: 0x1 cc: 2<br />col  0: [ 2]  c1 35<br />col  1: [30]<br />35 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20<br />20 20 20 20 20<br />end_of_block_dump</i> </p><p>Nope - the table still has 2 physical columns. Just what we expected. </p><p>Let's dump a leaf block from the function based index... here we see the column is materialized. </p><p><i>buffer tsn: 1 rdba: 0x00800944 (2/2372)<br />scn: 0x0000.00030bc3 seq: 0x01 flg: 0x00 tail: 0x0bc30601<br />frmt: 0x02 chkval: 0x0000 type: 0x06=trans data<br /><br />Block header dump:  0x00800944<br />Object id on Block? Y<br />seg/obj: 0x2fcf  csc: 0x00.30bbe  itc: 2  flg: -  typ: 2 - INDEX<br />fsl: 0  fnx: 0x0 ver: 0x01<br /><br />Itl           Xid                  Uba         Flag  Lck        Scn/Fsc<br />0x01   xid:  0x0000.000.00000000    uba: 0x00000000.0000.00  ----    0  fsc 0x0000.00000000<br />0x02   xid:  0x000b.00c.00000015    uba: 0x00000000.0000.00  ----    0  fsc 0x0000.00000000<br /><br />Leaf block dump<br />===============<br />header address 57843804=0x372a05c<br />kdxcolev 0<br />kdxcolok 0<br />kdxcoopc 0x80: opcode=0: iot flags=--- is converted=Y<br />kdxconco 2<br />kdxcosdc 0<br />kdxconro 117<br />kdxcofbo 270=0x10e<br />kdxcofeo 472=0x1d8<br />kdxcoavs 202<br />kdxlespl 0<br />kdxlende 0<br />kdxlenxt 8390981=0x800945<br />kdxleprv 0=0x0<br />kdxledsz 0<br />kdxlebksz 1892<br />row#0[1880] flag: -----, lock: 0<br />col 0; len 2; (2):  c1 02<br />col 1; len 6; (6):  00 80 08 21 00 00<br />row#1[1868] flag: -----, lock: 0<br />col 0; len 2; (2):  c1 03<br />col 1; len 6; (6):  00 80 08 21 00 19<br />...<br />row#116[472] flag: -----, lock: 0<br />col 0; len 3; (3):  c2 02 11<br />col 1; len 6; (6):  00 80 08 23 00 1a<br />----- end of leaf block dump -----</i> </p><p>So a function based index is just a normal index on a virtual hidden column <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /> </p><p>Now all this sounds very familiar with ... Oracle 11g virtual columns ! </p><p>Let's create a table in 11g with a virtual column ... just for fun.<br /><i>create table duh11g ( n number, c char(30), v as (to_number(c)) ) ;</i> </p><p><i>select name,col#,intcol#,segcol#,property from sys.col$ where obj# = ( select obj# from sys.obj$ where name = upper('DUH11G') and type# = 2)<br />SQL&gt; /</i> </p><p><i>NAME                                 COL#    INTCOL#    SEGCOL#   PROPERTY<br />------------------------------ ---------- ---------- ---------- ----------<br />N                                       1          1          1          0<br />C                                       2          2          2          0<br /><b>V                                       3          3          0     327688</b></i> </p><p>Property 327688 = 0x50008=0x40000+0x10000+0x00008<br />0x40000 = virtual column is NLS dependent<br />0x10000 = virtual column <br />0x00008 = virtual column </p><p>COL# is non-zero - so it is visable. Clearly it's not system generated, but it isn't materialised because SEGCOL# is zero.<br />Now for fun - let's create an index on the virtual column V. </p><p><i>SQL&gt; create index i_duh11g_v on duh11g( v ) ;</i> </p><p><i>Index created.</i> </p><p>And now dump a leafblock of the index : </p><p><i>Block header dump:  0x004159db<br />Object id on Block? Y<br />seg/obj: 0x11587  csc: 0x00.ba00b  itc: 2  flg: -  typ: 2 - INDEX<br />fsl: 0  fnx: 0x0 ver: 0x01</i> </p><p><i> Itl           Xid                  Uba         Flag  Lck        Scn/Fsc<br />0x01   0x0006.001.000002ed  0x00c0028d.01f3.01  -B--    1  fsc 0x0000.00000000<br />0x02   0x0009.002.000002b7  0x00c0168b.0216.04  ----  540  fsc 0x0000.00000000<br />Leaf block dump<br />===============<br />header address 682344540=0x28abc05c<br />kdxcolev 0<br />KDXCOLEV Flags = - - -<br />kdxcolok 1<br />kdxcoopc 0x87: opcode=7: iot flags=--- is converted=Y<br />kdxconco 2<br />kdxcosdc 1<br />kdxconro 540<br />kdxcofbo 1116=0x45c<br />kdxcofeo 1116=0x45c<br />kdxcoavs 0<br />kdxlespl 0<br />kdxlende 0<br />kdxlenxt 4282844=0x4159dc<br />kdxleprv 0=0x0<br />kdxledsz 0<br />kdxlebksz 8032<br />row#0[1116] flag: ----S-, lock: 2, len=12<br />col 0; len 2; (2):  c1 02<br />col 1; len 6; (6):  00 41 59 c2 00 00<br />row#1[1128] flag: ----S-, lock: 2, len=12<br />col 0; len 2; (2):  c1 03<br />col 1; len 6; (6):  00 41 59 c2 00 01<br />...<br />row#539[8019] flag: ----S-, lock: 2, len=13<br />col 0; len 3; (3):  c2 06 29<br />col 1; len 6; (6):  00 41 59 c4 00 ae<br />----- end of leaf block dump -----</i> </p><p><br />What we got is that a normal index on a virtual column in 11g is the same as a function based index in 8i.<br />And if you use an fbi in 8i you have actually created a hidden virtual column. It doesn't add a physical column to your table, which of course would be very io intensive and could have let to row migration (and possible chaining).<br />So to get back to the bug - the work around is to created a view on the table in the remote database and then query the view as opposed to querying the actual table or synonym.<br />This bug is also fixed in 9.2.0.6 and 10g.... but then again ... we had to work with 8.1.7.4 <img src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" title="Wink" alt="Wink" border="0" /> </p><p>&nbsp;</p>    ]]></content>
  </entry>
  <entry>
    <title>AXI at Ostend new year&#039;s plunge</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/axi-at-new-year-plunge-ostend" />
    <id>http://www.ora600.be/axi-at-new-year-plunge-ostend</id>
    <published>2009-01-04T11:03:37+01:00</published>
    <updated>2009-01-04T11:09:17+01:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="axi bv" />
    <category term="axi nv" />
    <category term="new year plunge" />
    <category term="ostend" />
    <summary type="html"><![CDATA[<p>
It's been freezing here for the last two weeks … the hardest and longest since 1993 (where are those green guys now, telling me about cutting my engine power because of global warming ?). 
</p>
<p>
Anyway - the company I work for - <a target="_blank" href="http://www.axi.be">AXI</a>, an Oracle partner in <a target="_blank" href="http://www.axi.be">Belgium</a> and <a target="_blank" href="http://www.axi.nl">The Netherlands </a>- decided to take part in the <a target="_blank" href="http://www.sport.be/nieuwjaarsduik/2009/nl/">new year's plunge in Ostend</a>. <br />
Yes - you read it right - not a plunge in the sea at sunny Cape Town,  or Sidney Australia - but in freezing Ostend. 
</p>
<p>
Of course this is not healthy at all - many doctors warned about it. <br />
<em>&quot;The freezing cold is bad for heart and blood vessels. A big change in pressure or big changes in temperature can result in sudden heart failure, while it is dangerous for the lungs too.&quot;</em> 
</p>
<p>
Once that hit the news - and once a similar event was canceled in Holland - I knew the Belgian event would hit a larger crowd than ever, because idiots as we are, we want to prove everybody wrong. And 6500 idiots actually went into the sea. 
</p>
<p>
Me and the wife, both tactical thinkers, decided it was more opportune to provide for the catering and marketing material. And as news crews would be on site, we decided to bring along a 2 by 3 meters ( or that's 6.5 by 10 feet ) flag. We had a small logistical problem as we needed to find poles to keep it stretched and … not entirely unimportant, could fit in our car. So we ended up buying some retractable poles - originally intended for fishing nets - from a fishing shop <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" alt="Laughing" title="Laughing" /><br />
I must say - the company name was extremely visible even in between a crowd of more than 6000 <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" alt="Wink" title="Wink" /><br />
Our first mission was accomplished. 
</p>
<p>
It is an unwritten rule that if you do something crazy and irresponsive as diving into 3°C sea water at freezing temperature, that you should drink some alcohol afterwards to … warm you up. It's the logical thing to do (if you're going for a heart attack, you should go all the way) And the weapon of choice around this time of the year is … <a target="_blank" href="http://en.wikipedia.org/wiki/Jenever">jenever </a>
</p>
<p>
Because me and the wife were providing for the catering, I was dragging along a backpack with 8 bottles of jenever… this meant I had … a god-like status - I was Bacchus himself <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" alt="Cool" title="Cool" /> 
</p>
<p>
<br />
Anyway - here are some snapshots 
</p>
<p>
<img width="500" src="/system/files/u1/HPIM2186.jpg" alt="AXI group photo" height="375" title="AXI group photo" /> 
</p>
<p>
Marketing at it's finest 
</p>
<p>
<img width="500" src="/system/files/u1/HPIM2219.jpg" alt="AXI FLAG" height="375" title="AXI FLAG" /> 
</p>
<p>
The smartest guy of the group - Bacchus, god of jenever and marketing materials - all warm and fully clothed ! 
</p>
<p>
<img width="500" src="/system/files/u1/HPIM2242.jpg" alt="kurt van meerbeeck" height="375" title="kurt van meerbeeck" /> 
</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>
It's been freezing here for the last two weeks … the hardest and longest since 1993 (where are those green guys now, telling me about cutting my engine power because of global warming ?). 
</p>
<p>
Anyway - the company I work for - <a target="_blank" href="http://www.axi.be">AXI</a>, an Oracle partner in <a target="_blank" href="http://www.axi.be">Belgium</a> and <a target="_blank" href="http://www.axi.nl">The Netherlands </a>- decided to take part in the <a target="_blank" href="http://www.sport.be/nieuwjaarsduik/2009/nl/">new year's plunge in Ostend</a>. <br />
Yes - you read it right - not a plunge in the sea at sunny Cape Town,  or Sidney Australia - but in freezing Ostend. 
</p>
<p>
Of course this is not healthy at all - many doctors warned about it. <br />
<em>&quot;The freezing cold is bad for heart and blood vessels. A big change in pressure or big changes in temperature can result in sudden heart failure, while it is dangerous for the lungs too.&quot;</em> 
</p>
<p>
Once that hit the news - and once a similar event was canceled in Holland - I knew the Belgian event would hit a larger crowd than ever, because idiots as we are, we want to prove everybody wrong. And 6500 idiots actually went into the sea. 
</p>
<p>
Me and the wife, both tactical thinkers, decided it was more opportune to provide for the catering and marketing material. And as news crews would be on site, we decided to bring along a 2 by 3 meters ( or that's 6.5 by 10 feet ) flag. We had a small logistical problem as we needed to find poles to keep it stretched and … not entirely unimportant, could fit in our car. So we ended up buying some retractable poles - originally intended for fishing nets - from a fishing shop <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" alt="Laughing" title="Laughing" /><br />
I must say - the company name was extremely visible even in between a crowd of more than 6000 <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" alt="Wink" title="Wink" /><br />
Our first mission was accomplished. 
</p>
<p>
It is an unwritten rule that if you do something crazy and irresponsive as diving into 3°C sea water at freezing temperature, that you should drink some alcohol afterwards to … warm you up. It's the logical thing to do (if you're going for a heart attack, you should go all the way) And the weapon of choice around this time of the year is … <a target="_blank" href="http://en.wikipedia.org/wiki/Jenever">jenever </a>
</p>
<p>
Because me and the wife were providing for the catering, I was dragging along a backpack with 8 bottles of jenever… this meant I had … a god-like status - I was Bacchus himself <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" alt="Cool" title="Cool" /> 
</p>
<p>
<br />
Anyway - here are some snapshots 
</p>
<p>
<img width="500" src="/system/files/u1/HPIM2186.jpg" alt="AXI group photo" height="375" title="AXI group photo" /> 
</p>
<p>
Marketing at it's finest 
</p>
<p>
<img width="500" src="/system/files/u1/HPIM2219.jpg" alt="AXI FLAG" height="375" title="AXI FLAG" /> 
</p>
<p>
The smartest guy of the group - Bacchus, god of jenever and marketing materials - all warm and fully clothed ! 
</p>
<p>
<img width="500" src="/system/files/u1/HPIM2242.jpg" alt="kurt van meerbeeck" height="375" title="kurt van meerbeeck" /> 
</p>
    ]]></content>
  </entry>
  <entry>
    <title>Hunting down partitioned IOT objectid&#039;s</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/partitioned-iot-objectid" />
    <id>http://www.ora600.be/partitioned-iot-objectid</id>
    <published>2008-12-30T10:10:19+01:00</published>
    <updated>2008-12-30T10:10:19+01:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="objectid" />
    <category term="partitioned iot" />
    <summary type="html"><![CDATA[<p>
I'm so glad you can't sub-partition an indexed organized table (IOT).  (no we do not want this feature in 12g)
</p>
<p>
I was looking into my code for unloading partitioned IOT's. <br />
Unloading IOT's (with or without overflow segments) is easy. It's keeping track of all the meta-data that's starting to get difficult.
</p>
<p>
DUDE allows you to unload tables as follows :
</p>
<ul>
	<li>Table by table based on owner and tablename or objectid</li>
	<li>Shema by schema - so based on schema/owner name</li>
	<li>Tablespace by tablespace - and this is based on the data objectid of the table</li>
</ul>
<p>
You basically can define three different types of object id's 
</p>
<ul>
	<li>There's the objectid itself, which defines the object uniquely in most if not all base dictionary table</li>
	<li>Then there's the data objectid (or to use an expensive word 'data layer objectid' - which is the objectid stored within the block itself. Mostly it equals objectid, but if you for example move or truncate a table it'll change. A data objectid can be NULL - for example the table part of a partitioned table does not have a physical segment - it's the partitions that actually contain the data</li>
	<li>And then there's the base objectid - which is the objectid of the base table of an object … or a pointer to another object to put it simple.</li>
</ul>
<p>
So - if you're unloading a complete tablespace, you are going through the data objectid's found in the tablespace. And using those physical objectid's you have to move your way up to the table objectid using the metadata in the base dictionary tables. 
</p>
<p>
Why ? Because you need the table definition (name, columns, datatypes etc). This is quite simple tho.
</p>
<p>
But wait, sometimes it can get messy. Let's imaging a partitioned IOT using overflow segments with &lt;n&gt; partitions. <br />
What you get is the following meta data spread around several base dictionary tables :
</p>
<ul>
	<li>1 table   :  objectid  is &lt;t&gt;,  data objectid is null, base objectid is &lt;o&gt;</li>
	<li>&lt;n&gt; table partitions : objectid is &lt;t+n&gt;, data objectid is null, base objectid is &lt;t&gt;</li>
	<li>1 index   : objectid is &lt;i&gt;, data objectid is null, base objectid is &lt;t&gt;</li>
	<li>&lt;n&gt; index partitions  : objectid is &lt;i+1&gt;, data objectid is &lt;i+1&gt; initially, base objectid is &lt;i&gt;</li>
	<li>1 table (overflow) : objectid is &lt;o&gt;, data objectid is null, base objectid is &lt;t&gt;</li>
	<li>&lt;n&gt; table partitions (overflow) : objectid is &lt;o+1&gt;, data objectid is &lt;o+1&gt; initially, base objectid is &lt;o&gt;</li>
</ul>
<p>
As you can see - the table is linked to the overflow table and vice versa using a base objectid.<br />
The table partitions are linked to the table, the index is connected to the table, the index partitions are hooked up to the index, and the overflow table partitions are linked to the overflow table… all using the base objectid's. And only two types of objects have actual physical segments - the index partitions and the overflow table partitions.  So if DUDE hits a data objectid of an IOT index partition it can traverse up to the table object and get the definitions.
</p>
<p>
Pfew … the whole thing made me think about the Front 242 song 'Headhunter' - '1 - you lock the target - 2 - you bait the line - 3 - you slowly spread the net - 4 - you catch the … euh objectid ?'
</p>
<p>
I'm sure there are a couple of Oracle nerds out there that can appreciate this clip for 1988 ! 
</p>
<p>
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/lPpUFBVSyWs&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/lPpUFBVSyWs&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
&nbsp;
</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>
I'm so glad you can't sub-partition an indexed organized table (IOT).  (no we do not want this feature in 12g)
</p>
<p>
I was looking into my code for unloading partitioned IOT's. <br />
Unloading IOT's (with or without overflow segments) is easy. It's keeping track of all the meta-data that's starting to get difficult.
</p>
<p>
DUDE allows you to unload tables as follows :
</p>
<ul>
	<li>Table by table based on owner and tablename or objectid</li>
	<li>Shema by schema - so based on schema/owner name</li>
	<li>Tablespace by tablespace - and this is based on the data objectid of the table</li>
</ul>
<p>
You basically can define three different types of object id's 
</p>
<ul>
	<li>There's the objectid itself, which defines the object uniquely in most if not all base dictionary table</li>
	<li>Then there's the data objectid (or to use an expensive word 'data layer objectid' - which is the objectid stored within the block itself. Mostly it equals objectid, but if you for example move or truncate a table it'll change. A data objectid can be NULL - for example the table part of a partitioned table does not have a physical segment - it's the partitions that actually contain the data</li>
	<li>And then there's the base objectid - which is the objectid of the base table of an object … or a pointer to another object to put it simple.</li>
</ul>
<p>
So - if you're unloading a complete tablespace, you are going through the data objectid's found in the tablespace. And using those physical objectid's you have to move your way up to the table objectid using the metadata in the base dictionary tables. 
</p>
<p>
Why ? Because you need the table definition (name, columns, datatypes etc). This is quite simple tho.
</p>
<p>
But wait, sometimes it can get messy. Let's imaging a partitioned IOT using overflow segments with &lt;n&gt; partitions. <br />
What you get is the following meta data spread around several base dictionary tables :
</p>
<ul>
	<li>1 table   :  objectid  is &lt;t&gt;,  data objectid is null, base objectid is &lt;o&gt;</li>
	<li>&lt;n&gt; table partitions : objectid is &lt;t+n&gt;, data objectid is null, base objectid is &lt;t&gt;</li>
	<li>1 index   : objectid is &lt;i&gt;, data objectid is null, base objectid is &lt;t&gt;</li>
	<li>&lt;n&gt; index partitions  : objectid is &lt;i+1&gt;, data objectid is &lt;i+1&gt; initially, base objectid is &lt;i&gt;</li>
	<li>1 table (overflow) : objectid is &lt;o&gt;, data objectid is null, base objectid is &lt;t&gt;</li>
	<li>&lt;n&gt; table partitions (overflow) : objectid is &lt;o+1&gt;, data objectid is &lt;o+1&gt; initially, base objectid is &lt;o&gt;</li>
</ul>
<p>
As you can see - the table is linked to the overflow table and vice versa using a base objectid.<br />
The table partitions are linked to the table, the index is connected to the table, the index partitions are hooked up to the index, and the overflow table partitions are linked to the overflow table… all using the base objectid's. And only two types of objects have actual physical segments - the index partitions and the overflow table partitions.  So if DUDE hits a data objectid of an IOT index partition it can traverse up to the table object and get the definitions.
</p>
<p>
Pfew … the whole thing made me think about the Front 242 song 'Headhunter' - '1 - you lock the target - 2 - you bait the line - 3 - you slowly spread the net - 4 - you catch the … euh objectid ?'
</p>
<p>
I'm sure there are a couple of Oracle nerds out there that can appreciate this clip for 1988 ! 
</p>
<p>
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/lPpUFBVSyWs&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/lPpUFBVSyWs&hl=en&fs=1&color1=0x5d1719&color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
&nbsp;
</p>
    ]]></content>
  </entry>
  <entry>
    <title>I love slideshare</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/extending-the-oracle-sso-server-with-saml-and-pki" />
    <id>http://www.ora600.be/extending-the-oracle-sso-server-with-saml-and-pki</id>
    <published>2008-12-29T14:08:21+01:00</published>
    <updated>2008-12-29T14:11:44+01:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="OCA" />
    <category term="Oracle SSO" />
    <category term="PKI" />
    <category term="ssl" />
    <summary type="html"><![CDATA[<p>
Some idea's are so cool I'm just jealous I didn't think of them myself. With all the crappy, time consuming and totally useless social network sites (linkedin being the exception) it's refreshing to see something like slideshare.com. <br />
The idea is pretty simple - share your slides ! In fact, now that I think of it - it's basically like youtube - but with slides - or presentations.<br />
Just create an account - upload your presentations and slideshare will convert your pdf's or ppt's or whatever format into a flash driven presentation. Which at that point, you'll be able to embed them into your website.<br />
Just for fun I uploaded the presentations I did for UKOUG2007 and UKOUG2008. The 2007 one got selected by the slideshare editorial team as a showcase on their technology page. Way cool! 
</p>
<p>
<br />
<em>Your presentation <a target="_parent" href="http://www.slideshare.net/category/technology">Extending the Oracle SSO </a>is currently being showcased on the 'Technology' page by our editorial team. </em>
</p>
<p>
<em>It's likely to be there for the next 16-20 hours... </em>
</p>
<p>
<em>Cheers, </em>
</p>
<p>
<em>- the SlideShare team</em> 
</p>
<p>
I'm pretty sure their editorial team is a couple of uber-geeks as the selected presentation <a target="_blank" href="http://www.slideshare.net/kurtvm/extending-oracle-sso-presentation">'Extending the Oracle Single-Sign-On server' </a>is … well … kind of geeky … and I even dumb'ed it down a bit. It's all about PKI, certificates, authentication, reverse proxies, apache and … fitting Oracle's SSO server somewhere in between <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" alt="Wink" title="Wink" /><br />
It's also loaded with PowerPoint's custom animations, so you actually need to download it and run it in PowerPoint to get an idea of what I'm aiming for <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-innocent.gif" alt="Innocent" title="Innocent" />  … so the editorial team must have been geeky enough to download it and let all the animations spin their heads around. 
</p>
<p>
<br />
The content itself is based on the work I've been doing at a customer's site - an insurance company - that had very specific requirements regarding their SSO architecture. They had made Oracle their choice of platform as they had been using the Oracle RDBMS for about 10years (I was the one who set it up back then). So it was only natural that when they wanted to 'web-enable' their back-office applications, and give their - and third party - brokers access to some of their back-office applications, they chose Oracle's Internet Application Server. 
</p>
<p>
<br />
As all their business logic was built within PLSQL - the fat database model  or database centric approach as <a target="_blank" href="http://web.inter.nl.net/users/T.Koppelaars/">Toon Koppelaars</a> calls it - it was quite easy to develop a web front-end for it. The thing that they struggled the most with, was integrating Oracle single sign on with their fancy and expensive vpn/ssl boxes. Not only that but, they needed to integrate Oracle SSO with a federated authentication infrastructure, so that third party brokers, who were already authenticated through a third party identity provider could automatically logon to their applications, mapping third party identities to their identities. 
</p>
<p>
<br />
And we're only halfway there - they also wanted to run their own certificate authority (thank god for Oracle CA … are we the only one actually using it in production ?  <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" alt="Cool" title="Cool" />). Using their own CA they wanted to generate client certificates so that internet brokers could authenticate themselves with their own client certificate.  But they also had the choice of using their Belgian passport to authenticate themselves against Oracle SSO. And because the insurance holding has multiple companies, the logon screens needed multiple look-and-feels … oh and multi-language support of course. 
</p>
<p>
<br />
So for the last couple of years I have been busy pulling Oracle's SSO server inside-out, integrating it with a juniper 4000 VPN/SSL series - which we threw out in favor of an apache2 based SSL terminator and reverse proxy. The juniper box was just holding us back. I did have to write some custom apache filters for Oracle Portal. I think Oracle Portal generates some of the weirdest html I've ever seen… and mod_proxy_html wasn't up to the job for that <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-smile.gif" alt="Smile" title="Smile" /> 
</p>
<p>
<br />
I've also integrated SAMLv2 with Oracle SSO. I had to write a java based SAML proxy to get it done, because the SAML token needed to be transferred over a HTTPs connection using a client certificate authentication - but it works like a charm. This was only done this year - so it's only slightly mentioned in the presentation. We had a kind of DIY federated authentication before that, as the third party was not finished implementing a SAML IP themselves. 
</p>
<p>
<br />
So I wrote various software packages that tied it all together, like : 
</p>
<ul>
	<li>User admin packages : delegate user administration - this is a pure PLSQL API. This is our own version of OIDDAS on steroids. It can 
	<ul>
		<li>create/delete users </li>
		<li>change user passwords - force password changes - enforce minimum password requirements</li>
		<li>change/get user LDAP attributes</li>
		<li>do identity bootstrapping for federated authentication</li>
		<li>request/revoke client certificates for users - update the CRL</li>
		<li>restrict access to applications depending on whether they are on the LAN, internet or private network (third party) </li>
		<li>synchronize Oracle SSO users with users of a MS IIS/ASP/Sybase based application<br />
		</li>
	</ul>
	</li>
	<li>login proxies and plugin's for SSO, which enables us to 
	<ul>
		<li>login based on client certificates/password for internet users</li>
		<li>login based on eID certificate for internet users</li>
		<li>login based on SAMLv2 token for third party brokers</li>
		<li>login based on a DIY federated authentication for third party brokers </li>
		<li>login based on username/password for LAN back-office user</li>
		<li>login via Oracle SSO to a Microsoft IIS/ASP/Sybase application (oh yes - we did it!) </li>
		<li>OS/browser detection - quite handy for VISTA and webforms, so we can switch a webforms config transparently if we detect vista. For example - the url /forms/frmservlet?config=app is rewritten to /forms/frmservlet?config=va_app transparently when vista is detected</li>
		<li>User-based Oracle Webforms config - we can also change Webforms configs on a user per user basis. This is quite handy for debugging or if one specific user has troubles. For example /forms/frmservlet?config=app is rewritten to /forms/frmservlet?config=d_app for certain users. We do this by de-obfuscating the sitetoken,which will give us the URL, lookup the SSO user and see if we need to change the URL, rewrite the URL and then obfuscate the URL back to a sitetoken. Once the sitetoken reaches mod_osso it will redirect to the modified URL.</li>
		<li>It does lots more things like multi-language detection, different look-and-feel depending on which apache virtualhost your coming from etc<br />
		 </li>
	</ul>
	</li>
	<li>Certificate manager - we use the Oracle CA (OCA) quite extensively - but the user and admin screen are … let's say … not so user friendly … and you can't adjust the look and feel just the way you like. So I wrote what I call a certificate manager. 
	<ul>
		<li>The certificate manager uses openssl to create a private key and certificate request on the infrastructure server. This, as opposed to using activeX, javascript and the browser's wallet. The certificate manager picks up requests from our user admin package.</li>
		<li>The certificate manager then submits the request to the OCA.</li>
		<li>Someone from the company then approves the request (also through the certificate manager)</li>
		<li>And then the certificate is packaged in a password protected PKCS12 wallet with the private key and is shipped to the broker in a secure way (which I won't go into details here)</li>
		<li>The certificate manager uses a bunch of techniques and also has a PLSQL wrapper as an API - so there's no need to use the actual OCA webpages. This means we can easily delegate administration. For example  - if an employee  of a broker office leaves or gets fired, the head of the office can revoke the client certificate through his application, which will in turn update the CRL and disable the user in OID. Of course - approval of client certificates is always done centrally by the head office.<br />
		</li>
	</ul>
	</li>
</ul>
<p>
Anyway - that's in a nutshell what the presentation is about. Never mind all the DBA stuff and java programming … working with these technologies was awesome … and it'll help me a grea lot in my DUDE work when I finally finish support for unloading data encrypted using Transparent Data Encryption (TDE) <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" alt="Laughing" title="Laughing" /> 
</p>
<p>
&nbsp;
</p>
<p>
Oh - here's the presentation embedded ... but you'll need to<a target="_blank" href="http://www.slideshare.net/kurtvm/extending-oracle-sso-presentation/download"> download it </a>and run it powerpoint to get the animations running ! 
</p>
<p>
<div style="width:425px;text-align:left" id="__ss_875466"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/kurtvm/extending-oracle-sso-presentation?type=powerpoint" title="Extending Oracle SSO">Extending Oracle SSO</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=extendingsso-1230482121296251-1&stripped_title=extending-oracle-sso-presentation" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=extendingsso-1230482121296251-1&stripped_title=extending-oracle-sso-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View SlideShare <a style="text-decoration:underline;" href="http://www.slideshare.net/kurtvm/extending-oracle-sso-presentation?type=powerpoint" title="View Extending Oracle SSO on SlideShare">presentation</a> or <a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint">Upload</a> your own. (tags: <a style="text-decoration:underline;" href="http://slideshare.net/tag/oracle">oracle</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/single">single</a>)</div></div>
&nbsp;
</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>
Some idea's are so cool I'm just jealous I didn't think of them myself. With all the crappy, time consuming and totally useless social network sites (linkedin being the exception) it's refreshing to see something like slideshare.com. <br />
The idea is pretty simple - share your slides ! In fact, now that I think of it - it's basically like youtube - but with slides - or presentations.<br />
Just create an account - upload your presentations and slideshare will convert your pdf's or ppt's or whatever format into a flash driven presentation. Which at that point, you'll be able to embed them into your website.<br />
Just for fun I uploaded the presentations I did for UKOUG2007 and UKOUG2008. The 2007 one got selected by the slideshare editorial team as a showcase on their technology page. Way cool! 
</p>
<p>
<br />
<em>Your presentation <a target="_parent" href="http://www.slideshare.net/category/technology">Extending the Oracle SSO </a>is currently being showcased on the 'Technology' page by our editorial team. </em>
</p>
<p>
<em>It's likely to be there for the next 16-20 hours... </em>
</p>
<p>
<em>Cheers, </em>
</p>
<p>
<em>- the SlideShare team</em> 
</p>
<p>
I'm pretty sure their editorial team is a couple of uber-geeks as the selected presentation <a target="_blank" href="http://www.slideshare.net/kurtvm/extending-oracle-sso-presentation">'Extending the Oracle Single-Sign-On server' </a>is … well … kind of geeky … and I even dumb'ed it down a bit. It's all about PKI, certificates, authentication, reverse proxies, apache and … fitting Oracle's SSO server somewhere in between <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" alt="Wink" title="Wink" /><br />
It's also loaded with PowerPoint's custom animations, so you actually need to download it and run it in PowerPoint to get an idea of what I'm aiming for <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-innocent.gif" alt="Innocent" title="Innocent" />  … so the editorial team must have been geeky enough to download it and let all the animations spin their heads around. 
</p>
<p>
<br />
The content itself is based on the work I've been doing at a customer's site - an insurance company - that had very specific requirements regarding their SSO architecture. They had made Oracle their choice of platform as they had been using the Oracle RDBMS for about 10years (I was the one who set it up back then). So it was only natural that when they wanted to 'web-enable' their back-office applications, and give their - and third party - brokers access to some of their back-office applications, they chose Oracle's Internet Application Server. 
</p>
<p>
<br />
As all their business logic was built within PLSQL - the fat database model  or database centric approach as <a target="_blank" href="http://web.inter.nl.net/users/T.Koppelaars/">Toon Koppelaars</a> calls it - it was quite easy to develop a web front-end for it. The thing that they struggled the most with, was integrating Oracle single sign on with their fancy and expensive vpn/ssl boxes. Not only that but, they needed to integrate Oracle SSO with a federated authentication infrastructure, so that third party brokers, who were already authenticated through a third party identity provider could automatically logon to their applications, mapping third party identities to their identities. 
</p>
<p>
<br />
And we're only halfway there - they also wanted to run their own certificate authority (thank god for Oracle CA … are we the only one actually using it in production ?  <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif" alt="Cool" title="Cool" />). Using their own CA they wanted to generate client certificates so that internet brokers could authenticate themselves with their own client certificate.  But they also had the choice of using their Belgian passport to authenticate themselves against Oracle SSO. And because the insurance holding has multiple companies, the logon screens needed multiple look-and-feels … oh and multi-language support of course. 
</p>
<p>
<br />
So for the last couple of years I have been busy pulling Oracle's SSO server inside-out, integrating it with a juniper 4000 VPN/SSL series - which we threw out in favor of an apache2 based SSL terminator and reverse proxy. The juniper box was just holding us back. I did have to write some custom apache filters for Oracle Portal. I think Oracle Portal generates some of the weirdest html I've ever seen… and mod_proxy_html wasn't up to the job for that <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-smile.gif" alt="Smile" title="Smile" /> 
</p>
<p>
<br />
I've also integrated SAMLv2 with Oracle SSO. I had to write a java based SAML proxy to get it done, because the SAML token needed to be transferred over a HTTPs connection using a client certificate authentication - but it works like a charm. This was only done this year - so it's only slightly mentioned in the presentation. We had a kind of DIY federated authentication before that, as the third party was not finished implementing a SAML IP themselves. 
</p>
<p>
<br />
So I wrote various software packages that tied it all together, like : 
</p>
<ul>
	<li>User admin packages : delegate user administration - this is a pure PLSQL API. This is our own version of OIDDAS on steroids. It can 
	<ul>
		<li>create/delete users </li>
		<li>change user passwords - force password changes - enforce minimum password requirements</li>
		<li>change/get user LDAP attributes</li>
		<li>do identity bootstrapping for federated authentication</li>
		<li>request/revoke client certificates for users - update the CRL</li>
		<li>restrict access to applications depending on whether they are on the LAN, internet or private network (third party) </li>
		<li>synchronize Oracle SSO users with users of a MS IIS/ASP/Sybase based application<br />
		</li>
	</ul>
	</li>
	<li>login proxies and plugin's for SSO, which enables us to 
	<ul>
		<li>login based on client certificates/password for internet users</li>
		<li>login based on eID certificate for internet users</li>
		<li>login based on SAMLv2 token for third party brokers</li>
		<li>login based on a DIY federated authentication for third party brokers </li>
		<li>login based on username/password for LAN back-office user</li>
		<li>login via Oracle SSO to a Microsoft IIS/ASP/Sybase application (oh yes - we did it!) </li>
		<li>OS/browser detection - quite handy for VISTA and webforms, so we can switch a webforms config transparently if we detect vista. For example - the url /forms/frmservlet?config=app is rewritten to /forms/frmservlet?config=va_app transparently when vista is detected</li>
		<li>User-based Oracle Webforms config - we can also change Webforms configs on a user per user basis. This is quite handy for debugging or if one specific user has troubles. For example /forms/frmservlet?config=app is rewritten to /forms/frmservlet?config=d_app for certain users. We do this by de-obfuscating the sitetoken,which will give us the URL, lookup the SSO user and see if we need to change the URL, rewrite the URL and then obfuscate the URL back to a sitetoken. Once the sitetoken reaches mod_osso it will redirect to the modified URL.</li>
		<li>It does lots more things like multi-language detection, different look-and-feel depending on which apache virtualhost your coming from etc<br />
		 </li>
	</ul>
	</li>
	<li>Certificate manager - we use the Oracle CA (OCA) quite extensively - but the user and admin screen are … let's say … not so user friendly … and you can't adjust the look and feel just the way you like. So I wrote what I call a certificate manager. 
	<ul>
		<li>The certificate manager uses openssl to create a private key and certificate request on the infrastructure server. This, as opposed to using activeX, javascript and the browser's wallet. The certificate manager picks up requests from our user admin package.</li>
		<li>The certificate manager then submits the request to the OCA.</li>
		<li>Someone from the company then approves the request (also through the certificate manager)</li>
		<li>And then the certificate is packaged in a password protected PKCS12 wallet with the private key and is shipped to the broker in a secure way (which I won't go into details here)</li>
		<li>The certificate manager uses a bunch of techniques and also has a PLSQL wrapper as an API - so there's no need to use the actual OCA webpages. This means we can easily delegate administration. For example  - if an employee  of a broker office leaves or gets fired, the head of the office can revoke the client certificate through his application, which will in turn update the CRL and disable the user in OID. Of course - approval of client certificates is always done centrally by the head office.<br />
		</li>
	</ul>
	</li>
</ul>
<p>
Anyway - that's in a nutshell what the presentation is about. Never mind all the DBA stuff and java programming … working with these technologies was awesome … and it'll help me a grea lot in my DUDE work when I finally finish support for unloading data encrypted using Transparent Data Encryption (TDE) <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" alt="Laughing" title="Laughing" /> 
</p>
<p>
&nbsp;
</p>
<p>
Oh - here's the presentation embedded ... but you'll need to<a target="_blank" href="http://www.slideshare.net/kurtvm/extending-oracle-sso-presentation/download"> download it </a>and run it powerpoint to get the animations running ! 
</p>
<p>
<div style="width:425px;text-align:left" id="__ss_875466"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/kurtvm/extending-oracle-sso-presentation?type=powerpoint" title="Extending Oracle SSO">Extending Oracle SSO</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=extendingsso-1230482121296251-1&stripped_title=extending-oracle-sso-presentation" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=extendingsso-1230482121296251-1&stripped_title=extending-oracle-sso-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View SlideShare <a style="text-decoration:underline;" href="http://www.slideshare.net/kurtvm/extending-oracle-sso-presentation?type=powerpoint" title="View Extending Oracle SSO on SlideShare">presentation</a> or <a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint">Upload</a> your own. (tags: <a style="text-decoration:underline;" href="http://slideshare.net/tag/oracle">oracle</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/single">single</a>)</div></div>
&nbsp;
</p>
    ]]></content>
  </entry>
  <entry>
    <title>How to avoid costly data recovery ?</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/how-to-avoid-costly-recovery" />
    <id>http://www.ora600.be/how-to-avoid-costly-recovery</id>
    <published>2008-12-17T21:59:49+01:00</published>
    <updated>2008-12-17T22:00:36+01:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="oracle dul" />
    <category term="recovery" />
    <summary type="html"><![CDATA[<p>
&nbsp;
</p>
<p>
A couple of days ago I received Daniel Fink's presentation 'Never a DUL moment - how to avoid costly data recovery'. 
</p>
<p>
Today I've found the time to publish the slides on slideshare  - go forth and recover ! 
</p>
<div style="width:425px;text-align:left" id="__ss_854694"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/kurtvm/nevera-dul-moment-presentation?type=powerpoint" title="Nevera Dul Moment">Nevera Dul Moment</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=neveradulmoment-1229546206567458-1&stripped_title=nevera-dul-moment-presentation" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=neveradulmoment-1229546206567458-1&stripped_title=nevera-dul-moment-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View SlideShare <a style="text-decoration:underline;" href="http://www.slideshare.net/kurtvm/nevera-dul-moment-presentation?type=powerpoint" title="View Nevera Dul Moment on SlideShare">presentation</a> or <a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint">Upload</a> your own. (tags: <a style="text-decoration:underline;" href="http://slideshare.net/tag/oracle">oracle</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/dul">dul</a>)</div></div>    ]]></summary>
    <content type="html"><![CDATA[<p>
&nbsp;
</p>
<p>
A couple of days ago I received Daniel Fink's presentation 'Never a DUL moment - how to avoid costly data recovery'. 
</p>
<p>
Today I've found the time to publish the slides on slideshare  - go forth and recover ! 
</p>
<div style="width:425px;text-align:left" id="__ss_854694"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/kurtvm/nevera-dul-moment-presentation?type=powerpoint" title="Nevera Dul Moment">Nevera Dul Moment</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=neveradulmoment-1229546206567458-1&stripped_title=nevera-dul-moment-presentation" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=neveradulmoment-1229546206567458-1&stripped_title=nevera-dul-moment-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View SlideShare <a style="text-decoration:underline;" href="http://www.slideshare.net/kurtvm/nevera-dul-moment-presentation?type=powerpoint" title="View Nevera Dul Moment on SlideShare">presentation</a> or <a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint">Upload</a> your own. (tags: <a style="text-decoration:underline;" href="http://slideshare.net/tag/oracle">oracle</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/dul">dul</a>)</div></div>    ]]></content>
  </entry>
  <entry>
    <title>Taking another blow in the face</title>
    <link rel="alternate" type="text/html" href="http://www.ora600.be/ukoug-2008-was-a-blast" />
    <id>http://www.ora600.be/ukoug-2008-was-a-blast</id>
    <published>2008-12-16T21:53:06+01:00</published>
    <updated>2008-12-17T14:29:25+01:00</updated>
    <author>
      <name>kurtvm</name>
    </author>
    <category term="ukoug" />
    <summary type="html"><![CDATA[<p>
Well well well - I reckon this month is 'poke the belgian in the face' month ! 
</p>
<p>
<br />
I knew my last post was going to be trouble ;-) That'll teach me (I'm sure a lot of people are having a laugh now!)<br />
I kind of suspected someone, somewhere in the world would be offended by it. The world has become a small place, and cultures differ. 
</p>
<p>
Hey, I like to eat <a target="_blank" href="http://books.google.be/books?id=Sh4H3m-ztBAC&amp;pg=PA46&amp;lpg=PA46&amp;dq=horse+meat+stew&amp;source=web&amp;ots=T28k98TuUh&amp;sig=MdKLBQutv01p5gAhDxbTldDs834&amp;hl=en&amp;sa=X&amp;oi=book_result&amp;resnum=4&amp;ct=result">horse meat stew </a>with my fries and mayonnaise on the side - I know this is completely not done in some parts of the world - some prefer ketchup <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-innocent.gif" alt="Innocent" title="Innocent" /><br />
<br />
In parts of the world it's perfectly legal to carry guns and it's part of their legacy, it's part of their constitution - so I respect that. 
</p>
<p>
<br />
What I don't like is my situation being exploited by certain people who are frustrated with the UKOUG. 
</p>
<p>
<br />
This certain person - who we will give the fictional name 'Dom' - turns my small incident into a 'vicious attack'… man - I'm lucky to be alive if I read all this. He then goes on into explaining, 'how everybody is against Americans'… he and his wife were verbally threatened when they were once abroad (they were called 'yanks'). 
</p>
<p>
Well - what can I say - I'm pretty sure that's not a pleasant situation when you're in a foreign country, I can't deny that. But I actually happen to like Americans as some of my best and dearest friends are yanks  ;-)  (Which is not an offensive word where I come from - but again cultures differ) 
</p>    ]]></summary>
    <content type="html"><![CDATA[<p>
Well well well - I reckon this month is 'poke the belgian in the face' month ! 
</p>
<p>
<br />
I knew my last post was going to be trouble ;-) That'll teach me (I'm sure a lot of people are having a laugh now!)<br />
I kind of suspected someone, somewhere in the world would be offended by it. The world has become a small place, and cultures differ. 
</p>
<p>
Hey, I like to eat <a target="_blank" href="http://books.google.be/books?id=Sh4H3m-ztBAC&amp;pg=PA46&amp;lpg=PA46&amp;dq=horse+meat+stew&amp;source=web&amp;ots=T28k98TuUh&amp;sig=MdKLBQutv01p5gAhDxbTldDs834&amp;hl=en&amp;sa=X&amp;oi=book_result&amp;resnum=4&amp;ct=result">horse meat stew </a>with my fries and mayonnaise on the side - I know this is completely not done in some parts of the world - some prefer ketchup <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-innocent.gif" alt="Innocent" title="Innocent" /><br />
<br />
In parts of the world it's perfectly legal to carry guns and it's part of their legacy, it's part of their constitution - so I respect that. 
</p>
<p>
<br />
What I don't like is my situation being exploited by certain people who are frustrated with the UKOUG. 
</p>
<p>
<br />
This certain person - who we will give the fictional name 'Dom' - turns my small incident into a 'vicious attack'… man - I'm lucky to be alive if I read all this. He then goes on into explaining, 'how everybody is against Americans'… he and his wife were verbally threatened when they were once abroad (they were called 'yanks'). 
</p>
<p>
Well - what can I say - I'm pretty sure that's not a pleasant situation when you're in a foreign country, I can't deny that. But I actually happen to like Americans as some of my best and dearest friends are yanks  ;-)  (Which is not an offensive word where I come from - but again cultures differ) 
</p>
<p>
<br />
Anyway - 'Dom' has done a pretty good job filling in all the blank spots of my story, took out all the irony out of it, sprayed some assumptions on top of it, and came to the bizarre conclusion that all overseas conferences are very dangerous places to go to - and UKOUG in special. 
</p>
<p>
<br />
The fact that I got attacked, has nothing to do with the UKOUG. It could have happened anywhere. But thinking of it, I'm kind of glad it happened in Birmingham. Birmingham, like a lot of UK cities has a vast network of CCTV cameras. So the police knew perfectly what had happened. When I would have chosen to press charges, police could have easily arrested my attacker just by following his whereabouts on the CCTV cams. And they came in between before serious things happened,  I was pretty chuffed about that. 
</p>
<blockquote>
	<p>
	<br />
	<em>'It's a scary feeling being disarmed and knowing that you are defenseless in a foreign land.  In many countries you cannot even carry a knife to protect yourself, and Americans attending Oracle conferences abroad are at the total mercy of criminals. But it's not just Americans who get singled-out for attacks.' (Dom)</em> 
	</p>
</blockquote>
<p>
Duh … what can I say … I'm speechless. 
</p>
<p>
Ok let's assume for a minute I was attacked in the US at some Oracle conference. I probably would have reacted identical, as quite honestly, my adrenaline was pumping harder than a Bee Gees remix of 'staying alive'.  Following Dom's logic, the attacker in the states would have probably carried a gun or knife - which probably meant, he would have shot me *and* the police would have probably arrested me too. And therefore you should not attend any Oracle conferences in the US <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-surprised.gif" alt="Surprised" title="Surprised" /> Puh-lease!<br />
Or assume you're attending an Oracle course on a cruise ship and the ship is attacked by pirates - what to do … I might just as well stay home then. 
</p>
<p>
The fact is that 'Dom' probably has a score to settle with the UKOUG for whatever reason and he's taking my incident out of context to make his point -  'UKOUG doesn't like me - UKOUG bad '. 
</p>
<p>
<br />
Anyway - I'll be attending the <strong><span style="font-size: small">UKOUG</span></strong> next year as it <strong><span style="font-size: small">is</span></strong> simply <span style="font-size: small"><strong>the best Oracle user conference</strong></span> out there. 
</p>
<p>
(and it'll stay that way until someone starts a conference at a ski resort - I'm thinking Solden, Austria <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif" alt="Laughing" title="Laughing" /> ) 
</p>
<p>
<br />
I've been promoting UKOUG among my colleagues and this year the company had sent 7 people (including one of the directors) - which is more then we send to the OOW in San Francisco. So, this incident is *not* going to stop me or the company from coming over. Hey, especially with the British Pound at it's all time low this was a sweet deal (oh -now you're sorry you didn't switch to the EURO ;-) ). 
</p>
<p>
<br />
Instead, we had a good laugh, a bucket of ice at McDonalds for my eye, and a pint to wash down my bruised ego <img border="0" src="/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-smile.gif" alt="Smile" title="Smile" /> 
</p>
<p>
&nbsp;
</p>
    ]]></content>
  </entry>
</feed>
