Install Oracle 9ir2 on RHEL as 3 (excerpt)

Source: Internet
Author: User
Tags metalink
Installing Oracle 9ir2 on RHEL as 3 step-by-step

By fenng

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

Red Hat, the world's largest Linux vendor, recently released Red Hat Enterprise Linux 3. The version number is the most powerful
The source operating system is also regarded as the most complete enterprise-level Linux solution.
Yes, many products have passed certification on this platform. Oracle 9ir2 is also listed here. What will happen to Oracle 9i + rhel3? Many technical skills
The artist is very interested. If you are not as eager as you are, you should immediately start building your own application environment and feel it for yourself.

Configure Redhat EL3

Operating System Description: Red Hat Enterprise Linux as Release 3 (taroon)
Kernel 2.4.21-4.el on an i686

After installing the operating system, modify the core parameters. Execute the following parameters:

# Echo "kernel. SEM =/" 250 32000 100 128/">/etc/sysctl. conf
# Echo "kernel. shmmax = 2147483648">/etc/sysctl. conf

In the first command, 250, 32000, and 100 correspond to the four core parameters semmsl, semmns, semopm, and semmni respectively.
The above is a typical core parameter configuration. You may need to make appropriate changes based on your actual environment.

Description of these core parameters in OracleOracle9i Installation GuideRelease 2 (9.2.0.1.0) for Unix systems
There is a very detailed description. (http://download-west.oracle.com/docs/html/A96167_01/toc.htm)

Then, check whether the above operations are correct:

# More/etc/sysctl. conf | grep kernel. s
Kernel. sysrq = 0
Kernel. shmmax = 2147483648
Kernel. SEM = "250 32000 100 128"
#

Check and install patches

To install oracle on RHEL of this version, you must have several software packages (refer to Oracle note: 252217.1 on Metalink). Confirm the following
All RPM packages have been 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

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

The content shown above is the result after the author has installed a specific rpm package. In general, the output result on your system is different from this one.
Do not install the package. Mount the system installation disc and find the specific software package (most of which are on the third disc). Then, use the following command to install the corresponding
Package:

# Rpm-IVH compat... rpm

Note that these software packages are dependent on each other and must be sorted in sequence. Otherwise, errors that cannot be installed will be reported.

You also need to replace GCC and G ++ with version 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 ++ 323
# Ln-S/usr/bin/g + + 296/usr/bin/g ++

If no file is found in the report, check whether the software package is installed.

 

Check Environment Variables

The default glibc of this version is very suitable, saving a lot of trouble.

Log On As an oracle user
# Su-Oracle
$ Cd
$ VI. bash_profile

# Add the following content

# This parameter must be specified. Otherwise, the Java installation interface cannot be started.
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:/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

Then execute
$ Source. bash_profile
Make environment variables take effect

Descriptions of ld_assume_kernel environment variables:

This parameter is used to avoid incompatibility between nptl (native POSIX thread Library) and Oracle Applications on Linux.
Ld_assume_kernel 2.4.1 indicates that the old "linuxthreads with floating stacks" is used.
Stacks .)

Download required patches from Metalink (http://metalink.oracle.com/CSI required)

Required patches:

Upgrade patch for p3095277_9204_linux.zip 9.2.0.4.0.
P3006854_9204_linux.zip before running runinstaller.
After you upgrade p3119415_9204_linux.zip to 9.2.0.4.0.
P2617419_210_generic.zip.

P3095277_9204_linux.zip has more than 300 mb. How can this problem be solved?Quick download of patches on Metalink? Please refer to this link:
Http://www.ncn.cn/oracle/tips/oratip009.htm

The following three items are relatively small. You can download them in itpub:
Http://www.itpub.net/showthread.php? S = & amp; threadid = 171693 & perpage = 15 & amp; pagenumber = 1

Alas, it's a patch, and the installation is quite cost-effective. I don't know if Oracle engineers will be in trouble every time they install it.

Start to install 9.2.0

Install patch 3006854 before running the runinstaller: note that it must be run as root.

# Unzip p3006854_9204_linux.zip
Creates a directory under the current directory and enters the directory.

# CD 1, 3006854
#./Rhel3_pre_install.sh
If the following error is reported:
-Bash:./rhel3_pre_install.sh: Permission denied
Modify the permission.
# Chmod + x *. Sh

Then you can run runinstaller to install it. The operation process is not described in detail.

However, in the relink stage, two errors are reported: ins_oemagent.mk and ins_ctx.mk.IgnoreIgnore. Upgrade9.2.0.4Only
These two bugs can be fixed.

Upgrade to 9.2.0.4.0

After the installation is complete, you need to stop all related Oracle programs. It is best to run the command and then run the IPCS command to confirm. Then you can start patching.
Upgraded.

Unpack:

$ Unzip p3095277_9204_linux.zip

$ Cpio-ICVD <9204_lnx32_release.cpio

Now you can run runinstaller again, find the patch stage file on the Oui interface, and then you can upgrade it.

Note:
First, you must upgrade the oui. Otherwise, do not allow the Oui to be upgraded to 9.2.0.4. After the Oui is upgraded, you must exit the oui and run the Oui again. Then, upgrade the Oui to 9.2.0.4. Do not exit.
An error will be reported when you continue the upgrade. The ins_oemagent.mk error will still occur during the upgrade. click Ignore to ignore it. We will fix the problem in the next step.
Error.

Patch again

After the upgrade, install patches to fix the ins_oemagent.mk error.

First install opatch.

$ Unzip p2617419_210_generic.zip

$ Pwd
/U01/install
$ Export Path = $ path:/u/install/3119415:/sbin

Note:
When modifying the path, you must include the decompressed opatch directory and the/sbin directory to find the fuser command. The Fuser command is also
Which is required by the patch process.

$ Unzip p3119415_9204_linux.zip
Archive: p3119415_9204_linux.zip
Creating: 3119415/
......
Inflating: 3119415/readme.txt

$ CD 3119415
$ Opatch apply

Dbca running problems.

$ Dbca

The graphic interface Appears normally, and you can choose to create a database, but the last step disappears inexplicably. the following error occurs in 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 the remaining rows except the 3rd rows listed below.

# 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

References

Werner puschitz's installing Oracle9i on Red Hat Linux
Of pondka Install oracle9.2.0 on Redhat El as 3
Linux: Native POSIX threading Library (nptl)/(http://people.redhat.com/drepper/nptl-design.pdf)
Solution to the dbca error in the Google newsgroup
Oracle9i Installation GuideRelease 2 (9.2.0.1.0) for Unix systems

Source:
<A href = "http://www.dbanotes.net/Oracle/Install-Oracle9iR2-RHEL3.htm"> http://www.dbanotes.net/Oracle/Install-Oracle9iR2-RHEL3.htm </a>

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.