Install Oracle 9204 Ultimate Summary under Redhad LINUX 9

Source: Internet
Author: User
Tags bz2 command line dba file copy log modify zip linux
Oracle
There are more than n such articles on the Internet, but I installed in the time, no article on the internet for me, and finally I almost browsed all the similar documents after, summed up the following installation methods, I hope you can install this method of success. Good luck to all of you. Remember, this is version 9204 and I haven't tested the other version.

1, the root user to modify the kernel sysctl.conf
Add the following lines to the end of this document:
Kernel.shmall = 2097152
Kernel.shmmax = 2147483648
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Fs.file-max = 65536
Net.ipv4.ip_local_port_range = 1024 65000
The meaning of these parameters can be found on the internet, where Shmmax is shared memory, this is to
Avoid attatch the share momery when used in the future. This is wrong.

2. Build Oracle user and user group as root user
Groupadd dba
AddUser Oracle-g dba
So there's a/home/oracle directory under the/home directory.
We're just going to put Oracle under the/home/oracle directory. So the following statement is important,
If you forget this will make a mistake when you install it is that you do not have the right to execute a file.
chmod 775/home/*

3, modify the Oracle user's. bash_profile file, as follows:

#. Bash_profile

# get the aliases and functions
If [f ~/.BASHRC]; Then
. ~/.bashrc
Fi

Export ld_assume_kernel=2.4.1

Java_home=/usr/j2sdk;export Java_home
jre= $JAVA _home/jre:/usr/local/jre;export JRE

Export Lc_ctype=en_us. UTF-8

Oracle_base=/home/oracle; Export Oracle_base

Export display= "219.149.193.43:0.0"

Export bash_env= $HOME/.BASHRC

Oracle_home= $ORACLE _base/product/9.0.1; Export Oracle_home

Oracle_sid=bill; Export Oracle_sid

Oracle_term=xterm; Export Oracle_term

#TNS_ADMIN = $ORACLE _base/config/9.0.1; Export Tns_admin

Nls_lang=american_america. ZHS16GBK; Export Nls_lang

ora_nls33= $ORACLE _home/ocommon/nls/admin/data; Export ORA_NLS33

Ld_library_path= $ORACLE _home/lib;export Ld_library_path

Classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib
Classpath= $CLASSPATH: $ORACLE _home/network/jlib: $JAVA _home: $JAVA _home/lib: $JRE:/usr/local/jre/lib/i686/green_ Threads
Export CLASSPATH

Tmpdir=/tmp;export Tmpdir


# User specific environment and startup programs

Path= $PATH:/bin:/usr/bin:/usr/sbin:/etc:/opt/bin:/usr/ccs/bin:/usr/openwin
Path= $PATH:/opt/local/bin:/opt/nscpnav/bin: $ORACLE _home/bin
Path= $PATH:/USR/LOCAL/SAMBA/BIN:/USR/UCB
Path= $PATH: $JAVA _home/bin: $JRE/bin
Path= $PATH: $HOME/bin
Export PATH


Umask 022
Unset USERNAME
The above is my entire content, you need to modify is display this parameter, in which the IP needs to change to your own IP.
There are several very important, lc_ctype if not set the words will appear "mouth" such things, can not see clearly.
Ld_assume_kernel This particular important, a look at it is to modify the kernel version of the word will be done when the DBCA error.

4, download P3006854_9204_linux.zip This patch and install (root user).
This patch is generally very difficult to find, if necessary, find me ymxue@sohu.com.
Unzip P3006854.linux.zip
Then there are 3006854 directories, go in, have a. sh file, execute him on it.

5, with the root user to check the installation of the System package.
Rpm-qa|grep Compat
There are a number of articles that require the following packages:
compat-gcc-c++-7.3-2.96.122
compat-libstdc++-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122
compat-glibc-7.x-2.2.4.32.5
Compat-db-4.0.14-5
compat-gcc-7.3-2.96.122
Anyway, these bags are also easy to find, I was the installation of the disk with Compat all found out, and then fully loaded. It's not big anyway.
Rpm-qa | grep openmotif
Openmotif-devel-2.2.2-16
Openmotif-2.2.2-16

Rpm-qa | grep setarch
Setarch-1.3-1
These two bags when I pretend, only the one above, the back of the one did not find, but it does not matter, does not affect.

Go to the Sun website to download J2re-1_3_1_15-linux-i586.rpn.bin and install, this installation is not too difficult. I use this version, and it seems to be possible to say other versions on the Internet.
If this is not installed and do not know what the impact, anyway very strange. But the following must be installed, is jdk118_v3_glibc_2.1.3.tar.bz2.
This document is very difficult to find, need to find me, I was a lot of effort to find. You need to install and move the appropriate location. As follows:
BUNZIP2 jdk118_v3_glibc_2.1.3.tar.bz2
Tar xvf Jdk118_v3_glibc_2.1.3.tar
Out of the catalogue, and then MV/This directory/USR/LOCAL/JRE, note: This is necessary, because the environment variables set earlier are like this.

6, to restart the machine here, the general to install Oracle, should be able to restart, if it can not be restarted, on the/sbin/sysctl-p, so that the previous changes to the core of the entry into force.
Log off at once and log in with an Oracle user. The following is essentially an Oracle user operation.

7, the general is to download Oracle's 3 cpio files to install, I was like this, I put these documents into the/home/oracle directory, and then have the command (CPIO-IDMV < filename) untie, after the untied has
3 A directory such as DISK1,DISK2,DISK3. Enter Disk1,./runinstaller & This will start the installation.
Install it all the way by default, and there's a place for you to enter the group to install Oracle, enter the DBA, and then ask you to run a. sh file as root, and you will open a window and switch to the root user as it says.
Note: In the final installation, you must choose software only this, anyway, I did not choose this installation is not successful, do not know what the reason. When the file copy is complete, you should also tell you to run an. sh file with the root user. Run it.

8, the installation of the database.
Here is the most inexplicable thing, anyway, I did not find out, I installed the method in this way n times, anyway, it was successful, so write it out. I am doing the following:
Rm/home/oracle/product/9.0.1/jre
Ln-s/home/oracle/product/jre/1.3.1/home/oracle/product/9.0.1/jre
Cd/home/oracle/product/jre/1.3.1/bin
Ln-s/home/oracle/product/jre/1.3.1/bin/.java_wrapper JRE
CD I386/native_threads
Ln-s Java JRE
Listen to others say, this is the Java version of the wrong cause, anyway, I do not know why, so do it. But be careful to see if your directory structure is the same as mine.
Then run the DBCA on it, this is the command line program. When running, there are two errors, ignore it, it doesn't matter. The operation was finished and it was all done. You can start the database at the command line.

I have installed a total of N times, n>10, which do not know how many kinds of errors encountered, and eventually completed by this step, and according to this step installed 3 different machines, and now are running well.

Msn:ymxue@sohu.com
qq:4600488


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.