Installing Oracle 9ir2 on RHEL as 3 step-by-step

Source: Internet
Author: User
Tags exit command line variables pack posix zip metalink linux
Oracle
Installing Oracle 9ir2 on RHEL as 3 step-by-step

Author: fenng


Installing Oracle 9ir2 on Red Hat Enterprise Linux Advanced Server 3 (RHEL 3)

Red Hat, the world's largest Linux manufacturer, recently released the Red Hat Enterprise Linux 3. This version boasts the most powerful ever
The source operating system is also considered to be the most complete Linux enterprise-class solution at the moment. The positive sound of many heavyweight manufacturers including Oracle
Many products have been certified on the platform. Oracle 9ir2 naturally also in this column. What is the effect of Oracle 9i+ RHEL3? Maybe a lot of skill
The staff are very interested. The heart is not as good as action, immediately began to build their own application environment, personally feel.

Configure Redhat EL3

Operating system Description: Red Hat Enterprise Linux as Release 3 (Taroon)
Kernel 2.4.21-4.el on a i686


After you install the operating system, you should modify the core parameters. Perform the following parameters:

#echo "kernel.sem=\" 32000 128\ "" >>/etc/sysctl.conf
#echo "kernel.shmmax=2147483648" >>/etc/sysctl.conf

The 250, 32000, 100, and 128 of the first command correspond to the four core parameters of SEMMSL, Semmns, SEMOPM, and Semmni respectively.
The above is a typical core parameter configuration. You may need to make appropriate changes to your actual environment.

