Chinaunix首页 | 论坛 | 博客
  • 博客访问: 497169
  • 博文数量: 161
  • 博客积分: 6010
  • 博客等级: 准将
  • 技术积分: 1947
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-25 01:20
文章分类

全部博文(161)

文章存档

2011年(44)

2010年(47)

2009年(48)

2008年(22)

我的朋友

分类: Oracle

2010-08-10 09:39:17

 centos5.2 安装oralce 10g release 2 rhel4

一.硬件环境

1.RAM

Available RAM

Swap Space Required

Between 1024 MB and 2048 MB

1.5 times the size of RAM

Between 2049 MB and 8192 MB

Equal to the size of RAM

More than 8192 MB

0.75 times the size of RAM

#cat /proc/meminfo

2./tem 空间大于400MB

#df -k /tmp

3.Between 1.5 GB and 3.5 GB of disk space for the Oracle software, depending on the installation type

4.cpu类型

#cat  /proc/cpuinfo

二.软件环境 

1.os支持

Red Hat Enterprise Linux 3.0 (Update 3 or later)

Red Hat Enterprise Linux 4.0

SUSE Linux Enterprise Server 9.0

Asianux 1.0

Asianux 2.0

#cat /etc/issue

#uname -r

2.packages (or later versions) must be installed

Red Hat Enterprise Linux 3.0 and 4.0, and Asianux 1.0 and Asianux 2.0

make-3.79.1

gcc-3.2.3-34

glibc-2.3.2-95.20

compat-db-4.0.14-5

compat-gcc-7.3-2.96.128

compat-gcc-c++-7.3-2.96.128

compat-libstdc++-7.3-2.96.128

compat-libstdc++-devel-7.3-2.96.128

openmotif21-2.1.30-8

setarch-1.3-1

SUSE Linux Enterprise Server 9

gcc-3.3.3-43

gcc-c++-3.3.3-43

glibc-2.3.3-98

libaio-0.3.98-18

libaio-devel-0.3.98-18

make-3.80

openmotif-libs-2.2.2-519.1

#rpm -q package_name

3.creating required operating system group and users

    The Oracle Inventory group (oinstall)

The OSDBA group (dba)

The Oracle software owner (oracle)

An unprivileged user (nobody)

Oinstall

是否存在#more /etc/oraInst.loc

Dba

#/grep dba /etc.group

If necessary,create oinstall dba group.

# /usr/sbin/groupadd oinstall

#/usr/sbin/groupadd dba

检查oracle用户是否存在

#id oracle

如果不存在oracle用户

创建

#/usr/sbin/useradd -g oinstall -G dba oracle

如果用户存在,但是group不是dba

#/usr/sbin/usermodoinstall -G dba oracle

设置密码

#passwd oracle

检查nobody用户存在,

#id nobody

if this command displays information about the nobody user, then you do not have to create  the user.

If the nobody user does not exist, then enter the following command to create it:

# /usr/sbin/useradd nobody

4.检查内核参数

如果当前参数高,不需要更改

Parameter

Value

File

semmsl

semmns

semopm

semmni

250

32000

100

128

/proc/sys/kernel/sem

shmall

2097152

/proc/sys/kernel/shmall

shmmax

Half the size of physical memory (in bytes)

/proc/sys/kernel/shmmax

shmmni

4096

/proc/sys/kernel/shmmni

file-max

65536

/proc/sys/fs/file-max

ip_local_port_range

Minimum: 1024

Maximum: 65000

/proc/sys/net/ipv4/ip_local_port_range

rmem_default

262144

/proc/sys/net/core/rmem_default

rmem_max

262144

/proc/sys/net/core/rmem_max

wmem_default

262144

/proc/sys/net/core/wmem_default

wmem_max

262144

/proc/sys/net/core/wmem_max

编辑

#vi /etc/sysctl.conf

5.set shell limits for the oracle user

Shell Limit

Item in limits.conf

Hard Limit

Maximum number of open file descriptors

nofile

65536

Maximum number of processes available to a single user

nproc

16384

 

Add the following lines in the /etc/security/limits.conf file:

oracle           soft    nproc   2047

oracle           hard    nproc   16384

oracle           soft    nofile  1024

oracle           hard    nofile  65536

该文件生效必须确保pam_limits.so文件被加入到启动文件中

查看/etc/pam.d/login

Add the following line to the /etc/pam.d/login file, if it does not already exist:

session    required     /lib/security/pam_limits.so

Depending on the oracle user's default shell, make the following changes to the default shell startup file:

For the Bourne, Bash, or Korn shell, add the following lines in the /etc/profile file (or the /etc/profile.local file on SUSE systems):

if [ $USER = "oracle" ]; then

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

              ulimit -p 16384

              ulimit -n 65536

        else

              ulimit -u 16384 -n 65536

        fi

fi

For the C shell, add the following lines in the /etc/csh.login file (or the /etc/csh.login.local file on SUSE systems):

if ( $USER == "oracle" ) then

        limit maxproc 16384

        limit descriptors 65536

Endif

6.创建必要的文件

The Oracle base directory

Must  have 3GB -4GBfree disk space

An optional Oracle data file directory (optional)

7. 配置oracle 用户环境

Set the default file mode creation mask (umask) to 022 in the shell startup file. 

Set the DISPLAY environment variable. 

。。。

。。

8.mounting the product disc

///////////////////////

创建安装目录

[root@oracle10g /]# mkdir -p /u01/oracle 

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

用户环境变量

#vi /home/oracle/.bash_profile

PATH=$PATH:$HOME/bin

export PATH

export LC_ALL=en_US 

ORACLE_BASE=/u01/app/oracle

export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/10.2.0.1

export ORACLE_HOME

ORACLE_SID=orcl10g

export ORACLE_SID

PATH=$PATH:\$ORACLE_HOME/bin

export PATH

LD_BIBRARY_PATH=\$ORACLE_HOME/lib:/usr/lib

export LD_BIBRARY_PATH

if [ $USER = "oracle" ]; then

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

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

   


阅读(621) | 评论(1) | 转发(0) |
0

上一篇:算法

下一篇:SQL trace 10046事件

给主人留下些什么吧!~~

chinaunix网友2011-06-05 02:14:55

大连法律咨询在线 http://www.fabowang.com 大连律师在线咨询 http://www.fabowang.com 大连法律顾问网 http://www.fabowang.com 大连律师咨询 http://www.fabowang.com