Installing oracle10g on CentOS 5

Source: Internet
Author: User

Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the following sources, otherwise, the legal responsibility to pursue copyright.

Deep Blue Blog: http://blog.csdn.net/huangyanlong/article/details/40180579

1. Domain name resolution settings and network configuration
# vi/etc/hosts 127.0.0.1         localhost.localdomain localhost::1               localhost6.localdomain6 localhost6192.168.56.103    Hyl
# vi/etc/sysconfig/network-scripts/ifcfg-eth0--Modify the NIC configuration--If set when installing the system, this is not modified here # Intel Corporation 82540EM Gigabit Ethernet controllerdevice=eth0bootproto=staticipaddr=192.168.56.103netmask=255.255.255.0hwaddr=08:00:27:29:db: b2onboot=yes~

# Service Network restart--Restart the NIC for it to take effect # vi/etc/sysconfig/networknetworking=yesnetworking_ipv6=nohostname=hyl~
2. Installation package

Prepare RPM packages According to official documentation, upload to server

The required packages are as follows:

Execute the script implementation:

#vi centos5.6-10g-script.sh--script to implement two functions-function 1: Install the RPM package and log, delete the relevant package after installation-function 2: Check the installed RPM package and record the log Rpm-ivh binutils-2.17.50.0.6-14.el5.x86_64.rpm >> Rpm.log 2>&1RPM-IVH binutils-devel-2.17.50.0.6-14.el5.i386.rpm >> rpm.log 2>&1 RPM-IVH binutils-devel-2.17.50.0.6-14.el5.x86_64.rpm >> rpm.log 2>&1RPM-IVH compat-db-4.2.52-5.1.i386.rpm > > Rpm.log 2>&1rpm-ivh compat-db-4.2.52-5.1.x86_64.rpm >> rpm.log 2>&1RPM-IVH control-center-2.16.0-16.el5.i386.rpm >> rpm.log 2>&1RPM-IVH control-center-2.16.0-16.el5.x86_64.rpm >> rpm.log 2>&1rpm-ivh control-center-devel-2.16.0-16.el5.i386.rpm >> rpm.log 2>&1RPM-IVH control-center-devel-2.16.0-16.el5.x86_64.rpm >> rpm.log 2>&1RPM-IVH gcc-4.1.2-50.el5.x86_64.rpm > > Rpm.log 2>&1rpm-ivh gcc-c++-4.1.2-50.el5.x86_64.rpm >> rpm.log 2>&1RPM-IVH glibc-2.5-58.i686.rpm >> rpm.log 2>&1RPM-IVH glibc-2.5-58.x86_64.rpm>> rpm.log 2>&1rpm-ivh glibc-common-2.5-58.x86_64.rpm >> rpm.log 2>&1RPM-IVH glibc-devel-2.5-58.i386.rpm >> rpm.log 2>&1rpm-ivh glibc-devel-2.5-58.x86_64.rpm >> rpm.log 2>& AMP;1RPM-IVH glibc-headers-2.5-58.x86_64.rpm >> rpm.log 2>&1RPM-IVH glibc-utils-2.5-58.x86_64.rpm > > Rpm.log 2>&1rpm-ivh libstdc++-devel-4.1.2-50.el5.i386.rpm >> rpm.log 2>&1rpm-ivh libstdc++- devel-4.1.2-50.el5.x86_64.rpm >> rpm.log 2>&1rpm-ivh libx11-1.0.3-11.el5.i386.rpm >> rpm.log 2> &1RPM-IVH libx11-1.0.3-11.el5.x86_64.rpm >> rpm.log 2>&1rpm-ivh libx11-devel-1.0.3-11.el5.i386.rpm >> rpm.log 2>&1rpm-ivh libx11-devel-1.0.3-11.el5.x86_64.rpm >> rpm.log 2>&1RPM-IVH libxp-1.0.0-8.1.el5.i386.rpm >> rpm.log 2>&1rpm-ivh libxp-1.0.0-8.1.el5.x86_64.rpm >> rpm.log 2 >&1RPM-IVH libxp-devel-1.0.0-8.1.el5.i386.rpm >> Rpm.log 2>& 1RPM-IVH libxp-devel-1.0.0-8.1.el5.x86_64.rpm >> rpm.log 2>&1rpm-ivh libxpm-3.5.5-3.i386.rpm >> Rpm.log 2>&1rpm-ivh libxpm-3.5.5-3.x86_64.rpm >> rpm.log 2>&1RPM-IVH libxpm-devel-3.5.5-3.i386.rpm >> rpm.log 2>&1rpm-ivh libxpm-devel-3.5.5-3.x86_64.rpm >> rpm.log 2 >&1RPM-IVH make-3.81-3.el5.x86_64.rpm >> rpm.log 2>&1RPM-IVH pdksh-5.2.14-36.el5.x86_64.rpm > > Rpm.log 2>&1rpm-ivh sysstat-7.0.2-3.el5_5.1.x86_64.rpm >> rpm.log 2>&1 rm-rf binutils-2.17.50 .0.6-14.EL5.X86_64.RPMRM-RF BINUTILS-DEVEL-2.17.50.0.6-14.EL5.I386.RPMRM-RF BINUTILS-DEVEL-2.17.50.0.6-14.EL5.X86_64.RPMRM-RF COMPAT-DB-4.2.52-5.1.I386.RPMRM-RF compat-db-4.2.52-5.1.x86_ 64.RPMRM-RF CONTROL-CENTER-2.16.0-16.EL5.I386.RPMRM-RF CONTROL-CENTER-2.16.0-16.EL5.X86_64.RPMRM-RF CONTROL-CENTER-DEVEL-2.16.0-16.EL5.I386.RPMRM-RF CONTROL-CENTER-DEVEL-2.16.0-16.EL5.X86_64.RPMRM-RF GCC-4.1.2-50.EL5.X86_64.RPMRM-RF gcc-c++-4.1.2-50.EL5.X86_64.RPMRM-RF glibc-2.5-58.i686.rpmrm-rf glibc-2.5-58.x86_64.rpmrm-rf glibc-common-2.5-58.x86_64. RPMRM-RF GLIBC-DEVEL-2.5-58.I386.RPMRM-RF GLIBC-DEVEL-2.5-58.X86_64.RPMRM-RF GLIBC-HEADERS-2.5-58.X86_64.RPMRM-RF GLIBC-UTILS-2.5-58.X86_64.RPMRM-RF LIBSTDC++-DEVEL-4.1.2-50.EL5.I386.RPMRM-RF libstdc++-devel-4.1.2-50.el5.x86_ 64.RPMRM-RF LIBX11-1.0.3-11.EL5.I386.RPMRM-RF LIBX11-1.0.3-11.EL5.X86_64.RPMRM-RF LIBX11-DEVEL-1.0.3-11.EL5.I386.RPMRM-RF LIBX11-DEVEL-1.0.3-11.EL5.X86_64.RPMRM-RF LIBXP-1.0.0-8.1.EL5.I386.RPMRM -RF libxp-1.0.0-8.1.el5.x86_64.rpmrm-rf libxp-devel-1.0.0-8.1.el5.i386.rpmrm-rf libXp-devel-1.0.0-8.1.el5.x86_64. RPMRM-RF LIBXPM-3.5.5-3.I386.RPMRM-RF LIBXPM-3.5.5-3.X86_64.RPMRM-RF LIBXPM-DEVEL-3.5.5-3.I386.RPMRM-RF LIBXPM-DEVEL-3.5.5-3.X86_64.RPMRM-RF MAKE-3.81-3.EL5.X86_64.RPMRM-RF PDKSH-5.2.14-36.EL5.X86_64.RPMRM-RF Sysstat-7.0.2-3.el5_5.1.x86_64.rpmrpm-qa|grep binutils >> queryrpm.log 2>&1rpm-qa|grep compat >> QuerYrpm.log 2>&1rpm-qa|grep control >> queryrpm.log 2>&1rpm-qa|grep gcc >> queryrpm.log 2>&am P;1rpm-qa|grep glibc >> queryrpm.log 2>&1rpm-qa|grep gnome >> queryrpm.log 2>&1rpm-qa|grep Li bstdc++ >> queryrpm.log 2>&1rpm-qa|grep make >> queryrpm.log 2>&1rpm-qa|grep pdksh >> qu Eryrpm.log 2>&1rpm-qa|grep sysstat >> queryrpm.log 2>&1#sh centos5.6-10g-script.sh 
3. Create users, groups, directories
4. Configure kernel parameters, modify environment variables
# vi/etc/sysctl.conf added: Kernel.shmall = 4294967296kernel.shmmni = 4096kernel.sem = 32000 = 65536net . Ipv4.ip_local_port_range = 1024x768 65500net.core.rmem_default = 4194304net.core.wmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_max = 262144~# sysctl-p--make kernel parameters effective # su-oracle$ Vi. bash_profile--Modify the Environment profile of the Oracle user-execute: su-oracle cut Switch to the Oracle user environment, and then edit the. bash_profile file to change the configuration of the path while adding Nls_lang configuration to the environment variable oracle_base=/home/u01/app/oracleoracle_home=$ Oracle_base/product/10.2.0/db_1oracle_sid=hylpath= $PATH: $HOME/bin: $ORACLE _home/binld_library_path= $ORACLE _home /lib:/usr/libexport oracle_base oracle_home oracle_sid PATH Ld_library_path
5. Set Shell Limits

