Summary of installing Oracle10g Database in CentOS5.4

Source: Internet
Author: User
1: view memory: grepMemTotalprocmeminfo view swap: grepSwapTotalprocmeminfo2: Check the RPM package. RedHatEnterpriseLinux4.0

1: view memory: grep MemTotal/proc/meminfo view swap: grep SwapTotal/proc/meminfo2: Check the RPM package. Red Hat Enterprise Linux 4.0

1: view memory: grep MemTotal/proc/meminfo

View swap: grep SwapTotal/proc/meminfo

2: Check the RPM package.

Red Hat Enterprise Linux 4.0
CentOS5.4

Binutils-2.15.92.0.2-13.EL4
Binutils-2.17.50.0.6-6.el5

Compat-db-4.1.25-9
Compat-db-4.2.52-5.1

Compat-libstdc ++-296-2.96-132.7.2
Compat-libstdc ++-33-3.2.3-61

Control-center-2.8.0-12
Control-center-2.16.0-16.el5

Gcc-3.4.3-22.1.EL4
Gcc-4.1.2-42.el5

Gcc-c ++-3.4.3-22.1.EL44
Gcc-c ++-4.1.2-42. el5

Glibc-2.3.4-2.9
Glibc-2.5-24

Glibc-common-2.3.4-2.9
Glibc-common-2.5-24

Gnome-libs-1.4.1.2.90-44.1
Libgnome-2.16.0-6.el5

Libstdc ++-3.4.3-22.1
Libstdc ++-4.1.2-42. el5

Libstdc +-devel-3.4.3-22.1
Libstdc +-devel-4.1.2-42.el5

Make-3.80-5
Make-3.81-3.el5

Pdksh-5.2.14-30
Ksh-20060214-1.7

Sysstat-5.0.5-1
Sysstat-7.0.2-1.el5

Xscreensaver-4.18-5.rhel4.2
Gnome-screensaver-2.16.1-8.el5

Setarch-1.6-1
Setarch-2.0-1.1

LibXp-1.0.0-8.1.el5


The most important thing is libXp-1.0.0-8.1.el5


If it does not directly cause:


[Oracle @ linux database] $./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be RedHat-3, SUSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed


All installer requirements met.

Preparing to launch Oracle Universal Installer from/tmp/OraInstall2010-11-18_10-08-45PM.
Please wait... [oracle @ linux database] $ Exception in thread "main" java. lang. UnsatisfiedLinkError:
/Tmp/OraInstall2010-11-18_10-08-45PM/jre/1.4.2/lib/i386/libawt. so: libXp. so.6: cannot open shared object file: No such file or directory
At java. lang. ClassLoader $ NativeLibrary. load (Native Method)
At java. lang. ClassLoader. loadLibrary0 (Unknown Source)
At java. lang. ClassLoader. loadLibrary (Unknown Source)
At java. lang. Runtime. loadLibrary0 (Unknown Source)
At java. lang. System. loadLibrary (Unknown Source)
At sun. security. action. LoadLibraryAction. run (Unknown Source)
At java. security. AccessController. doPrivileged (Native Method)
At sun. awt. NativeLibLoader. loadLibraries (Unknown Source)
At sun. awt. DebugHelper. (Unknown Source)
At java. awt. Component. (Unknown Source)

This problem was found for a long time. The package is not installed.

Create group:

Groupadd oinstall

Groupadd dba

Groupadd rule

Add User:

Useradd-g oinstall-G dba, role oracle

Set Password: passwd oracle


Add an Oracle user to the oinstall group. The two secondary groups are dba and supervisor.

Create the u01 directory under the home Directory of Oracle, and then change the u01 permission.

Chown oracle: oinstall/home/u01

The following is the configuration of Linux parameters:

/Etc/sysctl. conf file

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
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144


/Etc/security/limits. conf file:
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024


/Etc/pam. d/login
Session required pam_limits.so


/Etc/profile
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi


View Shell: echo $ shell

Set Oracle environment variables:

Su oracle

Vi. bash_profile


ORACLE_BASE =/u01/oracle
ORACLE_SID = orcl
Export ORACLE_BASE ORACLE_SID

ORACLE_HOME = $ ORACLE_BASE/u01/oracle/product/10.2.0
PATH = $ ORACLE_HOME/bin: $ PATH

Unset = ORACLE_HOME
Unset = TNS_NAME


Check whether the environment is effective: env | grep ORA


After all the work configurations are complete, install them on the graphic interface:

Go to the database directory and run the runInstaller

Command:./runInstaller

It is similar to the one installed on windows later...

However, there is a difference. After installing the database software, you will be asked to run two scripts.


/Home/oracle/u01/oraInventory/orainstRoot. sh

/Home/oracle/u01/oracle/product/10.2.0/db_1

Press enter.

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.