Solaris10下Silent模式安裝Oracle1106RAC環境(五)

yangtingkun發表於2009-01-25

主機環境基本上和前面文章中描述的SOLARIS10安裝Oracle1106rac的環境基本完全一致,最主要的區別在於沒有了VOLUMN CLUSTER MANAGER,於是這裡打算使用OracleASM。由於安裝操作沒有什麼區別,所以這次安裝選擇了SILENT靜默模式來安裝RAC

描述SILENT模式下資料庫軟體的安裝過程。

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

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

Solaris10Silent模式安裝Oracle1106RAC環境(三):http://yangtingkun.itpub.net/post/468/477444

Solaris10Silent模式安裝Oracle1106RAC環境(四):http://yangtingkun.itpub.net/post/468/477446

 

 

上一篇已經進行了安裝前的檢查,而且設定好了response檔案,下面就可以直接進行安裝了:

$ ./runInstaller -silent -noconfig -responseFile /data/database/response/my_oracle.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 180 MB.   Actual 56445 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 57514 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-09-02_02-17-22PM. 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-02_02-17-22PM.log
.................................................................................................... 100% Done.


Loading Product Information
................................................................................................................ 100% Done.


Performing tests to see whether nodes ser2 are available
............................................................... 100% Done.


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

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 ...
Checking for SUNWbtool; found CCS tools bundled with SunOS(SUNWbtool).  Passed
Checking for SUNWcsl; found Core Solaris, (Shared Libs)(SUNWcsl).       Passed
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for Kernel
Checking kernel parameters
Expected result: BIT_SIZE=64
Actual Result: BIT_SIZE=64
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 SwapSpace
Checking available swap space requirements ...
Expected result: 24576MB
Actual Result: 56161MB
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for CheckPathForOtherOracleHomes
Checking PATH environment variable...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for CheckTempDiskSpace
Checking for sufficient diskspace in TEMP location...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for CheckLdLibraryPath
Checking LD_LIBRARY_PATH environment variable...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for OracleBase
Validating ORACLE_BASE location (if set) ...
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 DetectAnyInvalidASMHome
Checking for proper system clean-up....
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for CompatibilityChecks
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 DetectLatestCRS
Checking Oracle Clusterware version ...
Check complete. The overall result of this check is: Passed


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


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


-----------------------------------------------------------------------------
Summary
Global Settings
    Source: /data/database/stage/products.xml
    Oracle Base: /data/oracle
    Oracle Home: /data/oracle/product/11.1/database (OraDbHome1)
    Node Name: ser1
    Node Name: ser2
    Installation Type: Enterprise Edition
Product Languages
   English
   Simplified Chinese
Space Requirements
   /tmp/ Required 228MB (only as temporary space) : Available 54.82GB
   / Required 4.17GB : Available 59.39GB
Remote Nodes
            ser2
                /tmp/: Required 0KB : Available 55.35GB
                /: Required 4.17GB : Available 64.21GB