-- Add the following parameters

# vi/etc/security/limits.conf

Oracle Soft Nproc 2047

Oracle Hard Nproc 16384

Oracle Soft Nofile 1024

Oracle Hard Nofile 65536

# Vi/etc/pam.d/login

-- Add the following parameters

Session required/lib/security/pam_limits.so

Session Required Pam_limits.so

# vi/etc/profile -- Add the following parameters

if [$USER = "Oracle"]; Then

if [$SHELL = "/bin/ksh"]; Then

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

-- in the /etc/profile file, modify the following content

Ulimit–s–c 0 >/dev/null 2> &1 revision changed to

Ulimit–s–c Unlimited >/dev/null 2> &1   

6. Unzip the installation package, modify the version check

The following list of different compression packages, our specific response, the following list of the more common three kinds of package format.

(example 1), decompression. cpio.gz Format Package

# Zcat 10201_database_linux_x86_64.cpio.gz | CPIO-IDMV >/dev/null 2>&1

(Example 2), decompression. Cpio Format Package

# CPIO-IDMV < 10201_database_linux_x86_64.cpio

(example 3), unzip. zip

# Unzip P8202632_10205_linux-x86-64.zip

  

# Vi/home/oracle/downloads/database/install/oraparam.ini

-- Add redhat-5 is shown below

