How To Install Oracle 10g on RedHat Enterprise 3
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
Discuss This Article
Post Tags (user submitted): t (213) - semopm redhat (109) - how to install oracle 10g on linux (96) - redhat semopm (74) - oracle 10g installation on Linux (55) - "install oracle 10g on linux" (51) - how to install oracle 10g (44) - change semopm (43) - sysctl semopm (42) - install oracle redhat (41) - spiralbound net (38) - Installing Oracle 10g on Linux (33) - oracle (28) - install oracle 10g on redhat (28) - "install oracle on redhat" (27) - semopm sysctl (25) - f (23) - "installing oracle on redhat" (22) - install oracle 10g redhat (20) - oracle 10g redhat (20) - oracle 10g redhat 5 (20) - semopn (19) - "install Oracle 10g" + "linux" (19) - redhat 5 oracle (19) - redhat kernel semopm (18) - kernel.sem (17) - oracle semopm (17) - oracle + "redhat 5" (16) - oracle 10g cpio (15) - "oracle redhat" (15) - how to install oracle 10g in linux (15) - all (14) - how to install oracle (14) - oracle 10g rpm (13) - how to install oracle 10g on redhat linux (13) - installation oracle redhat (12) - install oracle 10g on solaris (12) - semopm red hat (12) - oracle 10g redhat howto (12) - how to install oracle redhat (12) - how to install oracle on redhat (12) - semopm +oracle (12) - SEMMNS redhat (11) - oracle redhat installation (11) - installing oracle 10g on +"solaris 10" (11) - installing oracle 10g on red hat linux (11) - installing oracle 10g on redhat linux (11) - oracle 10g installation in linux (11) - how to change semopm (11) - shmall redhat (10) - semopm (10) - oracle 10 howto (9) - installing oracle 10g on redhat (9) - "how to install oracle 10g on redhat" (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) - how to install oracle in redhat (9) - Oracle 10g installation (9) - install oracle 10g redhat 5 (9) - "install oracle 10g" (8) - install oracle 10 redhat (8) - Installing Oracle 10g on Red Hat (8) - redhat install oracle (8) - redhat es4 oracle 10g (8) - HOWTO Install Oracle 10g Redhat (8) - redhat semopn (8) - how to install oracle in solaris (8) - installing oracle on red hat (8) - install oracle 10g red hat (8) - oracle 10 install (8) - oracle on Redhat 5 (8) - install oracle on red hat (8) - oracle 10g install on linux (8) - install oracle on redhat (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 redhat howto (7) - install Oracle 10g on RedHat Linux (7) - oracle 10g redhat es4 (7) - installation oracle 10g redhat (7) - "How To Install Oracle 10g on Solaris" (7) - linux semopn (7) - redhat semmni (7) - "how to install oracle 10" (7) - cpio Oracle 10g (7) - how to install oracle on red hat (7) - redhat 5 oracle 10g (7) - how to uninstall oracle 10g (7) - Oracle 10g (6) - oracle redhat enterprise (6) - steps to install oracle 10g on RedHat Linux (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) - oracle10g redhat (6) - oracle 10g redhat install (6) - red hat semopm (6) - Install Oracle 10g on RedHat 4 (6) - how to install oracle10g (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 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) - redhat oracle rpm (6) - oracle redhat install (6) - oracle 10 red hat 5 (6) - how to install oracle 10g for linux? (6) - semopm change (6) - oracle 10g installation cpio (6) - kernel.semopn (5) - max number of processes per user (5) - oracle 10g installation + redhat (5) - oracle 10 on 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) - installing oracle 10g on linux es4 (5) - Oracle semopn (5) - how to setup oracle 10g on linux (5) - "oracle 10g install" redhat (5) - install oracle 10g on red hat (5) - oracle 10 redhat install (5) - semopm redhat oracle (5) - redhat oracle 10g (5) - redhat shmall (5) - installing oracle 10g on linux red hat (5) - how to install oracle in red hat (5) -
[...] Here is a HOWTO for installing oracle on RedHat Enterprise 3. [...]
[...] 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. [...]
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.
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.
For those of us that have installed on other platforms and just need a quick reference for Red Hat, this is great!