oracle11g 过程,oracle11g 安装过程

安装oracle软件

1>创建用户组、用户和目录

bjdb节点下:

[root@node1 /]# groupadd -g 200 oinstall

[root@node1 /]# groupadd -g 201 dba

[root@node1 /]# useradd -u 200 -g oinstall -G dba oracle

Creating mailbox file: File exists

[root@node1 /]# passwd oracle

Changing password for user oracle.

New UNIX password:

BAD PASSWORD: it is based on a dictionary word

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

[root@node1 /]# mkdir -p /top/app/oracle

[root@node1 /]# chown -R oracle:oinstall /eb_db

shdb节点下创建相同的用户组和用户,脚本一样;

关闭邮件服务器

[root@node1 /]# chkconfig sendmail off

2>修改内核参数

/etc/sysctl.conf文件添加:

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 536870912

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048586

[root@node1 /]# sysctl -p   //参数文件生效

/etc/security/limits.conf 文件下添加:

oracle              soft    nproc   2047

oracle              hard    nproc   16384

oracle              soft    nofile  1024

oracle              hard    nofile  65536

oracle              soft    stack   10240

/etc/pam.d/login 文件下添加:

session required /lib/security/pam_limits.so

/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

oracle用户下修改 .bash_profile 文件

[oracle@beijing ~]$ vi .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

export EDITOR=vi

export ORACLE_SID=prod

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin

umask 022

创建监听:在oracle用户下操作

Bash-3.00$ netca    //此后会打开一个创建监听的图形化界面。进行后续配置。

Bash-3.00$ lsnrctl status  //查看监听状态

3>安装软件并在bjdb上使用dbca创建数据库

在bjdb和shdb上分别安装oracle软件

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值