• So you’ve got Oracle 10G and you want to install it on your RedHat Enterprise 3 server. Well, since Oracle can’t manage to create tar files like everyone else in the world, you have to find a way of dealing with the .cpio they send you. Here’s how to get it extracted:

    cpio -idmv < /path/to/ship-version.cpio

    This extracts everything nicely into a Disk1 directory.

    Now, before flying off and running the installer, you have a couple of things to do first. To start, you have to tweak your kernel a bit. There are a number of ways to do this, but I like to use the /etc/sysctl.conf file.

    Edit /etc/sysctl.conf and add the following lines:

    kernel.shmall = 134217728
    kernel.shmmax = 2147483648
    kernel.semopn = 100
    semaphores: semmsl, semmns, semopm, semmni
    kernel.sem = 250 32000 100 128
    fs.file-max = 65536
    net.ipv4.ip_local_port_range = 1024 65000

    Next you have to add an oracle user and a dba group. Run the following commands as root:

    groupadd dba
    useradd -d /path/to/oracle/user/directory -g dba -c ‘Oracle User’ -s /path/to/fovorite/shell oracle
    chown oracle:dba /path/to/oracle/user/directory
    passwd oracle (set new password)

    Add the following environmental settings to your oracle user’s .bashrc file. Feel free to change them if you are using a C-Type shell.

    # Oracle Settings
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR

    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.1.0/Db_1; export ORACLE_HOME
    ORACLE_SID=YOUR_SID; export ORACLE_SID
    ORACLE_TERM=xterm; export ORACLE_TERM
    PATH=/usr/sbin:$PATH; export PATH
    PATH=$ORACLE_HOME/bin:$PATH; export PATH

    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

    That should just about do it. Restart the system, log in as the oracle user and run the oracle installer (/path/to/Disk1/runInstaller). Check to make sure that all the settings from your .bashrc file are picked up by the oracle installer and have fun.

    In some cases, the installer may complain about not having the required packages. If it does this, make sure that the following packages are installed:

    setarch-1.3-1.i386.rpm
    openmotif-2.2.2-16.i386.rpm
    compat-libstdc++-7.3-2.96.122.i386.rpm
    compat-libstdc++-devel-7.3-2.96.122.i386.rpm
    compat-db-4.0.14-5.i386.rpm
    compat-gcc-7.3-2.96.122.i386.rpm
    compat-gcc-c++-7.3-2.96.122.i386.rpm

    This entry was posted on Tuesday, October 25th, 2005 at 2:16 pm and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 5 Comments

    Take a look at some of the responses we've had to this article.

    1. [...] Here is a HOWTO for installing oracle on RedHat Enterprise 3. [...]

    2. [...] How to Install Oracle 10g on RedHat Enterprise 3 – suggestion: skip the 80% of your documentation that Oracle took care of and just put in the part about setting the environment variables. If you want to be helpful to n00bs you should explain that you need to set ORACLE_BASE to whatever you installed to, not necessarily /u01/app/oracle. They’re going to cut-n-paste your stuff and wonder why it’s not working. The product is also “Red Hat” (two words) “Enterprise Linux 3.” You get a D. [...]

    3. Nov 7th
      Reply

      Dear lone sysadmin,
      Have you ever installed Oracle? Ever read the documentation? This type of cliff-notes (pun intended) are exactly what you need to take the hour it took to read and digest the documentation the first time, and make it a quick 5 minute skim so you can get on your way.

      People new to Oracle should sit down with the docs, learn to hate them, learn to love them, but after that have a shorter reference to go back to. That’s exactly what this post is about.

      I’m sorry you’ve missed the point of this post, and from what I can see on your blog, many others like it. Somehow I am not surprised to find that “General Ramblings” is your biggest category, but perhaps you could focus some of your energies on providing some informational or at least entertaining content.

    4. Nov 7th
      Reply

      Rewriting documentation in boiled down easy step by steps is one of the great uses of blogs. Sure, these instructions may not tell you the *ideal* setup, but they may get someone around some serious roadblocks. If a “n00b” uses this copy and paste to get Oracle up and running, great! Now they can play with it, tweak it, and spend time understanding what they did and how it’s working.

      If ignorance is bliss, the lone sysadmin is orgasmic.

    5. Susan
      Nov 9th
      Reply

      For those of us that have installed on other platforms and just need a quick reference for Red Hat, this is great!

  • Leave a Reply

    Let us know what you thought.

  • Name (required):

    Email (required):

    Website:

    Message:

