Rhel5.20.bitinstalloracle10g [multi-graph]

Source: Internet
Author: User
【Abstract】 objective: to install the 64-bit Oracle10g environment: rhel5.20.bit operating system [STEP]: 1. Install the RHEL operating system, download and upload media. 2. Create software

【Abstract】 objective: to install a 64-bIT Oracle10g environment: RHEL 5.2 64-bit operating system [STEP]: 1. Install the RHEL operating system, download and upload media. 2. Create software

[Preface]
Objective: To install 64-bIT Oracle10g
Environment: RHEL 5.2 64-bit Operating System

[STEP ]:
1. Install the RHEL operating system, download and upload the media
2. Create a software installation environment
3. Install the dependency package
4. Check and modify system parameters
5. Install Oracle software
6. Create a database instance


1. Install the RHEL operating system, download and upload the media
For details about the RHEL installation process, refer to my other article. After installing and uploading the media, follow these steps:
Code highlighting produced by Actipro CodeHighlighter (freeware)> [root @ Fantasy install] # uname-
Linux Fantasy 2.6.18-92. el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[Root @ Fantasy install] # ls-l
Total 783592
-Rw-r -- 1 root 801603584 Oct 14 2009 10201_database_linux_x86_64.cpio
[Root @ Fantasy install] # cpio-idmv 10201_database_linux_x86_64.cpio

After decompression:
Code highlighting produced by Actipro CodeHighlighter (freeware)> drwxr-xr-x 6 94110 42424 4096 Oct 23 2005 database
-Rw-r -- 1 root 801603584 Oct 14 2009 10201_database_linux_x86_64.cpio

2. Create a software installation environment
2.1 create an Oracle account and directory:
Code highlighting produced by Actipro CodeHighlighter (freeware)> [root @ Fantasy ~] # Groupadd oinstall
[Root @ Fantasy ~] # Groupadd dba
[Root @ Fantasy ~] # Useradd-g oinstall-G dba oracle
[Root @ Fantasy ~] # Passwd oracle
Changing password for user oracle.
New UNIX password:
Bad password: it is based on a dictionary word
Retype new UNIX password:
Passwd: all authentication tokens updated successfully. [root @ Fantasy opt] # id oracle
Uid = 501 (oracle) gid = 501 (oinstall) groups = 501 (oinstall), 502 (dba)
[Root @ Fantasy ~] # Mkdir-p/opt/oracle/10g/db_1
[Root @ Fantasy ~] # Cd/opt
[Root @ Fantasy opt] # ls-lrt
Total 4
Drwxr-xr-x 3 root 4096 May 15 oracle
[Root @ Fantasy opt] # chown-R oracle: oinstall oracle/

2.1 Add Oracle-related environment variables, modify the/home/oracle/. bash_profile file, and add the following content:
Code highlighting produced by Actipro CodeHighlighter (freeware)> export ORACLE_BASE =/opt/oracle
Export ORACLE_HOME = $ ORACLE_BASE/10g/db_1
Export ORACLE_SID = orc
Export LD_LIBRARY_PATH = $ ORACLE_HOME/bin:/usr/local/bin:/usr/X11R6/bin/
Export CLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib
Export TEMP =/tmp
Export TMP =/tmp
Export TMPDIR =/tmp
Export umask = 022
Export LANG = en_US
PATH = $ PATH: $ HOME/bin: $ ORACLE_HOME/bin
Export PATH

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






3. Install the dependency package
Code highlighting produced by Actipro CodeHighlighter (freeware)> libaio-0.3.103-3.i386.rpm
Compat-db-4.1.25-9.x86_64.rpm
Control-center-2.8.0-12.x86_64.rpm
Gcc-3.4.3-22.1.x86_64.rpm
Gcc-c ++-3.4.3-22.1.x86 _ 64.rpm
Glibc-2.3.4-2.x86_64.rpm
Glibc-common-2.3.4-2.x86_64.rpm
Gnome-libs-1.4.1.2.90-44.1.x86_64.rpm
Libstdc ++-3.4.3-22.1.x86 _ 64.rpm
Libstdc +-devel-3.4.3-22.1.x86_64.rpm
Make-3.80-5.x86_64.rpm
Pdksh-5.2.14-30.x86_64.rpm
Sysstat-5.0.5-1.x86_64.rpm
Xscreensaver-4.18-5.rhel4.2.x86_64.rpm
Compat-libstdc ++-33-3.2.3-47.3.x86_64.rpm
Glibc-kernheaders-2.4-9.1.87.x86_64.rpm
Glibc-headers-2.3.4-2.9.x86_64.rpm
Libaio-0.3.103-3.x86_64.rpm
Glibc-devel-2.3.4-2.9.x86_64.rpm
Glibc-devel-2.3.4-2.9.i386.rpm
LibXp-1.0.0-8.1.el5.rpm

4. Check and modify system parameters
4.1 check the memory and swap partition size. If the memory is greater than 1 GB, swap partition is generally twice the memory
Code highlighting produced by Actipro CodeHighlighter (freeware)> [root @ Fantasy/] # grep MemTotal/proc/meminfo
MemTotal: 1027060 kB
[Root @ Fantasy/] # grep SwapTotal/proc/meminfo
SwapTotal: 2097144 kB
[Root @ Fantasy/] #

4.2 modify the kernel parameters, modify the file:/etc/sysctl. conf, and add the following content:
Code highlighting produced by Actipro CodeHighlighter (freeware)> 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/sbin/sysctl-p to make the modification take effect ,,
4.3 check whether the/etc/pam. d/login file has the following options (if not, add them ):
Session required/lib/security/pam_limits.so
Pam_limits.so is a PAM (plug-in Authentication module, Pluggable Authentication Modules) in linux ),
The configuration file is/etc/sysctl. conf, which is used to assign User Permissions after logon.

4.4 modify the file/etc/security/limits. conf and add the following content:
Code highlighting produced by Actipro CodeHighlighter (freeware)> oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536

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.