你好,游客 登录 注册 搜索
背景:
阅读新闻

单节点服务器安装Oracle Grid Infrastructure和Oracle Database

[日期:2014-05-12] 来源:Linux社区  作者:LuiseDalian [字体:大 中 小]

点击Fix & Check Again

单结点服务器安装Oracle Grid Infrastructure和Oracle Database
单结点服务器安装Oracle Grid Infrastructure和Oracle Database 

把警告没有安装的软件包安装一下

 

 

# 挂载OracleLinux安装镜像光盘,安装需要的软件包,注意安装顺序

[root@OL54.cuug.net:/media/Enterprise Linux dvd 20090908/Server]$ rpm -Uvh libstdc++-devel-4.1.2-46.el5.i386.rpm

warning: libstdc++-devel-4.1.2-46.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159

Preparing...                ########################################### [100%]

  1:libstdc++-devel        ########################################### [100%]

[root@OL54.cuug.net:/media/Enterprise Linux dvd 20090908/Server]$ rpm -Uvh gcc-c++-4.1.2-46.el5.i386.rpm       

warning: gcc-c++-4.1.2-46.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159

Preparing...                ########################################### [100%]

  1:gcc-c++                ########################################### [100%]

 

[root@OL54.cuug.net:/media/Enterprise Linux dvd 20090908/Server]$ rpm -Uvh libaio-devel-0.3.106-3.2.i386.rpm

warning: libaio-devel-0.3.106-3.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159

Preparing...                ########################################### [100%]

  1:libaio-devel          ########################################### [100%]

[root@OL54.cuug.net:/media/Enterprise Linux dvd 20090908/Server]$ rpm -Uvh sysstat-7.0.2-3.el5.i386.rpm

warning: sysstat-7.0.2-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159

Preparing...                ########################################### [100%]

  1:sysstat                ########################################### [100%] 

安装结束后,点击界面中的Check Again

单结点服务器安装Oracle Grid Infrastructure和Oracle Database单结点服务器安装Oracle Grid Infrastructure和Oracle Database

 

# 使用SecureCRT建立新的会话以root用户登录并运行相应的2个脚本

[root@OL54.cuug.net:/media/Enterprise Linux dvd 20090908/Server]$ /u01/app/oraInventory/orainstRoot.sh

Changing permissions of /u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

 

Changing groupname of /u01/app/oraInventory to oinstall.

The execution of the script is complete.

[root@OL54.cuug.net:/media/Enterprise Linux dvd 20090908/Server]$ /u01/app/grid/product/11.2.0/grid/root.sh

Performing root user operation for Oracle 11g

 

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /u01/app/grid/product/11.2.0/grid

 

Enter the full pathname of the local bin directory: [/usr/local/bin]:

  Copying dbhome to /usr/local/bin ...

  Copying oraenv to /usr/local/bin ...

  Copying coraenv to /usr/local/bin ...

 

 

Creating /etc/oratab file...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_params

Creating trace directory

LOCAL ADD MODE

Creating OCR keys for user 'grid', privgrp 'oinstall'..

Operation successful.

LOCAL ONLY MODE

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

CRS-4664: Node ol54 successfully pinned.

Adding Clusterware entries to inittab

 

ol54    2014/05/04 23:46:45    /u01/app/grid/product/11.2.0/grid/cdata/ol54/backup_20140504_234645.olr

Successfully configured Oracle Grid Infrastructure for a Standalone Server

单结点服务器安装Oracle Grid Infrastructure和Oracle Database

3. 安装结束后,对/home/grid/.bash_profile配置文件进行设置
 

[grid@RH54.cuug.net:/home/grid]$ vi .bash_profile

# .bash_profile

 

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

        . ~/.bashrc

fi

 

# User specific environment and startup programs

 

PATH=$PATH:$HOME/bin

export PATH

export PS1=[`whoami`@`hostname`':${PWD}]$ '

export PATH=$PATH:/u01/app/grid/product/11.2.0/grid/bin

export ORACLE_HOME=/u01/app/grid/product/11.2.0/grid

export ORACLE_SID=+ASM

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

linux
相关资讯       Grid Infrastructure  Oracle Database 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款