1. Download Oraclefor Linux, upload to Linux
If the CentOS version is too high Oracle does not support this version, you need to modify the configuration file so that it supports oracle10g:
$ vim/etc/redhat-release
Content directly modified as follows: Centoslinux Release 4.0 (Final)
After the installation is complete, change it back to: Centoslinux Release 6.0 (Final)
2. Pre-Installation Preparation
(2) Environmental Requirements: Inspection Kits
Rpm–q GCC
Rpm–q make
Rpm–q Setarch
Rpm–q openmotif
Rpm–q Libgomp
Rpm–q LIBXP
Rpm–q glibc
Rpm–q compat-libstdc++
There is nothing wrong with these packages.
To make sure the Internet is available, most of these packages are installed when you install the OS, and are installed directly with Yum install.
Yum Install GCC
Yum Install make
Yum Install Setarch
Yum Install Openmotif
Yum Install Libgomp
Yum Install Libxp
Yum Install glibc
Yum Install compat-libstdc++
3. Kernel parameter modification
1) vim/etc/sysctl.conf
Kernel.shmall = 2097152
Kernel.shmmax = 2147483648
Kernel.shmmni = 4096
#the Configuration @ Superdome
#kernel. Shmall = 2147483648
#kernel. Shmmax = 137438953472
#kernel. Shmmni = 4096
# Semaphores:semmsl,semmns, SEMOPM, Semmni
Kernel.sem =250 32000 128 #four numbers
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
Take effect on the above settings/sbin/sysctl-p
2) vim/etc/security/limits.conf Add the following content
* Soft nproc2047
* Hard nproc16384
* Soft nofile1024
* Hard nofile65536
3) Vim/etc/pam.d/login to add a line in the back, note that the corresponding
Sessionrequired/lib/security/pam_limits.so
4) vim/etc/selinux/config--(disable SELinux, after installation can be restored to the original value) will be SELinux set to
Selinux=disabled
4. Add Users and Groups
Groupadd Oinstall
Groupadd dba
#groupadd Oper
USERADD-G oinstall-g dba Oracle
passwd Oracle
5. Create the Oracle installation folder and set the appropriate permissions
Suppose to be mounted under this mount point of/OPT:
Mkdir-p/opt/oracle/product/10.2.0/db_1
Chown-r oracle:oinstall/opt/oracle
6. Modify User Environment variables
Su-oracle
VI. Bash_profile Add the following content
# for installing Oracle
Oracle_base=/opt/oracle
Oracle_home= $ORACLE _base/product/10.2.0/db_1
# racle_data= $ORACLE _base/oradata
Oracle_sid=orcl
Ld_library_path= $ORACLE _home/lib:/lib:/usr/lib: $ORACLE _home/network/lib
Classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib
Path= $PATH: $HOME/bin: $ORACLE _home/bin
# nls_lang= ' Simplifiedchinese_china. ZHS16GBK "
Export Oracle_base
Export Oracle_home
# Export Racle_data
Export Oracle_sid
Export PATH
Export Ld_library_path
Export CLASSPATH
#export LANG
if [$USER = "Oracle"]; Then
if [$SHELL = "/bin/ksh"]; Then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
Note: oracle_base, Oracle_home, Java_home; ORACLE_SID=ORCL set SID for ORACLE
Pre-installation Note:
1) root user execution: xhost+
2 If CentOS is an English environment, Oracle garbled can be modified/etc/sysconfig/i18n
#LANG = "en_US." UTF-8 "
#SUPPORTED = "en_US." Utf-8:en_us:en "
#SYSFONT = "Latarcyrheb-sun16"
Lang= "ZH_CN. GBK "
Supported= "ZH_CN. Utf-8:zh_cn:zh:zh_cn. GBK "
3) Modify Oracle Character Set
Su-oracle
Sqlplus/nolog
Conn/as SYSDBA
Shutdown immediate
Startup
Alter system enable restricted session;
alter system set job_queue_processes=0;
alter system set aq_tm_processes=0;
ALTER DATABASE open;
ALTER DATABASE character set Internal_use ZHS16GBK;
ALTER DATABASE National CHARACTER SET internal_use al16utf16;
Shutdown immediate;
startup;
To view the Oracle character set:
Select Userenv (' language ') from dual;
7. Establishment of response documents
This file is a response file to answer an Oracle normal graphics installation. The database directory appears when you extract the Oracle compressed file, assuming the path is:
/home/oracle/database
In/home/oracle/database/response find enterprise Copy the file out, such as copy to/opt/oracle/product, modify the relevant settings, save. The settings that need to be modified are as follows:
from_location= "/home/oracle/database/stage/products.xml"
Oracle_home= "/opt/oracle/product/10.2.0/db_1"
Oracle_home_name= "Oradb10g_home1" #optionally
Unix_group_name= "Oinstall" #the initial GROUP of Oracle
Install_type= "EE"
s_namefordbagrp= "DBA" #the Supplementary Group of Oracle
S_nameforopergrp= "Oper" # not essential
selected_languages={"en", "ZH_CN"} # Not essential
component_languages={"en", "ZH_CN"} # Not essential
N_dbtype= "1"
S_globaldbname= "ORCL"
S_dbsid= "ORCL"
N_dbstoragetype= "1"
N_performupgrade= "0"
Basically this is enough, save it.
8. Start installation, Oracle account into installation directory:
./runinstaller-silent-responsefile/opt/oracle/product/enterprise.rsp
If present:
# An unexpected error hasbeen detected by HotSpot Virtual Machine:
# Sigill (0x4) atpc=0x20000000039a4070, pid=6583, tid=2305843009217038912
# Java Vm:javahotspot (TM) 64-bit Server VM (1.4.2_10-b03 mixed mode)
# Problematic Frame:
This error, is generally the system default installation of the LIBGCJ, this time the input java–version will appear
Java Version "1.4.2"
Gij (GNU libgcj) version4.1.2 20080704 (Red Hat 4.1.2-44)
Similar information. Delete can: Yumremove LIBGCJ
Or join the local JRE library at installation time, you will need to install the JRE installation directory as:
/usr/local/java/jre1.6.0_17
Then execute:
./runinstaller-silent–jreloc/usr/local/java/jre1.6.0_17-responsefile/opt/oracle/product/enterprise.rsp
Switch to root, execute these two scripts
sh/u01/app/oracle/orainventory/orainstroot.sh
sh/u01/app/oracle/product/10.2.0/db_1/root.sh
This installation is successful.