Home >Database >Mysql Tutorial >Oracle 10g 在RedHat Linux 5.3 系统安装图解全过程(单机)

Oracle 10g 在RedHat Linux 5.3 系统安装图解全过程(单机)

WBOY
WBOYOriginal
2016-06-07 17:09:031244browse

Oracle 10g 在RedHat Linux 5.3 系统安装图解全过程(单机)

1,安装相关的软件包

清单如下:

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
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
libaio-0.3.103-3
libXp(as 5)

2,编辑vi /etc/sysctl.conf文件,末尾添加如下行(原文件如有重复的,屏蔽掉)

kernel.shmall = 2097152
kernel.shmmax = 268435456
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

执行命令生效:/sbin/sysctl –p

3,编辑vi /etc/security/limits.conf文件,在末尾添加下列行

Oracle          soft    nproc  2047
oracle          hard    nproc  16384
oracle          soft    nofile  1024
oracle          hard    nofile  65536

4,建立相关的安装目录

mkdir /u01

mkdir /u01/app

mkdir /u01/app/oracle

5,建立dba,oinstall组与oracle用户

#groupadd oinstall

#groupadd dba

#useradd -g oinstall -G dba -d /u01/app/oracle oracle -s bin/bash

#passwd oracle

#chown -R oracle.oinstall /u01

6,执行命令,,使其进入图形安装模式

xhost +

7,切换到oracle用户 (su  - oracle)

编辑.bash_profile文件,添加如下行,设置oracle用户的环境变量

TMP=/tmp;export TMP
TMPDIR=$TMP;export TMPDIR
ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;export ORACLE_HOME
ORACLE_SID=orcl;export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH

执行命令,立即生效:source /u01/app/oracle/.bash_profile

8,解压oracle安装文件

tar  -xvzf 10201_database_linux32.tar.gz

9,安装oracle

执行命令./runInstaller

10,下面是安装过程图解

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn