<?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>Tork Wrench &#187; oracle</title>
	<atom:link href="http://www.torkwrench.com/tag/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.torkwrench.com</link>
	<description>Things I learnt today, working on IBM Lotus Web Content Management.</description>
	<lastBuildDate>Tue, 17 Aug 2010 06:50:47 +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>Oracle runstats oneliner (ok, two liner)</title>
		<link>http://www.torkwrench.com/2009/09/03/oracle-runstats-oneliner-ok-two-liner/</link>
		<comments>http://www.torkwrench.com/2009/09/03/oracle-runstats-oneliner-ok-two-liner/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 08:24:30 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[portal]]></category>
		<category><![CDATA[WebSphere Portal]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=134</guid>
		<description><![CDATA[Use this to generate a runstats script for your Oracle system. Only works for 6.1 . Also very ugly #!/bin/bash export PROFILE_PATH=/opt/WebSphere/wp_profile cat ${PROFILE_PATH}/ConfigEngine/properties/wkplc_comp.properties &#124; grep DbUser &#124; grep -v source &#124; grep -v '#' &#124; grep -v DBA &#124; &#8230; <a href="http://www.torkwrench.com/2009/09/03/oracle-runstats-oneliner-ok-two-liner/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Use this to generate a runstats script for your Oracle system. Only works for 6.1 . Also very ugly <img src='http://www.torkwrench.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#!/bin/bash<br />
export PROFILE_PATH=/opt/WebSphere/wp_profile<br />
cat ${PROFILE_PATH}/ConfigEngine/properties/wkplc_comp.properties | grep DbUser | grep -v source | grep -v '#' | grep -v DBA | awk -F = '{print &quot;execute dbms_stats.gather_schema_stats(ownname=&gt;'&quot;'&quot;'&quot; $2 &quot;'\'', cascade=&gt; TRUE);&quot;}' &gt; reorg.sql</div></div>
<p>Now copy this file to your oracle system and run this:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sqlplus / as sysdba @reorg.sql</div></div>
<p>Pow! All done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2009/09/03/oracle-runstats-oneliner-ok-two-liner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking the version of the Oracle JDBC driver jar</title>
		<link>http://www.torkwrench.com/2009/03/20/checking-the-version-of-the-oracle-jdbc-driver-jar/</link>
		<comments>http://www.torkwrench.com/2009/03/20/checking-the-version-of-the-oracle-jdbc-driver-jar/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 08:38:47 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[portal]]></category>
		<category><![CDATA[websphere]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=22</guid>
		<description><![CDATA[How to check if you have the right version of the Oracle driver installed to use with WebSphere Portal. Two methods of checking this are discussed. <a href="http://www.torkwrench.com/2009/03/20/checking-the-version-of-the-oracle-jdbc-driver-jar/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a problem now where we need to use the Oracle 10g driver against a 9i database.<a href="http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/topic/com.ibm.wp.ent.doc/wpf/inst_req60.html?resultof=%22%6f%72%61%63%6c%65%22%20%22%6f%72%61%63%6c%22%20%22%31%30%22%20%22%64%72%69%76%65%72%22%20"> There&#8217;s a note in the infocenter about it</a> .But how to do you check which version of the driver you are using ? The filename of the driver is the same between each version of Oracle (ojdbc14.jar), so that&#8217;s not going to do it.</p>
<p>To check it out, unzip the driver and read the META-INF/MANIFEST.MF file. Here&#8217;s mine:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Manifest-Version: 1.0<br />
Specification-Title:    Oracle JDBC driver classes for use with JDK14<br />
Sealed: true<br />
Created-By: 1.4.2_08 (Sun Microsystems Inc.)<br />
Implementation-Title:   ojdbc14.jar<br />
Specification-Vendor:   Oracle Corporation<br />
Specification-Version:  Oracle JDBC Driver version - &quot;10.2.0.3.0&quot;<br />
Implementation-Version: Oracle JDBC Driver version - &quot;10.2.0.3.0&quot;<br />
Implementation-Vendor:  Oracle Corporation<br />
Implementation-Time:    Fri Sep 29 09:43:24 2006</div></div>
<p>Also Portal (and regular ol&#8217; Appserver) will tell you as they initialize in the SystemOut.log, just try this trusty command :</p>
<p><strong>cat SystemOut.log | grep -A 2 &#8220;Oracle JDBC&#8221;</strong></p>
<p>and you get back something like :</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[3/20/09 2:44:21:570 EDT] 0000001f InternalOracl I   DSRA8205I: JDBC driver name  : Oracle JDBC driver<br />
[3/20/09 2:44:21:572 EDT] 0000001f InternalOracl I   DSRA8206I: JDBC driver version  : 9.2.0.8.0<br />
[3/20/09 2:44:21:575 EDT] 0000001f InternalOracl I   DSRA8212I: DataStoreHelper name is: com.ibm.websphere.rsadapter.OracleDataStoreHelper@39136937.</div></div>
<p>What! 9.2.0.8! Looks like I&#8217;ve got the wrong one on there. <img src='http://www.torkwrench.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2009/03/20/checking-the-version-of-the-oracle-jdbc-driver-jar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
