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

<channel>
	<title>Guroot</title>
	<atom:link href="http://www.guroot.com/?feed=rss2&amp;lang=en" rel="self" type="application/rss+xml" />
	<link>http://www.guroot.com</link>
	<description>Blog d'un programmeur pigiste</description>
	<lastBuildDate>Mon, 01 Mar 2010 22:26:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Find and Replace with sed</title>
		<link>http://www.guroot.com/?p=252&amp;lang=en</link>
		<comments>http://www.guroot.com/?p=252&amp;#comments&amp;lang=en</comments>
		<pubDate>Fri, 30 Oct 2009 22:59:04 +0000</pubDate>
		<dc:creator>guroot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://www.guroot.com/?p=252&amp;lang=en</guid>
		<description><![CDATA[A lot of us will have to support code made by newbies or unconscientioius coders. Lately, I had to change the password of a database. Unfortunately, this pass was hardcoded in a lot of php files. Nothing&#8217;s perfect. Hopefully, it&#8217;s easy to do a find and replace under Linux or Cygwin (or wathever) with sed. [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of us will have to support code made by newbies or unconscientioius coders. <span id="more-252"></span> Lately, I had to change the password of a database.<br />
Unfortunately, this pass was hardcoded in a lot of php files.</p>
<p>Nothing&#8217;s perfect.</p>
<p>Hopefully, it&#8217;s easy to do a find and replace under Linux or Cygwin (or wathever) with sed.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>your<span style="color: #000000; font-weight: bold;">/</span>directory<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-type</span> f <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">'s/old_password/new_password/g'</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p>This tips can be very usefull.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guroot.com/?feed=rss2&amp;p=252&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recent post on the qTranslate plugin forum</title>
		<link>http://www.guroot.com/?p=244&amp;lang=en</link>
		<comments>http://www.guroot.com/?p=244&amp;#comments&amp;lang=en</comments>
		<pubDate>Fri, 21 Aug 2009 19:12:46 +0000</pubDate>
		<dc:creator>guroot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://www.guroot.com/?p=244&amp;lang=en</guid>
		<description><![CDATA[Hello, I&#8217;m using the french version of wordpress 2.8 and when I&#8217;m trying to use the automatic update, it show that only english version is available : 2.8.4–en_US. When the qTranslate extension is deactivated, the 2.8.4–fr_FR is also available. I think it could be a problem with the core_version_check_locale hook. add_filter&#40;'core_version_check_locale', 'qtrans_versionLocale'&#41;; I modified the [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m using the french version of wordpress 2.8 and when I&#8217;m trying to use the automatic update, it show that only english version is available : 2.8.4–en_US.<br />
When the qTranslate extension is deactivated, the 2.8.4–fr_FR is also available.<br />
<span id="more-244"></span><br />
I think it could be a problem with the core_version_check_locale hook.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'core_version_check_locale'</span><span style="color: #339933;">,</span>      <span style="color: #0000ff;">'qtrans_versionLocale'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I modified the function qtrans_versionLocale() of qtranslate_hooks.php and it solved the problem. I&#8217;m not sure if it&#8217;s the right way to solve it.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   <span style="color: #000000; font-weight: bold;">function</span> qtrans_versionLocale<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #b1b100;">return</span> get_locale<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #666666; font-style: italic;">// Before modification :</span>
       <span style="color: #666666; font-style: italic;">//return 'en_US';</span>
    <span style="color: #009900;">&#125;</span></pre></div></div>

<p>regards,</p>
<p>Jonathan fleury</p>
<p>http://www.guroot.com/?lang=en</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guroot.com/?feed=rss2&amp;p=244&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JDAPI, java library to work on Oracle Forms (. FMB)</title>
		<link>http://www.guroot.com/?p=222&amp;lang=en</link>
		<comments>http://www.guroot.com/?p=222&amp;#comments&amp;lang=en</comments>
		<pubDate>Fri, 27 Feb 2009 00:22:31 +0000</pubDate>
		<dc:creator>guroot</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdapi]]></category>

		<guid isPermaLink="false">http://www.guroot.com/?p=222&amp;lang=en</guid>
		<description><![CDATA[Here is a simple package that I made in Java to proceed to a &#8220;search and replace&#8221; in the blocks of FMB files. Warning, the following code modifies all FMBs in the specified directory. I give you the JAR file and the code. It&#8217;s very useful when needed. It come with absolutly NO WARRANTY .. [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a simple package that I made in Java to proceed to a &#8220;search and replace&#8221; in the blocks of FMB files. Warning, the following code modifies <strong> all </strong>FMBs in the specified directory. I give you the JAR file  and the code. It&#8217;s very useful when needed.<br />
<span id="more-222"></span><br />
It come with absolutly NO WARRANTY  .. be careful.  I am not responsible if it causes problems with your files.  It may be used for personnal and commercial purpose.. and bla bla bla &#8230;</p>
<p><a href="/bin/findAndReplace.jar"> findAndReplace.jar </a></p>
<p>Have been tested under Micro$soft Windows only.<br />
You must have Java 1.6.0_12 or later and frmjdapi.jar have to be in the &#8220;CLASSPATH&#8221;.</p>
<p>You can run it the following way :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">java <span style="color: #660033;">-jar</span> findAndReplace.jar c:\fmb\  old_word new_word</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">findandreplace</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #008000; font-style: italic; font-weight: bold;">/**
 *
 * @author guroot
 * http://www.guroot.com
 */</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">oracle.forms.jdapi.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.*</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> FmbFilter <span style="color: #000000; font-weight: bold;">implements</span> <span style="color: #003399;">FilenameFilter</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> accept<span style="color: #009900;">&#40;</span><span style="color: #003399;">File</span> dir, <span style="color: #003399;">String</span> name<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span>name.<span style="color: #006633;">endsWith</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.fmb&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Main <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * @param args the command line arguments
     */</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #666666; font-style: italic;">// TODO code application logic here</span>
    FormModule fmb<span style="color: #339933;">;</span>
    <span style="color: #003399;">String</span> plsql<span style="color: #339933;">;</span>
    <span style="color: #003399;">FilenameFilter</span> filter <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> FmbFilter<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #003399;">File</span> dir <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span>args<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> list <span style="color: #339933;">=</span> dir.<span style="color: #006633;">list</span><span style="color: #009900;">&#40;</span>filter<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span> list.<span style="color: #006633;">length</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
     <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">print</span><span style="color: #009900;">&#40;</span>list<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     fmb <span style="color: #339933;">=</span> FormModule.<span style="color: #006633;">open</span><span style="color: #009900;">&#40;</span>args<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>&quot;</span><span style="color: #339933;">+</span>list<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     JdapiIterator blocks <span style="color: #339933;">=</span> fmb.<span style="color: #006633;">getBlocks</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>blocks.<span style="color: #006633;">hasNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      Block block <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>Block<span style="color: #009900;">&#41;</span>blocks.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #666666; font-style: italic;">// Triggers</span>
      JdapiIterator triggers <span style="color: #339933;">=</span> block.<span style="color: #006633;">getTriggers</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>triggers.<span style="color: #006633;">hasNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
            Trigger trigger <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>Trigger<span style="color: #009900;">&#41;</span>triggers.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            plsql <span style="color: #339933;">=</span> trigger.<span style="color: #006633;">getTriggerText</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            plsql <span style="color: #339933;">=</span> plsql.<span style="color: #006633;">replace</span><span style="color: #009900;">&#40;</span>args<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>, args<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            trigger.<span style="color: #006633;">setTriggerText</span><span style="color: #009900;">&#40;</span>plsql<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
        fmb.<span style="color: #006633;">destroy</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// end for</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.guroot.com/?feed=rss2&amp;p=222&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Impress your friends with DBMS_XMLDOM</title>
		<link>http://www.guroot.com/?p=198&amp;lang=en</link>
		<comments>http://www.guroot.com/?p=198&amp;#comments&amp;lang=en</comments>
		<pubDate>Fri, 09 Jan 2009 04:11:14 +0000</pubDate>
		<dc:creator>guroot</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.guroot.com/?p=198&amp;lang=en</guid>
		<description><![CDATA[Oracle has a very interesting package to deal with the XML: DBMS_XMLDOM I am still not very familiar with this package but with it, I loaded an XML file (multi-level structured) directly into a table. I have not tested on a large volume of data but I think it would be efficient. I did my [...]]]></description>
			<content:encoded><![CDATA[
<p> Oracle has a very interesting package to deal with the XML: DBMS_XMLDOM
</p>
<p>
<span id="more-198"></span>
</p>
<p> I am still not very familiar with this package but with it, I loaded an XML file (multi-level structured) directly into a table. I have not tested on a large volume of data but I think it would be efficient.
</p>
<p> I did my tests on an Oracle 9.2.0.4.0 under a CentOS Linux
</p>
<p> Here is a very rudimentary procedure :
</p>
<p> First, an XML file for the example :</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;">&lt; ?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">standalone</span>=<span style="color: #ff0000;">&quot;no&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;racine<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;family</span> <span style="color: #000066;">lastname</span>=<span style="color: #ff0000;">&quot;Smith&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;member</span> <span style="color: #000066;">memberid</span>=<span style="color: #ff0000;">&quot;m1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Sarah<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/member<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;member</span> <span style="color: #000066;">memberid</span>=<span style="color: #ff0000;">&quot;m2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Bob<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/member<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;member</span> <span style="color: #000066;">memberid</span>=<span style="color: #ff0000;">&quot;m3&quot;</span> <span style="color: #000066;">mom</span>=<span style="color: #ff0000;">&quot;m1&quot;</span> <span style="color: #000066;">dad</span>=<span style="color: #ff0000;">&quot;m2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Joanne<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/member<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;member</span> <span style="color: #000066;">memberid</span>=<span style="color: #ff0000;">&quot;m4&quot;</span> <span style="color: #000066;">mom</span>=<span style="color: #ff0000;">&quot;m1&quot;</span> <span style="color: #000066;">dad</span>=<span style="color: #ff0000;">&quot;m2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Jim<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/member<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/family<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;family</span> <span style="color: #000066;">lastname</span>=<span style="color: #ff0000;">&quot;Dupont&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;member</span> <span style="color: #000066;">memberid</span>=<span style="color: #ff0000;">&quot;m1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Jean<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/member<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;member</span> <span style="color: #000066;">memberid</span>=<span style="color: #ff0000;">&quot;m2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Robert<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/member<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;member</span> <span style="color: #000066;">memberid</span>=<span style="color: #ff0000;">&quot;m3&quot;</span> <span style="color: #000066;">mom</span>=<span style="color: #ff0000;">&quot;m1&quot;</span> <span style="color: #000066;">dad</span>=<span style="color: #ff0000;">&quot;m2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>John<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/member<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;member</span> <span style="color: #000066;">memberid</span>=<span style="color: #ff0000;">&quot;m4&quot;</span> <span style="color: #000066;">mom</span>=<span style="color: #ff0000;">&quot;m1&quot;</span> <span style="color: #000066;">dad</span>=<span style="color: #ff0000;">&quot;m2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Gary<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/member<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/family<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/racine<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

</p>
<p>Then, I created a table in the database : </p>

<div class="wp_syntax"><div class="code"><pre class="plsql" style="font-family:monospace;"><span style="color: #00F;">CREATE</span> <span style="color: #00F;">TABLE</span> personnes
<span style="color: #00F;">&#40;</span>NOM <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#40;</span><span style="color: #800;">60</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">,</span>
Prenom <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#40;</span><span style="color: #800;">60</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span></pre></div></div>

<p>And now, the entire procedured I used to load the data :</p>

<div class="wp_syntax"><div class="code"><pre class="plsql" style="font-family:monospace;"><span style="color: #00F;">CREATE</span> <span style="color: #00F;">OR</span> <span style="color: #000;">REPLACE</span> <span style="color: #00F;">PROCEDURE</span> chargementXML<span style="color: #00F;">&#40;</span>dir <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span> inpfile <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span>
                                      errfile <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#41;</span> <span style="color: #00F;">IS</span>
p xmlparser<span style="color: #00F;">.</span>parser<span style="color: #00F;">;</span>
doc xmldom<span style="color: #00F;">.</span>DOMDocument<span style="color: #00F;">;</span>
&nbsp;
<span style="color: #00F;">PROCEDURE</span> insertElements<span style="color: #00F;">&#40;</span>doc xmldom<span style="color: #00F;">.</span>DOMDocument<span style="color: #00F;">&#41;</span> <span style="color: #00F;">IS</span>
nl xmldom<span style="color: #00F;">.</span>DOMNodeList<span style="color: #00F;">;</span>
len <span style="color: #00F;">NUMBER</span><span style="color: #00F;">;</span>
n xmldom<span style="color: #00F;">.</span>DOMNode<span style="color: #00F;">;</span>
nnm xmldom<span style="color: #00F;">.</span>DOMNamedNodeMap<span style="color: #00F;">;</span>
family <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#40;</span><span style="color: #800;">60</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
myElement xmldom<span style="color: #00F;">.</span>DOMElement<span style="color: #00F;">;</span>
nodeValue <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#40;</span><span style="color: #800;">60</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
&nbsp;
<span style="color: #00F;">BEGIN</span>
<span style="color: #080; font-style: italic;">-- get all elements</span>
nl <span style="color: #00F;">:=</span> xmldom<span style="color: #00F;">.</span>getElementsByTagName<span style="color: #00F;">&#40;</span>doc<span style="color: #00F;">,</span> <span style="color: #F00;">'*'</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
 len <span style="color: #00F;">:=</span> xmldom<span style="color: #00F;">.</span>getLength<span style="color: #00F;">&#40;</span>nl<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
  <span style="color: #080; font-style: italic;">-- loop through elements</span>
<span style="color: #00F;">FOR</span> i <span style="color: #00F;">IN</span> 0<span style="color: #00F;">..</span>len<span style="color: #00F;">-</span><span style="color: #800;">1</span> <span style="color: #00F;">LOOP</span>
     n <span style="color: #00F;">:=</span> xmldom<span style="color: #00F;">.</span>item<span style="color: #00F;">&#40;</span>nl<span style="color: #00F;">,</span> i<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
&nbsp;
	<span style="color: #00F;">IF</span> <span style="color: #000;">UPPER</span><span style="color: #00F;">&#40;</span>xmldom<span style="color: #00F;">.</span>getNodeName<span style="color: #00F;">&#40;</span>n<span style="color: #00F;">&#41;</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">=</span> <span style="color: #F00;">'FAMILY'</span> <span style="color: #00F;">THEN</span>
	myElement <span style="color: #00F;">:=</span> xmldom<span style="color: #00F;">.</span>makeElement<span style="color: #00F;">&#40;</span>n<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
        family <span style="color: #00F;">:=</span> xmldom<span style="color: #00F;">.</span>getAttribute<span style="color: #00F;">&#40;</span>myElement <span style="color: #00F;">,</span><span style="color: #F00;">'lastname'</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
	<span style="color: #00F;">END</span> <span style="color: #00F;">IF</span><span style="color: #00F;">;</span>
      <span style="color: #080; font-style: italic;">-- get the text node associated with the element node</span>
	 n <span style="color: #00F;">:=</span> xmldom<span style="color: #00F;">.</span>getFirstChild<span style="color: #00F;">&#40;</span>n<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
     <span style="color: #00F;">IF</span> xmldom<span style="color: #00F;">.</span>getNodeType<span style="color: #00F;">&#40;</span>n<span style="color: #00F;">&#41;</span> <span style="color: #00F;">=</span> xmldom<span style="color: #00F;">.</span>TEXT_NODE <span style="color: #00F;">THEN</span>
      nodeValue <span style="color: #00F;">:=</span> xmldom<span style="color: #00F;">.</span>getNodeValue<span style="color: #00F;">&#40;</span>n<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
      <span style="color: #00F;">INSERT</span> <span style="color: #00F;">INTO</span> personnes <span style="color: #00F;">VALUES</span> <span style="color: #00F;">&#40;</span>family<span style="color: #00F;">,</span>nodeValue<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
      <span style="color: #00F;">END</span> <span style="color: #00F;">IF</span><span style="color: #00F;">;</span>
   <span style="color: #00F;">END</span> <span style="color: #00F;">LOOP</span><span style="color: #00F;">;</span>
<span style="color: #00F;">END</span> insertElements<span style="color: #00F;">;</span>
&nbsp;
<span style="color: #00F;">BEGIN</span>
&nbsp;
   p <span style="color: #00F;">:=</span> xmlparser<span style="color: #00F;">.</span>newParser<span style="color: #00F;">;</span>
&nbsp;
<span style="color: #080; font-style: italic;">--  Paramètrages</span>
   xmlparser<span style="color: #00F;">.</span>setValidationMode<span style="color: #00F;">&#40;</span>p<span style="color: #00F;">,</span> <span style="color: #00F;">FALSE</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
   xmlparser<span style="color: #00F;">.</span>setErrorLog<span style="color: #00F;">&#40;</span>p<span style="color: #00F;">,</span> dir <span style="color: #00F;">||</span> <span style="color: #F00;">'/'</span> <span style="color: #00F;">||</span> errfile<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
   xmlparser<span style="color: #00F;">.</span>setBaseDir<span style="color: #00F;">&#40;</span>p<span style="color: #00F;">,</span> dir<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
&nbsp;
<span style="color: #080; font-style: italic;">-- Fichier source</span>
   xmlparser<span style="color: #00F;">.</span>parse<span style="color: #00F;">&#40;</span>p<span style="color: #00F;">,</span> dir <span style="color: #00F;">||</span> <span style="color: #F00;">'/'</span> <span style="color: #00F;">||</span> inpfile<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
&nbsp;
<span style="color: #080; font-style: italic;">-- Document</span>
   doc <span style="color: #00F;">:=</span> xmlparser<span style="color: #00F;">.</span>getDocument<span style="color: #00F;">&#40;</span>p<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
&nbsp;
<span style="color: #080; font-style: italic;">-- Insertions des elements</span>
   insertElements<span style="color: #00F;">&#40;</span>doc<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
&nbsp;
<span style="color: #00F;">END</span> chargementXML<span style="color: #00F;">;</span>
<span style="color: #00F;">/</span></pre></div></div>

<p> This is the new contents of the table : </p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> personnes;
&nbsp;
NOM
<span style="color: #808080; font-style: italic;">------------------------------------------------------------</span>
PRENOM
<span style="color: #808080; font-style: italic;">------------------------------------------------------------</span>
Smith
Sarah
&nbsp;
Smith
Bob
&nbsp;
Smith
Joanne
&nbsp;
NOM
<span style="color: #808080; font-style: italic;">------------------------------------------------------------</span>
PRENOM
<span style="color: #808080; font-style: italic;">------------------------------------------------------------</span>
Smith
Jim
&nbsp;
Dupont
Jean
&nbsp;
Dupont
Robert
&nbsp;
NOM
<span style="color: #808080; font-style: italic;">------------------------------------------------------------</span>
PRENOM
<span style="color: #808080; font-style: italic;">------------------------------------------------------------</span>
Dupont
John
&nbsp;
Dupont
Gary
&nbsp;
<span style="color: #cc66cc;">8</span> rows selected<span style="color: #66cc66;">.</span></pre></div></div>

<p> With the documentation on oracle.com :<a href="http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_xmldo5.htm#1024279">http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_xmldo5.htm#1024279</a> , I&#8217;m sure that it&#8217;s possible to do fabulous things  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.guroot.com/?feed=rss2&amp;p=198&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guroot.com now available in english</title>
		<link>http://www.guroot.com/?p=194&amp;lang=en</link>
		<comments>http://www.guroot.com/?p=194&amp;#comments&amp;lang=en</comments>
		<pubDate>Fri, 02 Jan 2009 16:24:58 +0000</pubDate>
		<dc:creator>guroot</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://www.guroot.com/?p=194&amp;lang=en</guid>
		<description><![CDATA[Guroot.com is now available in english. Some section are still only available in french but soon, more will be traduced. Excuse my english, I&#8217;m French-Canadian and I&#8217;m learning.]]></description>
			<content:encoded><![CDATA[<p>Guroot.com is now available in english. Some section are still only available in french but soon, more will be traduced. Excuse my english, I&#8217;m French-Canadian and I&#8217;m learning.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guroot.com/?feed=rss2&amp;p=194&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# : How to call dynamically a generic method</title>
		<link>http://www.guroot.com/?p=102&amp;lang=en</link>
		<comments>http://www.guroot.com/?p=102&amp;#comments&amp;lang=en</comments>
		<pubDate>Wed, 29 Oct 2008 16:53:54 +0000</pubDate>
		<dc:creator>guroot</dc:creator>
				<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.guroot.com/?p=102&amp;lang=en</guid>
		<description><![CDATA[Recently, I encountered a problem in C#. I had to invoke a generic method but didn&#8217;t know which object would be in entry because I was going to seek it through reflection. So, I have a method that could be called, for example: public bool MyMethod&#60;T&#62;&#40;T x, Tx&#41; I want to call it but I [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I encountered a problem in C#. I had to invoke a generic method but didn&#8217;t know which object would be in entry because <span onmouseover="_tipon(this)" onmouseout="_tipoff()"> I was going to seek it through reflection.</span></p>
<p><span id="more-102"></span></p>
<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()">So, I have a method that could be called, for example:</span></p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"> public bool MyMethod<span style="color: #339933;">&lt;</span>T<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span>T x<span style="color: #339933;">,</span> Tx<span style="color: #009900;">&#41;</span></pre></div></div>

<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()">I want to call it but I do not know what is T.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()">T may be several different things depending on the rest of the code.</span><span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left;"></span> I cannot affect T with anythings.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()">The compiler will not accept, for example:<br />
</span></p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"> bool resultat <span style="color: #339933;">=</span> MyMethod<span style="color: #339933;">&lt;</span>this.<span style="color: #202020;">getType</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span>x<span style="color: #339933;">,</span>y<span style="color: #009900;">&#41;</span></pre></div></div>

<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()">After some research on google, I changed the code snippets that I found and it gave me this:</span></p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">    private object invokeGenericMethod<span style="color: #009900;">&#40;</span><span style="color: #993333;">string</span> typeName<span style="color: #339933;">,</span><span style="color: #993333;">string</span> methodName<span style="color: #339933;">,</span>object<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> parameters<span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
&nbsp;
            Type type <span style="color: #339933;">=</span> System.<span style="color: #202020;">Type</span>.<span style="color: #202020;">GetType</span><span style="color: #009900;">&#40;</span>typeName<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            MethodInfo method <span style="color: #339933;">=</span> this.<span style="color: #202020;">GetType</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #202020;">GetMethod</span><span style="color: #009900;">&#40;</span>methodName<span style="color: #339933;">,</span>
                BindingFlags.<span style="color: #202020;">Public</span> <span style="color: #339933;">|</span> BindingFlags.<span style="color: #202020;">Instance</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            MethodInfo genericMethod <span style="color: #339933;">=</span> method.<span style="color: #202020;">MakeGenericMethod</span><span style="color: #009900;">&#40;</span>type<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">return</span> genericMethod.<span style="color: #202020;">Invoke</span><span style="color: #009900;">&#40;</span>this<span style="color: #339933;">,</span> parameters<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span></pre></div></div>

<p><span style="background-color: #e6ecf9;" onmouseover="_tipon(this)" onmouseout="_tipoff()">So, to invoke dynamically, I can now have something like:</span></p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">object<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> invokeArgs <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span> <span style="color: #ff0000;">&quot;parameter1&quot;</span><span style="color: #339933;">,</span><span style="color: #ff0000;">&quot;parameter2&quot;</span><span style="color: #339933;">,</span><span style="color: #ff0000;">&quot;etc&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
object result <span style="color: #339933;">=</span> InvokeGenericMethod<span style="color: #009900;">&#40;</span>this.<span style="color: #202020;">GetType</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #202020;">Name</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;MyMethod&quot;</span><span style="color: #339933;">,</span> invokeArgs<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()">I use the first parameter of InvokeGenericMethod to pass the type of class.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()">So the code will always be adapted from the class from which it is called.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guroot.com/?feed=rss2&amp;p=102&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo : Install Oracle 11g under CentOS release 5.2</title>
		<link>http://www.guroot.com/?p=96&amp;lang=en</link>
		<comments>http://www.guroot.com/?p=96&amp;#comments&amp;lang=en</comments>
		<pubDate>Thu, 23 Oct 2008 00:57:09 +0000</pubDate>
		<dc:creator>guroot</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.guroot.com/?p=96&amp;lang=en</guid>
		<description><![CDATA[// This is a copy of the post &#8220;Installing Oracle 11g on Fedora 8&#8243; (in french only for the moment) // Unless he has some changes for // CentOS 5.2 CentOS is a Linux distribution that I have discovered only recently. It is, in short, an independent project that downloads the sources Redhat, withdraw all [...]]]></description>
			<content:encoded><![CDATA[<address><span style="color: #ff0000;">// This is a copy of the post  &#8220;Installing Oracle 11g on Fedora 8&#8243;  (in french only for the moment)</span></address>
<address><span style="color: #ff0000;">// Unless he has some changes for</span></address>
<address><span style="color: #ff0000;">// CentOS 5.2</span></address>
<p><span id="more-96"></span></p>
<p>CentOS is a Linux distribution that I have discovered only recently. It is, in short, an independent project that downloads the sources Redhat, withdraw all references to Redhat, to compile and distribute them free of charge. This gives us a distribution around nearest of Redhat than even Fedora. Very useful for testing Oracle DB on a free platform. It remains a distribution that is not officially supported.</p>
<p>First, I want to say that you should not install Oracle 11g under CentOS except in educational and testing purposes. Oracle is very explicit in its documentation : It  should not be installed under a Linux platforms non-supported.</p>
<p>That being said, I will briefly describe my 11g installation in a machine under CentOS x86..:)</p>
<p>First step, download from otn.oracle.com and and move it on the machine CentOS. Then read the installation documentation from the same site (look for the &#8220;minimum requierement&#8221;) and proceed as follows:</p>
<p>1 &#8211; Check for packages required:</p>
<p><span style="color: #ff0000;">Here is a command so you will not have to retype everything. Just copy and paste. </span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-q</span> binutils
compat-libstdc++-<span style="color: #000000;">33</span>
elfutils-libelf
elfutils-libelf-devel
glibc
glibc-common
glibc-devel
glibc-headers
<span style="color: #c20cb9; font-weight: bold;">gcc</span>
gcc-c++
libaio
libaio-devel
libgcc
libstdc++
libstdc++-devel
<span style="color: #c20cb9; font-weight: bold;">make</span>
sysstat
unixODBC
unixODBC-devel</pre></div></div>

<p>If  some packages are missing, it is very easy to add them with the Package Manager of CentOS. Call it whith this command:</p>
<p>pirut &#038;</p>
<pre style="margin-bottom: 0.5cm;"><img src="../images/blog/scr2.jpg" border="0" alt="" width="471" height="353" align="bottom" /></pre>
<p><span style="color: #ff0000;">Also, it is possible to use yum which I think is faster to use. </span></p>
<p>3 &#8211; Create groups and users needed.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/sbin/groupadd oinstall</span>
<span style="color: #666666; font-style: italic;"># /usr/sbin/groupadd dba</span>
<span style="color: #666666; font-style: italic;"># /usr/sbin/useradd -g oinstall -G dba oracle</span></pre></div></div>

<p>4 &#8211; Modify system settings</p>
<p>Add in /etc/ sysctl.conf</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">kernel.shmall = <span style="color: #000000;">2097152</span>
kernel.shmmax = <span style="color: #000000;">2147483648</span>
kernel.shmmni = <span style="color: #000000;">4096</span>
kernel.sem = <span style="color: #000000;">250</span> <span style="color: #000000;">32000</span> <span style="color: #000000;">100</span> <span style="color: #000000;">128</span>
fs.file-max = <span style="color: #000000;">65536</span>
net.ipv4.ip_local_port_range = <span style="color: #000000;">1024</span> <span style="color: #000000;">65000</span>
net.core.rmem_default = <span style="color: #000000;">4194304</span>
net.core.rmem_max = <span style="color: #000000;">4194304</span>
net.core.wmem_default = <span style="color: #000000;">262144</span>
net.core.wmem_max = <span style="color: #000000;">262144</span></pre></div></div>

<p>Then proceed with the following command so the<br />
system will make effective the change  in /etc/sysctl.conf</p>
<pre style="margin-bottom: 0.5cm;">/sbin/sysctl -p</pre>
<p>Add the following lines in  /etc/security/limits.conf file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">oracle soft nproc <span style="color: #000000;">2047</span>
oracle hard nproc <span style="color: #000000;">16384</span>
oracle soft nofile <span style="color: #000000;">1024</span>
oracle hard nofile <span style="color: #000000;">65536</span></pre></div></div>

<p>Add the following lines in /etc/pam.d/login file</p>
<pre> /lib/security/pam_limits.so
session required pam_limits.so</pre>
<p>Add the following lines in . Bash_profile for Oracle User</p>
<pre>(/home/oracle/.bash_profile) :
ulimit -u 16384 -n 65536
umask 022</pre>
<p>5 &#8211; Start Installation</p>
<address><span style="color: #ff0000;">In the directory where you unpack unzip with Oracle, run Oracle as a user (su &#8211; oracle):</span></address>
<address><span style="color: #ff0000;">You may need to provide access to the X environment to your users.</span></address>
<address><span style="color: #ff0000;">For lazy in test environment (so it does not care about security):</span></address>
<p><span style="color: #ff0000;"><strong>As root :</strong></span></p>
<pre style="margin-bottom: 0.5cm;">xhost+</pre>
<p><strong>as  oracle user </strong>:</p>
<pre>Display=localhost:0
./runInstaller &#038;</pre>
<p><span style="color: #ff0000;">An error is possible as follows: </span></p>
<pre style="margin-bottom: 0.5cm;">xhost : unable to open Display</pre>
<p>It is easily corrected by adding (or modifying) the folowing line ot the file :<br />
/etc/gdm/custom.conf</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>Security<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>span <span style="color: #007800;">style</span>=<span style="color: #ff0000;">&quot;font-family: Lucida Grande;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">DisallowTCP</span>=<span style="color: #c20cb9; font-weight: bold;">false</span><span style="color: #000000; font-weight: bold;">&lt;/</span>span<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Then reboot Gnome</p>
<pre style="margin-bottom: 0.5cm;">/usr/sbin/gdm-restart</pre>
<p><span style="color: #ff0000;">It is also possible that this error occurs: </span></p>
<pre style="margin-bottom: 0.5cm;">java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.</pre>
<p><span style="color: #ff0000;">And that does not install &#8230;</span></p>
<p>This is a bug with the package libxcb</p>
<p>An upgrade of it and the problem should be a thing of the past.</p>
<pre style="margin-bottom: 0.5cm;">yum install libxcp</pre>
<p><img src="../images/blog/scr3.jpg" border="0" alt="" width="420" height="326" align="bottom" /></p>
<p>You can uncheck the creation of the Starter Database and create a database later with the method of choice (I did).</p>
<p><img src="../images/blog/scr4.jpg" border="0" alt="" width="422" height="329" align="bottom" /></p>
<p>the install continue &#8230;</p>
<p><img src="../images/blog/scr5.jpg" border="0" alt="" width="424" height="330" align="bottom" /></p>
<p>Normally, all the prerequisites should be managed successfully. If this is not the case, proceed with the appropriate correction.</p>
<p>The following error may occur :</p>
<address><span style="color: #3366ff;">#</span></address>
<address># An unexpected error has been detected by HotSpot Virtual Machine:</address>
<address>#</address>
<address># SIGSEGV (0xb) at pc=0xb7e8ad93, pid=13731, tid=3085035200</address>
<address>#</address>
<address># Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)</address>
<address># Problematic frame:</address>
<address># C [libc.so.6+0x6ad93] index+0&#215;63</address>
<address>#</address>
<address># An error report file with more information is saved as hs_err_pid13731.log</address>
<address>#</address>
<address># If you would like to submit a bug report, please visit:</address>
<address># http://java.sun.com/webapps/bugreport/crash.jsp</address>
<address>#</address>
<p>You just have to change the hostname of you server from localhost to anything. Modifiy it in /etc/hosts, /etc/sysconfig/network and use the command <em>hostname </em>. Click Retry in the Oracle Installer and it should be ok.</p>
<p>Finally, the Oracle Installer will ask to execute to script as root and the installation will finish.</p>
<p><img src="/images/blog/scr9.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guroot.com/?feed=rss2&amp;p=96&amp;lang=en</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
