码迷,mamicode.com
首页 > 数据库 > 详细

oracle11g 安装过程

时间:2015-09-10 17:39:46      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:oracle

安装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软件


oracle11g 安装过程

标签:oracle

原文地址:http://tianlegg.blog.51cto.com/3628721/1693428

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!