linux 下oracle的安装

时间:2021-07-30 23:21:59

 一、基本检查
1、以root登陆,挂载linux.iso

 

linux 下oracle的安装

2、[root@oracle ~]# cat /etc/sysconfig/network

NETWORKING=yes

NETWORKING_IPV6=no

HOSTNAME=oracle.junjie.com

[root@oracle ~]# ifconfig eth0

eth0      Link encap:Ethernet  HWaddr 00:0C:29:65:FC:1D 

          inet addr:192.168.101.88  Bcast:192.168.101.255  Mask:255.255.255.0

linux 下oracle的安装

三、检查安装包

yum install libXp

binutils-2.17.50.0.6-12.el5.i386.rpm

compat-db-4.2.52-5.1.i386.rpm

compat-libstdc++-296-2.96-138.i386.rpm

control-center-2.16.0-16.el5.i386.rpm

gcc-4.1.2-46.el5.i386.rpm

gcc-c++-4.1.2-46.el5.i386.rpm

glibc-2.5-42.i386.rpm

glibc-common-2.5-42.i386.rpm

libstdc++-4.1.2-46.el5.i386.rpm

libstdc++-devel-4.1.2-46.el5.i386.rpm

make-3.81-3.el5.i386.rpm

pdksh-5.2.14-36.el5.i386.rpm

sysstat-7.0.2-3.el5.i386.rpm

setarch-2.0-1.1.i386.rpm

3.修改/etc/hosts文件

[root@oracle ~]# echo "192.168.101.88  oracle.junjie.com" >>/etc/hosts

 

linux 下oracle的安装

 

4.新建用户和组

[root@oracle ~]# groupadd dba

[root@oracle ~]# groupadd oinstall

[root@oracle ~]# groupadd oper   

[root@oracle ~]# useradd -g oinstall -G dba,oper oracle

[root@oracle ~]# echo 'zhu.110' |passwd --stdin oracle

5.添加文件

[root@oracle ~]# vim /etc/sysctl.conf

kernel.shmall = 2097152

kernel.shmmax = 2147483648

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 = 1048576

net.core.rmem_max = 1048576

net.core.wmem_default = 262144

net.core.wmem_max = 262144

[root@oracle ~]# vim /etc/security/limits.conf

oracle              soft    nproc   2047

oracle              hard    nproc   16384

oracle              soft    nofile  1024

oracle              hard    nofile  65536

[root@oracle ~]# vim /etc/pam.d/login

session    required     /lib/security/pam_limits.so

session    required     pam_limits.so

[root@oracle ~]# vim /etc/profile

if [ $USER = "oracle" ]; then

        if [ $SHELL = "/bin/ksh" ]; then

              ulimit -p 16384

              ulimit -n 65536

        else

              ulimit -u 16384 -n 65536

        fi

fi

6. 新建文件,修改权限

[root@oracle ~]# mkdir /u01   

[root@oracle ~]# mkdir -pv /u01/app/oracle

mkdir: created directory `/u01/app'

mkdir: created directory `/u01/app/oracle'

[root@oracle ~]# chown -R oracle:oinstall /u01/app/oracle/

[root@oracle ~]# chmod -R 775 /u01/app/oracle/

[root@oracle ~]# mkdir /u01/flash_recovery_area

[root@oracle ~]# chown oracle:oinstall /u01/flash_recovery_area/

[root@oracle ~]# chmod 755 /u01/flash_recovery_area/

Root 身份下

export DISPLAY=:0.0 设置display      并且运行xhost

xhost local:oracle

 

 

二.安装oracle

2.1.添加以下几行

[root@oracle ~]# su - oracle

[oracle@oracle ~]$ vim .bash_profile

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=/u01/app/oracle/product/10.2.0

export ORACLE_SID=xjzhujunjie

[oracle@oracle ~]$ . .bash_profile

[oracle@oracle ~]$ env | grep ORA

ORACLE_SID=xjzhujunjie

ORACLE_BASE=/u01/app/oracle

ORACLE_HOME=/u01/app/oracle/product/10.2.0

测试图形界面:

 

[root@localhost ~]# xhost local:oracle

non-network local connections being added to access control list

[root@localhost ~]# su - oracle

[oracle@localhost ~]$ xclock

[oracle@localhost ~]$

 

修改系统版本

Vim /etc/redhat-release

 

linux 下oracle的安装

 

 

 

下面开始运行光盘里面的 runinstaller

 

 

 

 

linux 下oracle的安装

 

 

linux 下oracle的安装

 

linux 下oracle的安装

 

 

本文出自 “啤酒泡泡” 博客,请务必保留此出处http://441970.blog.51cto.com/431970/997489