• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase
您的位置:首页 > 数据库 >oracle > oracle11g 最终版本11.2.0.4安装详细过程介绍

oracle11g 最终版本11.2.0.4安装详细过程介绍

作者:黄杉 字体:[增加 减小] 来源:互联网 时间:2017-05-11

黄杉通过本文主要向大家介绍了oracle11g 11.2.0.4,oracle 11.2.0.4 下载,oracle 11.2.0.4,oracle11.2.0.4补丁,oracle11.2.0.4安装等相关知识,希望本文的分享对您有所帮助

 --安装背景

上次碰到问题,cursor:mutex S导致的load过高, 有说可以升级到11.2.0.4就能避免这种问题,所以准备重新搭建新版本11.2.0.4。

安装环境是:azure云 linux centos6.5。

1,修改内核

1.1 修改sysctl.conf文件

[root@orcltest Downloads]# vim/etc/sysctl.conf

# add by tim.man

kernel.shmmax = 277495689510912

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048586

fs.file-max = 6815744

 

# Controls the maximum number of shared memory segments, in pages                              

kernel.shmall = 4294967296

net.ipv4.tcp_max_tw_buckets = 6000

net.ipv4.ip_local_port_range = 9000 65500

net.ipv4.tcp_tw_recycle = 0

net.ipv4.tcp_tw_reuse = 1

net.core.somaxconn = 262144

net.core.netdev_max_backlog = 262144

net.ipv4.tcp_max_orphans = 262144

net.ipv4.tcp_max_syn_backlog = 262144

net.ipv4.tcp_synack_retries = 2

net.ipv4.tcp_syn_retries = 1

net.ipv4.tcp_fin_timeout = 1

net.ipv4.tcp_keepalive_time = 30

net.ipv4.tcp_keepalive_probes = 6

net.ipv4.tcp_keepalive_intvl = 5

net.ipv4.tcp_timestamps = 0

fs.aio-max-nr = 1048576

</div>

1.2 使参数生效

[root@orcltest Downloads]# sysctl –p
</div>

2,增加用户和组

[root@orcltestDownloads]# groupadd oinstall

[root@orcltestDownloads]# groupadd dba

[root@orcltestDownloads]# groupadd oper

[root@orcltestDownloads]# useradd -g oinstall -G dba,oper oracle

[root@orcltestDownloads]# passwd oracle
</div>

3,修改limits.conf限制

[root@orcltestDownloads]# vim /etc/security/limits.conf

oracle soft nproc 2047 

oracle hard nproc 16384                        

oracle soft nofile 1024

oracle hard nofile 65536
</div>

4,修改/etc/pam.d/login

[root@orcltestDownloads]# vim /etc/pam.d/login

session required/lib64/security/pam_limits.so
</div>

 5,修改bash_profile文件

(1)修改profile:

 [root@orcltest Downloads]# vim /etc/profile               

# add by tim.man

if [ $USER = "oracle" ]; then

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

 ulimit -p 16384

 ulimit -n 65536

else

 ulimit -u 16384 -n 65536

fi

fi
</div>

(2)修改bash_profile:

[oracle@orcltest ~]$ vim .bash_profile

export EDITOR=vi

export ORACLE_SID=doea5db

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1

export INVENTORY_LOCATION=/oraInventory

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export NLS_LANG="American_america.zhs16gbk"

export NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'

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

umask 022
</div>

使bash_profile生效:

[oracle@orcltest ~]$ source .bash_profile
</div>

6,创建目录

[root@orcltest~]# mkdir /data/oracle

[root@orcltest~]# chown oracle:oinstall /data

 

[root@azure_earth_dbm1_3_112 app]# mkdir /data/oracle

[root@azure_earth_dbm1_3_112 app]# mkdir /data/oraInventory

[root@azure_earth_dbm1_3_112 app]# cd /oracle/app

[root@azure_earth_dbm1_3_112 app]# ln -s /data/oracle oracle

[root@azure_earth_dbm1_3_112 app]# ln -s /data/oraInventory oraInventory               

[root@azure_earth_dbm1_3_112 app]# chown -R oracle.oinstall /data

[root@azure_earth_dbm1_3_112 app]# chown -R oracle.oinstall /oracle

[root@azure_earth_dbm1_3_112 app]#

[root@ azure_earth_dbm1_3_112 oracle]# mkdir -p /oracle/app/oracle

[root@ azure_earth_dbm1_3_112 oracle]# chown -R oracle:oinstall /oracle/app/oracle

