<?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; ubuntu</title>
	<atom:link href="http://wajoynece.cn/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://wajoynece.cn</link>
	<description>Oracle DataBase Linux Software</description>
	<lastBuildDate>Tue, 06 Sep 2011 08:26:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ORACLE 10G install steps on ubuntu 8.10 x64 server</title>
		<link>http://wajoynece.cn/2009/07/oracle-10g-install-steps-on-ubuntu-8-10-x64-server/</link>
		<comments>http://wajoynece.cn/2009/07/oracle-10g-install-steps-on-ubuntu-8-10-x64-server/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 08:57:18 +0000</pubDate>
		<dc:creator>wajoynece</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[x86_64]]></category>

		<guid isPermaLink="false">http://wajoynece.cn/?p=117</guid>
		<description><![CDATA[安装过程中遇到不少问题，记录一下： wayne@wayne-laptop:~/.ssh$ ssh -X holly@10.8.66.201 holly@10.8.66.201&#8242;s password: Linux ubuntu108 2.6.24-19-server #1 SMP Wed Jun 18 14:44:47 UTC 2008 x86_64 The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by [...]]]></description>
			<content:encoded><![CDATA[<p>安装过程中遇到不少问题，记录一下：</p>
<p><strong>wayne@wayne-laptop:~/.ssh$ ssh -X holly@10.8.66.201</strong></p>
<p>holly@10.8.66.201&#8242;s password:</p>
<p>Linux ubuntu108 2.6.24-19-server #1 SMP Wed Jun 18 14:44:47 UTC 2008 x86_64</p>
<p>The programs included with the Ubuntu system are free software;</p>
<p>the exact distribution terms for each program are described in the</p>
<p>individual files in /usr/share/doc/*/copyright.</p>
<p>Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by</p>
<p>applicable law.</p>
<p>To access official Ubuntu documentation, please visit:</p>
<p>http://help.ubuntu.com/</p>
<p>Last login: Mon Jul 20 09:34:34 2009 from 10.8.10.154</p>
<p><strong>holly@ubuntu108:~$ sudo su -</strong></p>
<p>root@ubuntu108:~#</p>
<p><strong>root@ubuntu108:~# hostname</strong></p>
<p>ubuntu108</p>
<p><strong>root@ubuntu108:~# apt-get update</strong></p>
<p>……</p>
<p><strong>root@ubuntu108:~# apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm</strong></p>
<p>……</p>
<p><strong>root@ubuntu108:~# cd /bin</strong></p>
<p><strong>root@ubuntu108:/bin# ls -l /bin/sh</strong></p>
<p>lrwxrwxrwx 1 root root 4 Jul 17 22:33 /bin/sh -&gt; dash</p>
<p><strong>root@ubuntu108:/bin# ln -sf bash /bin/sh</strong></p>
<p><strong>root@ubuntu108:/bin# ls -l /bin/sh</strong></p>
<p>lrwxrwxrwx 1 root root 4 Jul 20 09:45 /bin/sh -&gt; bash</p>
<p><strong>root@ubuntu108:/bin# addgroup oinstall</strong></p>
<p>Adding group `oinstall&#8217; (GID 1001) &#8230;</p>
<p>Done.</p>
<p><strong>root@ubuntu108:/bin# addgroup dba</strong></p>
<p>Adding group `dba&#8217; (GID 1002) &#8230;</p>
<p>Done.</p>
<p><strong>root@ubuntu108:/bin# addgroup nobody</strong></p>
<p>Adding group `nobody&#8217; (GID 1003) &#8230;</p>
<p>Done.</p>
<p><strong>root@ubuntu108:/bin# usermod -g nobody nobody</strong></p>
<p><strong>root@ubuntu108:/bin# useradd -g oinstall -G dba -p oracle -d /home/oracle -s /bin/bash oracle</strong></p>
<p><strong>root@ubuntu108:/bin# passwd -l oracle</strong></p>
<p>Password changed.</p>
<p><strong>root@ubuntu108:/bin# mkdir /home/oracle</strong></p>
<p><strong>root@ubuntu108:/bin# chown -R oracle:dba /home/oracle</strong></p>
<p><strong>root@ubuntu108:/bin# ln -s /usr/bin/awk /bin/awk</strong></p>
<p><strong>root@ubuntu108:/bin# ln -s /usr/bin/rpm /bin/rpm</strong></p>
<p><strong>root@ubuntu108:/bin# ln -s /usr/bin/basename /bin/basename</strong></p>
<p><strong>root@ubuntu108:/bin# ln -s /lib/libgcc_s.so.1 /lib/libgcc_s.so</strong></p>
<p><strong>root@ubuntu108:/bin# mkdir /etc/rc.d</strong></p>
<p><strong>root@ubuntu108:/bin# for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done</strong></p>
<p><strong>root@ubuntu108:/bin# mkdir -p /oracle</strong></p>
<p><strong>root@ubuntu108:/bin# chown -R oracle:dba /oracle</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;fs.file-max = 65536&#8243; &gt;&gt; /etc/sysctl.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;kernel.shmall = 2097152&#8243; &gt;&gt; /etc/sysctl.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;kernel.shmmax = 2147483648&#8243; &gt;&gt; /etc/sysctl.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;kernel.shmmni = 4096&#8243; &gt;&gt; /etc/sysctl.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;kernel.sem = 250 32000 100 128&#8243; &gt;&gt; /etc/sysctl.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;net.ipv4.ip_local_port_range = 1024 65535&#8243; &gt;&gt; /etc/sysctl.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;net.core.rmem_default = 262144&#8243; &gt;&gt; /etc/sysctl.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;net.core.rmem_max = 262144&#8243; &gt;&gt; /etc/sysctl.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;net.core.wmem_max = 262144&#8243; &gt;&gt; /etc/sysctl.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;net.core.wmem_default = 262144&#8243; &gt;&gt; /etc/sysctl.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;oracle soft nproc 2047&#8243; &gt;&gt; /etc/security/limits.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;oracle hard nproc 16384&#8243; &gt;&gt; /etc/security/limits.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;oracle soft nfile 1024&#8243; &gt;&gt; /etc/security/limits.conf</strong></p>
<p><strong>root@ubuntu108:/bin# echo &#8220;oracle hard nofile 65530&#8243; &gt;&gt; /etc/security/limits.conf</strong></p>
<p><strong>root@ubuntu108:/bin# sysctl -p</strong></p>
<p>kernel.printk = 4 4 1 7</p>
<p>kernel.maps_protect = 1</p>
<p>fs.inotify.max_user_watches = 524288</p>
<p>vm.mmap_min_addr = 65536</p>
<p>net.ipv4.conf.default.rp_filter = 1</p>
<p>net.ipv4.conf.all.rp_filter = 1</p>
<p>fs.file-max = 65536</p>
<p>kernel.shmall = 2097152</p>
<p>kernel.shmmax = 2147483648</p>
<p>kernel.shmmni = 4096</p>
<p>kernel.sem = 250 32000 100 128</p>
<p>net.ipv4.ip_local_port_range = 1024 65535</p>
<p>net.core.rmem_default = 262144</p>
<p>net.core.rmem_max = 262144</p>
<p>net.core.wmem_max = 262144</p>
<p>net.core.wmem_default = 262144</p>
<p><strong>root@ubuntu108:/bin# su &#8211; oracle</strong></p>
<p>Your account has expired; please contact your system administrator</p>
<p>su: User account has expired</p>
<p>(Ignored)</p>
<p><strong>oracle@ubuntu108:~$ pwd</strong></p>
<p>/home/oracle</p>
<p><strong>oracle@ubuntu108:~$ wget ftp://usr:pwd@10.8.2.70/Oracle/10g/10201_database_linux_x86_64.cpio.gz&#8211;10:06:07&#8211; </strong>ftp://hollycrm:*password*@10.8.2.70/</p>
<p>……</p>
<p><strong>oracle@ubuntu108:~$ ls</strong></p>
<p>10201_database_linux_x86_64.cpio.gz</p>
<p><strong>oracle@ubuntu108:~$ gunzip 10201_database_linux_x86_64.cpio.gz</strong></p>
<p><strong>oracle@ubuntu108:~$ ls</strong></p>
<p>10201_database_linux_x86_64.cpio</p>
<p><strong>oracle@ubuntu108:~$ cpio -idmv &lt; 10201_database_linux_x86_64.cpio</strong></p>
<p>……</p>
<p><strong>oracle@ubuntu108:~$ ls</strong></p>
<p>10201_database_linux_x86_64.cpio  database</p>
<p><strong>oracle@ubuntu108:~$ cd database/</strong></p>
<p><strong>oracle@ubuntu108:~/database$ ./runInstaller -help</strong></p>
<p>./runInstaller: line 52: /home/oracle/database/install/.oui: No such file or directory</p>
<p><strong>oracle@ubuntu108:~/database$ cd install</strong></p>
<p><strong>oracle@ubuntu108:~/database/install$ ls -al</strong></p>
<p>total 364</p>
<p>drwxr-xr-x 5 oracle oinstall   4096 2009-07-20 10:11 .</p>
<p>drwxr-xr-x 6 oracle oinstall   4096 2009-07-20 10:11 ..</p>
<p>-rwxr-xr-x 1 oracle oinstall     28 2005-10-23 15:49 addLangs.sh</p>
<p>-rwxr-xr-x 1 oracle oinstall     76 2005-10-23 15:49 addNode.sh</p>
<p>drwxr-xr-x 2 oracle oinstall   4096 2009-07-20 10:11 images</p>
<p>-rwxr-xr-x 1 oracle oinstall  46448 2005-10-23 15:49 lsnodes</p>
<p>-rwxr-xr-x 1 oracle oinstall   2268 2005-10-23 15:49 oneclick.properties</p>
<p>-rwxr-xr-x 1 oracle oinstall   2387 2005-10-23 15:49 oraparam.ini</p>
<p>-rwxr-xr-x 1 oracle oinstall   6428 2005-10-23 15:49 oraparamsilent.ini</p>
<p>-rwxr-xr-x 1 oracle oinstall 163185 2005-10-23 15:49 .oui</p>
<p>drwxr-xr-x 2 oracle oinstall   4096 2009-07-20 10:11 resource</p>
<p>drwxr-xr-x 2 oracle oinstall   4096 2009-07-20 10:11 response</p>
<p>-rwxr-xr-x 1 oracle oinstall 102612 2005-10-23 15:49 unzip</p>
<p>&#8211;这里遇到这个问题，具体原因是由于Oracle数据库64位安装介质使用了32位的安装程序，而系统中没有32位包。</p>
<p><strong>root@ubuntu108:/usr/X11R6# apt-get install ia32-libs</strong></p>
<p>Reading package lists&#8230; Done</p>
<p>……</p>
<p>ldconfig deferred processing now taking place</p>
<p><strong>oracle@ubuntu108:/oracle/database$ export DISPLAY=10.8.10.154:0.0</strong></p>
<p><strong>oracle@ubuntu108:/oracle/database$ export LANG=us_EN.UTF-8</strong></p>
<p><strong>oracle@ubuntu108:/oracle/database$ ./runInstaller -ignoreSysPrereqs -record -destinationFile /oracle/orainstall.rsp</strong></p>
<p>……</p>
<p><strong>oracle@ubuntu108:/oracle/database$ ./runInstaller -ignoreSysPrereqs -silent -responseFile /oracle/orainstall.rsp</strong></p>
<p>……</p>
<p>WARNING:A new inventory has been created in this session. However, it has not yet been registered as the central inventory of this system.</p>
<p>To register the new inventory please run the script &#8216;/home/oracle/oraInventory/orainstRoot.sh&#8217; with root privileges.</p>
<p>If you do not register the inventory, you may not be able to update or patch the products you installed.</p>
<p>The following configuration scripts</p>
<p>/home/oracle/oracle/product/10.2.0/db_1/root.sh</p>
<p>need to be executed as root for configuring the system. If you skip the execution of the configuration tools, the configuration will not be complete and the product wont function properly. In order to get the product to function properly, you will be required to execute the scripts and the configuration tools after exiting the OUI.</p>
<p>The installation of Oracle Database 10g was successful.</p>
<p>Please check &#8216;<strong>/home/oracle/oraInventory/logs/silentInstall2009-07-20_02-41-14PM.log</strong>&#8216; for more details.</p>
<p>&#8211;<strong>这里应该查看</strong><strong>/home/oracle/oraInventory/logs/silentInstall2009-07-20_02-41-14PM.log，看是否有报错信息；我安装过程中没有注意，结果后面打补丁报出跟这里一样的错误。</strong></p>
<p>****************************************************************************</p>
<p>root@ubuntu108:~# /home/oracle/oraInventory/orainstRoot.sh</p>
<p>Changing permissions of /home/oracle/oraInventory to 770.</p>
<p>Changing groupname of /home/oracle/oraInventory to oinstall.</p>
<p>The execution of the script is complete</p>
<p>root@ubuntu108:~# /home/oracle/oracle/product/10.2.0/db_1/root.sh</p>
<p>Running Oracle10 root.sh script&#8230;</p>
<p>The following environment variables are set as:</p>
<p>ORACLE_OWNER= oracle</p>
<p>ORACLE_HOME=  /home/oracle/oracle/product/10.2.0/db_1</p>
<p>Enter the full pathname of the local bin directory: [/usr/local/bin]:</p>
<p>Copying dbhome to /usr/local/bin &#8230;</p>
<p>Copying oraenv to /usr/local/bin &#8230;</p>
<p>Copying coraenv to /usr/local/bin &#8230;</p>
<p>Creating /etc/oratab file&#8230;</p>
<p>Entries will be added to the /etc/oratab file as needed by</p>
<p>Database Configuration Assistant when a database is created</p>
<p>Finished running generic part of root.sh script.</p>
<p>Now product-specific root actions will be performed.</p>
<p>****************************************************************************</p>
<p><strong><br />
</strong></p>
<p><strong>&#8211;打补丁：</strong></p>
<p><strong>&#8211;第一次图形安装报错，日志如下（查看日志的过程中，发现这个错误在之前的静默安装日志中已经报错）：</strong></p>
<p>INFO: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libpthread.so when searching for -lpthread</p>
<p>/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libpthread.a when searching for -lpthread</p>
<p>/usr/bin/ld: skipping incompatible /usr/bin/../lib/libpthread.so when searching for -lpthread</p>
<p>/usr/bin/ld: skipping incompatible /usr/bin/../lib/libpthread.a when searching for -lpthread</p>
<p>/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lp</p>
<p>INFO: thread</p>
<p>/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread</p>
<p>/usr/bin/ld: cannot find -lpthread</p>
<p>collect2: ld returned 1 exit status</p>
<p>INFO: make[1]: *** [/home/oracle/oracle/product/10.2.0/db_1/sysman/lib/libnmemso.so] Error 1</p>
<p>INFO: make[1]: Leaving directory `/home/oracle/oracle/product/10.2.0/db_1/sysman/lib&#8217;</p>
<p>INFO: make: *** [libnmemso] Error 2</p>
<p>INFO: End output from spawned process.</p>
<p>INFO: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>INFO: Exception thrown from action: make</p>
<p>Exception Name: MakefileException</p>
<p>Exception String: Error in invoking target &#8216;agent&#8217; of makefile &#8216;/home/oracle/oracle/product/10.2.0/db_1/sysman/lib/ins_sysman.mk&#8217;. See &#8216;/home/oracle/oraInventory/logs/installActions2009-07-20_02-54-28PM.log&#8217; for details.</p>
<p>Exception Severity: 1</p>
<p><strong>&#8211;继续安装包</strong></p>
<p><strong>root@ubuntu108:/home/oracle/oraInventory/logs# sudo apt-get install gcc libaio1 lesstif2 lesstif2-dev make libc6 libc6-i386 libc6-dev-i386 libstdc++5 lib32stdc++6 lib32z1 ia32-libs</strong></p>
<p>……</p>
<p><strong>&#8211;报错：</strong></p>
<p>INFO: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libgcc.a when searching for -lgcc</p>
<p>/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libgcc.a when searching for -lgcc</p>
<p>/usr/bin/ld: cannot find -lgcc</p>
<p>INFO: collect2: ld returned 1 exit status</p>
<p>make[1]: *** [/home/oracle/oracle/product/10.2.0/db_1/sysman/lib/libnmemso.so] Error 1</p>
<p>INFO: make[1]: Leaving directory `/home/oracle/oracle/product/10.2.0/db_1/sysman/lib&#8217;</p>
<p>INFO: make: *** [libnmemso] Error 2</p>
<p>INFO: End output from spawned process.</p>
<p>INFO: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>INFO: Exception thrown from action: make</p>
<p>Exception Name: MakefileException</p>
<p>Exception String: Error in invoking target &#8216;agent&#8217; of makefile &#8216;/home/oracle/oracle/product/10.2.0/db_1/sysman/lib/ins_sysman.mk&#8217;. See &#8216;/home/oracle/oraInventory/logs/installActions2009-07-20_03-10-03PM.log&#8217; for details.</p>
<p>Exception Severity: 1</p>
<p><strong>&#8211;继续安装包</strong></p>
<p>root@ubuntu108:/home/oracle/oraInventory/logs# apt-get install gcc-multilib</p>
<p>……</p>
<p>oracle@ubuntu108:/oracle/Disk1$ ./runInstaller -ignoreSysPrereqs -record -destinationFile /oracle/oraupdate.rsp</p>
<p>……</p>
<p>oracle@ubuntu108:/oracle/Disk1$ ./runInstaller -ignoreSysPrereqs -silent -responseFile /oracle/oraupdate.rsp</p>
<p>……</p>
<p>WARNING:<br />
The following configuration scripts need to be executed as the &#8220;root&#8221; user.<br />
#!/bin/sh<br />
#Root script to run<br />
/home/oracle/oracle/product/10.2.0/db_1/root.sh<br />
To execute the configuration scripts:<br />
1. Open a terminal window<br />
2. Log in as &#8220;root&#8221;<br />
3. Run the scripts</p>
<p>The installation of Oracle Database 10g Release 2 Patch Set 3 was successful.<br />
Please check &#8216;/home/oracle/oraInventory/logs/silentInstall2009-07-20_03-19-54PM.log&#8217; for more details.</p>
<p>****************************************************************************<br />
root@ubuntu108:/home/oracle/oraInventory/logs# /home/oracle/oracle/product/10.2.0/db_1/root.sh<br />
Running Oracle10 root.sh script&#8230;</p>
<p>The following environment variables are set as:<br />
ORACLE_OWNER= oracle<br />
ORACLE_HOME=  /home/oracle/oracle/product/10.2.0/db_1</p>
<p>Enter the full pathname of the local bin directory: [/usr/local/bin]:<br />
The file &#8220;dbhome&#8221; already exists in /usr/local/bin.  Overwrite it? (y/n)<br />
[n]: y<br />
Copying dbhome to /usr/local/bin &#8230;<br />
The file &#8220;oraenv&#8221; already exists in /usr/local/bin.  Overwrite it? (y/n)<br />
[n]: y<br />
Copying oraenv to /usr/local/bin &#8230;<br />
The file &#8220;coraenv&#8221; already exists in /usr/local/bin.  Overwrite it? (y/n)<br />
[n]: y<br />
Copying coraenv to /usr/local/bin &#8230;</p>
<p>Entries will be added to the /etc/oratab file as needed by<br />
Database Configuration Assistant when a database is created<br />
Finished running generic part of root.sh script.<br />
Now product-specific root actions will be performed.<br />
****************************************************************************</p>
<p><strong>vi .bash_profile</strong></p>
<p><strong>umask 022</strong></p>
<p><strong>export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1</strong></p>
<p><strong>export PATH=$PATH:$ORACLE_HOME/bin</strong></p>
<p><strong>export ORACLE_SID=hollyc5</strong></p>
<p><strong>export ORACLE_BASE=/home/oracle</strong></p>
<p><strong>export LD_LIBRARY_PATH=$ORACLE_HOME/lib</strong></p>
<p><strong>export NLS_LANG=AMERICAN_AMERICA.UTF8</strong></p>
<p><strong>export LANG=us_EN.UTF-8</strong></p>
<p>dbca</p>
<p>……</p>
<p>netca</p>
<p>……</p>
<p><strong>最后，ubuntu应该安装的包：</strong></p>
<p><strong>sudo apt-get install gcc libaio1 lesstif2 lesstif2-dev make libc6 libc6-i386 libc6-dev-i386 libstdc++5 lib32stdc++6 lib32z1 ia32-libs gcc-multilib</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://wajoynece.cn/2009/07/oracle-10g-install-steps-on-ubuntu-8-10-x64-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

