Install Oracle10g in centos5

Source: Internet
Author: User

Test environment:

VMware server2.02 + centos 5.6

Oracle 10g

Before you start, I would like to remind you that the installation process must refer to the official Oracle documentation.

 

1. Check the installation environment

Check the swap size:

[Root @ Study ~] # Grep swaptotal/proc/meminfo

Swaptotal: 3212960 KB

Check the memory size:

[Root @ Study ~] # Grep memtotal/proc/meminfo

Memtotal: 1034708 KB

Check the temporary partition and hard disk capacity:

[Root @ Study ~] # DF-H/tmp/

File System capacity used available % mount point

/Dev/sda2 7.4 GB 4.3g 2.8g 61%/

[Root @ Study ~] # DF-H

File System capacity used available % mount point

/Dev/sda2 7.4 GB 4.3g 2.8g 61%/

/Dev/sdb2 4.8g 162 m 4.4g 4%/home

/Dev/sdc1 7.8g 147 M 7.3g 2%/u01

/Dev/sda1 380 m 16 m 345 m 5%/boot

Tmpfs 506 M 0 506 m 0%/dev/SHM

[Root @ Study ~] #

Check CPU information:

[Root @ studysetup] # grep "model name"/proc/cpuinfo

Modelname: Intel (r) core (TM) I3 CPU m 370 @ 2.40 GHz

Check the Linux kernel:

[Root @ studysetup] # uname-R

2.6.18-238. EL5

Confirm the installation package according to the system kernel:

Statement: rpm-q + [package name]

Binutils-2.17.50.0.6-2.el5

Compat-libstdc ++-33-3.2.3-61

Elfutils-libelf-0.125-3.el5

Elfutils-libelf-devel-0.125

Gcc-4.1.1-52

Gcc-C ++-4.1.1-52

Glibc-2.5-12

Glibc-common-2.5-12

Glibc-devel-2.5-12

Glibc-headers-2.5-12

Libaio-0.3.106

Libaio-devel-0.3.106

Libgcc-4.1.1-52

Libstdc ++-4.1.1

Libstdc +-devel-4.1.1-52.e15

Make-3.81-1.1

Sysstat-7.0.0

UnixODBC-2.2.11

UnixODBC-devel-2.2.11

If you find that some packages are not installed, you can install them on a CD.

[Root @ study centos] # rpm-Q libaio-devel

Package libaio-devel Is Not Installed

Attach a cd

[Root @ study MNT] # Mount/dev/CDROM/mnt/CDROM/

Mount: block device/dev/CDROM iswrite-protected, mounting read-only

Go to the CD-related directory

[Root @ study centos] # pwd

/Mnt/CDROM/centos

Install the missing package:

[Root @ maid] # rpm-ivhlibaio-devel-0.3.106-5.i386.rpm

Warning: libaio-devel-0.3.106-5.i386.rpm: Header V3 DSA Signature: nokey, key ID e8562897

Preparing... ######################################## ### [100%]

1: libaio-devel ##################################### ###### [100%]

[Root @ study centos] #

 

2. Set the Oracle installation environment

Set the Oracle Installation group and user

[Root @ study centos] #/usr/sbin/groupaddoinstall

[Root @ study centos] #/usr/sbin/groupadd DBA

[Root @ study centos] #/usr/sbin/useradd-goinstall-g dba Oracle

[Root @ study centos] # ID Oracle

Uid = 501 (Oracle) gid = 501 (oinstall) groups = 501 (oinstall), 502 (DBA)

[Root @ study centos] # passwd Oracle

Changing password for user oracle.

New UNIX password:

Bad password: it does not contain enough different characters

Retype new Unix Password:

Passwd: All authentication tokens updatedsuccessfully.

[Root @ study centos] #

[Root @ study centos] # ID nobody

Uid = 99 (nobody) gid = 99 (nobody) groups = 99 (nobody)

Modify system parameters:

Modify/etc/sysctl. conf and add the following content to the end:Set kernel. Shmall and kernel. shmmax according to the actual situation. For a 32bit system, we recommend that you use the default value.

Kernel. Shmall = 258677

Kernel. shmmax = 1059540992

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 = 1048576

Net. Core. rmem_max = 1048576

Net. Core. wmem_default = 262144

Net. Core. wmem_max = 262144

 

Modify/etc/security/limits. conf and add the following content to the end:

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

 

Modify/etc/PAM. d/login and add the following content to the end:

Session required/lib/security/pam_limits.so

Session required pam_limits.so

 

Modify/etc/profile and add the following content:

If [$ user = "oracle"]; then

If [$ shell = "/bin/KSh"]; then

Ulimit-P 16384

Ulimit-N 65536

Else

Ulimit-u 16384-N 65536

Fi

Fi

 

Modify Oracle installation directory permissions:

[Root @ Study ~] # Mkdir-P/u01/APP/Oracle

[Root @ Study ~] # Chown-r ORACLE: oinstall/u01/APP/Oracle/

[Root @ Study ~] # Chmod 755/u01/APP/Oracle/

Start the graphic interface:

[Root @ Study ~] # Xhost +

Switch to the Oracle user and modify the configuration file:

The following is a reference:

Exporttmp =/tmp

Exporttmpdir = $ TMP

Exportoracle_base =/u01/APP/Oracle

Exportoracle_home = $ oracle_base/product/10.2.0/db_1

Export oracle_sid = orcl

Exportoracle_term = xterm

Exportpath =/usr/sbin: $ path

Exportpath = $ ORACLE_HOME/bin: $ path

Exportld_library_path = $ ORACLE_HOME/bin:/usr/local/bin:/usr/x11r6/bin/

Exportclasspath = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib

Ulimit-u16384-N 65536

Umask 022

Make the configuration file take effect:

[Oracle @ Study ~] $ Source. bash_profile

Go to the software installation directory and run:

[Oracle @ study database] $./runinstaller-ignoresysprereqs

Enter the graphic interface and install it as needed.

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.