ls -l /u01/app/oraInventory/*
rm -rf /u01/app/oraInventory/*
否则报错:
[FATAL] [INS-32035] Unable to create a new central inventory directory : /u01/app/oraInventory.
CAUSE: The central inventory location provided is not empty.
ACTION: Please provide another location for the inventory, or clean up the current location.
2、INS-32040
[FATAL] [INS-32040] The central inventory location provided is not empty on remote nodes [raclhr-12cr1-n1].
ACTION: Please provide another location for the inventory, or clean up the current location.
[grid@raclhr-12cR1-N1 ~]$ more /home/grid/cfgrsp.properties
oracle.assistants.asm|S_ASMPASSWORD=lhr
oracle.assistants.asm|S_ASMMONITORPASSWORD=lhr
oracle.crs|S_BMCPASSWORD=lhr
[grid@raclhr-12cR1-N1 ~]$ /u01/app/12.1.0/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=/home/grid/cfgrsp.properties
[grid@raclhr-12cR1-N1 admin]$ /u01/app/12.1.0/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=/home/grid/cfgrsp.properties
Setting the invPtrLoc to /u01/app/12.1.0/grid/oraInst.loc
perform - mode is starting for action: configure
perform - mode finished for action: configure
You can see the log file: /u01/app/12.1.0/grid/cfgtoollogs/oui/configActions2017-01-17_05-29-38-PM.log
[grid@raclhr-12cR1-N1 admin]$
[grid@raclhr-12cR1-N1 admin]$
Checking Temp space: must be greater than 500 MB. Actual 2287 MB Passed
Checking swap space: must be greater than 150 MB. Actual 1785 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-01-17_09-38-20PM. Please wait ...[oracle@raclhr-12cR1-N1 database]$
[oracle@raclhr-12cR1-N1 database]$
[oracle@raclhr-12cR1-N1 database]$
[oracle@raclhr-12cR1-N1 database]$
[oracle@raclhr-12cR1-N1 database]$ You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2017-01-17_09-38-20PM.log
Prepare in progress.
.................................................. 8% Done.
Saving Cluster Inventory in progress.
..........
Saving Cluster Inventory successful.
The installation of Oracle Database 12c was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2017-01-17_09-38-20PM.log' for more details.
Setup Oracle Base in progress.
Setup Oracle Base successful.
.................................................. 86% Done.
As a root user, execute the following script(s):
1. /u01/app/oracle/product/12.1.0/dbhome_1/root.sh
Execute /u01/app/oracle/product/12.1.0/dbhome_1/root.sh on the following nodes:
[raclhr-12cr1-n1, raclhr-12cr1-n2]
.................................................. 100% Done.
Successfully Setup Software.
As install user, execute the following script to complete the configuration.
1. /u01/app/oracle/product/12.1.0/dbhome_1/cfgtoollogs/configToolAllCommands RESPONSE_FILE=<response_file>
Note:
1. This script must be run on the same host from where installer was run.
2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation).
节点1和节点2依次执行root.sh:
[root@raclhr-12cR1-N1 ~]# /u01/app/oracle/product/12.1.0/dbhome_1/root.sh
Check /u01/app/oracle/product/12.1.0/dbhome_1/install/root_raclhr-12cR1-N1_2017-01-17_22-18-12.log for the output of root script
[root@raclhr-12cR1-N1 ~]#
1.2 建立磁盘组
创建DATA和FRA磁盘组:
CREATE DISKGROUP DATA external redundancy DISK '/dev/asm-diskd' ATTRIBUTE 'compatible.rdbms' = '12.1', 'compatible.asm' = '12.1';
CREATE DISKGROUP FRA external redundancy DISK '/dev/asm-diske' ATTRIBUTE 'compatible.rdbms' = '12.1', 'compatible.asm' = '12.1';
[grid@raclhr-12cR1-N1 ~]$ sqlplus / as sysasm
SQL*Plus: Release 12.1.0.2.0 Production on Tue Jan 17 22:41:42 2017
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> CREATE DISKGROUP DATA external redundancy DISK '/dev/asm-diskd' ATTRIBUTE 'compatible.rdbms' = '12.1', 'compatible.asm' = '12.1';
Diskgroup created.
SQL> CREATE DISKGROUP FRA external redundancy DISK '/dev/asm-diske' ATTRIBUTE 'compatible.rdbms' = '12.1', 'compatible.asm' = '12.1';