Redhat5.3 install Oracle Database 10g Release2 and upgrade to 10.2.0.4

Source: Internet
Author: User

-- 1. Check the Software Installation
/*
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 this installation does not matter
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
*/
-- 2. The OS parameter requires vi/etc/sysctl. conf. Add the following content at the end of the line:
# Use for Oracle
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


Run the sysctl-p application and the above parameters.


-- Add the following content at the end of line 3.vi/etc/security/limits. conf
# Use for oracle
* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536


-- Add the following content at the end of the 4.vi/etc/pam. d/login row
Session required pam_limits.so


-- 5.vi/etc/selinux/config ensure the following content
SELINUX = disabled
# SELINUXTYPE = type of policy in use. Possible values are:
# Targeted-Only targeted network daemons are protected.
# Strict-Full SELinux protection.
# SELINUXTYPE = targeted
SELINUXTYPE = disabled


-- 6. Create a user and group for installing Oracle
# Groupadd oinstall
# Groupadd dba
# Useradd-m-g oinstall-G dba oracle
# Id oracle
Set a password for an Oracle user:
# Passwd oracle


-- 7. Create the installation directory mkdir-p/u01/oracle, which is used by the root user
# Mkdir-p/u01/oracle
# Chown-R oracle. oinstall/u01/oracle
# Chmod-R 775/u01/oracle
# Chmod-R 777/u01 -- you must have the permission to create a directory for this directory, because you must create a directory in this directory during database creation.


-- 8. Set the. bash_profile of the oracle user


#. Bash_profile


# Get the aliases and functions
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi


# User specific environment and startup programs


PATH = $ PATH: $ HOME/bin


ORACLE_BASE =/u01; export ORACLE_BASE
ORACLE_HOME = $ ORACLE_BASE/oracle; export ORACLE_HOME
ORACLE_SID = orcl; export ORACLE_SID
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
Stty erase ^ h
Export LANG = en_US
Export NLS_LANG = american_america.zhs16gbk
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi


Source. bash_profile make it take effect


-- 9. Set host name and ip address
[Root @ localhost ~] # Vi/etc/hosts


# Do not remove the following line, or various programs
# That require network functionality will fail.
127.0.0.1 localhost. localdomain localhost
192.168.143.66 RedHat dbserver -- this is newly added
: 1 localhost6.localdomain6 localhost6


Run the following command on the terminal:
# Hostname
Whether the host name has changed to mzl.net. If the host name has not changed, run the following command:
# Service network restart
-- 10. Set Oracle10g to support RHEL5 Parameters
Because the official Oracle10g does not support RHEL5, you need to change the relevant parameters. Otherwise, it cannot pass the test before Oracle10g installation!


There are two ways to change the network: (I have successfully installed the service in the first method, but the installation fails in the second method)
First, modify the version description. In the/etc/redhat-release file, change Red Hat Enterprise Linux Server release 5 (Tikanga) to version 4:
Redhat-4


--11.upload 10201_database_linux32.zip to the u01/oracle directory and decompress
[Root @ redhat ~] # Su-oracle
[Oracle @ redhat ~] $ Cd/u01/oracle
[Oracle @ redhat oracle] $ ll-la
Total 1683780
Drwxrwxr-x 2 oracle oinstall 4096 Aug 21.
Drwxr-xr-x 3 root 4096 Aug 21 ..
-Rw-r -- 1 oracle oinstall 668734007 Aug 21 10201_database_linux32.zip
-Rw-r -- 1 oracle oinstall 1053748381 Aug 21 p6810189_10204_Linux-x86.zip
[Oracle @ redhat oracle] $ unzip 10201_database_linux32.zip

  • 1
  • 2
  • Next Page

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.