技术头条 - 一个快速在微博传播文章的方式     搜索本站
您现在的位置首页 --> Oracle --> 单机上安装和升级Oracle 11g

单机上安装和升级Oracle 11g

浏览:1914次  出处信息
   Oracle 11g 出来有好长时间了,一直没时间去了解它增加哪些新的功能和特性,今天刚好有时间和机器于是就来体验一把Oracle 11g的新"魅力",并且记录下来.

     整个安装过程和安装oracle 10g 没有本质上的区别.

    一:创建 oracle 用户

    [root@dbasky ~]#groupadd oinstall

    [root@dbasky ~]#groupadd dba

    [root@dbasky ~]#mkdir -p /home/oracle

    [root@dbasky ~]#useradd -d /home/oracle -g oinstall -G dba oracle

    [root@dbasky ~]#chown oracle:dba /home/oracle /opt

    [root@dbasky ~]#passwd oracle

    New Password:

    Re-enter new Password:

    passwd: password successfully changed for oracle

    二:创建 oracle 用户环境文件

    [root@dbasky ~]# vi /home/oracle/.bash_profile

    export PS1="` /bin/hostname -s`-> "

    export EDITOR=vi

    export ORACLE_BASE=/opt/oracle

    export ORACLE_HOME=/opt/oracle/product/11.0.13/

    export ORACLE_SID=nuage

    export LD_LIBRARY_PATH=$ORACLE_HOME/lib

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

    export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

    export NLS=en_US

    三:创建文件系统目录结构

    dbasky->mkdir -p $ORACLE_BASE/admin

    dbasky->mkdir -p $ORACLE_HOME

    四:提高 Oracle 用户的 shell 限制

    [root@dbasky ~]# vi /etc/security/limits.conf

    oracle soft nproc 2047

    oracle hard nproc 16384

    oracle soft nofile 1024

    oracle hard nofile 65536

    [root@dbasky ~]# vi /etc/pam.d/login

    session    required     /lib/security/pam_limits.so

    [root@dbasky ~]# 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

    五:配置内核参数

    [root@dbasky ~]# vi /etc/sysctl.conf

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

    net.core.rmem_max            = 4194304

    net.core.wmem_default        = 262144

    net.core.wmem_max            = 262144

    [root@dbasky ~]# /sbin/sysctl -p     #内核参数立即生效

    六:安装:

    用oracle用户登陆X windows 环境,到用root用户解压缩linux_11gR1_database_1013.zip好后的/tmp目录下:

    [oracle@dbasky tmp]# cd database/

    [oracle@dbasky tmp]#./runInstaller

    oracle11g_1.bmp

    oracle11g_2.JPG

    

    

oracle11g_3.JPG
oracle11g_4.JPG
oracle11g_5.JPG
oracle11g_6.JPG
到此oracle 安装完成.

    接下来就做oracle的升级工作,在升级之前把数据库down.

    oracle11g_7.JPG

    

oracle11g_8.JPG
oracle11g_9.JPG

建议继续学习:

  1. PHP将死,何以为继?    (阅读:4624)
  2. 记一下我的ubuntu升级到10.04时遇到都问题    (阅读:3592)
  3. Mysql 4.1升级到5.0以后一个很郁闷的地方    (阅读:2362)
  4. APP升级习惯调查    (阅读:2302)
  5. 升级squid 2.6 到2.7 的冤枉路    (阅读:2204)
  6. 分布式系统升级所遇到的问题    (阅读:902)
QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习
© 2009 - 2024 by blogread.cn 微博:@IT技术博客大学习

京ICP备15002552号-1