Install Oracle in CentOS

Source: Internet
Author: User
Check the system environment grepMemTotalprocmeminfo # Check the physical memory quota # Check the swap space df-k # Check the environment required for Oracle disk installation yuminstall-ybinutilscompat-dbcompat-libstdc ++ control-centergccgcc-c ++ glibcglibc -commonlibstdc +

Check the system environment grep MemTotal/proc/meminfo # Check the physical memory grep SwapTotal/proc/meninfo # Check the swap space df-k # Check the environment required by the disk to install Oracle yum install-y binutils compat- db compat-libstdc ++ control-center gcc-c ++ glibc-common libstdc +

Check System Environment

Grep MemTotal/proc/meminfo # Check physical memory

Grep SwapTotal/proc/meninfo # Check the swap space

Df-k # Check Disk

Environment required for installing Oracle
Yum install-y binutils compat-db compat-libstdc ++ control-center gcc-c ++ glibc-common libstdc ++ libXp make ksh sysstat setarch

LibXp is the environment required by Oracle OUI.

Check the installation environment

Rpm-q -- qf' % {NAME}-% {VERSION}-% {RELEASE} (% {ARCH }) \ n' binutils compat-db compat-libstdc ++-296 control-center gcc-c ++ glibc-common libstdc ++-devel libXp make ksh sysstat setarch

If not installed # is prompted, reinstall it with yum or CD

Check Configuration Kernel Parameters

Vi/etc/sysctl. conf

Join

Kernel. shmall = 2097152

Kernel. shmmax = 536570912 # physical memory

Kernel. shmmni = 4096

Kernel. sem = 250 32000 100 128

Fs. file-mx = 65535

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

Sysctl-p # Check Parameters

Set Shell call restrictions

Vi/etc/security/limits. conf

Add

* Soft nproc 2047

* Hard nproc 16384

* Soft nofile 1024

* Hard nofile 65536

Vi/etc/pam. d/login

Add

Session required/lib/security/pam_limits.so

Session required pam_limits.so

Create user directory

Groupadd oinstall

Groupadd rule

Uuseradd-g oinstall-g dba-m Oracle

Passwd Oracle

Mkdir/opt/ora10g

Mkdir/opt/ora10g/product # Oracle Installation Directory

Mkdir/opt/ora10g/oradata # data file directory

Mkdir/opt/ora10g/software # Installation File directory

Chown-R Oracle: oinstall/opt/ora10g # Change directory attributes

Configure Oracle user environment variables

Su-Oracle

Add

Vi. bash_profile

Add
##-------------------------------------------
# Set Oracle10g Install |
##-------------------------------------------
Export TMP =/tmp
Export TMPDIR = $ TMP
Export Oracle_BASE =/opt/ora10g
Export Oracle_HONE = $ ORACLE_BASE/product/10.2.0/db_1
Export Oracle_SID = jssbook
Export Oracle_TERM = xterm
Export PATH =/usr/sib: $ PATH
Export PATH = $ Oracle_HOME/bin: $ PATH
Export LD_LIBRARY_PATH = $ Oracle_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64
Export CLASSPATH = $ Oracle_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib
Export LD_ASSUME_KERMEL = 2.6.9
Export NLS_LANG = "SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
Umask 022
If [$ USER = "Oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
# --------------------------- Set Over -------------


Copy the Oracle Installation Package to/opt/ora10g/software.

Chown-R Oracle: oinstall/opt/ora10g/software # Change directory attributes

Cd/opt/ora10g/software/database

./RunInstaller-ignoreSysPrereqs

# Because Oracle does not support CentOS by default, the ignoreSysPrereqs parameter is added during installation to ignore the system check.

Tip:

1. Permission denied will be generated when runInstaller is executed.

Cd to this directory ll-a to check the file permissions. If you do not have the execution permission, use the following command to grant the execution permission

Chmod 755 userfile

2. the following error message is displayed during installation:

Typical path for xclock:/usr/X11R6/bin/xclock

Su root # Switch to the root user

Host +

Su Oracle # Switch to oracle user

Export DISPLAY = 192.168.1.128: 0.0

./RunInstaller-ignoreSysPrereqs # You can use

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.