RedHat Linux As5 installation of Oracle 10 GB and FAQs

Source: Internet
Author: User
Tags change settings

Environment:

Operating System: Windows XP

Virtual Machine: VMWare 5.5.3

Linux: RHEL 5

Note: Since RHEL 5 is not supported in Oracle official documentation, the following configuration items are subject to Oracle requirements for RHEL 4.0.

I. Check hardware

1. View Ram and swap space and disk size

Command: # grep memtotal/proc/meminfo

# Grep swaptotal/proc/meminfo

# DF-H

# DF-k/tmp

Requirements:

The minimum Ram required is 256 MB, and the minimum swap space required is 512 MB. For systems with Ram less than or equal to 2 GB, the swap space should be twice the number of Ram; for systems with Ram greater than 2 GB, the swap space should be one to two times the number of RAM.
Oracle 10 Gb software also requires 2.5 GB of available disk space, while the database requires an additional 1.2 GB of available disk space. The/tmp directory requires at least 400 mb of available space.

But the official 10 Gb requirement is: The minimum Ram is 1024 MB, and the SWAp is twice the ram. Ram is 1025mb ~ 2048 MB, and 1.5 times of RAM. Ram is 2049mb ~ 8192 mb. Swap and RAM are equal. Ram is greater than 8192 MB, and swap is 0.75 times of RAM. The/tmp directory must be at least 400 mb. 10 Gb ~ GB for installing Oracle 10 Gb Software ~ 3.5gb disk space. The Oracle database requires 1/2 GB disk space.

 

Ii. Verify Linux Installation

1. Check the kernel version

Command:

# Uname-R

Required version: 2.6.9-5.el( required for official RHEL 4.0)

2. Check required software packages

Command:

# Rpm-Q package-name

Required packages and their versions:

Binutils-2.15.92.0.2-13.EL4
Compat-db-4.1.25-9
Compat-libstdc ++-296-2.96-132.7.2
Control-center-2.8.0-12
Gcc-3.4.3-22.1.EL4
Gcc-C ++-3.4.3-22.1.el44
Glibc-2.3.4-2.9
Glibc-common-2.3.4-2.9
Gnome-libs-1.4.1.2.90-44.1
Libstdc ++-3.4.3-22.1
Libstdc +-devel-3.4.3-22.1
Make-3.80-5
Pdksh-5.2.14-30
Sysstat-5.0.5-1
Xscreensaver-4.18-5.rhel4.2
Setarch-1.6-1

* ****** If a software package is not installed, insert it into the installation CD of the Linux system and install it using the following method *******

# Rpm-IVH package-name-Major-version *

Example: # rpm-uvh compat-db-4 *

Note: 1. The sysstat-5.0.5-1 and xscreensaver-4.18-5.rhel4.2 package are not found on the disc. Download related packages to other links for Installation

2. When the openmotif-* package is installed, the libxp. so.6 package is required. I am too lazy to install libxp-* directly by using rpm -*.

3. Configure Linux for Oracle

1. Create a group and a user

* The user account is called Oracle, and the group is called oinstall and DBA.

Command:

/Usr/sbin/groupadd oinstall
/Usr/sbin/groupadd DBA
/Usr/sbin/useradd-G oinstall-g dba Oracle
Id Oracle

* Set the Oracle user password

Command:

Passwd Oracle

* Create a directory

Log on as a root user

Command:

Mkdir-P/u01/data/Oracle

Mkdir-P/u02/oradata

Chown-r ORACLE: oinstall/u01/u02

Chmod-r 775/u01/u02

* Oracle user environment variables

To use ORACLE products, you must set several environment variables. For database servers, we recommend that you set the following environment variables:
Oracle_base
ORACLE_HOME
Oracle_sid
Path

1. Oracle 10g officially does not support As5, but supports other versions such as as4. There are three solutions to this problem.
A. modify the system version
Edit/etc/RedHat-release
# Vi/etc/RedHat-release
Red Hat Enterprise Linux Server Release 5 (tikanga)
Change
Red Hat Enterprise Linux Server Release 4 (tikanga)

* Remember to change the system back to the original version after Oracle installation is complete.

B. Modify the Oracle Installation File to fill the redhat-5
# Vi/10201_database_linux32/database/install/oraparam. ini
#### [Certified versions]
Linux = redhat-3, SuSE-9, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1]
Add more
Linux-redhat-5.0-optional
Temp_space = 80
Swap_space = 150
Min_display_colors = 256
C. The simplest method is to ignore the system check during installation.
Sh./runinstaller-ignoresysprereqs

2. To prevent garbled characters during installation, you must change the system language.
# Vi/etc/sysconfig/i18n
Lang = "en_US.UTF-8"

3. Modify Kernel Parameters
# Vi/etc/sysctl. conf
Kernel. Shmall = 2097152 'has been defined and modified.
Kernel. shmmax = 2147483648 'has been defined and modified.
Kernel. shmmni = 4096
# Semaphores: semmsl, semmns, semopm, semmni
Kernel. SEM = 250 32000 100 128
FS. File-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. Core. rmem_default = 1048576
Net. Core. rmem_max = 1048576
Net. Core. wmem_default = 262144
Net. Core. wmem_max = 262144

Run the following command to make the preceding settings valid.
#/Sbin/sysctl-P

4. Change settings
# Vi/etc/security/limits. conf
Add the following content at the end of the line
* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 4096
* Hard nofile 65535

Add the following content #/etc/PAM. d/login
Session required/lib/security/pam_limits.so

Add the following content to the/etc/profile file:

