Chinaunix首页 | 论坛 | 博客
  • 博客访问: 790286
  • 博文数量: 130
  • 博客积分: 3477
  • 博客等级: 中校
  • 技术积分: 1339
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-30 21:53
文章分类

全部博文(130)

文章存档

2024年(1)

2023年(10)

2022年(4)

2021年(10)

2020年(9)

2018年(1)

2017年(1)

2014年(4)

2013年(3)

2012年(12)

2011年(24)

2010年(2)

2009年(8)

2008年(6)

2007年(34)

2006年(1)

分类: Oracle

2007-12-14 19:11:10

RHEL4上面安装Oracle 10.2.0.1
====================
OS: RHEL4 U1
Oracle : 10.2.0.1
Place: Home
Participator: Eric Zhang
Date: 21:10 2005-12-30




1. Install RHEL4U1
==================

/  ext3     13500 MB
swap        824MB          (it should be physical memory *2. if physical memory >1G , just set swap = physical memory)

IP:  192.168.193.8 /255.255.255.0
Hostname: RHEL4

Gateway:  192.168.193.1
DNS: 202.96.0.133

No firewall

Languages:
English(USA)
Chinese(P.R. of China)

Location : Asia/Shanghai

Customize software packages to be installed.
----
X windows System
GNOME Desktop Environment
KDE (K DeskTop Environment )
----
Editors
Graphical Internet
Office/Productivity
Sound and Video
----
Server Cofiguration Tools
FTP Server
Legacy Network Server
----
Development Tools
Legacy Software Development
----
Administration Tools
----



2. Open FTP feature:
================

#setup -> system services -> vsftpd

#cd /etc/init.d
#./vsftpd start




3. Create Oracle  User:
================
#groupadd oinstall
#groupadd dba
#useradd -g oinstall -G dba ora10g



4. Modify Oracle user's .bash_profile
=======================

export ORACLE_BASE=/u10/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0.1
export ORACLE_SID=ora10g
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export LC_CTYPE=en_US.UTF-8



5. modify linux system parameters:
======================

a. #vi /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=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144



# /sbin/sysctl -p 命令操作来使我们所做的变更生效.

b.  # vi /etc/security/limits.conf

# 添加如下的行

*               soft    nproc   2047
*               hard    nproc   16384
*               soft    nofile  1024
*               hard    nofile  65536


c. #vi /etc/pam.d/login

添加
session    required     /lib/security/pam_limits.so


d. #vi  /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. 确认如下package 已经安装了:
==============


确认以下 rpm包都已经安装:

make-3.79
binutils-2.11
openmotif-2.2.2-16
setarch-1.3-1
compat-db-4.0.14.5
compat-gcc-7.3-2.96.122
compat-gcc-c++-7.3-2.96.122
compat-libstdc++-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122

//不过,高版本的应该没有问题,我继续。



7. ftp 10201_database_linux32.zip到/home/ora10g
===========================



8.$unzip  10201_database_linux32.zip
=======================


9. Disable sendmail:
==============
/etc/init.d
/etc/rc0.d
/etc/rc1.d
/etc/rc2.d
/etc/rc3.d
/etc/rc4.d
/etc/rc5.d
/etc/rc6.d

# mv  *sendmail*  ./yszhang




10 modify /etc/hosts:
=============

127.0.0.1    RHEL4  localhost.localdomain    localhost
变成
127.0.0.1     localhost.localdomain    localhost
192.168.193.8    RHEL4



9.  #xhost +
=========



10.安装oracle binary
============
#mkdir /u10
#chown ora10g:oinstall /u10
#su - ora10g
$/home/ora10g/database/runInstaller&

只有物理内存一项不合格,其余全部检查成功,继续走。
不选择创建数据库。




11.Create Database
============
$dbca&
 
这是从 ChinaUnix 上来的转贴,原作者为:
阅读(1603) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~