Oracle10g installation in RedHatEnterpriseLinux4

Source: Internet
Author: User
1. Download The Oracle_database_10.2.0.1.0forlinux Installer: oracle official website (pay attention to the version number of the Installation File) 2. query the kernel version and required software packages to prepare the software environment for installing Oracle10g. Of course, your machine must meet the hardware requirements of Oracle10g. For more information, see the official documentation. Uname-r // The required kernel version is 2.6.9-22. EL. Run the rpm-q command.

1. Download The Oracle_database_10.2.0.1.0 for linux Installer:
: Oracle official website (pay attention to the version number of the Installation File)

2. query the kernel version and required software packages to prepare the software environment for installing Oracle 10 Gb. Of course, your machine must meet the hardware requirements of Oracle 10 Gb. For more information, see the official documentation.

Uname-r // The required kernel version is 2.6.9-22.EL.

Run the rpm-q command to check whether the software package is installed, for example, rpm-q gcc. If no software package is installed, www.linuxidc.com can obtain the corresponding rpm package from the Linux installation CD or the network, then install the SDK.

Gcc-3.4.4-2
Make-3.80-5
Glibc-2.3.4-2.13
Binutils-2.15.92.0.2-15
Openmotif-2.2.3-9.RHEL4.1
Setarch-1.6-1
Compat-gcc-32-3.2.3-47.3
Compat-gcc-32-c + +-3.2.3-47.3
Compat-libstdc ++-33-3.2.3-47.3
Compat-libstdc ++-296-2.96-132.7.2
Compat-db-4.1.25-9 (this package is not allowed as well)

3. Unzip the software:
Decompress the ORACLE Installation Package to obtain the oracle_database_10.2.0.1.0 directory.
4. Set core parameters:
Add the following lines to the/etc/sysctl. conf file:
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
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 = 262144
Ne t. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
5. Run the following command to change the core parameter:/sbin/sysctl-p
6. Add the following lines to the/etc/security/limits. conf file:
* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536

// Here * indicates all users
7. Add the following lines to the/etc/pam. d/login file, if not:
Session required/lib/security/pam_limits.so
8. Create users and modify environment variables:
#/Usr/sbin/groupadd oinstall/create group user/
#/Usr/sbin/groupadd dba/create group user/
#/Usr/sbin/useradd-g oinstall-G dba oracle/create a user and set the user group/
# Passwd oracle/set the password of an oracle user/
Log on to the operating system using oracle and edit. bash_profile file (. the bash_profile file is a hidden file located in/home/oracle /. bash_profile), because the default linux shell uses bash, you need to edit this file. If you set csh, edit it. login file.
Add the following content to. bash_profile:
ORACLE_BASE =/opt/oracle
ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
ORACLE_SID = oracle
PATH = $ PATH: $ HOME/bin: $ ORACLE_HOME/bin
LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib
Export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH

After editing, source. bash_profile makes the environment variable take effect.

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.