单机上安装和升级Oracle 11g


转载时请务必以超链接形式标明文章 原始出处和作者信息及本版权声明
链接:http://www.dbasky.net/archives/2009/08/oracle-11g.html
   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

评论(2)

oracle 11g 和 oracle 10g 区别还是很大的啊!不知道现在的oracle 11g是否稳定,可以在生成环境中使用吗?

现在的oracle 11g 的bug还真的不少啊,如果在不是很重要的业务中可以尝试使用.

发表评论

个人介绍

Xu
Evangelist
Oracle DBA / Blogger
Life@Beijing
Work@恩世教育
详细介绍...

按月归档

Close