[root@ azure_earth_dbm1_3_112 oracle]# chmod -R 775 /oracle/app/oracle

[root@ azure_earth_dbm1_3_112 oracle]#
</div>

7,安装rpms包

Rpm包安装:rpm -ivh *--force –nodeps

Rpms安装有时候不一定保证有效,可以再用yum安装:

# 采用yum安装,如下:
yum install -y binutils*

yum install -y compat-libstdc*

yum install -y elfutils-libelf*

yum install -y gcc*

yum install -y glibc*

yum install -y ksh*

yum install -y libaio*

yum install -y libgcc*

yum install -y libstdc*

yum install -y make*

yum install -y sysstat*

 

yum install libXp* -y

yum install -y glibc-kernheaders

 

# 检查下lib是否安装齐全:

[root@powerlong4 ~]# rpm -q --queryformat %-{name}-%{version}-%{release}-%{arch}"\n" \ compat-libstdc++-33 glibc-kernheaders glibc-headers libaio libgcc glibc-devel xorg-x11-deprecated-libs
</div>

如果缺少,就继续安装缺失的组件包。

8,安装vnc

vnc安装参考:http://www.weikejianghu.com/article/110095.htm

9,解压缩

Oracle官网一般下载不到,需要用户名密码登录,大家如果需要这款Oracle软件下载,欢迎在下面留言区留下你的email地址,我看到了会及时发给你的。

 这里只是准备部署dataguard,所以只需要安装1of7和2of7这2个zip包即可。

unzipp13390677_112040_Linux-x86-64_1of7.zip

unzip p13390677_112040_Linux-x86-64_2of7.zip

解压缩完,会看到一个database目录。

 10,vnc viewer远程安装

[root@azure_earth_dbm1_3_112 ~]# exportDISPLAY=10.254.3.112:1.0

[root@azure_earth_dbm1_3_112 ~]# xhost +

access control disabled, clients canconnect from any host

[root@azure_earth_dbm1_3_112 ~]#

[oracle@azure_earth_dbm1_3_111 database]$./runInstaller

"You are attempting to install 64-bitOracle on a 32-bit operating system. This is not supported and will not work."

[oracle@azure_earth_dbm1_3_111 database]$vim runInstaller

# 注释掉exit 126即可

 

if [ `$UNAME` = "Linux" ]; then

 if [ -e $GETCONF ]; then

 value=`$GETCONF LONG_BIT`

 if [ $value != 64 ]; then

  echo "\"You are attempting to install 64-bit Oracle on a32-bit operating system. This is notsupported and will not work.\"";

  #exit 126; #corresponding to the exit code of oui

 fi

 fi

fi
</div>

然后再执行./runInstaller,会有如下界面,正式开始界面安装oracle数据库,选择忽略软件更新的提示,点击next下一步,如下图01.png:

之后选择单实例数据库安装,如02.png所示:

从左面的可用语言里面选择UK、SC、TC,如下03.png所示:

之后选择企业版本4.7GB,如下04.png所示:


下面的oraclebase根目录以及软件目录,都默认不需要设置(当然如果你要改路径也是可

分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • oracle11g 最终版本11.2.0.4安装详细过程介绍

相关文章

  • 2017-08-28oracle中表insert or update or delete触发器
  • 2017-05-11Oracle RMAN快速入门指南
  • 2017-05-11Oracle数据库迁移方案
  • 2017-05-11分析Oracle生成Statpack步骤
  • 2017-05-11Oracle 函数大全
  • 2017-05-11Oracle删除表、字段之前判断表、字段是否存在
  • 2017-05-11oracle中UPDATE nowait 的使用方法介绍
  • 2017-05-11Oracle中instr和substr存储过程详解
  • 2017-05-11Oracle 子程序参数模式,IN,OUT,NOCOPY
  • 2017-05-11修改oracle数据库用户名及密码的方法

文章分类

  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase

最近更新的内容

    • Oracle 游标使用全解
    • Oracle SQL性能优化系列学习三
    • Oracle定义联合数组及使用技巧
    • Oracle 当前用户下所有表的记录总数
    • Oracle数据库的十种重新启动步骤
    • 如何使用log miner分析oracle日志
    • LINUX下Oracle数据库用户创建方法详解
    • Oracle 语句优化分析说明第1/2页
    • oracle中fdisk导致的ASM磁盘数据丢失的解决方法
    • oracle使用instr或like方法判断是否包含字符串

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有