{"id":18,"date":"2013-03-04T15:58:00","date_gmt":"2013-03-04T15:58:00","guid":{"rendered":"https:\/\/sanmaharjan.com\/2013\/03\/04\/installing-oracle-11g-in-rhel-5\/"},"modified":"2014-02-03T15:18:33","modified_gmt":"2014-02-03T15:18:33","slug":"installing-oracle-11g-in-rhel-5","status":"publish","type":"post","link":"https:\/\/sanmaharjan.com\/installing-oracle-11g-in-rhel-5\/","title":{"rendered":"Installing Oracle 11g in RHEL 5"},"content":{"rendered":"

\n<\/p>\n
    \n
  1. Checking the network setup:<\/span><\/li>\n<\/ol>\n
    a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Verify the hostname (Issue command hostname)<\/span><\/div>\n
    b.\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Change the current hostname in kernel<\/span><\/div>\n
    sysctl kernel.hostname=NEW_HOSTNAME<\/span><\/span><\/div>\n
    2.\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Editing Hostname \/etc\/hosts<\/b><\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/i>127.0.0.1\u00a0\u00a0\u00a0 <\/span>\u00a0\u00a0<\/span>localhost.localdomain localhost<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>::1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>localhost6.localdomain6 localhost6<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>192.168.x.x\u00a0\u00a0 <\/span>fullhostname\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>hostname<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/div>\n
    3.\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>All necessary prerequisites will be performed automatically<\/span>. <\/span><\/div>\n
    If you plan to use the “oracle-rdbms-server-11gR2-preinstall” package to perform all your prerequisite setup, follow the instructions at <\/span>http:\/\/public-yum.oracle.com<\/span><\/a> to setup the yum repository for OL, then perform the following command. <\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span># cd \/etc\/yum.repos.d<\/code><\/pre>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span># mv Oracle-Base.repo Oracle-Base.repo.disabled<\/code><\/pre>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span># wget <\/code>http:\/\/public-yum.oracle.com\/public-yum-el5.repo<\/a><\/code><\/pre>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span># yum list<\/code><\/pre>\n
    \u00a0 <\/span><\/code># yum install oracle-rdbms-server-11gR2-preinstall<\/pre>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>Or <\/span><\/pre>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>#<\/span> yum install oracle-validated<\/pre>\n
    <\/div>\n
    4.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Manual Configuration. <\/span><\/div>\n
    4.1\u00a0\u00a0 <\/span><\/span><\/span>Add the following lines to the \/etc\/security\/limits.conf file:<\/span><\/div>\n
    \n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>oracle\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>soft\u00a0\u00a0\u00a0 <\/span>nproc\u00a0\u00a0 <\/span>2047<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>oracle\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>hard\u00a0\u00a0\u00a0 <\/span>nproc\u00a0\u00a0 <\/span>16384<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>oracle\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>soft\u00a0\u00a0\u00a0 <\/span>nofile\u00a0 <\/span>4096<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>oracle\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>hard\u00a0\u00a0\u00a0 <\/span>nofile\u00a0 <\/span>65536<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>oracle\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>soft\u00a0\u00a0\u00a0 <\/span>stack\u00a0\u00a0 <\/span>10240<\/span><\/div>\n
    <\/div>\n<\/blockquote>\n
    4.2\u00a0\u00a0 <\/span><\/span><\/span>Edit \/etc\/selinux\/config file and disable SELINUX<\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>SELINUX=disabled<\/span><\/div>\n
    <\/div>\n
    5\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Create the new groups and users:<\/span><\/div>\n
    \n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>groupadd -g 501 oinstall<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>groupadd -g 502 dba<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>groupadd -g 503 oper<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>useradd \u2013u 502 -g oinstall -G dba oracle<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>passwd oracle<\/span><\/div>\n<\/blockquote>\n
    6\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Create the directories in which the Oracle software will be installed:<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>mkdir -p \/u01\/app\/oracle<\/span><\/div>\n
    \u00a0 <\/span>\u00a0\u00a0<\/span>\u00a0<\/span>\u00a0<\/span>chown -R oracle.oinstall \/u01<\/span><\/div>\n
    7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Login as root and issue the following command:<\/span><\/div>\n
    \n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>xhost +<\/span><\/div>\n<\/blockquote>\n
    8\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Edit \/home\/oracle\/.bash_profile from oracle user as:<\/span><\/div>\n
    \n
    export ORACLE_HOSTNAME=hostname; <\/span><\/div>\n
    export ORACLE_UNQNAME=orclunq; <\/span><\/div>\n
    export ORACLE_BASE=\/u01\/app\/oracle; <\/span><\/div>\n
    export ORACLE_HOME=$ORACLE_BASE\/product\/11.2.0\/db_1;<\/span><\/div>\n
    export ORACLE_SID=orcl; <\/span><\/div>\n
    export PATH==$ORACLE_HOME\/bin:$ORACLE_HOME\/OPatch:\/usr\/sbin:$PATH; <\/span><\/div>\n
    export LD_LIBRARY_PATH=$ORACLE_HOME\/lib:\/lib:\/usr\/lib; <\/span><\/div>\n
    export CLASSPATH=$ORACLE_HOME\/jlib:$ORACLE_HOME\/rdbms\/jlib; <\/span><\/div>\n<\/blockquote>\n
    <\/div>\n
    9\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Unzip Installer of Oracle Database<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/i># unzip oracle_Linux-x86-64_1of2.zip<\/span><\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span># unzip oracle_Linux-x86-64_1of2.zip<\/span><\/div>\n
    10\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Start the Oracle Universal Installer (OUI) by issuing the following command in the database \u00a0<\/span>directory:<\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span># .\/runInstaller<\/span><\/div>\n
    11\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Fix the RPM issues and Kernel Parameters as suggested<\/div>\n
    12\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Follow the GUI generated by OUI to complete the installation according to requirement.<\/div>\n
    13\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>Install Only Software, By choosing Setup Wizard.<\/div>\n
    14\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span>After installation of software create database with command<\/div>\n
    \u00a0\u00a0\u00a0\u00a0\u00a0 <\/span># dbca<\/span><\/div>\n
    14.1.1\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><\/i>While setting Memory Parameter, Check off the Automatic Memory Management Check Box and choose Set SGA\/PGA with Needs<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

    Checking the network setup: a.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Verify the hostname (Issue command hostname) b.\u00a0\u00a0\u00a0\u00a0\u00a0 Change the current hostname in kernel sysctl kernel.hostname=NEW_HOSTNAME 2.\u00a0\u00a0\u00a0\u00a0\u00a0 Editing Hostname \/etc\/hosts \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 127.0.0.1\u00a0\u00a0\u00a0 \u00a0\u00a0localhost.localdomain localhost \u00a0\u00a0\u00a0\u00a0\u00a0 ::1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 localhost6.localdomain6 localhost6 \u00a0\u00a0\u00a0\u00a0\u00a0 192.168.x.x\u00a0\u00a0 fullhostname\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 hostname \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3.\u00a0\u00a0\u00a0\u00a0\u00a0 All necessary prerequisites will be performed automatically. If you plan to use the “oracle-rdbms-server-11gR2-preinstall” package to perform […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[32,31],"tags":[22,23,12,24,25],"_links":{"self":[{"href":"https:\/\/sanmaharjan.com\/wp-json\/wp\/v2\/posts\/18"}],"collection":[{"href":"https:\/\/sanmaharjan.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanmaharjan.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanmaharjan.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sanmaharjan.com\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":3,"href":"https:\/\/sanmaharjan.com\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":81,"href":"https:\/\/sanmaharjan.com\/wp-json\/wp\/v2\/posts\/18\/revisions\/81"}],"wp:attachment":[{"href":"https:\/\/sanmaharjan.com\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanmaharjan.com\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanmaharjan.com\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}