New Installations (126 products)
   Oracle Database 11g 11.1.0.6.0
   Enterprise Edition Options 11.1.0.6.0
   Oracle Partitioning 11.1.0.6.0
   Oracle Spatial 11.1.0.6.0
   Oracle OLAP 11.1.0.6.0
   Oracle Database 11g 11.1.0.6.0
   Oracle Text 11.1.0.6.0
   Oracle Net Services 11.1.0.6.0
   Oracle Enterprise Manager Console DB 11.1.0.5.0
   Oracle Net Listener 11.1.0.6.0
   HAS Files for DB 11.1.0.6.0
   Oracle Call Interface (OCI) 11.1.0.6.0
   Enterprise Manager Agent 10.2.0.3.1
   Oracle Programmer 11.1.0.6.0
   Oracle Database Gateway for ODBC 11.1.0.6.0
   Oracle Advanced Security 11.1.0.6.0
   Oracle JVM 11.1.0.6.0
   Database Configuration and Upgrade Assistants 11.1.0.6.0
   Oracle XML Development Kit 11.1.0.6.0
   Generic Connectivity Common Files 11.1.0.6.0
   Oracle Multimedia 11.1.0.6.0
   Oracle Multimedia Locator 11.1.0.6.0
   Oracle Internet Directory Client 11.1.0.6.0
   Oracle Database Utilities 11.1.0.6.0
   Secure Socket Layer 11.1.0.6.0
   PL/SQL 11.1.0.6.0
   Oracle Recovery Manager 11.1.0.6.0
   Oracle Net 11.1.0.6.0
   Oracle Notification Service 11.1.0.5.0
   Assistant Common Files 11.1.0.6.0
   Installation Common Files 11.1.0.6.0
   Enterprise Manager plugin Common Files 11.1.0.5.0
   Oracle LDAP administration 11.1.0.6.0
   SQL*Plus 11.1.0.6.0
   HAS Common Files 11.1.0.6.0
   Oracle Help for the  Web 2.0.14.0.0
   Oracle UIX 2.2.20.0.0
   Precompiler Common Files 11.1.0.6.0
   Oracle Clusterware RDBMS Files 11.1.0.6.0
   Cluster Verification Utility Common Files 11.1.0.6.0
   Oracle Wallet Manager 11.1.0.6.0
   Oracle Security Developer Tools 11.1.0.6.0
   XML Parser for Java 11.1.0.6.0
   Enterprise Manager Minimal Integration 11.1.0.6.0
   Oracle Database User Interface 2.2.13.0.0
   SQL*Plus Files for Instant Client 11.1.0.6.0
   Oracle ODBC Driver 11.1.0.6.0
   Required Support Files 11.1.0.6.0
   Database SQL Scripts 11.1.0.6.0
   OLAP SQL Scripts 11.1.0.6.0
   PL/SQL Embedded Gateway 11.1.0.6.0
   Oracle Globalization Support 11.1.0.6.0
   Character Set Migration Utility 11.1.0.6.0
   Oracle Locale Builder 11.1.0.6.0
   Secure Socket Layer 11.1.0.6.0
   Oracle Java Client 11.1.0.6.0
   Oracle JDBC/THIN Interfaces 11.1.0.6.0
   Oracle Multimedia Client Option 11.1.0.6.0
   Oracle Universal Connection Pool 11.1.0.6.0
   Oracle Required Support Files 32 bit 11.1.0.6.0
   Oracle Code Editor 1.2.1.0.0I
   Oracle Ultra Search Server Rdbms 11.1.0.6.0
   Oracle Help For Java 4.2.9.0.0
   Oracle Containers for Java 11.1.0.6.0
   JAccelerator (COMPANION) 11.1.0.6.0
   Database Workspace Manager 11.1.0.6.0
   SQLJ Runtime 11.1.0.6.0
   Oracle Core Required Support Files 11.1.0.6.0
   Platform. Required Support Files 11.1.0.6.0
   Oracle Ice Browser 5.2.3.6.0
   Oracle Application Express 11.1.0.6.0
   Oracle SQL Developer 11.1.0.6.0
   Oracle JDBC Server Support Package 11.1.0.6.0
   regexp 2.1.9.0.0
   Enterprise Manager Common Files 10.2.0.3.1
   Installation Plugin Files 11.1.0.6.0
   Oracle JDBC/OCI Instant Client 11.1.0.6.0
   XML Parser for Oracle JVM 11.1.0.6.0
   Oracle XML Query 11.1.0.6.0
   Oracle Message Gateway Common Files 11.1.0.6.0
   Oracle Starter Database 11.1.0.6.0
   Sample Schema Data 11.1.0.6.0
   Precompiler Required Support Files 11.1.0.6.0
   Parser Generator Required Support Files 11.1.0.6.0
   Oracle Multimedia Locator RDBMS Files 11.1.0.6.0
   Oracle Globalization Support 11.1.0.6.0
   Oracle Multimedia Annotator 11.1.0.6.0
   Oracle Multimedia Java Advanced Imaging 11.1.0.6.0
   Oracle Database 11g Multimedia Files 11.1.0.6.0
   Agent Required Support Files 10.2.0.3.1
   Oracle 11g Warehouse Builder Server 11.1.0.6.0
   Oracle Ultra Search Server 11.1.0.6.0
   Oracle Ultra Search Middle-Tier 11.1.0.6.0
   Oracle Ultra Search Common Files 11.1.0.6.0
   Perl Interpreter 5.8.3.0.4
   RDBMS Required Support Files 11.1.0.6.0
   Oracle Display Fonts 9.0.2.0.0
   RDBMS Required Support Files for Instant Client 11.1.0.6.0
   Enterprise Manager Agent Core Files 10.2.0.3.1
   Enterprise Manager Common Core Files 10.2.0.3.1
   Enterprise Manager Grid Control Core Files 10.2.0.3.1
   Enterprise Manager Database Plugin -- Agent Support 11.1.0.5.0
   Enterprise Manager Database Plugin -- Management Service Support 11.1.0.5.0
   Enterprise Manager Repository Core Files 10.2.0.3.1
   Enterprise Manager Database Plugin -- Repository Support 11.1.0.5.0
   Provisioning Advisor Framework 10.2.0.3.1
   XDK Required Support Files 11.1.0.6.0
   Oracle RAC Required Support Files-HAS 11.1.0.6.0
   SQL*Plus Required Support Files 11.1.0.6.0
   Oracle JFC Extended Windowing Toolkit 4.2.36.0.0
   Oracle Extended Windowing Toolkit 3.4.47.0.0
   Oracle OLAP API 11.1.0.6.0
   Oracle OLAP RDBMS Files 11.1.0.6.0
   Oracle Data Mining RDBMS Files 11.1.0.6.0
   Oracle Real Application Testing 11.1.0.6.0
   Bali Share 1.1.18.0.0
   Buildtools Common Files 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 ODBC Driverfor Instant Client 11.1.0.6.0
   Oracle Configuration Manager 10.2.6.0.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 (Tue Sep 02 14:17:55 CST 2008)