If [$ user = "oracle"]; then
If [$ shell = "/bin/KSh"]; then
Ulimit-P 16384
Ulimit-N 65536
Else
Ulimit-u 16384-N 65536
Fi
Fi

The above settings are all performed under the root user.

Iv. Set environment variables-log on to Oracle

Write the following in. bashrc
TMP =/tmp; export TMP
Tmpdir = $ TMP; export tmpdir
Oracle_base =/opt/Oracle; export oracle_base
ORACLE_HOME = $ oracle_base/product/10.2.0.1/db_1; export ORACLE_HOME
Oracle_sid = wchdb1; 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:/usr/lib; export LD_LIBRARY_PATH
Classpath = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib; export classpath
Or write it in
# Vi. bash_profile
Then
# Source ~ /. Bash_profile

V. Installation
Use Oracle to log on and run Sh./runinstaller

Garbled solution:

Export lc_ctype = en_US.UTF-8

Error Solution
Error 1:

/Tmp/OraInstall2007-12-30_02-16-11PM/JRE/1.4.2/lib/i386/libawt. So: libxp. so.6: cannot open shared object file: no such file or directory occurred ..

The reason is: the graphical dynamic link library libxp. so.6 that supports printing is missing

This error is due to the lack of the system installation package, in versions earlier than rhel5, you can install the xorg-x11-deprecated-libs package, this installation package can be found in the third Disk of the system Cd (for Redhat as4.2, redHat as4.4 is the fourth installation disc)

Ixdba. Net Community Forum

The downloaded file is as follows:

Xorg-x11-deprecated-libs-6.8.2-31.i386.rpm

 

Error 2:

Exception: Java. lang. unsatisfiedlinkerror:/usr/Java/j2sdk1.4.2 _ 06/JRE/lib/i386/libawt. so: libxt. so.6: cannot open shared object file: no such file or directory
This error is also caused by the lack of the system installation package, you only need to install the XFree86-libs package, this installation package can be found in the system disc.

 

If the preceding two errors occur in RedHat As5, the solution is as follows:

The above package in rhel5 is replaced by libxp, so the rpm-IVH libXp-1.0.0-8.i386.rpm can solve the problem after marking the package.

 

Error 3:

Error while loading shared libraries: libstdc ++-libc6.1-1. so.2

Perform the following operations only: ln-s libstdc ++-libc6.2-2. so.3 libstdc ++-libc6.1-1. so.2

Reference Cases

Case 1:

Test and install Oracle10g on rhel5. I thought it would have been quite smooth before, but we still encountered two problems.

First, the system reports an error when executing runinstaller:

You do not have sufficient permissions to access the inventory '/oracle11g/orainventory '. installation cannot continue. make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied

Here we use the method of creating a 10g user so that 10g and 11g coexist. In fact, when starting the installation program, Oracle will go to/etc/orainst. loc and oratab files (HP is/var/opt/Oracle)

In orainst. Loc, The inventory_loc location and inst_group are defined. Because an 11g instance has been installed before, the definition in it is set for 11G users, so an error is reported. The solution is to run the runinstaller-invptrloc/Oracle10g/orainst. Loc command to bypass it. Oracle will create a new loc file.

After the previous step is successfully passed, the following error is reported:

Exception Java. lang. unsatisfiedlinkerror:/tmp/OraInstall2007-08-30_02-16-11PM/JRE/1.4.2/lib/i386/libawt. so: libxp. so.6: cannot open shared object file: no such file or directory occurred ..
Java. Lang. unsatisfiedlinkerror:/tmp/OraInstall2007-08-30_02-16-11PM/JRE/1.4.2/lib/i386/libawt. So: libxp. so.6: cannot open shared object file: no such file or directory

This error before rhel5 was caused by the lack of a XFree86-libs or one of the two packages (different versions of different packages), and the package before rhel5 was replaced by libxp, therefore, the rpm-IVH libXp-1.0.0-8.i386.rpm resolves the problem after packaging. After that, everything went smoothly.

 

Case 2:

Reference http://moto.debian.org.tw/viewtopic.php? T = 8055 & SID = eb2524337903c5af7ce1e839e0a35b68
Prepare for Installation
The following error occurs when you start installation:

For error while loading shared libraries: libstdc ++-libc6.1-1. so.2
My solution is:
Ln-s libstdc ++-libc6.2-2. so.3 libstdc ++-libc6.1-1. so.2
For
Exception: Java. lang. unsatisfiedlinkerror:/usr/Java/j2sdk1.4.2 _ 06/JRE/lib/i386/libawt. so: libxp. so.6: cannot open shared object file: no such file or directory
The solution is
Apt-Get install libxp. so.6
Apt-Get install libxt. so.6
Apt-Get install libxtst6

 

Case 3:

When jasperreport is used as the report engine on RH linux7.3, the following problems occur:
Exception: Java. lang. unsatisfiedlinkerror:/usr/Java/j2sdk1.4.2 _ 06/JRE/lib/i386/libawt. so: libxt. so.6: cannot open shared object file: no such file or directory

As prompted by your previous replies, Google was able to solve this problem after one morning.
The reason is: the graphical dynamic link library libxp. so.6 that supports printing is missing (there may be other related libraries)
Solution: download and install the XFree86-libs-4.2.0-8.i386.rpm,/usr/x11r6/lib will show the libxp. so.6.2

Attached to a XFree86-libs-4.2.0-8.i386.rpm:
Http://www.cnblogs.com/gergro/admin/ftp://ftp.nluug.nl/vol/1/schoollan/ OS /linux/RPMS/XFree86-libs-4.2.0-8.i386.rpm

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.