1、虚拟机搭建

光盘镜像:Enterprise-R5-U5-Server-x86_64-dvd.iso

2、配置

2.1
vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 4294967296  
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

使生效

sysctl -p

2.2
vi /etc/security/limits.conf
oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536

2.3验证包

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' \
binutils \
compat-libstdc++-33 \gcc \
gcc-c++ \
glibc \
glibc-common \
glibc-devel \
libaio \
libgcc \
libaio-devel \
libgcc \
libstdc++-devel \
libstdc++ \
make \
numactl-devel \
sysstat \
libXp \

挂载光盘,对未安装的包进行安装

df -h
cd /media/Enterprise\ Linux\ dvd\ 20100405/Server/
rpm –ivh


rpm -ivh libgomp-4.4.0-6.el5.*
rpm -ivh gcc-4.1.2-48.el5.x86_64.rpm
rpm -ivh libstdc++-devel-4.1.2-48.el5.*
rpm -ivh gcc-c++-4.1.2-48.el5.x86_64.rpm
rpm -ivh libaio-devel-0.3.106-5.*
rpm -ivh numactl-devel-0.9.8-11.el5.*
rpm -ivh sysstat-7.0.2-3.el5.x86_64.rpm
rpm -ivh libXp-1.0.0-8.1.el5.*

2.4创建用户、组及安装目录

groupadd oinstall
groupadd dba
useradd  -g oinstall -G dba oracle
passwd oracle
cd /usr
mkdir oracle
chown oracle:dba oracle

2.5修改oracle用户的.bash_profile

oracle用户

export PATH
ORACLE_SID=std
ORACLE_BASE=/usr/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/jdbc/lib:$ORACLE_HOME/ctx/lib:/usr/lib:/lib:/usr/local/lib
TNS_ADMIN=$ORACLE_HOME/network/admin
NLS_LANG="Simplified Chinese"_China.ZHS16GBK
PATH=$ORACLE_HOME/bin:$PATH
umask 022
export ORACLE_SID ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH TNS_ADMIN PATH NLS_LANG

使生效:

source .bash_profile

2.6上传文件

10201_database_linux_x86_64.cpio.gz

p6810189_10204_Linux-x86-64.zip

解压

gunzip 10201_database_linux_x86_64.cpio.gz

cpio -idmv < 10201_database_linux_x86_64.cpio

unzip p6810189_10204_Linux-x86-64.zip

2.7修改版本问题:

vi /etc/redhat-release

修改为4版本

2.8修改主机名

vi /etc/hosts

192.168.137.86           oracle86

3、开始安装

在vnc端oracle用户下,运行database下的./runinstaller

Xlib: No protocol specified的错误

root用户下执行#xhost +

 

然后在vnc oracle用户下,运行Disk1下的  ./runinstaller

按提示完成相应的安装

 

posted on 2016-03-22 09:35  充实自己  阅读(307)  评论(0编辑  收藏  举报