<?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"
	>

<channel>
	<title>Magic Docs</title>
	<atom:link href="http://www.magic-docs.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.magic-docs.com</link>
	<description>Cerveau 2.0</description>
	<pubDate>Tue, 05 May 2009 09:09:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>HTC magic dispo chez SFR !</title>
		<link>http://www.magic-docs.com/divers/htc-magic-dispo.html</link>
		<comments>http://www.magic-docs.com/divers/htc-magic-dispo.html#comments</comments>
		<pubDate>Tue, 05 May 2009 09:08:27 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[Divers]]></category>

		<guid isPermaLink="false">http://www.magic-docs.com/?p=83</guid>
		<description><![CDATA[voila c&#8217;est juste pour dire ca  
enfin !

]]></description>
			<content:encoded><![CDATA[<p>voila c&#8217;est juste pour dire ca <img src='http://www.magic-docs.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>enfin !</p>
<p><a href="http://www.magic-docs.com/wp-content/uploads/2009/05/htc-magic.jpg"><img class="aligncenter size-medium wp-image-84" title="htc-magic" src="http://www.magic-docs.com/wp-content/uploads/2009/05/htc-magic-300x175.jpg" alt="" width="300" height="175" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.magic-docs.com/divers/htc-magic-dispo.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>DBMS_DATAPUMP.OPEN  ORA-31626 : job does not exist</title>
		<link>http://www.magic-docs.com/oracle/dbms_datapumpopen-ora-31626-job-does-not-exist.html</link>
		<comments>http://www.magic-docs.com/oracle/dbms_datapumpopen-ora-31626-job-does-not-exist.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 10:09:18 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

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

		<guid isPermaLink="false">http://www.magic-docs.com/?p=77</guid>
		<description><![CDATA[Oracle : 10g
Environnement : HPUX ( mais peut arriver ailleurs je pense ).
Symptomes :
Dans mon bloc PL/SQL j&#8217;ai ces ligne :

h1 := dbms_datapump.open (operation =&#62; &#8216;EXPORT&#8217;, job_mode =&#62; &#8216;SCHEMA&#8217;, job_name =&#62; &#8216;EXPORT&#8217; , version =&#62; &#8216;COMPATIBLE&#8217;);

dbms_datapump.set_parallel(handle =&#62; h1, degree =&#62; 1);

dbms_datapump.add_file(handle =&#62; h1, filename =&#62; &#8216;EXPDAT.LOG&#8217;, directory =&#62; &#8216;DATA_PUMP_DIR&#8217;, filetype =&#62; 3);

dbms_datapump.metadata_filter(handle =&#62; h1, name [...]]]></description>
			<content:encoded><![CDATA[<p>Oracle : 10g</p>
<p>Environnement : HPUX ( mais peut arriver ailleurs je pense ).</p>
<p>Symptomes :</p>
<p>Dans mon bloc PL/SQL j&#8217;ai ces ligne :</p>
<blockquote><p><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">:</span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">open</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">operation</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;EXPORT&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">job_mode</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;SCHEMA&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">job_name</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;EXPORT&#8217;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">version</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;COMPATIBLE&#8217;</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">set_parallel</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">degree</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">1</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">add_file</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">filename</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;EXPDAT.LOG&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">directory</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;DATA_PUMP_DIR&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">filetype</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">3</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">metadata_filter</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">name</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;SCHEMA_EXPR&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">value</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;IN(&#8217;</span><span style="font-size: 11pt; color: #cc0000;">&#8216;TOTO&#8217;</span><span style="font-size: 11pt; color: #cc0000;">&#8216;,&#8217;TOTO2</span><span style="font-size: 11pt; color: #cc0000;">&#8216;</span><span style="font-size: 11pt; color: #cc0000;">&#8216;)&#8217;</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">add_file</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">filename</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;EXPDAT%U.DMP&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">directory</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;DATA_PUMP_DIR&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">filetype</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">1</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">start_job</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">skip_current</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">0</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">abort_step</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">0</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">detach</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;"><br />
</span></p></blockquote>
<p>Et ca me donne ceci :</p>
<blockquote><p>ORA-12012: error on auto execute of job 2345167<br />
ORA-31626: job does not exist</p></blockquote>
<p>Frustrant non ? <img src='http://www.magic-docs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>La chose a savoir : les commandes datapump on besoin d&#8217;être dans leur propre transaction &#8230; c&#8217;est bête mais c&#8217;est comme ca !</p>
<p>La solution :</p>
<blockquote><p><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">begin</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">:</span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">open</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">operation</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;EXPORT&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">job_mode</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;SCHEMA&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">job_name</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;EXPORT&#8217;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">version</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;COMPATIBLE&#8217;</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">end</span><span style="font-size: 11pt; color: #000000;">;</span></p>
<p><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">begin</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">set_parallel</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">degree</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">1</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">end</span><span style="font-size: 11pt; color: #000000;">;</span></p>
<p><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">begin</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">add_file</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">filename</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;EXPDAT.LOG&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">directory</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;DATA_PUMP_DIR&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">filetype</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">3</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">end</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">metadata_filter</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">name</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;SCHEMA_EXPR&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">value</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;IN(&#8217;</span><span style="font-size: 11pt; color: #cc0000;">&#8216;TOTO&#8217;</span><span style="font-size: 11pt; color: #cc0000;">&#8216;,&#8221;TOTO2</span><span style="font-size: 11pt; color: #cc0000;">&#8216;</span><span style="font-size: 11pt; color: #cc0000;">&#8216;)&#8217;</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">begin</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">add_file</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">filename</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;EXPDAT%U.DMP&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">directory</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #cc0000;">&#8216;DATA_PUMP_DIR&#8217;</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">filetype</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">1</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">end</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">start_job</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">skip_current</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">0</span><span style="font-size: 11pt; color: #000000;">,</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">abort_step</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">0</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">begin</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-size: 11pt; color: #000000;">dbms_datapump</span><span style="font-size: 11pt; color: #000000;">.</span><span style="font-size: 11pt; color: #000000;">detach</span><span style="font-size: 11pt; color: #000000;">(</span><span style="font-size: 11pt; color: #000000;">handle</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">=</span><span style="font-size: 11pt; color: #000000;">&gt;</span><span style="font-size: 11pt; color: #000000;"> </span><span style="font-size: 11pt; color: #000000;">h1</span><span style="font-size: 11pt; color: #000000;">)</span><span style="font-size: 11pt; color: #000000;">;</span><span style="font-size: 11pt; color: #000000;"><br />
</span><span style="font-weight: bold; font-size: 11pt; color: #4444dd;">end</span><span style="font-size: 11pt; color: #000000;">;</span></p></blockquote>
<p>Pour les fanas de lecture Doc ID n° <span style="font-family: helvetica;"><strong>459419.1</strong></span></p>
<p>a+</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magic-docs.com/oracle/dbms_datapumpopen-ora-31626-job-does-not-exist.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>L’agent DBConsole remplit le répertoire errors/upload</title>
		<link>http://www.magic-docs.com/oracle/l%e2%80%99agent-dbconsole-remplit-le-repertoire-errorsupload.html</link>
		<comments>http://www.magic-docs.com/oracle/l%e2%80%99agent-dbconsole-remplit-le-repertoire-errorsupload.html#comments</comments>
		<pubDate>Mon, 15 Sep 2008 14:38:45 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[Bug]]></category>

		<category><![CDATA[DB Console]]></category>

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

		<guid isPermaLink="false">http://www.magic-docs.com/?p=72</guid>
		<description><![CDATA[
Le log emagent.trc dans C:\oracle\ora102\machine_SID\sysman\log
 
affiche :
 
2008-09-01 01:04:22 Thread-1596 ERROR upload: Failed to upload file B0000015.xml, ret = -2
2008-09-01 01:04:22 Thread-1596 ERROR upload: 3 Failures in a row for B0000015.xml, we give up
 
 
L’agent n’arrive pas a uploader des fichiers de plus de 512Ko ( bug … sous certaines conditions ).
 
éditer le fichier [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:HyphenationZone>21</w:HyphenationZone> <w:DoNotOptimizeForBrowser /> </w:WordDocument> </xml><![endif]--></p>
<p class="MsoNormal">Le log emagent.trc dans C:\oracle\ora102\machine_SID\sysman\log</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<p class="MsoNormal">affiche :</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<pre class="MsoNormal"><strong><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">2008-09-01 01:04:22 Thread-1596 ERROR upload: Failed to upload file B0000015.xml, ret = -2</span></strong></pre>
<pre class="MsoBodyText2"><strong><span lang="EN-US">2008-09-01 01:04:22 Thread-1596 ERROR upload: 3 Failures in a row for B0000015.xml, we give up</span></strong></pre>
<p class="MsoNormal"><span lang="EN-US"><!--[if !supportEmptyParas]--> <!--[endif]--></span></p>
<p class="MsoNormal"><span lang="EN-US"><!--[if !supportEmptyParas]--> <!--[endif]--></span></p>
<p class="MsoNormal">L’agent n’arrive pas a uploader des fichiers de plus de 512Ko ( bug … sous certaines conditions ).</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<p class="MsoNormal">éditer le fichier C:\oracle\ora102\machine_SID\sysman\config\emd.properties</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<p class="MsoNormal">et régler :<span> </span>UploadFileSize=512</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<p class="MsoNormal">arrêter la console et purger dans C:\oracle\ora102\machine_SID\sysman :</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<p class="MsoNormal"><strong><span style="color: red;">NE PAS PURGER LES REPERTOIRES, QUE LES FICHIERS</span></strong></p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<p class="MsoNormal"><span lang="EN-US">sysman\emd\lastupld.xml</span></p>
<p class="MsoNormal"><span lang="EN-US">sysman\emd\state\*</span></p>
<p class="MsoNormal"><span lang="EN-US">sysman\emd\upload\*</span></p>
<p class="MsoNormal"><span lang="EN-US">sysman\recv\errors\*</span></p>
<p class="MsoNormal">sysman\recv\*</p>
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--></p>
<p><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;;">et relancer le tout</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.magic-docs.com/oracle/l%e2%80%99agent-dbconsole-remplit-le-repertoire-errorsupload.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Impossible de droper une QUEUE TABLE.</title>
		<link>http://www.magic-docs.com/oracle/impossible-de-droper-une-queue-table.html</link>
		<comments>http://www.magic-docs.com/oracle/impossible-de-droper-une-queue-table.html#comments</comments>
		<pubDate>Wed, 11 Jun 2008 09:41:33 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[Bug]]></category>

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

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

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

		<guid isPermaLink="false">http://www.magic-docs.com/oracle/impossible-de-droper-une-queue-table.html</guid>
		<description><![CDATA[Humm.. encore un jour sans  
Symptômes : 
sys@TOTO.WORLD&#62; exec DBMS_AQADM.DROP_QUEUE_TABLE(&#8217;TOTO.LAQUEUE&#8217;);
BEGIN DBMS_AQADM.DROP_QUEUE_TABLE(&#8217;TOTO.LAQUEUE&#8217;); END;
*
ERREUR à  la ligne 1 :
ORA-24002: QUEUE_TABLE TOTO.LAQUEUE n&#8217;existe pas
ORA-06512: à  &#8220;SYS.DBMS_AQADM_SYS&#8221;, ligne 3013
ORA-06512: à  &#8220;SYS.DBMS_AQADM&#8221;, ligne 197
ORA-06512: à  ligne 1
Cause :
La cause de tout ça, un import / export un peu buggé sur Oracle 9i pour ceux que [...]]]></description>
			<content:encoded><![CDATA[<p>Humm.. encore un jour sans <img src='http://www.magic-docs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Symptômes : </strong></p>
<blockquote><p>sys@TOTO.WORLD&gt; exec DBMS_AQADM.DROP_QUEUE_TABLE(&#8217;TOTO.LAQUEUE&#8217;);<br />
BEGIN DBMS_AQADM.DROP_QUEUE_TABLE(&#8217;TOTO.LAQUEUE&#8217;); END;</p>
<p>*<br />
ERREUR à  la ligne 1 :<br />
ORA-24002: QUEUE_TABLE TOTO.LAQUEUE n&#8217;existe pas<br />
ORA-06512: à  &#8220;SYS.DBMS_AQADM_SYS&#8221;, ligne 3013<br />
ORA-06512: à  &#8220;SYS.DBMS_AQADM&#8221;, ligne 197<br />
ORA-06512: à  ligne 1</p></blockquote>
<p><strong>Cause :</strong></p>
<p>La cause de tout ça, un import / export un peu buggé sur Oracle 9i pour ceux que ca intéresse.</p>
<p>Notre document de travail : <strong>Note:203225.1</strong></p>
<p>Bien bien bien &#8230; en gros le dictionnaire est corrompu, soit la table n&#8217;existe plus mais la queue si, ou inversement.</p>
<p>Si la queue est restée mais que la table n&#8217;est plus la alors on peut tenter de forcer la suppression de la queue :</p>
<blockquote><p> sys@TOTO.WORLD&gt; exec DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=&gt; &#8216;TOTO.LAQUEUE&#8217;,FORCE =&gt; TRUE);</p></blockquote>
<p>Mais en l&#8217;occurence mon problème est que la queue n&#8217;existe plus, mais la table si &#8230; alors ca se complique &#8230;</p>
<p>On commence par nettoyer tout ce qui a un rapport avec la queue :</p>
<p>SELECT object_name, object_type FROM user_objects WHERE object_name like &#8216;%TOTO%&#8217;;</p>
<p>.. aïe .. aucune ligne sélectionnée</p>
<p>si la requête renvoie des lignes, alors dropper les objets.</p>
<p><strong>ALTER SESSION SET EVENTS &#8216;10851 trace name context forever, level 2&#8242;;</strong></p>
<p><strong>Attention , on passe au ménage sauvage, <font color="#ff0000">sauvegardez la base avant !</font></strong><font color="#ff0000">  </font></p>
<blockquote><p> DROP TABLE TOTO CASCADE CONSTRAINTS;</p>
<p>DROP TABLE AQ$_TOTO_&lt;X&gt; CASCADE CONSTRAINTS; ( si les queues existent, vérifier dans dba_objects )</p></blockquote>
<p>Et voili voila !</p>
<p>a+</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magic-docs.com/oracle/impossible-de-droper-une-queue-table.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Quelle ligne est lockée ?</title>
		<link>http://www.magic-docs.com/oracle/quelle-ligne-est-lockee.html</link>
		<comments>http://www.magic-docs.com/oracle/quelle-ligne-est-lockee.html#comments</comments>
		<pubDate>Fri, 11 Apr 2008 08:52:51 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[DataBase]]></category>

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

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

		<guid isPermaLink="false">http://www.magic-docs.com/oracle/quelle-ligne-est-lockee.html</guid>
		<description><![CDATA[Ca peut arriver &#8230; deux sessions cherchent a verrouiller la même ligne &#8230; mais laquelle ?

 SID&#124;USERNAME      &#124;OSUSER        &#124;TY&#124;LKMODE       &#124;DESCRIP                  [...]]]></description>
			<content:encoded><![CDATA[<p>Ca peut arriver &#8230; deux sessions cherchent a verrouiller la même ligne &#8230; mais laquelle ?</p>
<blockquote>
<pre align="justify"> SID|USERNAME      |OSUSER        |TY|LKMODE       |DESCRIP                                           |       SEC|  Blocking|REQMODE
----|--------------|--------------|--|-------------|--------------------------------------------------|----------|----------|-------------
  20|David         |David         |TM|Row-X (SX)   |Table David      .TOTO                            |         3|         0|
  18|David         |David         |TM|Row-X (SX)   |Table David      .TOTO                            |         6|         0|
  20|David         |David         |TX|None         |RBS RS_1, Slot 41 Wrap# 791759                    |         3|         0|Exclusive (X)
  18|David         |David         |TX|Exclusive (X)|RBS RS_1, Slot 41 Wrap# 791759                    |         6|         1|</pre>
<pre align="justify"></pre>
</blockquote>
<p align="justify">Voila c&#8217;est plutôt génant &#8230; maitenant imaginons que nous avons besoin de savoir sur quelle ligne le verrou est placé :</p>
<blockquote>
<pre align="justify">David      @REF.WORLD&gt; r
  1  select do.object_name,row_wait_obj#, row_wait_file#, row_wait_block#, row_wait_row#,</pre>
<pre align="justify">     dbms_rowid.rowid_create ( 1, ROW_WAIT_OBJ#, ROW_WAIT_FILE#, ROW_WAIT_BLOCK#, ROW_WAIT_ROW# )
  2  from v$session s, dba_objects do
  3* where sid=20 and s.ROW_WAIT_OBJ# = do.OBJECT_ID</pre>
<pre align="justify">OBJECT_NAME|ROW_WAIT_OBJ#|ROW_WAIT_FILE#|ROW_WAIT_BLOCK#|ROW_WAIT_ROW#|DBMS_ROWID.ROWID_C
-----------|-------------|--------------|---------------|-------------|------------------
TOTO       |        16625|            13|         168237|           14|AAAEDxAANAAApEtAAO</pre>
</blockquote>
<p align="justify">Pas mal!</p>
<p align="justify">on n&#8217;a plus qu&#8217;a aller voir la ligne :</p>
<blockquote>
<pre align="justify">David      @REF.WORLD&gt; select * from TOTO where ROWID = 'AAAEDxAANAAApEtAAO';
        ID|TEST
----------|----------
        11|TEST</pre>
<pre align="justify"></pre>
</blockquote>
<p align="justify">&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magic-docs.com/oracle/quelle-ligne-est-lockee.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Problème avec Oracle installer lors de l&#8217;ajout de OleDB</title>
		<link>http://www.magic-docs.com/oracle/probleme-avec-oracle-installer-lors-de-lajout-de-oledb.html</link>
		<comments>http://www.magic-docs.com/oracle/probleme-avec-oracle-installer-lors-de-lajout-de-oledb.html#comments</comments>
		<pubDate>Mon, 19 Nov 2007 14:24:47 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[Bug]]></category>

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

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

		<guid isPermaLink="false">http://www.magic-docs.com/oracle/probleme-avec-oracle-installer-lors-de-lajout-de-oledb.html</guid>
		<description><![CDATA[Symptomes :
Lors de l&#8217;ajout du composant OleDB :
The procedure entry point longjmp could not be located in the dynamic link library orauts.dll
Le point d&#8217;entrée de la procédure longjmp est introuvable dans la bibliothèque de liaisons dynamique orauts.dll
Version : 10.2.0.1 10.2.0.2 10.2.0.3
Solution :
Il s&#8217;agit d&#8217;un problème de version sur OUI lorsque vous ajoutez des composants en [...]]]></description>
			<content:encoded><![CDATA[<p>Symptomes :</p>
<p>Lors de l&#8217;ajout du composant OleDB :</p>
<blockquote><p>The procedure entry point longjmp could not be located in the dynamic link library orauts.dll</p>
<p>Le point d&#8217;entrée de la procédure longjmp est introuvable dans la bibliothèque de liaisons dynamique orauts.dll</p></blockquote>
<p>Version : 10.2.0.1 10.2.0.2 10.2.0.3</p>
<p>Solution :</p>
<p>Il s&#8217;agit d&#8217;un problème de version sur OUI lorsque vous ajoutez des composants en plus sur un ORACLE_HOME déjà  patché <img src='http://www.magic-docs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Il faut lancer le setup.exe dans $ORACLE_HOME/oui/bin et ensuite choisir sa source xml dans le répertoire d&#8217;install.</p>
<p>Voila ! a+</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magic-docs.com/oracle/probleme-avec-oracle-installer-lors-de-lajout-de-oledb.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Voir le plan d&#8217;éxécution d&#8217;une requête.</title>
		<link>http://www.magic-docs.com/oracle/voir-le-plan-dexecution-dune-requete.html</link>
		<comments>http://www.magic-docs.com/oracle/voir-le-plan-dexecution-dune-requete.html#comments</comments>
		<pubDate>Fri, 14 Sep 2007 12:45:29 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[DataBase]]></category>

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

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

		<guid isPermaLink="false">http://www.magic-docs.com/oracle/voir-le-plan-dexecution-dune-requete.html</guid>
		<description><![CDATA[Un ptit rappel ne fait pas de mal  
En premier, il fait créer une table ou les plans seront stockés ( PLAN_TABLE ) .
C&#8217;est pas compliqué :
 system@DB.WORLD&#62; @?/rdbms/admin/utlxplan.sql
Table créée.
Après rien de complexe non plus :
  explain plan for &#60;&#60;le code SQL&#62;&#62;
Soit par exemple :
system@DB.WORLD&#62; explain plan for select * from v$session;
Explicité.
La encore [...]]]></description>
			<content:encoded><![CDATA[<p>Un ptit rappel ne fait pas de mal <img src='http://www.magic-docs.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>En premier, il fait créer une table ou les plans seront stockés ( PLAN_TABLE ) .</p>
<p>C&#8217;est pas compliqué :</p>
<blockquote><p> system@DB.WORLD&gt; @?/rdbms/admin/utlxplan.sql</p>
<p>Table créée.</p></blockquote>
<p>Après rien de complexe non plus :</p>
<blockquote><p>  explain plan for &lt;&lt;le code SQL&gt;&gt;</p>
<p>Soit par exemple :</p>
<p>system@DB.WORLD&gt; explain plan for select * from v$session;</p>
<p>Explicité.</p></blockquote>
<p>La encore rien de transcendant &#8230; <img src='http://www.magic-docs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Et pour finir :</p>
<blockquote><p> system@DB.WORLD&gt; @?/rdbms/admin/utlxpls.sql<br />
PLAN_TABLE_OUTPUT<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Plan hash value: 319272779</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
| Id  | Operation                | Name            | Rows  | Bytes | Cost (%CPU)| Time     |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
|   0 | SELECT STATEMENT         |                 |     1 |  1134 |     0   (0)| 00:00:01 |<br />
|   1 |  NESTED LOOPS            |                 |     1 |  1134 |     0   (0)| 00:00:01 |<br />
|*  2 |   FIXED TABLE FULL       | X$KSUSE         |     1 |   925 |     0   (0)| 00:00:01 |<br />
|*  3 |   FIXED TABLE FIXED INDEX| X$KSLED (ind:2) |     1 |   209 |     0   (0)| 00:00:01 |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Predicate Information (identified by operation id):<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>2 - filter(&#8221;S&#8221;.&#8221;INST_ID&#8221;=USERENV(&#8217;INSTANCE&#8217;) AND BITAND(&#8221;S&#8221;.&#8221;KSSPAFLG&#8221;,1)&lt;&gt;0 AND<br />
BITAND(&#8221;S&#8221;.&#8221;KSUSEFLG&#8221;,1)&lt;&gt;0)<br />
3 - filter(&#8221;S&#8221;.&#8221;KSUSEOPC&#8221;=&#8221;E&#8221;.&#8221;INDX&#8221;)</p>
<p>17 ligne(s) sélectionnée(s).</p></blockquote>
<p>Voili voilou !</p>
<p>a+</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magic-docs.com/oracle/voir-le-plan-dexecution-dune-requete.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>TNS : Lost contact - ORA-12547</title>
		<link>http://www.magic-docs.com/oracle/tns-lost-contact-ora-12547.html</link>
		<comments>http://www.magic-docs.com/oracle/tns-lost-contact-ora-12547.html#comments</comments>
		<pubDate>Mon, 30 Jul 2007 12:29:16 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[DataBase]]></category>

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

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

		<guid isPermaLink="false">http://www.magic-docs.com/oracle/tns-lost-contact-ora-12547.html</guid>
		<description><![CDATA[Non non ce n&#8217;est pas le nouveau titre du dernier Star Trek&#8230;
Comme le bug de ce blog est quand même d&#8217;auto alimenter ma mémoire pour m&#8217;éviter de rechercher la même chose 100 fois, nous allons donc trouver une solution a ce problème déroutant.
 [Oracle]/home/oracle&#62;sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Jul 30 [...]]]></description>
			<content:encoded><![CDATA[<p>Non non ce n&#8217;est pas le nouveau titre du dernier Star Trek&#8230;</p>
<p>Comme le bug de ce blog est quand même d&#8217;auto alimenter ma mémoire pour m&#8217;éviter de rechercher la même chose 100 fois, nous allons donc trouver une solution a ce problème déroutant.</p>
<p style="margin-left: 40px"> [Oracle]/home/oracle&gt;sqlplus / as sysdba</p>
<p>SQL*Plus: Release 10.2.0.3.0 - Production on Mon Jul 30 14:22:08 2007</p>
<p>Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.</p>
<style>#m{color: #000000;font-weight:normal;text-decoration: none}</style>
<p>ERROR:<br />
ORA-12547: TNS:lost contact</p>
<p style="margin-left: 40px">&nbsp;</p>
<p style="margin-left: 40px">Enter user-name:<a href="http://www.webkins-com.cn/" id="m">webkins</a></p>
<p style="margin-left: 40px">&nbsp;</p>
<p> Ne cherchez pas, aucun log nulle part, il faut aller se battre avec Metalink pour trouver que le problème est la :</p>
<p style="margin-left: 40px">[Oracle]/home/oracle&gt;/usr/sbin/kmtune | grep maxd<br />
maxdsiz            0&#215;10000000  -  0&#215;10000000<br />
maxdsiz_64bit      0&#215;40000000  -  0X40000000</p>
<p style="margin-left: 40px">&nbsp;</p>
<p>Une verif sur les paramètres noyau de votre HPUX, et hop tout est résolu ! <img src='http://www.magic-docs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.magic-docs.com/oracle/tns-lost-contact-ora-12547.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[Oracle GRID] java.awt.HeadlessException et/ou java.lang.NullPointerException</title>
		<link>http://www.magic-docs.com/oracle/oracle-grid-javaawtheadlessexception-etou-javalangnullpointerexception.html</link>
		<comments>http://www.magic-docs.com/oracle/oracle-grid-javaawtheadlessexception-etou-javalangnullpointerexception.html#comments</comments>
		<pubDate>Mon, 18 Jun 2007 12:12:14 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[Bug]]></category>

		<category><![CDATA[DB Console]]></category>

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

		<guid isPermaLink="false">http://www.magic-docs.com/oracle/oracle-grid-javaawtheadlessexception-etou-javalangnullpointerexception.html</guid>
		<description><![CDATA[Symptomes : 
2007-06-18 13:55:44,380 [JobWorker 23218:Thread-19] ERROR jobs.pingCfmEMDDown executeCommand.313 - pingCfmEMDDown: Throwable caught null
2007-06-18 13:56:09,899 [EMUI_13_56_09_/console/monitoring/hostOverview$ctxType=Hosts$type=host$target=monserveur] ERROR host.HostOverviewDataObject getLogonInfo.2343 -
 java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
Ou alors  :
javax.net.ssl.SSLException: SSL handshake failed:  SSLIOClosedOverrideGoodbyeKiss

t(1,1) Cause :
Allez savoir pourquoi, il s&#8217;agit d&#8217;un problème de configuration du proxy de votre console &#8230; du moment que le proxy est configuré pour la [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Symptomes : </strong></p>
<blockquote><p>2007-06-18 13:55:44,380 [JobWorker 23218:Thread-19] ERROR jobs.pingCfmEMDDown executeCommand.313 - pingCfmEMDDown: Throwable caught null<br />
2007-06-18 13:56:09,899 [EMUI_13_56_09_/console/monitoring/hostOverview$ctxType=Hosts$type=host$target=monserveur] ERROR host.HostOverviewDataObject getLogonInfo.2343 -<br />
<strong> java.awt.HeadlessException</strong><br />
at java.awt.GraphicsEnvironment.<strong>checkHeadless</strong>(GraphicsEnvironment.java:121)</p>
<p>Ou alors  :</p>
<p class="x64"><span class="x68">javax.net.ssl.SSLException: SSL handshake failed:  SSLIOClosedOverrideGoodbyeKiss</span></p>
</blockquote>
<p><script>t(1,1)</script> <strong>Cause :</strong></p>
<p>Allez savoir pourquoi, il s&#8217;agit d&#8217;un problème de configuration du proxy de votre console &#8230; du moment que le proxy est configuré pour la partie patch, la console va tenter de l&#8217;utiliser pour ses opérations avec les agents .</p>
<p><strong>Solutions :</strong></p>
<blockquote><p>1- Supprimer la configuration du proxy</p>
<p>=&gt; pour cela, allez en haut sur &#8220;Setup&#8221;</p>
<p>=&gt; ensuite : &#8220;patching Setup&#8221;</p>
<p>=&gt; puis proxy, mettre &#8220;direct connection to the internet&#8221;</p></blockquote>
<blockquote><p>2- Mettre votre domaine ( ou la machine ) dans la liste des exclusions.</p>
<p>=&gt; Dans le même endroit</p>
<p>=&gt; rajouter .domaine.com ou machine.domaine.com dans &#8220;Don&#8217;t proxy for&#8221;</p></blockquote>
<p>Ensuite on relance !</p>
<blockquote><p>3- Ca continue ?</p>
<p>=&gt; Banzaï !</p>
<p>=&gt; sqlplus SYSMAN@REPOSITORY</p>
<p>=&gt; TRUNCATE TABLE MGMT_URL_PROXY; commit;</p></blockquote>
<p>a++</p>
<p>Metalink note <font face="helvetica"><strong>Note:415035.1</strong></font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.magic-docs.com/oracle/oracle-grid-javaawtheadlessexception-etou-javalangnullpointerexception.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Un ptit coup de MTS en douce pour la 10g &#8230;</title>
		<link>http://www.magic-docs.com/oracle/un-ptit-coup-de-mts-en-douce-pour-la-10g.html</link>
		<comments>http://www.magic-docs.com/oracle/un-ptit-coup-de-mts-en-douce-pour-la-10g.html#comments</comments>
		<pubDate>Fri, 15 Jun 2007 13:20:26 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[DataBase]]></category>

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

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

		<guid isPermaLink="false">http://www.magic-docs.com/oracle/un-ptit-coup-de-mts-en-douce-pour-la-10g.html</guid>
		<description><![CDATA[Petit détail amusant &#8230;
Tout d&#8217;habord il faut citer Tom Kyte :
&#8220;Unless you have a real reason to use MTS  								&#8211; don&#8217;t.&#8221; ( plagié sur http://www.dba-oracle.com )

&#8230;
Ensuite créer une base 10g avec DBCA et jeter un oeuil aux paramètres :
NAME                [...]]]></description>
			<content:encoded><![CDATA[<p>Petit détail amusant &#8230;</p>
<p>Tout d&#8217;habord il faut citer Tom Kyte :</p>
<p><em>&#8220;Unless you have a real reason to use MTS  								&#8211; don&#8217;t.&#8221; ( plagié sur http://www.dba-oracle.com )<br />
</em></p>
<p>&#8230;</p>
<p>Ensuite créer une base 10g avec DBCA et jeter un oeuil aux paramètres :</p>
<blockquote><p>NAME                               |VALUE<br />
dispatchers                       |(PROTOCOL=TCP) (SERVICE=SID01XDB)</p>
<p>shared_servers                     |1<br />
shared_server_sessions             |</p>
<p>max_shared_servers                 |</p></blockquote>
<p>Nous avons donc, une instance avec le MTS activée &#8230; mais pas de limite sur le nombre de process..</p>
<p>Comment ne pas récuperer le beurre, ni l&#8217;argent du beurre.</p>
<p>a++</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magic-docs.com/oracle/un-ptit-coup-de-mts-en-douce-pour-la-10g.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
