<?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; Linux</title>
	<atom:link href="http://wajoynece.cn/category/linux/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>crontab调度问题解决</title>
		<link>http://wajoynece.cn/2009/09/crontabnotworking/</link>
		<comments>http://wajoynece.cn/2009/09/crontabnotworking/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 08:18:39 +0000</pubDate>
		<dc:creator>wajoynece</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[crontab]]></category>

		<guid isPermaLink="false">http://wajoynece.cn/?p=159</guid>
		<description><![CDATA[ubuntu 8.04 64位server上，oracle用户下有一个备份的crontab任务， 任务调度异常，到时间不执行； 查看syslog发现了问题： Sep 3 15:48:01 app6G /usr/sbin/cron[30235]: (oracle) RELOAD (crontabs/oracle) Sep 3 15:48:01 app6G CRON[32285]: User account has expired 因为我在创建用户时指定了passwd -l选项锁定该用户，导致了问题； 取消了锁定，调度正常了。]]></description>
			<content:encoded><![CDATA[<p>ubuntu 8.04 64位server上，oracle用户下<span style="background-color: #ffffff;">有一个备份的crontab任务，</span></p>
<p><span style="background-color: #ffffff;">任务调度异常，到时间不执行；</span></p>
<p><span style="background-color: #ffffff;">查看syslog发现了问题：</span></p>
<blockquote><p><span style="background-color: #ffffff;">Sep  3 15:48:01 app6G /usr/sbin/cron[30235]: (oracle) RELOAD (crontabs/oracle)</span><br />
<span style="background-color: #ffffff;">Sep  3 15:48:01 app6G CRON[32285]: User account has expired</span></p></blockquote>
<p>因为我在创建用户时指定了passwd -l选项锁定该用户，导致了问题；</p>
<p>取消了锁定，调度正常了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wajoynece.cn/2009/09/crontabnotworking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>debian i686 oracledb install tips</title>
		<link>http://wajoynece.cn/2009/07/debian-i686-oracledb-install-tips/</link>
		<comments>http://wajoynece.cn/2009/07/debian-i686-oracledb-install-tips/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 03:49:23 +0000</pubDate>
		<dc:creator>wajoynece</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[i686]]></category>

		<guid isPermaLink="false">http://wajoynece.cn/?p=122</guid>
		<description><![CDATA[apt-get install make gcc g++ libc6-dev libstdc++5 libaio1 unzip mkdir /etc/rc.d 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 ln -s /usr/bin/awk /bin/awk ln -s /usr/bin/basename /bin/basename]]></description>
			<content:encoded><![CDATA[<p>apt-get install make gcc g++ libc6-dev libstdc++5 libaio1 unzip<br />
mkdir /etc/rc.d<br />
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<br />
ln -s /usr/bin/awk /bin/awk<br />
ln -s /usr/bin/basename /bin/basename</p>
]]></content:encoded>
			<wfw:commentRss>http://wajoynece.cn/2009/07/debian-i686-oracledb-install-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
		<item>
		<title>Oracle安装-Linux内核参数-共享内存信号量设置</title>
		<link>http://wajoynece.cn/2009/07/oracle-linux-sharememorysegment/</link>
		<comments>http://wajoynece.cn/2009/07/oracle-linux-sharememorysegment/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 10:12:33 +0000</pubDate>
		<dc:creator>wajoynece</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[shmall]]></category>
		<category><![CDATA[shmmax]]></category>
		<category><![CDATA[shmmni]]></category>

		<guid isPermaLink="false">http://wajoynece.cn/?p=80</guid>
		<description><![CDATA[Oracle数据库在linux系统上的安装过程中，涉及到设置linux内核参数； 这些内核参数究竟代表什么含义，如何调整这些参数？ 共享内存： 可以通过ipcs -lm命令查看目前系统共享内存的参数限制： # ipcs -lm &#8212;&#8212; Shared Memory Limits &#8212;&#8212;&#8211; max number of segments = 4096 max seg size (kbytes) = 1048576 max total shared memory (pages) = 2097152 min seg size (bytes) = 1 这里涉及到3个于共享内存相关的参数：SHMMAX，SHMMNI，SHMALL SHMMAX 含义：单个共享内存段最大字节数 设置：比SGA略大 查看：cat /proc/sys/kernel/shmmax $ cat /proc/sys/kernel/shmmax 1073741824 修改： sysctl -w kernel.shmmax=1073741824 echo &#8220;kernel.shmmax=1073741824&#8243; &#62;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Oracle数据库在linux系统上的安装过程中，涉及到设置linux内核参数；</p>
<p>这些内核参数究竟代表什么含义，如何调整这些参数？<br />
<strong><br />
共享内存</strong>：</p>
<p>可以通过ipcs -lm命令查看目前系统共享内存的参数限制：</p>
<blockquote><p># ipcs -lm</p>
<p>&#8212;&#8212; Shared Memory Limits &#8212;&#8212;&#8211;<br />
max number of segments = 4096<br />
max seg size (kbytes) = 1048576<br />
max total shared memory (pages) = 2097152<br />
min seg size (bytes) = 1</p></blockquote>
<p>这里涉及到3个于共享内存相关的参数：SHMMAX，SHMMNI，SHMALL</p>
<p>SHMMAX</p>
<ul>
<li>含义：单个共享内存段最大字节数</li>
<li>设置：比SGA略大</li>
<li>查看：cat /proc/sys/kernel/shmmax</li>
<blockquote><p>$ cat /proc/sys/kernel/shmmax<br />
1073741824</p></blockquote>
</ul>
<ul>
<li>修改：</li>
<blockquote><p>sysctl -w kernel.shmmax=1073741824<br />
echo &#8220;kernel.shmmax=1073741824&#8243; &gt;&gt; /etc/sysctl.conf</p></blockquote>
</ul>
<p>SHMMNI</p>
<ul>
<li>含义：共享内存段最大个数</li>
<li>设置：至少4096</li>
<li>查看：cat /proc/sys/kernel/shmmni</li>
<blockquote><p># cat /proc/sys/kernel/shmmni<br />
4096</p></blockquote>
</ul>
<ul>
<li>修改：</li>
</ul>
<blockquote><p># sysctl -w kernel.shmmni=4096<br />
# echo &#8220;kernel.shmmni=4096&#8243; &gt;&gt; /etc/sysctl.conf</p></blockquote>
<p>SHMALL</p>
<ul>
<li>含义：系统中共享内存页总数</li>
<li>设置：至少ceil(shmmax/PAGE_SIZE)；ORACLE DOC 默认值：2097152*4096=8GB</li>
<li>查看：cat /proc/sys/kernel/shmall</li>
</ul>
<blockquote><p>$ getconf PAGE_SIZE<br />
4096</p>
<p># cat /proc/sys/kernel/shmall<br />
2097152</p></blockquote>
<ul>
<li>修改：</li>
</ul>
<blockquote><p># sysctl -w kernel.shmall=2097152<br />
# echo &#8220;kernel.shmall=2097152&#8243; &gt;&gt; /etc/sysctl.conf</p></blockquote>
<p><strong>信号量：</strong></p>
<p>当前系统信号量限制：<strong><a name="TheSEMMSLParameter"><br />
</a></strong></p>
<blockquote><p>oracle@lab-rd-01:~$ ipcs -ls</p>
<p>&#8212;&#8212; Semaphore Limits &#8212;&#8212;&#8211;<br />
max number of arrays = 128<br />
max semaphores per array = 250<br />
max semaphores system wide = 32000<br />
max ops per semop call = 100</p></blockquote>
<p>SEMMSL</p>
<ul>
<li>含义：每个信号量set中信号量最大个数</li>
<li>设置：最小250；对于processes参数设置较大的系统建议设置为processes+10<strong><a name="TheSEMMNIParameter"><br />
</a></strong></li>
</ul>
<p>SEMMNI</p>
<ul>
<li>含义：linux系统信号量set最大个数</li>
<li>设置：最少128</li>
</ul>
<p>SEMMNS</p>
<ul>
<li>含义：linux系统中信号量最大个数</li>
<li>设置：至少32000；SEMMSL * SEMMNI</li>
</ul>
<p>SEMOPM</p>
<ul>
<li>含义：<tt>semop系统调用允许的信号量最大个数</tt></li>
<li><tt>设置：至少100；</tt>或者等于SEMMSL</li>
</ul>
<p>查看信号量设置：cat /proc/sys/kernel/sem</p>
<p>order：SEMMSL, SEMMNS, SEMOPM, SEMMNI</p>
<blockquote><p>oracle@lab-rd-01:~$ cat /proc/sys/kernel/sem<br />
250    32000    100    128</p></blockquote>
<p>修改：</p>
<blockquote><p>sysctl -w kernel.sem=&#8221;250 32000 100 128&#8243;<br />
echo &#8220;kernel.sem=250 32000 100 128&#8243; &gt;&gt; /etc/sysctl.conf</p></blockquote>
<p>ORACLE提供了sysresv工具管理共享内存以及信号量，操作系统级别可以通过ipcs管理。</p>
]]></content:encoded>
			<wfw:commentRss>http://wajoynece.cn/2009/07/oracle-linux-sharememorysegment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu中使用sqlplus 命令历史</title>
		<link>http://wajoynece.cn/2009/06/ubuntu%e4%b8%ad%e4%bd%bf%e7%94%a8sqlplus-%e5%91%bd%e4%bb%a4%e5%8e%86%e5%8f%b2/</link>
		<comments>http://wajoynece.cn/2009/06/ubuntu%e4%b8%ad%e4%bd%bf%e7%94%a8sqlplus-%e5%91%bd%e4%bb%a4%e5%8e%86%e5%8f%b2/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 05:13:52 +0000</pubDate>
		<dc:creator>wajoynece</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[ubuntu sqlplus]]></category>

		<guid isPermaLink="false">http://wajoynece.cn/?p=49</guid>
		<description><![CDATA[首先安装rlwrap包： apt-get install rlwrap 然后在/etc/bash.bashrc中设置别名 alias sqlplus=&#8217;rlwrap sqlplus&#8217;。 在设置别名的过程中有一个小插曲： 用/etc/profile定义别名，在gnome中进入终端后，不能正常使用别名，进入命令行，可以正常读取别名设置； 应该是由于gnome中调用了gnome-terminal导致了问题，只好修改/etc/bash.bashrc来实现。]]></description>
			<content:encoded><![CDATA[<p>首先安装rlwrap包：<br />
apt-get install rlwrap<br />
然后在/etc/bash.bashrc中设置别名<br />
alias sqlplus=&#8217;rlwrap sqlplus&#8217;。</p>
<p>在设置别名的过程中有一个小插曲：<br />
用/etc/profile定义别名，在gnome中进入终端后，不能正常使用别名，进入命令行，可以正常读取别名设置；<br />
应该是由于gnome中调用了gnome-terminal导致了问题，只好修改/etc/bash.bashrc来实现。</p>
]]></content:encoded>
			<wfw:commentRss>http://wajoynece.cn/2009/06/ubuntu%e4%b8%ad%e4%bd%bf%e7%94%a8sqlplus-%e5%91%bd%e4%bb%a4%e5%8e%86%e5%8f%b2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu Trash &#8216;s location</title>
		<link>http://wajoynece.cn/2009/05/ubuntu-trash-s-location/</link>
		<comments>http://wajoynece.cn/2009/05/ubuntu-trash-s-location/#comments</comments>
		<pubDate>Tue, 26 May 2009 10:17:44 +0000</pubDate>
		<dc:creator>wajoynece</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu trash]]></category>

		<guid isPermaLink="false">http://wajoynece.cn/?p=30</guid>
		<description><![CDATA[记录一下ubuntu的回收站位置，今天遇到了回收站不能清空；记录一下。 ~/.local/share/Trash/]]></description>
			<content:encoded><![CDATA[<p>记录一下ubuntu的回收站位置，今天遇到了回收站不能清空；记录一下。</p>
<blockquote><p>~/.local/share/Trash/</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wajoynece.cn/2009/05/ubuntu-trash-s-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ies4linux install&amp;config</title>
		<link>http://wajoynece.cn/2009/05/ies4linux-installconfig/</link>
		<comments>http://wajoynece.cn/2009/05/ies4linux-installconfig/#comments</comments>
		<pubDate>Tue, 26 May 2009 09:25:01 +0000</pubDate>
		<dc:creator>wajoynece</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ies4linux]]></category>

		<guid isPermaLink="false">http://wajoynece.cn/?p=20</guid>
		<description><![CDATA[公司“万恶”的OA不支持除ie外的浏览器，只能装个ie了，记录下大致步骤“ install wine install cabextract cd /tmp wget wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz tar -zxvf ies4linux-latest.tar.gz cd ies4linux-2.99.0.1/ ./ies4linux 选择CN中文，安装。 结束后，打开ie不能正确显示中文，解决： vi ~/bin/ie6 加入LANG=zh_CN.UTF-8 再次打开ie可以看到界面正确显示中文，网页输入框也可以正确输入中文。]]></description>
			<content:encoded><![CDATA[<p>公司“万恶”的OA不支持除ie外的浏览器，只能装个ie了，记录下大致步骤“</p>
<blockquote><p>install wine</p>
<p>install cabextract</p>
<p>cd /tmp</p>
<p>wget wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz</p>
<p>tar -zxvf ies4linux-latest.tar.gz</p>
<p>cd ies4linux-2.99.0.1/</p>
<p>./ies4linux</p>
<p>选择CN中文，安装。</p></blockquote>
<p>结束后，打开ie不能正确显示中文，解决：</p>
<blockquote><p>vi ~/bin/ie6</p>
<p>加入LANG=zh_CN.UTF-8</p></blockquote>
<p>再次打开ie可以看到界面正确显示中文，网页输入框也可以正确输入中文。</p>
]]></content:encoded>
			<wfw:commentRss>http://wajoynece.cn/2009/05/ies4linux-installconfig/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wine启动程序中文显示乱码</title>
		<link>http://wajoynece.cn/2009/05/wine%e5%90%af%e5%8a%a8%e7%a8%8b%e5%ba%8f%e4%b8%ad%e6%96%87%e6%98%be%e7%a4%ba%e4%b9%b1%e7%a0%81/</link>
		<comments>http://wajoynece.cn/2009/05/wine%e5%90%af%e5%8a%a8%e7%a8%8b%e5%ba%8f%e4%b8%ad%e6%96%87%e6%98%be%e7%a4%ba%e4%b9%b1%e7%a0%81/#comments</comments>
		<pubDate>Mon, 18 May 2009 03:33:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu Wine]]></category>

		<guid isPermaLink="false">http://wajoynece.cn/2009/05/wine%e5%90%af%e5%8a%a8%e7%a8%8b%e5%ba%8f%e4%b8%ad%e6%96%87%e6%98%be%e7%a4%ba%e4%b9%b1%e7%a0%81/</guid>
		<description><![CDATA[wine安装结束后，启动中文程序有乱码； 解决过程： 1. windows机器上拷贝c:\windows\fonts\simsun.ttc到~/.wine/drive_c/windows/Fonts； 2. vi ~/.wine/system.reg 修改： “MS Shell Dlg”=”Tahoma” “MS Shell Dlg 2″=”Tahoma” =&#62; “MS Shell Dlg”=”SimSun” “MS Shell Dlg 2″=”SimSun”即可； 另外，wine默认的中文字体较小，可修改&#8221;LogPixels&#8221;=dword:00000060改变字体大小。]]></description>
			<content:encoded><![CDATA[<p>wine安装结束后，启动中文程序有乱码；<br />
解决过程：<br />
1. windows机器上拷贝c:\windows\fonts\simsun.ttc到~/.wine/drive_c/windows/Fonts；<br />
2. vi ~/.wine/system.reg<br />
修改：<br />
“MS Shell Dlg”=”Tahoma”<br />
“MS Shell Dlg 2″=”Tahoma”<br />
=&gt;<br />
“MS Shell Dlg”=”SimSun”<br />
“MS Shell Dlg 2″=”SimSun”即可；<br />
另外，wine默认的中文字体较小，可修改&#8221;LogPixels&#8221;=dword:00000060改变字体大小。</p>
]]></content:encoded>
			<wfw:commentRss>http://wajoynece.cn/2009/05/wine%e5%90%af%e5%8a%a8%e7%a8%8b%e5%ba%8f%e4%b8%ad%e6%96%87%e6%98%be%e7%a4%ba%e4%b9%b1%e7%a0%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

