Installation Environment:
Redhat ES 5.5 64-bit, system memory 8g,swap 10G, Oracle 11G R2 Standard Edition
One, Oracle pre-installation Preparation
Check the package and you must install it all:
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (+ bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.1
gcc-c++-4.1.1
Glibc-2.5-12
GLIBC-2.5-12 (+ bit)
glibc-common-2.5
glibc-devel-2.5
GLIBC-DEVEL-2.5-12 (+ bit)
libaio-0.3.106
libaio-0.3.106 (+ bit)
libaio-devel-0.3.106
libgcc-4.1.1
libgcc-4.1.1 (+ bit)
libstdc++-4.1.1
libstdc++-4.1.1 (+ bit)
Libstdc++-devel 4.1.1
make-3.81
sysstat-7.0.0
Note: The system will have fewer packages when installed by default:
fonts-chinese-3.02-12.el5.noarch.rpm
fonts-iso8859-2-75dpi-1.0-17.1.noarch.rpm
libaio-devel-0.3.106-5.i386.rpm
libaio-devel-0.3.106-5.x86_64.rpm
sysstat-7.0.2-3.el5.x86_64.rpm
unixodbc-2.2.11-7.1.i386.rpm
unixodbc-2.2.11-7.1.x86_64.rpm
unixodbc-devel-2.2.11-7.1.i386.rpm
unixodbc-devel-2.2.11-7.1.x86_64.rpm
Second, create Oracle users and Groups
Execute the following shell command:
Su-root
/usr/sbin/groupadd Oinstall
/usr/sbin/groupadd DBA
/usr/sbin/groupadd Oper
/USR/SBIN/USERADD-G oinstall-g Dba,oper Oracle
Set Password
passwd Oracle
Three, system parameters and configuration files
Add the following to the file/etc/sysctl.conf:
KERNEL.SYSRQ = 0
Kernel.core_uses_pid = 1
Net.ipv4.tcp_syncookies = 1
KERNEL.MSGMNB = 65536
Kernel.msgmax = 65536
Kernel.shmmax = 4294967295
Kernel.shmall = 268435456
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Net.ipv4.ip_local_port_range = 9000 65500
Net.core.rmem_default = 4194304
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048576
Fs.file-max = 6815744
FS.AIO-MAX-NR = 1048576
/sbin/sysctl–p
/etc/security/limits.conf
Add the following:
Session required/lib64/security/pam_limits.so
Session Required Pam_limits.so
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
/etc/profile
Add to:
if [$USER = "Oracle"]; Then
if [$SHELL = "/bin/ksh"]; Then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
Four, directory and environment variable configuration:
Size at least 3g above:
Chown-r Oracle:oinstall/home/oracle/oracle_base
Chmod-r 775/home/oracle/oracle_base/
Installation
Log in with Oracle
To modify an environment variable:
/home/oracle/.bash_profile
#. Bash_profile
# Get the aliases and functions
If [-f ~/.BASHRC]; Then
. ~/.bashrc
Fi
# User specific environment and startup programs
#DISPLAY =localhost:0.0
#export DISPLAY
Export ORACLE_SID=ORCL
Export oracle_base=/home/oracle/oracle_base
Export Ld_library_path= $LD _library_path:oracle_home/lib
Export Oracle_home=/home/oracle/oracle_base/product/11.2.0/dbhome_1
Export oracle_home_listner= $ORACLE _home
Path= $PATH: $HOME/bin: $ORACLE _home/bin
Umask 022
Export PATH
Sh/home/oracle/.bash_profile
Re-login to the system with Oracle user, I'm using Xmanger software to log in
(by Xhsot + to test whether the graphical interface can be called properly, if
Access control disabled, clients can connect from any hos)
Indicates that a normal call can be
Go to Oracle's instal folder
./runlnstaller
Five, install Oracle
If not, an Oracle installation graphical interface will appear,
Follow the prompts to install one step at a
In the second step of installation Oracle will detect if the environment is compliant, if prompted for swap or large, or small, ignore, next
When you are done, follow the prompts to execute with root
Root.sh and
orainstroot.sh
Enter
This is basically done.
Note: In accordance to 68% and 76%, very slow, patient waiting.
According to the different hardware, I counted three cases, the installation time will not exceed 2 hours.
VI, Oracle Create instance
To create an instance by using a graphical format
CD $home _oracle/oracle_base/product/11.2.0/dbhome_1/bin/
./DBCA
Then the graphical interface for creating the instance will appear and follow the prompts to proceed to the next step.
Login em the same way, this is the port is not the same, this is and can log on to the default instance, you can also log in the instance you created.
2010-09-18
This article is from the "Five Corners" blog, please be sure to keep this source http://hi289.blog.51cto.com/4513812/1832558
Oracle 11g R2 Standard Edition 64-bit Linux installation