ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Solaris10下Silent模式安装Oracle1106RAC环境(三)

Solaris10下Silent模式安装Oracle1106RAC环境(三)

原创 Linux操作系统 作者:yangtingkun 时间:2009-01-23 22:40:53 0 删除 编辑

主机环境基本上和前面文章中描述的SOLARIS10安装Oracle1106rac的环境基本完全一致,最主要的区别在于没有了VOLUMN CLUSTER MANAGER,于是这里打算使用OracleASM。由于安装操作没有什么区别,所以这次安装选择了SILENT静默模式来安装RAC

描述SILENT模式下CLUSTER软件的安装。

Solaris10Silent模式安装Oracle1106RAC环境(一):http://yangtingkun.itpub.net/post/468/477442

Solaris10Silent模式安装Oracle1106RAC环境(二):http://yangtingkun.itpub.net/post/468/477443

 

 

由于篇幅的限制,只好将CLUSTER的准备过程和安装过程分拆到两篇文章之中,下面开始安装过程:

$ ./runInstaller -silent -noconfig -responseFile /data/clusterware/response/my_crs.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 180 MB.   Actual 56634 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 57597 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-09-01_04-13-41PM. Please wait ...$ Oracle Universal Installer, Version 11.1.0.6.0 Production
Copyright (C) 1999, 2007, Oracle. All rights reserved.

SEVERE:Unable to create a new central inventory at location /data/oraInventory. A non empty inventory already exists at this location. Please select another location or clean the inventory at /data/oraInventory.

$ rm -rf /data/oraInventory
$ ./runInstaller -silent -noconfig -responseFile /data/clusterware/response/my_crs.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 180 MB.   Actual 56634 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 57597 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-09-01_04-14-57PM. Please wait ...$ Oracle Universal Installer, Version 11.1.0.6.0 Production
Copyright (C) 1999, 2007, Oracle. All rights reserved.

You can find the log of this install session at:
 /data/oraInventory/logs/installActions2008-09-01_04-14-57PM.log
.................................................................................................... 100% Done.


Loading Product Information
...............................................................  33% Done.
...............................................................  66% Done.
...............................................................  99% Done.
. 100% Done.


Starting execution of Prerequisites...
Total No of checks: 11

Performing check for CertifiedVersions
Checking operating system requirements ...
Expected result: One of 5.9,5.10
Actual Result: 5.10
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for CheckOSUpdate
Checking for the correct operating system update version...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for Packages
Checking operating system package requirements ...
Expected result: SUNWbtool
Actual Result: CCS tools bundled with SunOS(SUNWbtool)
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for Patches
Checking recommended operating system patches
Expected result: No OS Patch Required.
Actual Result: No OS Patch Found.
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for TotalMemory
Checking physical memory requirements ...
Expected result: 922MB
Actual Result: 32768MB
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for CompatibilityChecks_CRS
Checking for Oracle Home incompatibilities ....
Actual Result: NEW_HOME
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for ORCLudlm_check
Checking the installed UDLM package...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for OracleHomeSpace
Checking Oracle Home path for spaces...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for DetectnverfiyLocalCSS
Checking local Cluster Synchronization Services (CSS) status ...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for Detectnverify92RAC
Checking whether Oracle 9.2 RAC is available on all selected nodes
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for Detectnverify92OCRPartitionSize
Checking Oracle 9i OCR partition size ...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
PrereqChecks complete


Analyzing dependencies
.................................................................................................................. 100% Done.


-----------------------------------------------------------------------------
Summary
Global Settings
    Source: /data/clusterware/stage/products.xml
    Oracle Home: /data/oracle/product/11.1/crs (OraClusterware11ghome1)
    Node Name: ser1
    Node Name: ser2
    Installation Type: Complete
Product Languages
   English
   Simplified Chinese
Space Requirements
   /tmp/ Required 100MB (only as temporary space) : Available 55.02GB
   / Required 1.18GB : Available 60.51GB
Remote Nodes
            ser2
                /tmp/: Required 0KB : Available 55.72GB
                /: Required 1.18GB : Available 65.32GB