[Certified Versions]

linux=redhat-5,redhat-3,suse-9,redhat-4,unitedlinux-1.0,asianux-1,asianux-2  

7. Graphical installation of Oracle, DBCA, NETCA configuration monitoring

Slightly

Description: Because the graphical installation is very simple, you can try to explore the installation exercise yourself, or see my other articles, the link address is as follows:

CentOS5.6 installation of oracle10g software "Keep error Experience"

DBCA Building, configuring listening, importing data (centos5.6+oracle10g)

8. Configure Boot instance

# vi/etc/rc.d/rc.local

-- Add boot instance, listen statement

#!/bin/sh

#

# This script is executed *after* all and the other init scripts.

# can put your own initialization stuff in here if you don ' t

# want to does the full Sys V style init stuff.

Touch/var/lock/subsys/local

Su-oracle-c "/home/u01/app/oracle/product/10.2.0/db_1/bin/dbstart Start"

Su-oracle-c "/home/u01/app/oracle/product/10.2.0/db_1/bin/lsnrctl Start"

~

~

~

# Vi/etc/oratab--Modify boot start, set value from N to Y

Hyl:/home/u01/app/oracle/product/10.2.0/db_1:y

Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the following sources, otherwise, the legal responsibility to pursue copyright.

Deep Blue Blog:http://blog.csdn.net/huangyanlong/article/details/40180579

Installing oracle10g on CentOS 5

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.