Instructions for these core parameters are in Oracle's oracle9i installation Guide Release 2 (9.2.0.1.0) for UNIX Systems
In a very detailed description. (http://download-west.oracle.com/docs/html/A96167_01/toc.htm)

Then, you should check to see if the above operation is correct:

# More/etc/sysctl.conf | grep kernel.s
KERNEL.SYSRQ = 0
kernel.shmmax=2147483648
kernel.sem= "250 32000 100 128"
#


Check and install the relevant patches

To install Oracle on this version of Rhel, you must have several packages (refer to Oracle note:252217.1 on Metalink). Confirm the following
RPM packages are already installed:

# Rpm-qa | grep compat
compat-gcc-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122
compat-gcc-c++-7.3-2.96.122
compat-libstdc++-7.3-2.96.122
compat-glibc-7.x-2.2.4.32.5
Compat-db-4.0.14-5

# Rpm-qa | grep openmotif
Openmotif-2.2.2-16
Openmotif-devel-2.2.2-16

#openmotif -2.2.2-16 can

# Rpm-qa | grep setarch
Setarch-1.3-1

The content shown above is the result of the author having installed the specific RPM package. In general, the output on your system differs from this. If a
Do not pack the installation, install the system CD mount, find the specific package (most on the third CD), and then use the following command to install the corresponding
The package:

# RPM-IVH compat.....rpm

The extra note is that these packages are dependent and sequential in order. Otherwise, errors that cannot be installed are reported.

You will also need to replace GCC and g++ with a version of 2.96. (Refer to Oracle note:252217.1 on Metalink)

# mv/usr/bin/gcc/usr/bin/gcc323
# ln-s/USR/BIN/GCC296/USR/BIN/GCC
# mv/usr/bin/g++/usr/bin/g++323
# ln-s/usr/bin/g++296/usr/bin/g++

If the report cannot find the file, verify that the package is installed.



Check environment variables

This version of the default glibc is appropriate. It's a lot of trouble.

Log on as an Oracle user
# su–oracle
$ cd
$ vi. Bash_profile

#添加如下内容

#这个参数必须指定, otherwise the Java installation interface will not start
Export ld_assume_kernel=2.4.1

Export Oracle_base=/u01/app/oracle
Export Oracle_home= $ORACLE _home/product/9.2.0
Export Oracle_sid=demo
Export Oracle_term=xterm
Export ora_nls33= $ORACLE _home/ocommon/nls/admin/data
Ld_library_path= $ORACLE _home/lib:/lib:/usr/lib
Ld_library_path= $LD _library_path:/usr/local/lib
Export Ld_library_path

# Set Shell Search paths
Export path= $PATH: $ORACLE _home/bin

And then execute
$ source. bash_profile
Make environment variables effective

Description of the LD_ASSUME_KERNEL environment variable:

This parameter is actually designed to avoid the problem of incompatibility between NPTL (Native POSIX Thread Library) and Oracle Applications on Linux. Set
Ld_assume_kernel for 2.4.1 Indicates the use of the old "linuxthreads with floating stacks". (Here are the floating
The general explanation of the stacks. )



Download the necessary patches from Metalink (http://metalink.oracle.com/need CSI)

Required Patches:

P3095277_9204_linux.zip 9.2.0.4.0 's upgrade patch pack.
P3006854_9204_linux.zip before running Runinstaller.
P3119415_9204_linux.zip after the upgrade to 9.2.0.4.0.
P2617419_210_generic.zip dozen 3119415 patches needed.

P3095277_9204_linux.zip is about 300 trillion. How to quickly download patches on Metalink? Please refer to this link:
Http://www.ncn.cn/oracle/tips/oratip009.htm

The three behind are relatively small. You can download it in Itpub:
Http://www.itpub.net/showthread.php?s=&threadid=171693&perpage=15&pagenumber=1

Alas, it is a patch, installation can be considered more time-consuming, do not know whether Oracle's engineers are not every installation will feel trouble.



Start Installation 9.2.0

Before running Runinstaller, you need to patch 3006854: Note that you must be running as root.

# Unzip P3006854_9204_linux.zip
Creates a directory in the current directory and enters the directory

# CD 3006854
#./rhel3_pre_install.sh
If you report the following error:
-bash:./rhel3_pre_install.sh:permission denied
You can change the permissions.
# chmod +x *.sh


You can then run the Runinstaller installation. The process is no longer to repeat.

However, in the relink phase, two errors are reported: Ins_oemagent.mk and Ins_ctx.mk. Point Ignore ignored. To upgrade to the 9.2.0.4 version
You can fix these two bugs.


Upgrade to 9.2.0.4.0

After the installation is complete, you need to deactivate all of Oracle's related programs. After the best command is done, then use the IPCS command to confirm it. And then you can start patching.
Upgraded.

Solution Package:

$ unzip P3095277_9204_linux.zip

$ CPIO-ICVD < 9204_lnx32_release.cpio

You can now run Runinstaller again, locate the patch stage file in the Oui interface, and then you can upgrade.

Attention:
The first step is to upgrade the Oui or not to upgrade to 9.2.0.4. Also, after the upgrade Oui, to exit Oui and then rerun Oui, and then upgrade to 9.2.0.4. Do not exit
Continuing the upgrade will report an error. During the upgrade process, there will still be a ins_oemagent.mk error and the point Ignore ignored. We'll fix that in the next step
Error.


Patch Again

After the upgrade, you need to fix the INS_OEMAGENT.MK error by patching.

First install Opatch.

$ unzip P2617419_210_generic.zip

$ pwd
/u01/install
$ export path= $PATH:/u/install/3119415:/sbin

Attention:
When you modify path, you include the/sbin directory in addition to the extracted Opatch directory, so that you can find the Fuser command. and Fuser command.
Required for this patch process.

$ unzip P3119415_9204_linux.zip
Archive:p3119415_9204_LINUX.zip
creating:3119415/
......
Inflating:3119415/readme.txt

$ CD 3119415
$ opatch Apply



The problem of running DBCA.

$ dbca

The graphical interface will appear normally, then you can choose to create the database, but the last step of the inexplicable interface disappears. The following error occurred on the command line:

/oracle/product/9.2.0.1/bin/dbca:line 124:27348 killed $JRE _dir/bin/jre-doracle_home=
$OH-djdbc_protocol=thin-mx64m-classpath $CLASSPATH
ORACLE.SYSMAN.ASSISTANTS.DBCA.DBCA $ARGUMENTS

To solve this problem:

$vi $ORACLE _HOME/BIN/DBCA

Comment out #将下面列出的除第3 the remaining lines outside the line.

#if [-f/etc/rac_on]; Then
#Run DBCA
$JRE _dir/bin/jre–native–doracle_home= $OH ...
#else
#Run DBCA
# $JRE _dir/bin/jre–doracle_home= $OH ...
#fi

Reference information

Werner Puschitz's installing oracle9i on Red Hat Linux
Pondka is installed on Redhat EL as 3 Oracle9.2.0
Linux:native POSIX Threading Library (NPTL)/(Http://people.redhat.com/drepper/nptl-design.pdf)
Google newsgroups on the DBCA that the wrong solution
Oracle9i installation Guide Release 2 (9.2.0.1.0) for UNIX Systems

Original source:
<a href= "http://www.dbanotes.net/Oracle/Install-Oracle9iR2-RHEL3.htm" >http://www.dbanotes.net/oracle/ Install-oracle9ir2-rhel3.htm</a>

Back Page


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.