New Installations (37 products)
   Oracle Clusterware 11.1.0.6.0
   Required Support Files 11.1.0.6.0
   Cluster Ready Services Files 11.1.0.6.0
   HAS Common Files 11.1.0.6.0
   Oracle Globalization Support 11.1.0.6.0
   Oracle Locale Builder 11.1.0.6.0
   Enterprise Manager Minimal Integration 11.1.0.6.0
   RDBMS Required Support Files 11.1.0.6.0
   RDBMS Required Support Files for Instant Client 11.1.0.6.0
   Oracle Net Required Support Files 11.1.0.6.0
   SSL Required Support Files for InstantClient 11.1.0.6.0
   LDAP Required Support Files 11.1.0.6.0
   Oracle Help For Java 4.2.9.0.0
   Oracle JFC Extended Windowing Toolkit 4.2.36.0.0
   Oracle Ice Browser 5.2.3.6.0
   Perl Interpreter 5.8.3.0.4
   Oracle Globalization Support 11.1.0.6.0
   Oracle Core Required Support Files 11.1.0.6.0
   Platform. Required Support Files 11.1.0.6.0
   Precompiler Required Support Files 11.1.0.6.0
   Parser Generator Required Support Files 11.1.0.6.0
   Agent Required Support Files 10.2.0.3.1
   XDK Required Support Files 11.1.0.6.0
   SQL*Plus Required Support Files 11.1.0.6.0
   Oracle RAC Required Support Files-HAS 11.1.0.6.0
   Oracle Notification Service 11.1.0.5.0
   Buildtools Common Files 11.1.0.6.0
   Oracle Extended Windowing Toolkit 3.4.47.0.0
   Bali Share 1.1.18.0.0
   Oracle Clusterware RDBMS Files 11.1.0.6.0
   Cluster Verification Utility Common Files 11.1.0.6.0
   Oracle Required Support Files 32 bit 11.1.0.6.0
   Cluster Verification Utility Files 11.1.0.6.0
   Oracle Universal Installer 11.1.0.6.0
   Oracle One-Off Patch Installer 11.1.0.6.0
   Installer SDK Component 11.1.0.6.0
   Sun JDK 1.5.0.1.1
-----------------------------------------------------------------------------


Installation in progress (Mon Sep 01 16:15:23 CST 2008)
...............................................................   9% Done.
...............................................................  19% Done.
...............................................................  29% Done.
...............................................................  39% Done.
..........................................                       46% Done.
Install successful

Linking in progress (Mon Sep 01 16:16:21 CST 2008)
..                                                               46% Done.
Link successful

Setup in progress (Mon Sep 01 16:16:48 CST 2008)
............................................                     53% Done.
Setup successful

Remote operations in progress (Mon Sep 01 16:16:53 CST 2008)
...............................................................  63% Done.
...............................................................  73% Done.
...............................................................  82% Done.
.................................                               100% Done.
Remote operations complete

End of install phases.(Mon Sep 01 16:19:18 CST 2008)
WARNING:A new inventory has been created on one or more nodes 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. at '/data/oraInventory/orainstRoot.sh' with root privileges on nodes 'ser1,ser2'.
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 in each cluster node.
#!/bin/sh
#Root script. to run
/data/oraInventory/orainstRoot.sh #On nodes ser1,ser2
/data/oracle/product/11.1/crs/root.sh #On nodes ser1,ser2
To execute the configuration scripts:
    1. Open a terminal window
    2. Log in as "root"
    3. Run the scripts in each cluster node
   
Note: Do not run the scripts simultaneously on the listed nodes.
Starting to execute configuration assistants
The following configuration assistants have not been run. This can happen for following reasons - either root.sh is to be run before config or Oracle Universal Installer was invoked with the -noConfig option.
--------------------------------------
The "/data/oracle/product/11.1/crs/cfgtoollogs/configToolFailedCommands" script. contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script. with passwords (if any) before executing the same.
The "/data/oracle/product/11.1/crs/cfgtoollogs/configToolAllCommands" script. contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this script. with passwords (if any) before executing the same.

--------------------------------------
The installation of Oracle Clusterware was successful.
Please check '/data/oraInventory/logs/silentInstall2008-09-01_04-14-57PM.log' for more details.

在两个节点分别执行上面提到的第一个脚本:

root@ser1 # . /data/oraInventory/orainstRoot.sh
Changing permissions of /data/oraInventory to 770.
Changing groupname of /data/oraInventory to oinstall.
The execution of the script. is complete

下面在两个节点分别执行第二个脚本,第一个节点执行如下:

