2009年05月18日
11g silent install
db : 11gR1
環境 : redhat as 4.6
hosts 檔內容
10.1.2.41 c41.binhu.com.tw c41 #public ip
10.1.2.21 v21.binhu.com.tw v21 #vip ip
192.168.2.21 p21.binhu.com.tw p21 #private ip
127.0.0.1 localhost.localdomain localhost
環境 : redhat as 4.6
hosts 檔內容
10.1.2.41 c41.binhu.com.tw c41 #public ip
10.1.2.21 v21.binhu.com.tw v21 #vip ip
192.168.2.21 p21.binhu.com.tw p21 #private ip
127.0.0.1 localhost.localdomain localhost
1、install clusterware(相關的參數可看 crs.rsp)
| export CT=/tmp/tools/oracle/11g/clusterware/clusterware $CT/runInstaller -silent \ -responseFile $CT/response/crs.rsp \ FROM_LOCATION=$CT/stage/products.xml \ ORACLE_HOME="/u01/app/crs" \ ORACLE_HOME_NAME="OraCrsHome" \ s_clustername="t_rac" \ sl_tableList={"c41:p21:v21:N:Y"} \ ret_PrivIntrList={"eth0:10.0.0.0:1","eth1:192.168.2.0:2"} \ n_storageTypeOCR=2 \ s_ocrpartitionlocation="/dev/hdb1" \ n_storageTypeVDSK=2 \ s_votingdisklocation="/dev/hdb2" \ |
---- log start -----
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 80 MB. Actual 8151 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2000 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-05-04_10-43-51PM. 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:
/u01/app/oraInventory/logs/installActions2009-05-04_10-43-51PM.log
.................................................................................................... 100% Done.
Loading Product Information
............................................................... 34% Done.
............................................................... 68% Done.
........................................................... 100% Done.
Starting execution of Prerequisites...
Total No of checks: 8
Performing check for CertifiedVersions
Checking operating system requirements ...
Expected result: One of enterprise-4,enterprise-5,redhat-4,redhat-5,SuSE-10,asianux-2,asianux-3
Actual Result: enterprise-4
Check complete. The overall result of this check is: Passed
Check complete: Passed
========================================================
Performing check for Packages
Checking operating system package requirements ...
Checking for make-3.80; found make-1:3.80-7.EL4-i386. Passed
Checking for binutils-2.15.92.0.2; found binutils-2.15.92.0.2-25-i386. Passed
Checking for gcc-3.4.5; found gcc-3.4.6-10.0.1-i386. Passed
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: 1008MB
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 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: /tmp/tools/oracle/11g/clusterware/clusterware/stage/products.xml
Oracle Home: /u01/app/crs (OraCrsHome)
Node Name: c41
Installation Type: Complete
Product Languages
English
Space Requirements
/ Required 649MB (includes 47MB temporary) : Available 7.82GB
New Installations (36 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
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 Notification Service 11.1.0.5.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 May 04 22:44:27 CST 2009)
............................................................... 40% Done.
............................................... 71% Done.
Install successful
Linking in progress (Mon May 04 22:45:12 CST 2009)
Link successful
Setup in progress (Mon May 04 22:45:33 CST 2009)
.......... 100% Done.
Setup successful
End of install phases.(Mon May 04 22:45:37 CST 2009)
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 '/u01/app/oraInventory/orainstRoot.sh' with root privileges on nodes 'c41'.
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
/u01/app/oraInventory/orainstRoot.sh #On nodes c41
/u01/app/crs/root.sh #On nodes c41
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 "/u01/app/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 "/u01/app/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 '/u01/app/oraInventory/logs/silentInstall2009-05-04_10-43-51PM.log' for more details.
------- log end -------------
2、依log中提示。由 root 登入後,依提示分別執行
| [root@c41 app]# /u01/app/oraInventory/orainstRoot.sh [root@c41 app]# /u01/app/crs/root.sh WARNING: directory '/u01/app' is not owned by root Checking to see if Oracle CRS stack is already configured /etc/oracle does not exist. Creating it now. Setting the permissions on OCR backup directory Setting up Network socket directories Oracle Cluster Registry configuration upgraded successfully The directory '/u01/app' 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 <nodenumber>: <nodename> <private interconnect name> <hostname> node 1: c41 p21 c41 Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. Now formatting voting device: /dev/hdb2 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. c41 Cluster Synchronization Services is active on all the nodes. Waiting for the Oracle CRSD and EVMD to start Waiting for the Oracle CRSD and EVMD to start Oracle CRS stack installed and running under init(1M) Running vipca(silent) for configuring nodeapps Invalid netmask "" entered in an invalid argument. |
3、因為silent安裝,所以還要自行設定 VIP ,不然crs是起不來的
| [root@c41 bin]# ./oifcfg getif (沒設好的話,是沒有資料的) [root@c41 bin]# ./crs_stat -t (沒設好的話,立即報錯) CRS-0202: No resources are registered. [root@c41 bin]# [root@c41 bin]# [root@c41 bin]# [root@c41 bin]# pwd (確定你的目錄是crs的bin) /u01/app/crs/bin [root@c41 bin]# ./vipca -silent -nodelist c41 -nodevips c41/v21/255.0.0.0/eth0 (我的vip是設v21) Creating VIP application resource on (1) nodes.. Creating GSD application resource on (1) nodes.. Creating ONS application resource on (1) nodes.. Starting VIP application resource on (1) nodes.. Starting GSD application resource on (1) nodes.. Starting ONS application resource on (1) nodes.. |
4、檢查看看
| [root@c41 bin]# ./crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora.c41.gsd application ONLINE ONLINE c41 ora.c41.ons application ONLINE ONLINE c41 ora.c41.vip application ONLINE ONLINE c41 |
5、再往下進行時,執行一下check
| [oracle@c41 ~]$ /u01/app/crs/cfgtoollogs/configToolFailedCommands The ONS configuration is created successfully Stopping ONS resource 'ora.c41.ons' Attempting to stop `ora.c41.ons` on member `c41` Stop of `ora.c41.ons` on member `c41` succeeded. The resource ora.c41.ons stopped successfully for restart Attempting to start `ora.c41.ons` on member `c41` Start of `ora.c41.ons` on member `c41` succeeded. The resource ora.c41.ons restarted successfully Performing post-checks for cluster services setup Checking node reachability... Node reachability check passed from node "c41". 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. |
6、只安裝 db 軟体,不建立 db (參數的說明,直接看 ee.rsp)
| CT=/tmp/tools/oracle/11g/database/linux/linux_11g_x32 $CT/runInstaller -silent \ -responseFile $CT/install/response/ee.rsp \ FROM_LOCATION=$CT/stage/products.xml \ ORACLE_BASE=/u01/app/oracle \ ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1 \ ORACLE_HOME_NAME=ORADB111_Home1 \ CLUSTER_NODES={"c41"} \ n_configurationOption=3 \ s_nameForDBAGrp="dba" \ s_nameForASMGrp="dba" |
------ log start -------------
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 80 MB. Actual 7590 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2000 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-05-04_11-10-32PM. 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:
/u01/app/oraInventory/logs/installActions2009-05-04_11-10-32PM.log
.................................................................................................... 100% Done.
Loading Product Information
.............................................................................................................. 100% Done.
Performing tests to see whether nodes are available
............................................................... 100% Done.
Starting execution of Prerequisites...
Total No of checks: 15
Performing check for CertifiedVersions
Checking operating system requirements ...
Expected result: One of enterprise-4,enterprise-5,redhat-4,redhat-5,SuSE-10,asianux-2,asianux-3
Actual Result: enterprise-4
Check complete. The overall result of this check is: Passed
Check complete: Passed
========================================================
Performing check for Packages
Checking operating system package requirements ...
Checking for make-3.80; found make-1:3.80-7.EL4-i386. Passed
Checking for binutils-2.15.92.0.2; found binutils-2.15.92.0.2-25-i386. Passed
Checking for gcc-3.4.5; found gcc-3.4.6-10.0.1-i386. Passed
Checking for libaio-0.3.105; found libaio-0.3.105-2-i386. Passed
Checking for libaio-devel-0.3.105; found libaio-devel-0.3.105-2-i386. Passed
Checking for libstdc++-3.4.5; found libstdc++-3.4.6-10.0.1-i386. Passed
Checking for elfutils-libelf-devel-0.97; found elfutils-libelf-devel-0.97.1-5-i386. Passed
Checking for sysstat-5.0.5; found sysstat-5.0.5-19.el4-i386. Passed
Checking for libgcc-3.4.5; found libgcc-3.4.6-10.0.1-i386. Passed
Checking for libstdc++-devel-3.4.5; found libstdc++-devel-3.4.6-10.0.1-i386. Passed
Checking for unixODBC-2.2.11; found unixODBC-2.2.11-1.0.1.RHEL4.1-i386. Passed
Checking for unixODBC-devel-2.2.11; found unixODBC-devel-2.2.11-1.0.1.RHEL4.1-i386. Passed
Check complete. The overall result of this check is: Passed
Check complete: Passed
========================================================
Performing check for Kernel
Checking kernel parameters
Checking for semmsl=250; found semmsl=250. Passed
Checking for semmns=32000; found semmns=32000. Passed
Checking for semopm=100; found semopm=100. Passed
Checking for semmni=128; found semmni=142. Passed
Checking for shmmax=536870912; found shmmax=536870912. Passed
Checking for shmmni=4096; found shmmni=4096. Passed
Checking for shmall=2097152; found shmall=3279547. Passed
Checking for file-max=65536; found file-max=6553600. Passed
Checking for VERSION=2.6.9; found VERSION=2.6.9-78.0.0.0.1.ELhugemem. Passed
Checking for ip_local_port_range=1024 - 65000; found ip_local_port_range=1024 - 65000. Passed
Checking for rmem_default=4194304; rmem_default=262144. Failed <<<<
Checking for rmem_max=4194304; found rmem_max=4194304. Passed
Checking for wmem_default=262144; found wmem_default=262144. Passed
Checking for wmem_max=262144; found wmem_max=262144. Passed
Check complete. The overall result of this check is: Failed <<<<
Check complete: Failed <<<<
Problem: The kernel parameters do not meet the minimum requirements (see above).
Recommendation: Perform operating system specific instructions to update the kernel parameters.
========================================================
Performing check for GLIBC
Checking Recommended glibc version
Expected result: ATLEAST=2.3.4-2.19
Actual Result: 2.3.4-2.41
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: 1008MB
Check complete. The overall result of this check is: Passed
Check complete: Passed
========================================================
Performing check for SwapSpace
Checking available swap space requirements ...
Expected result: 1512MB
Actual Result: 2000MB
Check complete. The overall result of this check is: Passed
Check complete: Passed
========================================================
Performing check for DetectIfDHCPAssignedIP
Checking Network Configuration requirements ...
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_DB
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: /tmp/tools/oracle/11g/database/linux/linux_11g_x32/stage/products.xml
Oracle Base: /u01/app/oracle
Oracle Home: /u01/app/oracle/product/11.1.0/db_1 (ORADB111_Home1)
Node Name: c41
Installation Type: Enterprise Edition
Product Languages
English
Space Requirements
/ Required 3.43GB (includes 224MB temporary) : Available 7.27GB
New Installations (125 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
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 Notification Service 11.1.0.5.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 (Mon May 04 23:11:27 CST 2009)
............................................................... 7% Done.
............................................................... 14% Done.
............................................................... 21% Done.
............................................................... 28% Done.
............................................................... 35% Done.
............................................................... 43% Done.
............................................................... 50% Done.
............................................................... 57% Done.
............................................................... 64% Done.
............................................................... 71% Done.
............................................................... 78% Done.
..................................... 83% Done.
Install successful
Linking in progress (Mon May 04 23:20:20 CST 2009)
.. 83% Done.
Link successful
Setup in progress (Mon May 04 23:24:14 CST 2009)
.................................. 100% Done.
Setup successful
End of install phases.(Mon May 04 23:24:33 CST 2009)
WARNING:
The following configuration scripts need to be executed as the "root" user in each cluster node.
#!/bin/sh
#Root script to run
/u01/app/oracle/product/11.1.0/db_1/root.sh #On nodes c41
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 '/u01/app/oraInventory/logs/silentInstall2009-05-04_11-10-32PM.log' for more details.
------ log end ---------
7、依上列的log指示,由root登入執行要求的script
| [root@c41 linux_11g_x32]# /u01/app/oracle/product/11.1.0/db_1/root.sh |
8、設定 litener.ora(使用 oracle 身份)
| export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1 export PATH=$ORACLE_HOME/bin:$PATH $ORACLE_HOME/bin/netca /silent \ /responsefile $ORACLE_HOME/network/install/netca_typ.rsp \ /nodeinfo c41 |
--- log start ----
Parsing command line arguments:
Parameter "silent" = true
Parameter "responsefile" = /u01/app/oracle/product/11.1.0/db_1/network/install/netca_typ.rsp
Parameter "nodeinfo" = c41
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Listener started at port:1521
c41...
Listener configuration complete.
Oracle Net Services configuration successful. The exit code is 0
--- log end ----
9、檢查是否ok
| [root@c41 bin]# ./crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....41.lsnr application ONLINE ONLINE c41 <== (如上列成功的話,會出現這行) ora.c41.gsd application ONLINE ONLINE c41 ora.c41.ons application ONLINE ONLINE c41 ora.c41.vip application ONLINE ONLINE c41 |
10、建立 ASM (使用 oracle 身份)
| export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1 export PATH=$ORACLE_HOME/bin:$PATH $ORACLE_HOME/bin/dbca -silent \ -nodelist c41 \ -configureASM \ -asmSysPassword sysasm \ -diskString "/dev/hdb*" \ -diskList "/dev/hdb3" \ -diskGroupName TRAC1 \ -redundancy EXTERNAL \ -emConfiguration NONE |
11、檢查是否ok
| [root@c41 bin]# ./crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....SM1.asm application ONLINE ONLINE c41 <==(如上列成的話,就會出現這行) ora....41.lsnr application ONLINE ONLINE c41 ora.c41.gsd application ONLINE ONLINE c41 ora.c41.ons application ONLINE ONLINE c41 ora.c41.vip application ONLINE ONLINE c41 |
12、建立 db (使用 oracle 身份)
| export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1 export PATH=$ORACLE_HOME/bin:$PATH $ORACLE_HOME/bin/dbca -silent \ -nodelist c41 \ -createDatabase \ -templateName General_Purpose.dbc \ -gdbName trac \ -sid trac \ -SysPassword oracle41 \ -SystemPassword oracle41 \ -emConfiguration NONE \ -storageType ASM \ -asmSysPassword sysasm \ -diskGroupName TRAC1 \ -characterSet AL32UTF8 \ -totalMemory 500 |
----- log start -----
Copying database files
1% complete
3% complete
9% complete
15% complete
21% complete
27% complete
30% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
44% complete
45% complete
48% complete
50% complete
Creating cluster database views
52% complete
70% complete
Completing Database Creation
73% complete
76% complete
79% complete
82% complete
91% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/trac/trac.log" for further details.
------ log end -----------
13、再次檢查
| [root@c41 bin]# ./crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....SM1.asm application ONLINE ONLINE c41 ora....41.lsnr application ONLINE ONLINE c41 ora.c41.gsd application ONLINE ONLINE c41 ora.c41.ons application ONLINE ONLINE c41 ora.c41.vip application ONLINE ONLINE c41 ora.trac.db application ONLINE ONLINE c41 <=== (如上列成功,就會出現) ora....c1.inst application ONLINE ONLINE c41 |
結束.........
引用URL
http://cgi.blog.roodo.com/trackback/8972229