<?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>天道酬勤 &#187; dbca</title>
	<atom:link href="http://www.ochef.net/tag/dbca/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ochef.net</link>
	<description>RDBMS and My Life</description>
	<lastBuildDate>Mon, 19 Jul 2010 02:01:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=62</generator>
		<item>
		<title>再谈DBCA</title>
		<link>http://www.ochef.net/2009/03/talk-about-dbca/</link>
		<comments>http://www.ochef.net/2009/03/talk-about-dbca/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 05:34:15 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[dbca]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=157</guid>
		<description><![CDATA[前几天有朋友问在DBCA的时候有没有碰到如下类似的错误： $ dbca /u01/app/oracle/jre/1.1.8/bin/../lib/i686/native_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so) Unable to initialize threads: cannot find class java/lang/Thread Could not create Java VM 我已记不清安装oracle多少次了，但记忆中好像没有遇到过，难道是我运气太好每次都设对了LD_ASSUME_KERNEL参数，做技术的不仅要知其然，而且还要知其所以然，故在metalink上一顿疯狂search，可以参考下面的文档。 Doc ID:243979.1      Doc ID:377217.1      Note:443475.1 这些文档适用于linux 2.4的内核，下面来看看关于LD_ASSUME_KERNEL变量的解释： Kernel 2.4 comes with a i686 optimized glibc package. The optimized glibc package contains two versions [...]]]></description>
			<content:encoded><![CDATA[<p>前几天有朋友问在DBCA的时候有没有碰到如下类似的错误：</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ dbca
/u01/app/oracle/jre/1.1.8/bin/../lib/i686/native_threads/libzip.so: symbol errno,
version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
Unable to initialize threads: cannot find class java/lang/Thread
Could not create Java VM</pre></div></div>

<p>我已记不清安装oracle多少次了，但记忆中好像没有遇到过，难道是我运气太好每次都设对了<span style="color: #ff0000;">LD_ASSUME_KERNEL参数</span>，做技术的不仅要知其然，而且还要知其所以然，故在metalink上一顿疯狂search，可以参考下面的文档。<br />
<span style="color: #000080;">Doc ID:243979.1         Doc ID:377217.1         Note:443475.1</span></p>
<p>这些文档适用于linux 2.4的内核，下面来看看关于LD_ASSUME_KERNEL变量的解释：</p>
<blockquote><p>Kernel 2.4 comes with a i686 optimized glibc package. The optimized glibc package contains two versions of the libc itself, one with and one without &#8220;floating stack&#8221; support. Which one an application picks up depends on the setting of the environment variable LD_ASSUME_KERNEL. If this is set to &#8220;2.2.5&#8243; the application will use the lib without &#8220;floating stack&#8221;. Some older java versions do not work correctly if the glibc &#8220;floating stack&#8221; is used. As a result, &#8220;universal installer&#8221; and some utilities as &#8220;database configuration assistant&#8221; will not work if the glibc &#8220;floating stack&#8221; is activated. On Sues SLES8 for Oracle to scale well, this variable must be set. With a glibc with &#8220;floating stack&#8221; support Oracle scales significantly worse (number of users) than without (several thousand vs. less than 1000 users in tests).</p></blockquote>
<p><span id="more-157"></span>首先查看提供libc.so.6的RPM:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># rpm -q --whatprovides libc.so.6
  glibc-2.3.4-2.19</pre></div></div>

<p>可以用find查看libc.so.6的其它版本:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># find /lib/ -name libc.so.6
/lib/libc.so.6
/lib/i686/libc.so.6
/lib/tls/libc.so.6</pre></div></div>

<p>再查看机器的类型:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># uname -m
 i686</pre></div></div>

<p style="text-align: left;">So your system is looking into /lib/i686/libc.so.6 and getting error.</p>
<p><strong>Recommended Settings for Installing Oracle Products</strong></p>
<table width="486px" border="5" cellspacing="2" cellpadding="3">
<tr>
<td>Operating System</td>
<td>LD_ASSUME_KERNEL setting</td>
</tr>
<tr>
<td>RHAS 2.1</td>
<td>2.2.5</td>
</tr>
<tr>
<td>RHEL3, RHEL4, OEL4</td>
<td>any value from 2.4.1 to 2.4.19</td>
</tr>
<tr>
<td>SLES8, SLES9</td>
<td>2.4.21</td>
</tr>
<tr>
<td>RHEL5, OEL5, SLES10</td>
<td>Should not be set</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2009/03/talk-about-dbca/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DBCA failed when press finish button</title>
		<link>http://www.ochef.net/2009/03/dbca-failed-when-press-finish-button/</link>
		<comments>http://www.ochef.net/2009/03/dbca-failed-when-press-finish-button/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 03:15:38 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[dbca]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=147</guid>
		<description><![CDATA[以前安装完oracle，在用DBCA创建数据库时，在配置了一系统列参数之到了最后点&#8221;完成&#8221;的时候，创建画面异常消失没了任何反映，以前用在网上找到的方法解决如下： Case：JRE 的版本不对, Oracle 一般使用的JRE是1.1.8到$ORACLE_BASE/jre 目录下，发现Oracle本身已经有1.3.1版的JRE #ls $ORACLE_BASE/jre 1.1.8/ 1.3.1/ Fix：只要改变一下链接使用1.3.1的JRE就可以了。（可以查看dbca的script） 1. #rm $ORACLE_HOME/JRE (此JRE目录是1.1.8 的符号链接) 2. #ln -s $ORACLE_BASE/jre/1.3.1 $ORACLE_HOME/JRE 3. #cd $ORACLE_BASE/jre/1.3.1/bin 4. #ln -s $ORACLE_BASE/jre/1.3.1/bin/.java_wrapper jre OR: #ln -s Java jre 5. #cd i386/native_threads 6. #ln -s java jre 完成以上步骤后再启动dbca问题就解决了。 今天再次遇到该问题，在metalink上查了一下有更好的解决办法： Doc ID: 292278.1 Fix： Perform the following steps to correct the [...]]]></description>
			<content:encoded><![CDATA[<p>以前安装完oracle，在用DBCA创建数据库时，在配置了一系统列参数之到了最后点&#8221;完成&#8221;的时候，创建画面异常消失没了任何反映，以前用在网上找到的方法解决如下：<br />
Case：JRE 的版本不对, Oracle 一般使用的JRE是1.1.8到$ORACLE_BASE/jre 目录下，发现Oracle本身已经有1.3.1版的JRE<br />
#ls $ORACLE_BASE/jre<br />
1.1.8/    1.3.1/<br />
Fix：只要改变一下链接使用1.3.1的JRE就可以了。（可以查看dbca的script）</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">   1. #rm $ORACLE_HOME/JRE    (此JRE目录是1.1.8 的符号链接)
   2. #ln -s $ORACLE_BASE/jre/1.3.1  $ORACLE_HOME/JRE
   3. #cd $ORACLE_BASE/jre/1.3.1/bin
   4. #ln -s $ORACLE_BASE/jre/1.3.1/bin/.java_wrapper   jre
       OR: #ln -s Java jre
   5. #cd i386/native_threads
   6. #ln -s java  jre</pre></div></div>

<p>完成以上步骤后再启动dbca问题就解决了。</p>
<p><span id="more-147"></span>今天再次遇到该问题，在<a href="https://metalink.oracle.com" target="_blank">metalink</a>上查了一下有更好的解决办法：<br />
Doc ID: 292278.1<br />
Fix：<br />
Perform the following steps to correct the defect in DBCA.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Step 1--&gt;
Backup $ORACLE_HOME/bin/dbca shell script
&nbsp;
Step 2--&gt;
Change only line #124 in the $ORACLE_HOME/bin/dbca script to include -native flag as follows
&nbsp;
$JRE_DIR/bin/jre -native -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m
-classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
&nbsp;
Step 3--&gt;
Run the root.sh and continue running the configuration assistants
DIFF will something like this.
======================
diff $ORACLE_HOME/bin/dbca $ORACLE_HOME/bin/dbca.ORG
124c124
&lt;$JRE_DIR/bin/jre -native -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m
-classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
---
&gt;$JRE_DIR/bin/jre -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m -classpath
$CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENT</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2009/03/dbca-failed-when-press-finish-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
