TAR包CLONE方式 安装11GR2 RAC数据库
http://luoping.blog.51cto.com/534596/1024788
TAR包CLONE方式 安装11GR2 RAC数据库 (gril软件安装)
http://luoping.blog.51cto.com/534596/1024795
TAR包CLONE方式 安装11GR2 RAC数据库 (gril软件root.sh) http://luoping.blog.51cto.com/534596/1024804
6.安装rdbms软件
6.1 节点1
- [oracle@11rac4 ~]$ cp /u01/db_1_rac.tar.gz /u01/app/oracle/product/11.2.0/
- [oracle@11rac4 ~]$ cd /u01/app/oracle/product/11.2.0/
- [oracle@11rac4 ~]$ mkdir db_2
- [oracle@11rac4 11.2.0]$ cd db_2
- [oracle@11rac4 db_2]$ ls
- db_1
- [oracle@11rac4 db_2]$ mv db_1/* ./
- [oracle@11rac4 db_2]$ rm ../db_1_rac.tar.gz
- [oracle@11rac4 db_2]$ cd clone/bin
- [oracle@11rac4 bin]$ perl clone.pl -silent ORACLE_BASE=/u01/app/oracle ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_2 ORACLE_HOME_NAME=OraHome1Rdbms INVENTORY_LOCATION=/u01/app/oraInventory -O'"CLUSTER_NODES={11rac4, 11rac5}"'-O'"LOCAL_NODE=11rac4"'
- ./runInstaller -clone -waitForCompletion "ORACLE_BASE=/u01/app/oracle" "ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_2" "ORACLE_HOME_NAME=OraHome1Rdbms" "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 3461 MB Passed
- Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-10-09_11-26-53PM. 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_11-26-53PM.log
- .................................................................................................... 100% Done.
- Installation in progress (Tuesday, October 9, 2012 11:27:10 PM CST)
- .............................................................................. 78% Done.
- Install successful
- Linking in progress (Tuesday, October 9, 2012 11:27:21 PM CST)
- Link successful
- Setup in progress (Tuesday, October 9, 2012 11:28:32 PM CST)
- Setup successful
- End of install phases.(Tuesday, October 9, 2012 11:28:40 PM CST)
- WARNING:
- The following configuration scripts need to be executed as the "root" user.
- /u01/app/oracle/product/11.2.0/db_2/root.sh
- To execute the configuration scripts:
- 1. Open a terminal window
- 2. Log in as "root"
- 3. Run the scripts
- The cloning of OraHome1Rdbms was successful.
- Please check '/u01/app/oraInventory/logs/cloneActions2012-10-09_11-26-53PM.log' for more details.
- [root@11rac4 ~]# cat /u01/app/oracle/product/11.2.0/db_2/install/root_11rac4_2012-10-09_23-28-52.log
- Running Oracle 11g root script...
- The following environment variables are set as:
- ORACLE_OWNER= oracle
- ORACLE_HOME= /u01/app/oracle/product/11.2.0/db_2
- 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.
- Finished product-specific root actions.
- [root@11rac4 ~]#
6.2 节点2
- [oracle@11rac5 ~]$ cp /u01/db_1_rac.tar.gz /u01/app/oracle/product/11.2.0/
- [oracle@11rac5 ~]$ cd /u01/app/oracle/product/11.2.0/
- [oracle@11rac5 ~]$ mkdir db_2
- [oracle@11rac5 11.2.0]$ cd db_2
- [oracle@11rac5 db_2]$ ls
- db_1
- [oracle@11rac5 db_2]$ mv db_1/* ./
- [oracle@11rac5 db_2]$
- [oracle@11rac5 db_2]$ rm ../db_1_rac.tar.gz
- [oracle@11rac5 db_2]$ cd clone/bin
- [oracle@11rac5 bin]$ perl clone.pl -silent ORACLE_BASE=/u01/app/oracle ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_2 ORACLE_HOME_NAME=OraHome1Rdbms INVENTORY_LOCATION=/u01/app/oraInventory -O'"CLUSTER_NODES={11rac4, 11rac5}"'-O'"LOCAL_NODE=11rac5"'
- ./runInstaller -clone -waitForCompletion "ORACLE_BASE=/u01/app/oracle" "ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_2" "ORACLE_HOME_NAME=OraHome1Rdbms" "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 3823 MB Passed
- Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-10-09_11-27-06PM. 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_11-27-06PM.log
- .................................................................................................... 100% Done.
- Installation in progress (Tuesday, October 9, 2012 11:27:24 PM CST)
- .............................................................................. 78% Done.
- Install successful
- Linking in progress (Tuesday, October 9, 2012 11:27:35 PM CST)
- Link successful
- Setup in progress (Tuesday, October 9, 2012 11:28:36 PM CST)
- Setup successful
- End of install phases.(Tuesday, October 9, 2012 11:28:42 PM CST)
- WARNING:
- The following configuration scripts need to be executed as the "root" user.
- /u01/app/oracle/product/11.2.0/db_2/root.sh
- To execute the configuration scripts:
- 1. Open a terminal window
- 2. Log in as "root"
- 3. Run the scripts
- The cloning of OraHome1Rdbms was successful.
- Please check '/u01/app/oraInventory/logs/cloneActions2012-10-09_11-27-06PM.log' for more details.
- [root@11rac5 ~]# /u01/app/oracle/product/11.2.0/db_2/root.sh
- Check /u01/app/oracle/product/11.2.0/db_2/install/root_11rac5_2012-10-09_23-29-03.log for the output of root script
- [root@11rac5 ~]# cat /u01/app/oracle/product/11.2.0/db_2/install/root_11rac5_2012-10-09_23-29-03.log
- Running Oracle 11g root script...
- The following environment variables are set as:
- ORACLE_OWNER= oracle
- ORACLE_HOME= /u01/app/oracle/product/11.2.0/db_2
- 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.
- Finished product-specific root actions.
7,配置ORACLE用户下面的SSH等效性
- [oracle@11rac4 bin]$ pwd
- /u01/app/oracle/product/11.2.0/db_2/oui/bin
- [oracle@11rac4 bin]$ ./runSSHSetup.sh -user oracle -hosts '11rac4 11rac5' -advanced -exverify
- This script will setup SSH Equivalence from the host '11rac4' to specified remote hosts.
- ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1
- JAR_LOC = /u01/app/oracle/product/11.2.0/db_1/oui/jlib
- SSH_LOC = /u01/app/oracle/product/11.2.0/db_1/oui/jlib
- OUI_LOC = /u01/app/oracle/product/11.2.0/db_1/oui
- PROP_LOC = /u01/app/oracle/product/11.2.0/db_1/sysman/prov/resources
- JAVA_HOME = /u01/app/oracle/product/11.2.0/db_1/jdk
- Checking if the remote hosts are reachable.
- formulateLocalCmd 11rac4/bin/ping-c 1 -w 5
- /bin/ping#11rac4#-c#1#-w#5
- formulateLocalCmd 11rac5/bin/ping-c 1 -w 5
- /bin/ping#11rac5#-c#1#-w#5
- Remote host reachability check succeeded.
- All hosts are reachable. Proceeding further...
- NOTE :
- As part of the setup procedure, this script will use ssh and scp to copy
- files between the local host and the remote hosts. You may be prompted for
- the password during the execution of the script.
- AS PER SSH REQUIREMENTS, THIS SCRIPT WILL SECURE THE USER HOME DIRECTORY
- AND THE .ssh DIRECTORY BY REVOKING GROUP AND WORLD WRITE PRIVILEDGES TO THESE
- directories.
- Do you want to continue and let the script make the above mentioned changes (yes/no)?
- yes
- If The files containing the client public and private keys already exist on the local host. The current private key may or may not have a passphrase associated with it. In case you remember the passphrase and do not want to re-run ssh-keygen, type 'no'. If you type 'yes', the script will remove the old private/public key files and, any previous SSH user setups would be reset.
- Enter 'yes', 'no'
- yes
- Enter the password:
- Logfile Location : /u01/app/oracle/product/11.2.0/db_2/oui/bin/SSHSetup2012-10-09_11-35-12-PM
- Doing SSHSetup...
- Please be patient, this operation might take sometime...Dont press Ctrl+C...
- Validating remote binaries..
- Remote binaries check succeeded
- Local Platform:- Linux
- ------------------------------------------------------------------------
- Verifying SSH setup
- ===================
- The script will now run the date command on the remote nodes using ssh
- to verify if ssh is setup correctly. IF THE SETUP IS CORRECTLY SETUP,
- THERE SHOULD BE NO OUTPUT OTHER THAN THE DATE AND SSH SHOULD NOT ASK FOR
- PASSWORDS. If you see any output other than date or are prompted for the
- password, ssh is not setup correctly and you will need to resolve the
- issue and set up ssh again.
- The possible causes for failure could be:
- 1. The server settings in /etc/ssh/sshd_config file do not allow ssh
- for user oracle.
- 2. The server may have disabled public key based authentication.
- 3. The client public key on the server may be outdated.
- 4. ~oracle or ~oracle/.ssh on the remote host may not be owned by oracle.
- 5. User may not have passed -shared option for shared remote users or
- may be passing the -shared option for non-shared remote users.
- 6. If there is output in addition to the date, but no password is asked,
- it may be a security alert shown as part of company policy. Append the
- additional text to the <OMS HOME>/sysman/prov/resources/ignoreMessages.txt file.
- ------------------------------------------------------------------------
- --11rac4:--
- Running /usr/bin/ssh -x -l oracle 11rac4 date to verify SSH connectivity has been setup from local host to 11rac4.
- IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL. Please note that being prompted for a passphrase may be OK but being prompted for a password is ERROR.
- Tue Oct 9 23:35:56 CST 2012
- ------------------------------------------------------------------------
- --11rac5:--
- Running /usr/bin/ssh -x -l oracle 11rac5 date to verify SSH connectivity has been setup from local host to 11rac5.
- IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL. Please note that being prompted for a passphrase may be OK but being prompted for a password is ERROR.
- Tue Oct 9 23:35:57 CST 2012
- ------------------------------------------------------------------------
- ------------------------------------------------------------------------
- Verifying SSH connectivity has been setup from 11rac4 to 11rac4
- ------------------------------------------------------------------------
- IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL.
- Tue Oct 9 23:35:56 CST 2012
- ------------------------------------------------------------------------
- ------------------------------------------------------------------------
- Verifying SSH connectivity has been setup from 11rac4 to 11rac5
- ------------------------------------------------------------------------
- IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL.
- Tue Oct 9 23:35:57 CST 2012
- ------------------------------------------------------------------------
- -Verification from 11rac4 complete-
- ------------------------------------------------------------------------
- Verifying SSH connectivity has been setup from 11rac5 to 11rac4
- ------------------------------------------------------------------------
- IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL.
- Tue Oct 9 23:35:57 CST 2012
- ------------------------------------------------------------------------
- ------------------------------------------------------------------------
- Verifying SSH connectivity has been setup from 11rac5 to 11rac5
- ------------------------------------------------------------------------
- IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL.
- Tue Oct 9 23:35:58 CST 2012
- ------------------------------------------------------------------------
- -Verification from 11rac5 complete-
- SSH verification complete.
整个软件部分已经安装完成。通过DBCA,ASMCA来创建数据库与磁盘组这里就不书写来了
附件:http://down.51cto.com/data/2361581
本文转自7343696 51CTO博客,原文链接:http://blog.51cto.com/luoping/1024811,如需转载请自行联系原作者