{"id":2579,"date":"2019-03-12T11:32:43","date_gmt":"2019-03-12T08:32:43","guid":{"rendered":"https:\/\/sysdba.org\/?p=2579"},"modified":"2025-07-02T06:01:07","modified_gmt":"2025-07-02T06:01:07","slug":"installing-oracle-10g-on-a-unix-solaris-system","status":"publish","type":"post","link":"https:\/\/sysdba.org\/en\/installing-oracle-10g-on-a-unix-solaris-system\/","title":{"rendered":"Installing Oracle 10G on a Unix (Solaris) system"},"content":{"rendered":"<p>We can install the Oracle database by following the steps below.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Hardware requirements<\/strong><\/h3>\n<table style=\"height: 152px; width: 490px;\" border=\"0\">\n<tbody>\n<tr>\n<td><span style=\"text-decoration: underline; font-size: 10pt;\"><strong><span style=\"font-family: verdana, geneva;\">RAM<\/span><\/strong><\/span><\/td>\n<td><span style=\"font-size: 10pt;\"><strong><span style=\"text-decoration: underline;\"><span style=\"font-family: verdana, geneva;\">Recommended SWAP Space<\/span><\/span><\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: Arial, Helvetica, sans-serif; font-size: 14.3999996185303px; line-height: 18.7199993133545px;\">Up to 512 MB<\/span><\/td>\n<td><span style=\"font-family: Arial, Helvetica, sans-serif; font-size: 14.3999996185303px; line-height: 18.7199993133545px;\">Double the amount of RAM<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: Arial, Helvetica, sans-serif; font-size: 14.3999996185303px; line-height: 18.7199993133545px;\">1024 MB &#8211; 2048 MB<\/span><\/td>\n<td><span style=\"font-family: Arial, Helvetica, sans-serif; font-size: 14.3999996185303px; line-height: 18.7199993133545px;\">1.5x the amount of RAM<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: Arial, Helvetica, sans-serif; font-size: 14.3999996185303px; line-height: 18.7199993133545px;\">2049 MB &#8211; 8192 MB<\/span><\/td>\n<td><span style=\"font-family: Arial, Helvetica, sans-serif; font-size: 14.3999996185303px; line-height: 18.7199993133545px;\">As much as the RAM<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: Arial, Helvetica, sans-serif; font-size: 14.3999996185303px; line-height: 18.7199993133545px;\">Over 8192 MB<\/span><\/td>\n<td><span style=\"font-family: Arial, Helvetica, sans-serif; font-size: 14.3999996185303px; line-height: 18.7199993133545px;\">3\/4 the amount of RAM<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>400 MB \/tmp space<\/p>\n<p>1.5 GB &#8211; 3.5 GB for the Oracle application<\/p>\n<p>&nbsp;<\/p>\n<table style=\"height: 117px; width: 503px;\">\n<tbody>\n<tr>\n<td><span style=\"font-size: 12pt; font-family: verdana, geneva;\"><span style=\"text-decoration: underline;\"><strong><span style=\"line-height: 18.7199993133545px;\">Version<\/span><\/strong><\/span> <\/span><\/td>\n<td><strong><span style=\"text-decoration: underline;\"><span style=\"font-family: verdana, geneva; font-size: 12pt; line-height: 18.7199993133545px;\">Minimum Space (GB)<\/span> <\/span><\/strong><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: Arial, Helvetica, sans-serif; font-size: 12pt; line-height: 18.7199993133545px;\">Enterprise Edition<\/span><\/td>\n<td><span style=\"font-size: 12pt;\">2.0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: Arial, Helvetica, sans-serif; font-size: 12pt; line-height: 18.7199993133545px;\">Standard Edition<\/span><\/td>\n<td><span style=\"font-size: 12pt;\">1.5<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-family: Arial, Helvetica, sans-serif; font-size: 12pt; line-height: 18.7199993133545px;\">Custom (maximum)<\/span><\/td>\n<td><span style=\"font-size: 12pt;\">2.5<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>Controller<\/strong><br \/>\n[crayon]\/usr\/sbin\/prtconf | grep &#8220;Memory size&#8221;<\/p>\n<p>\/usr\/sbin\/swap -s<\/p>\n<p>df -k \/tmp<\/p>\n<p>df -h[\/crayon]<br \/>\nChecking application suitability<br \/>\n[crayon]isainfo -kv<\/p>\n<p>[\/crayon]<br \/>\nCheck to see the missing packages<br \/>\n[crayon]pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot<\/p>\n<p>SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt<\/p>\n<p>[\/crayon]<br \/>\nIf there are missing packages<br \/>\n[crayon]cd \/cdrom\/sol_10_910_x86\/Solaris_10\/Product<\/p>\n<p>pkgadd -d .\/ SUNWi1cs<\/p>\n<p>pkgadd -d .\/ SUNWi15cs[\/crayon]<br \/>\nNote: SUNWsprox is no longer necessary<\/p>\n<p>&nbsp;<\/p>\n<p>Creating users and groups<br \/>\n[crayon]groupadd oinstall<\/p>\n<p>groupadd dba<\/p>\n<p>groupadd oper<\/p>\n<p>useradd -m -d \/export\/home\/oracle -s \/usr\/bin\/bash -g oinstall -G dba oracle<\/p>\n<p>[\/crayon]<br \/>\nEntering kernel parameters in <strong>\/etc\/system<\/strong><br \/>\n[crayon]set semsys:seminfo_semmni=100<\/p>\n<p>set semsys:seminfo_semmsl=256<\/p>\n<p>set shmsys:shminfo_shmmax=4294967295<\/p>\n<p>set shmsys:shminfo_shmmni=100[\/crayon]<br \/>\nKernel parameters<\/p>\n<p>Using SHMMAX = 6GB as an example<br \/>\n[crayon]set shmsys:shminfo_shmmax=6442450944<\/p>\n<p>set semsys:seminfo_semmni=1024<\/p>\n<p>set semsys:seminfo_semmsl=1024<\/p>\n<p>set shmsys:shminfo_shmmni=100<\/p>\n<p>[\/crayon]<br \/>\nProject<br \/>\n[crayon]projadd -c &#8220;Oracle&#8221; &#8216;user.oracle&#8217;<\/p>\n<p>projmod -s -K &#8220;project.max-shm-memory=(privileged,52GB,deny)&#8221; &#8216;user.oracle&#8217;<\/p>\n<p>projmod -s -K &#8216;process.max-open-file-descriptor=(basic,1024,deny)&#8217; &#8216;user.oracle&#8217;<\/p>\n<p>[\/crayon]<br \/>\n<strong>Control<\/strong><br \/>\n[crayon]prctl -i project oracle<\/p>\n<p>prctl -n project.max-shm-memory -i project user.oracle<\/p>\n<p>prctl $$<\/p>\n<p>[\/crayon]<br \/>\nEnter the following lines into <strong>\/etc\/inittab<\/strong><br \/>\n[crayon]####Oracle<\/p>\n<p>tm::sysinit:\/usr\/sbin\/ndd -set \/dev\/tcp tcp_smallest_anon_port 9000 &gt; \/dev\/console<\/p>\n<p>tm::sysinit:\/usr\/sbin\/ndd -set \/dev\/tcp tcp_largest_anon_port 65500 &gt; \/dev\/console<\/p>\n<p>tm::sysinit:\/usr\/sbin\/ndd -set \/dev\/udp udp_smallest_anon_port 9000 &gt; \/dev\/console<\/p>\n<p>tm::sysinit:\/usr\/sbin\/ndd -set \/dev\/udp udp_largest_anon_port 65500 &gt; \/dev\/console<\/p>\n<p>[\/crayon]<br \/>\nNecesary line for <strong>.profile<\/strong><br \/>\n[crayon]ulimit -n 1024<\/p>\n<p>[\/crayon]<br \/>\nRequired packages<br \/>\n[crayon]=============================================================<\/p>\n<p>pkginfo -i SUNWarc +<\/p>\n<p>pkginfo -i SUNWbtool +<\/p>\n<p>pkginfo -i SUNWhea +<\/p>\n<p>pkginfo -i SUNWlibC +<\/p>\n<p>pkginfo -i SUNWlibm +<\/p>\n<p>pkginfo -i SUNWlibms +<\/p>\n<p>pkginfo -i SUNWsprot +<\/p>\n<p>pkginfo -i SUNWtoo +<\/p>\n<p>pkginfo -i SUNWi1of &#8211; (either this package isn&#8217;t in the repository or didn&#8217;t give an error message)<\/p>\n<p>pkginfo -i SUNWi1cs (ISO8859-1) &#8211;<\/p>\n<p>pkginfo -i SUNWi15cs (ISO8859-15) +<\/p>\n<p>pkginfo -i SUNWxwfnt &#8211;<\/p>\n<p>pkginfo -i SUNWcsl +<\/p>\n<p>=============================================================[\/crayon]<br \/>\n<strong>.profile<\/strong><br \/>\n[crayon]ORACLE_HOSTNAME=sun11.gantek.local; export ORACLE_HOSTNAME<\/p>\n<p>ORACLE_UNQNAME=yts; export ORACLE_UNQNAME<\/p>\n<p>ORACLE_BASE=\/u01\/app\/oracle; export ORACLE_BASE<\/p>\n<p>ORACLE_HOME=$ORACLE_BASE\/product\/11.2.0\/dbhome_1; export ORACLE_HOME<\/p>\n<p>ORACLE_SID=yts; export ORACLE_SID<\/p>\n<p>BASE_PATH=\/usr\/sbin:$PATH; export BASE_PATH<\/p>\n<p>PATH=$ORACLE_HOME\/bin:$BASE_PATH; export PATH<\/p>\n<p>#alias \u2039 The list of aliases<\/p>\n<p>alias ll=&#8217;ls -ltr&#8217;<\/p>\n<p>alias adb=&#8217;tail -200f \/u01\/app\/oracle\/diag\/rdbms\/yts\/yts\/trace\/alert_yts.log&#8217;<\/p>\n<p>alias sql=&#8217;sqlplus \/ as sysdba&#8217;<\/p>\n<p>alias ohdb=&#8217;cd \/u01\/app\/oracle\/product\/11.2.0\/dbhome_1&#8242;<\/p>\n<p>alias diag=&#8217;cd \/u01\/app\/oracle\/diag&#8217;<\/p>\n<p>alias netdb=&#8217;cd \/u01\/app\/oracle\/product\/11.2.0\/dbhome_1\/network\/admin&#8217;<\/p>\n<p>alias dbs=&#8217;cd \/u01\/app\/oracle\/product\/11.2.0\/dbhome_1\/dbs&#8217;<\/p>\n<p>alias scripts=&#8217;cd \/u01\/app\/oracle\/admin\/yts\/scripts\/'[\/crayon]<br \/>\nMaking folders and granting rights<br \/>\n[crayon]mkdir -p \/u01\/app\/oracle<\/p>\n<p>chown -R oracle:oinstall \/u01\/app\/oracle<\/p>\n<p>chmod -R 775 \/u01\/app\/oracle[\/crayon]<br \/>\nAdd the lines below to the Oracle .profile user file <strong>\/export\/home\/oracle<\/strong><br \/>\n[crayon]# Oracle Settings<\/p>\n<p>TMP=\/tmp; export TMP<\/p>\n<p>TMPDIR=$TMP; export TMPDIR<\/p>\n<p># Select the appropriate ORACLE_BASE<\/p>\n<p>ORACLE_BASE=\/oracle; export ORACLE_BASE<\/p>\n<p>ORACLE_HOME=$ORACLE_BASE\/10g; export ORACLE_HOME<\/p>\n<p>ORACLE_SID=oratr; export ORACLE_SID<\/p>\n<p>PATH=$ORACLE_HOME\/bin:$PATH; export PATH[\/crayon]<br \/>\nEnter the database directory and run the runInstaller script, after which during the installation procedure is the same as other Linux\/Unix distros (such as installing 10G on Red Hat Enterprise Linux)<\/p>\n<p><a href=\"\/wp-content\/old_uploads\/Oracle10GSolaris.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6058 size-full\" src=\"\/wp-content\/old_uploads\/Oracle10GSolaris.png\" alt=\"10G on a Unix (Solaris)\" width=\"682\" height=\"742\" \/><\/a><\/p>\n<p><strong>Common errors or issues<\/strong><\/p>\n<p>&#8220;snmpdx unable to get my ip address&#8221; errors are due to nsswitch.conf hosts&#8211;&gt;dns.<\/p>\n<p>Changing this option to files will most likely resolve this issue. The reason the dns setting causes this error is because the dns is unable to properly resolve its own name or maybe missing from the \/etc\/hosts file.<\/p>\n<p>There needs to be an entry similar to &#8220;192.168.0.10 dbserver.istanbul.localdbserver&#8221; in the hosts file.<\/p>\n<p>&nbsp;<\/p>\n<p>A &#8220;UX: useradd: ERROR: Inconsistent password files&#8221; error could be because of a &#8220;oracle::::project=oracle&#8221; entry in the <strong>user_attr<\/strong> file before creating an Oracle user.<\/p>\n<p>&nbsp;<\/p>\n<p>Issues during the application installation procedure (at the linking stage), while invoking target irman ins_rdbms.mk, can be solved by increasing the size of \/tmp.<br \/>\n[crayon]zfs create -V 2gb rpool\/extraswap<\/p>\n<p>swap -a \/dev\/zvol\/dsk\/rpool\/extraswap<\/p>\n<p>[\/crayon]<br \/>\nTo fix a sh runInstaller &#8220;ld.so libXM.so open failed no such file or directory&#8221; error.<br \/>\n[crayon]pkg install pkg:\/\/solaris\/library\/motif<\/p>\n<p>[\/crayon]<br \/>\nORA-27300: OS system dependent operation:fork failed with status: 11<\/p>\n<p>ORA-27301: OS failure message: Resource temporarily unavailable<\/p>\n<p>ORA-27302: failure occurred at: skgpspawn3<\/p>\n<p>&nbsp;<\/p>\n<p>Troubleshooting ORA-27300 ORA-27301 ORA-27302 errors [ID 579365.1]<\/p>\n<p>Ora-27300 OS system dependent operation:fork failed with status: 11 [ID 392006.1]<\/p>\n<p><a href=\"https:\/\/blogs.oracle.com\/hasham\/entry\/solaris_10_increasing_number_of\">https:\/\/blogs.oracle.com\/hasham\/entry\/solaris_10_increasing_number_of<\/a><br \/>\n[crayon]# mdb -kw<\/p>\n<p>Loading modules: [ unix krtld genunix specfs dtrace uppc apix cpu.generic zfs sockfs ip hook neti sctp arp usba uhci fcp fctl qlc nca lofs md cpc random crypto fcip logindmux ptm ufs sppp nfs ipc ]<\/p>\n<p>maxuprc\/D<\/p>\n<p>maxuprc:<\/p>\n<p>maxuprc: 27061<\/p>\n<p>maxuprc\/W 88B8<\/p>\n<p>maxuprc: 0x69b5 = 0x88b8<\/p>\n<p>maxuprc\/D<\/p>\n<p>maxuprc:<\/p>\n<p>maxuprc: 35000[\/crayon]<br \/>\nTo make the changes in <strong>\/etc\/system<\/strong> permanent after reboot:<br \/>\n[crayon]set maxuprc = 35000<\/p>\n<p>set max_nprocs = 35000<\/p>\n<p>[\/crayon]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We can install the Oracle database by following the steps below.<\/p>\n","protected":false},"author":1,"featured_media":3411,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[383,338],"tags":[345],"class_list":["post-2579","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dba_i","category-oracle-tr","tag-oracle"],"_links":{"self":[{"href":"https:\/\/sysdba.org\/en\/wp-json\/wp\/v2\/posts\/2579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sysdba.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sysdba.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sysdba.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sysdba.org\/en\/wp-json\/wp\/v2\/comments?post=2579"}],"version-history":[{"count":1,"href":"https:\/\/sysdba.org\/en\/wp-json\/wp\/v2\/posts\/2579\/revisions"}],"predecessor-version":[{"id":4828,"href":"https:\/\/sysdba.org\/en\/wp-json\/wp\/v2\/posts\/2579\/revisions\/4828"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sysdba.org\/en\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/sysdba.org\/en\/wp-json\/wp\/v2\/media?parent=2579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sysdba.org\/en\/wp-json\/wp\/v2\/categories?post=2579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sysdba.org\/en\/wp-json\/wp\/v2\/tags?post=2579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}