root@ser1 # . /data/oracle/product/11.1/crs/root.sh
WARNING: directory '/data/oracle/product/11.1' is not owned by root
WARNING: directory '/data/oracle/product' is not owned by root
WARNING: directory '/data/oracle' is not owned by root
WARNING: directory '/data' is not owned by root
Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory
Setting up Network socket directories
Oracle Cluster Registry configuration upgraded successfully
The directory '/data/oracle/product/11.1' is not owned by root. Changing owner to root
The directory '/data/oracle/product' is not owned by root. Changing owner to root
The directory '/data/oracle' is not owned by root. Changing owner to root
The directory '/data' is not owned by root. Changing owner to root
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node :
node 1: ser1 ser1-priv ser1
node 2: ser2 ser2-priv ser2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/rdsk/emcpower0e
Format of 1 voting devices complete.
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
Cluster Synchronization Services is active on these nodes.
        ser1
Cluster Synchronization Services is inactive on these nodes.
        ser2
Local node checking complete. Run root.sh on remaining nodes to start CRS daemons.

节点2执行如下:

root@ser2 # . /data/oracle/product/11.1/crs/root.sh
WARNING: directory '/data/oracle/product/11.1' is not owned by root
WARNING: directory '/data/oracle/product' is not owned by root
WARNING: directory '/data/oracle' is not owned by root
WARNING: directory '/data' is not owned by root
Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory
Setting up Network socket directories
Oracle Cluster Registry configuration upgraded successfully
The directory '/data/oracle/product/11.1' is not owned by root. Changing owner to root
The directory '/data/oracle/product' is not owned by root. Changing owner to root
The directory '/data/oracle' is not owned by root. Changing owner to root
The directory '/data' is not owned by root. Changing owner to root
clscfg: EXISTING configuration version 4 detected.
clscfg: version 4 is 11 Release 1.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node :
node 1: ser1 ser1-priv ser1
node 2: ser2 ser2-priv ser2
clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
Cluster Synchronization Services is active on these nodes.
        ser1
        ser2
Cluster Synchronization Services is active on all the nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps

Creating VIP application resource on (2) nodes...
Creating GSD application resource on (2) nodes...
Creating ONS application resource on (2) nodes...
Starting VIP application resource on (2) nodes...
Starting GSD application resource on (2) nodes...
Starting ONS application resource on (2) nodes...


Done.

由于是silent模式,root脚本需要在最后执行,因此assistant的一些工具没有执行,下面可以手工运行这些命令:

$ . /data/oracle/product/11.1/crs/cfgtoollogs/configToolAllCommands
The ONS configuration is created successfully
Stopping ONS resource 'ora.ser1.ons'
Attempting to stop `ora.ser1.ons` on member `ser1`
Stop of `ora.ser1.ons` on member `ser1` succeeded.
The resource ora.ser1.ons stopped successfully for restart
Attempting to start `ora.ser1.ons` on member `ser1`
Start of `ora.ser1.ons` on member `ser1` succeeded.
The resource ora.ser1.ons restarted successfully
Stopping ONS resource 'ora.ser2.ons'
Attempting to stop `ora.ser2.ons` on member `ser2`
Stop of `ora.ser2.ons` on member `ser2` succeeded.
The resource ora.ser2.ons stopped successfully for restart
Attempting to start `ora.ser2.ons` on member `ser2`
Start of `ora.ser2.ons` on member `ser2` succeeded.
The resource ora.ser2.ons restarted successfully

Performing post-checks for cluster services setup

Checking node reachability...
Node reachability check passed from node "ser1".


Checking user equivalence...
User equivalence check passed for user "oracle".

Checking Cluster manager integrity...


Checking CSS daemon...
Daemon status check passed for "CSS daemon".

Cluster manager integrity check passed.

Checking cluster integrity...


Cluster integrity check passed


Checking OCR integrity...

Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations.

Uniqueness check for OCR device passed.

Checking the version of OCR...
OCR of correct Version "2" exists.

Checking data integrity of OCR...
Data integrity check for OCR passed.

OCR integrity check passed.

Checking CRS integrity...

Checking daemon liveness...
Liveness check passed for "CRS daemon".

Checking daemon liveness...
Liveness check passed for "CSS daemon".

Checking daemon liveness...
Liveness check passed for "EVM daemon".

Checking CRS health...
CRS health check passed.

CRS integrity check passed.

Checking node application existence...

Checking existence of VIP node application (required)
Check passed.

Checking existence of ONS node application (optional)
Check passed.

Checking existence of GSD node application (optional)
Check passed.


Post-check for cluster services setup was successful.

至此,CLUSTER软件的SILENT安装完成。

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/4227/viewspace-544601/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2007-12-29

  • 博文量
    1955
  • 访问量
    10467660