...............................................................   2% Done.
...............................................................   5% Done.
...............................................................   8% Done.
...............................................................  10% Done.
...............................................................  13% Done.
...............................................................  16% Done.
...............................................................  19% Done.
...............................................................  21% Done.
...............................................................  24% Done.
...............................................................  27% Done.
...............................................................  30% Done.
...............................................................  32% Done.
...............................................................  35% Done.
...............................................................  38% Done.
...............................................................  40% Done.
...............................................................  43% Done.
...............................................................  46% Done.
.................................................                48% Done.
Install successful

Linking in progress (Tue Sep 02 14:22:35 CST 2008)
.....                                                            48% Done.
Link successful

Setup in progress (Tue Sep 02 14:24:45 CST 2008)
...............................................................  51% Done.
................                                                 52% Done.
Setup successful

Remote operations in progress (Tue Sep 02 14:25:02 CST 2008)
...............................................................  54% Done.
...............................................................  57% Done.
...............................................................  60% Done.
...............................................................  63% Done.
...............................................................  65% Done.
...............................................................  68% Done.
...............................................................  71% Done.
...............................................................  74% Done.
...............................................................  76% Done.
...............................................................  79% Done.
...............................................................  82% Done.
...............................................................  84% Done.
...............................................................  87% Done.
.........                                                       100% Done.
Remote operations complete

End of install phases.(Tue Sep 02 14:33:17 CST 2008)
WARNING:
The following configuration scripts need to be executed as the "root" user in each cluster node.
#!/bin/sh
#Root script. to run
/data/oracle/product/11.1/database/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
   
The installation of Oracle Database 11g was successful.
Please check '/data/oraInventory/logs/silentInstall2008-09-02_02-17-22PM.log' for more details.

下面在兩個節點分別以root執行/data/oracle/product/11.1/database/root.sh指令碼。

由於採用silent安裝模式,所以指令碼建立的時候自動將OUI_SILENT引數設定為TRUE,而後的檢查中,如果發現這個值為TRUE,那麼這個指令碼執行會自動退出了。這裡需要手工將其修改為FALSE,然後使用root執行:

root@ser2 # ./data/oracle/product/11.1/database/root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /data/oracle/product/11.1/database

Enter the full pathname of the local bin directory: [/usr/local/bin]:
Creating /usr/local/bin directory...
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /var/opt/oracle/oratab file...
Entries will be added to the /var/opt/oracle/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

注意在執行上面的命令的時候,‘.’和‘/’之間是沒有空格的,否則會使指令碼陷入死迴圈中。

至此Oracle的軟體安裝完成。

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-544611/,如需轉載,請註明出處,否則將追究法律責任。

相關文章