系统的配置见 TAR包CLONE方式 安装11GR2 RAC数据库
http://luoping.blog.51cto.com/534596/1024788
4,grid软件安装
4.1 节点1grid软件安装
- 4.1.1 解压软件
- [grid@11rac4 u01]$ cd /u01/app/11.2.0/
- [grid@11rac4 11.2.0]$ ls
- grid grid.tar.gz
- [grid@11rac4 11.2.0]$ tar -zxvpf grid.tar.gz
- [grid@11rac4 11.2.0]$ rm -rf grid
- [grid@11rac4 11.2.0]$ mv gridback grid
- [grid@11rac4 11.2.0]$ cd $ORACLE_HOME/clone/bin
- 4.1.2 编译grid软件
- [grid@11rac4 bin]$ perl clone.pl -silent ORACLE_BASE=/u01/app/grid ORACLE_HOME=/u01/app/11.2.0/grid ORACLE_HOME_NAME=OraHome1Grid INVENTORY_LOCATION=/u01/app/oraInventory -O'"CLUSTER_NODES={11rac4, 11rac5}"'-O'"LOCAL_NODE=11rac4"'
- ./runInstaller -clone -waitForCompletion "ORACLE_BASE=/u01/app/grid" "ORACLE_HOME=/u01/app/11.2.0/grid" "ORACLE_HOME_NAME=OraHome1Grid" "INVENTORY_LOCATION=/u01/app/oraInventory" "CLUSTER_NODES={11rac4, 11rac5}"-O"LOCAL_NODE=11rac4" -silent -noConfig -nowait
- Starting Oracle Universal Installer...
- Checking swap space: must be greater than 500 MB. Actual 3631 MB Passed
- Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-10-09_10-47-46PM. Please wait ...Oracle Universal Installer, Version 11.2.0.2.0 Production
- Copyright (C) 1999, 2010, Oracle. All rights reserved.
- You can find the log of this install session at:
- /u01/app/oraInventory/logs/cloneActions2012-10-09_10-47-46PM.log
- .................................................................................................... 100% Done.
- Installation in progress (Tuesday, October 9, 2012 10:47:58 PM CST)
- ........................................................................ 72% Done.
- Install successful
- Linking in progress (Tuesday, October 9, 2012 10:48:03 PM CST)
- Link successful
- Setup in progress (Tuesday, October 9, 2012 10:48:25 PM CST)
- ................ 100% Done.
- Setup successful
- End of install phases.(Tuesday, October 9, 2012 10:48:29 PM CST)
- WARNING:
- The following configuration scripts need to be executed as the "root" user.
- /u01/app/11.2.0/grid/root.sh
- To execute the configuration scripts:
- 1. Open a terminal window
- 2. Log in as "root"
- 3. Run the scripts
- Run the script on the local node.
- The cloning of OraHome1Grid was successful.
- Please check '/u01/app/oraInventory/logs/cloneActions2012-10-09_10-47-46PM.log' for more details.
- 4.1.3 注意这里我们没有执行root.sh脚本
- 在安装grid前这台主机已经安装过rdbms单机版本,所以这里只要求执行一个脚本,按理说还有/u01/app/oraInventory/orainstRoot.sh
- 这个脚本
- [root@11rac4 ~]# rpm -ihv /tmp/CVU_11.2.0.2.0_grid/cvuqdisk-1.0.9-1.rpm
- Preparing... ########################################### [100%]
- 1:cvuqdisk ########################################### [100%]
- [root@11rac4 ~]#
4.2 节点2安装grid软件
- 执行的内容跟节点1差不多
- [grid@11rac5 ~]$ mkdir -p /u01/app/grid
- [grid@11rac5 ~]$ echo $ORACLE_HOME
- /u01/app/11.2.0/grid
- [grid@11rac5 ~]$ mkdir -p /u01/app/11.2.0/grid
- [grid@11rac5 ~]$ mv /u01/grid.tar.gz /u01/app/11.2.0/
- [grid@11rac5 ~]$ cd /u01/app/11.2.0/
- [grid@11rac5 11.2.0]$ tar -zxvpf grid.tar.gz
- [grid@11rac5 11.2.0]$ rm -rf grid
- [grid@11rac5 11.2.0]$ mv gridback grid
- [grid@11rac5 11.2.0]$
- [grid@11rac5 11.2.0]$ cd $ORACLE_HOME/clone
- [grid@11rac5 clone]$ cd bin
- 注意这里的local_node=是本地的主机名。
- [grid@11rac5 bin]$ perl clone.pl -silent ORACLE_BASE=/u01/app/grid ORACLE_HOME=/u01/app/11.2.0/grid ORACLE_HOME_NAME=OraHome1Grid INVENTORY_LOCATION=/u01/app/oraInventory -O'"CLUSTER_NODES={11rac4, 11rac5}"'-O'"LOCAL_NODE=11rac5"'
- ./runInstaller -clone -waitForCompletion "ORACLE_BASE=/u01/app/grid" "ORACLE_HOME=/u01/app/11.2.0/grid" "ORACLE_HOME_NAME=OraHome1Grid" "INVENTORY_LOCATION=/u01/app/oraInventory" "CLUSTER_NODES={11rac4, 11rac5}"-O"LOCAL_NODE=11rac5" -silent -noConfig -nowait
- Starting Oracle Universal Installer...
- Checking swap space: must be greater than 500 MB. Actual 4000 MB Passed
- Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-10-09_10-48-26PM. Please wait ...Oracle Universal Installer, Version 11.2.0.2.0 Production
- Copyright (C) 1999, 2010, Oracle. All rights reserved.
- You can find the log of this install session at:
- /u01/app/oraInventory/logs/cloneActions2012-10-09_10-48-26PM.log
- .................................................................................................... 100% Done.
- Installation in progress (Tuesday, October 9, 2012 10:48:39 PM CST)
- ........................................................................ 72% Done.
- Install successful
- Linking in progress (Tuesday, October 9, 2012 10:48:42 PM CST)
- Link successful
- Setup in progress (Tuesday, October 9, 2012 10:49:04 PM CST)
- ................ 100% Done.
- Setup successful
- End of install phases.(Tuesday, October 9, 2012 10:49:07 PM CST)
- WARNING:A new inventory has been created in this session. However, it has not yet been registered as the central inventory of this system.
- To register the new inventory please run the script '/u01/app/oraInventory/orainstRoot.sh' with root privileges.
- If you do not register the inventory, you may not be able to update or patch the products you installed.
- The following configuration scripts need to be executed as the "root" user.
- /u01/app/oraInventory/orainstRoot.sh
- /u01/app/11.2.0/grid/root.sh
- To execute the configuration scripts:
- 1. Open a terminal window
- 2. Log in as "root"
- 3. Run the scripts
- Run the script on the local node.
- The cloning of OraHome1Grid was successful.
- Please check '/u01/app/oraInventory/logs/cloneActions2012-10-09_10-48-26PM.log' for more details.
- [root@11rac5 ~]# /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@11rac5 ~]# rpm -ihv /tmp/CVU_11.2.0.2.0_grid/cvuqdisk-1.0.9-1.rpm
- Preparing... ########################################### [100%]
- 1:cvuqdisk ########################################### [100%]
5.集群配置
配置集群可以直接修改文件,也可以图形界面,我更喜欢图形界面
config.sh
双击图片可以看到大图
转载于:https://blog.51cto.com/luoping/1024795