Visitors have tagged this post: t (213) - semopm redhat (153) - redhat semopm (110) - how to install oracle 10g on linux (101) - oracle 10g installation on Linux (62) - change semopm (58) - sysctl semopm (55) - oracle (53) - "install oracle 10g on linux" (51) - install oracle redhat (47) - how to install oracle 10g (46) - spiralbound net (38) - semopm sysctl (37) - Installing Oracle 10g on Linux (36) - install oracle 10g on redhat (29) - kernel.sem (28) - "install oracle on redhat" (27) - semopn (24) - redhat kernel semopm (24) - f (23) - "installing oracle on redhat" (22) - oracle semopm (22) - oracle 10g redhat 5 (21) - install oracle 10g redhat (20) - oracle 10g redhat (20) - "install Oracle 10g" + "linux" (19) - how to install oracle 10g in linux (19) - redhat 5 oracle (19) - how to change semopm (18) - oracle 10g cpio (16) - oracle redhat installation (16) - how to install oracle on redhat (16) - oracle + "redhat 5" (16) - "oracle redhat" (15) - semopm red hat (15) - all (14) - how to install oracle (14) - installation oracle redhat (13) - oracle 10g rpm (13) - how to install oracle redhat (13) - how to install oracle 10g on redhat linux (13) - oracle 10g installation in linux (13) - install oracle on redhat (13) - install oracle 10g on solaris (12) - oracle 10g redhat howto (12) - semopm +oracle (12) - shmall redhat (11) - SEMMNS redhat (11) - installing oracle 10g on redhat (11) - installing oracle 10g on +"solaris 10" (11) - installing oracle 10g on red hat linux (11) - installing oracle 10g on redhat linux (11) - semopm (11) - redhat install oracle (10) - linux semopn (10) - installing oracle on red hat (10) - install oracle 10g redhat 5 (10) - oracle 10g install on linux (10) - install oracle 10 redhat (9) - oracle 10 howto (9) - "how to install oracle 10g on redhat" (9) - red hat semopm (9) - redhat semopn (9) - how to install oracle10g on linux (9) - oracle 10g installation howto (9) - How to install oracle 10g under linux (9) - mss (9) - SEMMNI redhat (9) - install oracle 10g red hat (9) - how to install oracle in redhat (9) - oracle on Redhat 5 (9) - install oracle on red hat (9) - Oracle 10g installation (9) - oracle redhat install (9) - semopm change (9) - how to uninstall oracle 10g (9) - "install oracle 10g" (8) - Installing Oracle 10g on Red Hat (8) - oracle redhat howto (8) - redhat es4 oracle 10g (8) - HOWTO Install Oracle 10g Redhat (8) - semopm sysctl.conf (8) - how to install oracle in solaris (8) - cpio Oracle 10g (8) - how to install oracle on red hat (8) - oracle 10 install (8) - oracle installation on redhat (8) - install oracle 10g on linux (8) - install "oracle 10g" on "solaris 10" (7) - oracle redhat semopm (7) - oracle 10g linux howto (7) - oracle 10g howto (7) - how to install oracle 10g on solaris 10 (7) - ORACLE 10G installation on redhat linux (7) - redhat SEMMNS (7) - install oracle 10 (7) - oracle 10g redhat install (7) - install Oracle 10g on RedHat Linux (7) - oracle 10g redhat es4 (7) - how to install oracle10g (7) - installation oracle 10g redhat (7) - "How To Install Oracle 10g on Solaris" (7) - redhat semmni (7) - "how to install oracle 10" (7) - redhat 5 oracle 10g (7) - oracle 10g installation cpio (7) - Oracle 10g (6) - oracle redhat enterprise (6) - steps to install oracle 10g on RedHat Linux (6) - oracle 10 on redhat (6) - oracle 10g on redhat (6) - oracle shmall (6) - install oracle, redhat enterprise (6) - howto install oracle solaris (6) - ip_local_port_range oracle (6) - sysctl.conf SEMOPM (6) - oracle10g redhat (6) - Install Oracle 10g on RedHat 4 (6) - "how to install oracle on solaris" (6) - install oracle10g on redhat (6) - oracle-10 redhat (6) - redhat install oracle 10g (6) - redhat-3 (6) - install oracle 10g on red hat (6) - oracle 10 redhat install (6) - install oracle 10g cpio (6) - how to install oracle 10g on red hat? (6) - oracle10g installation on linux (6) - how to install oracle 10g on red hat linux (6) - "Oracle 10g Install" (6) - oracle 10g redhat installation (6) - oracle 10g install cpio (6) - installing oracle 10g on Redhat 5 (6) - redhat oracle rpm (6) - oracle 10 red hat 5 (6) - how to install oracle 10g for linux? (6) - installing oracle on redhat (6) - kernel.semopn (5) - kernel.shmall (5) - max number of processes per user (5) - oracle 10g installation + redhat (5) - semopm 10g (5) - installing oracle 10g on redhat ENTERPRISE (5) - install oas 10g (5) - HOWTO install oracle 10g on linux (5) - install oracle10g (5) - install oracle 10g on redhat es4 (5) - installation oracle 10g ES4 (5) - oracle 10g redhat as3 (5) - 10g + redhat (5) -