单节点服务器安装Oracle Grid Infrastructure和Oracle D(5)

点击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

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/21146d429fddd834e65e096f34105430.html