77
Install and configure Oracle Grid Infrastructure 12c Release 2 Part 3

gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

Install and configure Oracle Grid Infrastructure 12c Release 2

Part 3

Page 2: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

Create the directory for the ACFS file system for hosting the Oracle 12c Database software

[root@rac01 ~]# cd /

[root@rac01 /]# mkdir acfs_oh

[root@rac01 /]# ssh root@rac02root@rac02's password: Last login: Fri Jul 14 11:19:39 2017 from rac01.localdomain

[root@rac02 ~]# cd /

[root@rac02 /]# mkdir acfs_oh

[root@rac02 /]# exitlogoutConnection to rac02 closed.[root@rac01 /]#

Create the ASM Disk Group, ASM Volume and ACFS file system via ASMCA

[root@rac01 /]# su - gridLast login: Sat Mar 10 21:41:37 WST 2018

[grid@rac01 ~]$ export DISPLAY=:0.0

[grid@rac01 ~]$ . oraenvORACLE_SID = [grid] ? +ASM1The Oracle base has been set to /u01/app/grid[grid@rac01 ~]$[grid@rac01 ~]$ asmca

Page 3: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 4: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 5: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 6: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 7: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 8: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 9: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 10: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 11: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 12: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 13: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 14: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

[root@rac01 ~]# /u01/app/grid/cfgtoollogs/asmca/scripts/acfs_script.shACFS file system /acfs_oh is mounted on nodes rac01,rac02

Page 15: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

Install the Oracle 12c Database Software

[root@rac01 ~]# su – oracle

[oracle@rac01 database]$ export DISPLAY=:0.0

[oracle@rac01 ~]$ cd /media/sf_software/linuxx64_12201_database/

[oracle@rac01 linuxx64_12201_database]$ lsDatabase

[oracle@rac01 linuxx64_12201_database]$ cd database/

[oracle@rac01 database]$ ./runInstaller

Page 16: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 17: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 18: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 19: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 20: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 21: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 22: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 23: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 24: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 25: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 26: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

Provide the location of the ACFS file system directories for the ORACLE_BASE and ORACLE_HOME

Page 27: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 28: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 29: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

Ignore the errors related to NTP and Swap size

Page 30: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 31: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 32: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 33: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 34: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 35: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 36: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

[root@rac01 bin]# cd /acfs_oh/oracle/product/12.2.0/dbhome_1/

[root@rac01 dbhome_1]# ./root.shPerforming root user operation.

The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /acfs_oh/oracle/product/12.2.0/dbhome_1

Enter the full pathname of the local bin directory: [/usr/local/bin]: The contents of "dbhome" have not changed. No need to overwrite.The contents of "oraenv" have not changed. No need to overwrite.The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root script.Now product-specific root actions will be performed.

[root@rac01 dbhome_1]# ssh root@rac02root@rac02's password: Last login: Fri Jul 14 11:56:38 2017

[root@rac02 ~]# cd /acfs_oh/oracle/product/12.2.0/dbhome_1

[root@rac02 dbhome_1]# ./root.shPerforming root user operation.

The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /acfs_oh/oracle/product/12.2.0/dbhome_1

Enter the full pathname of the local bin directory: [/usr/local/bin]: The contents of "dbhome" have not changed. No need to overwrite.The contents of "oraenv" have not changed. No need to overwrite.The contents of "coraenv" have not changed. No need to overwrite.

Page 37: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root script.Now product-specific root actions will be performed.[root@rac02 dbhome_1]#

Page 38: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 39: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

Create the +DATA and +FRA ASM Disk Groups

[grid@rac01 ~]$ . oraenvORACLE_SID = [+ASM1] +ASM1The Oracle base remains unchanged with value /u01/app/oracle

[grid@rac01 ~]$ asmca

Page 40: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 41: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 42: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 43: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 44: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 45: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

Create the RACDB database via DBCA

Connect as oracle user

Page 46: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

[oracle@rac01 ~]$ cd /acfs_oh/product/12.2.0/dbhome_1/bin

[oracle@rac01 bin]$ ./dbca

Page 47: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 48: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 49: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 50: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 51: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 52: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 53: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 54: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 55: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 56: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 57: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 58: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 59: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 60: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 61: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 62: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 63: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 64: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 65: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 66: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 67: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 68: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 69: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 70: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 71: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 72: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01
Page 73: gavinsoorma.com.au · Web viewCreate the directory for the ACFS file system for hosting the Oracle 12c Database software [root@rac01 ~]# cd / [root@rac01 /]# mkdir acfs_oh [root@rac01

Check the status of the database via SRVCTL

[oracle@rac01 ~]$ srvctl status database -d racdbInstance racdb1 is running on node rac01Instance racdb2 is running on node rac02

[oracle@rac01 ~]$ srvctl config database -d racdb Database unique name: racdbDatabase name: racdbOracle home: /acfs_oh/oracle/product/12.2.0/dbhome_1Oracle user: oracleSpfile: +DATA/RACDB/PARAMETERFILE/spfile.268.949322921Password file: +DATA/RACDB/PASSWORD/pwdracdb.256.949322345Domain: Start options: openStop options: immediateDatabase role: PRIMARYManagement policy: AUTOMATICServer pools: Disk Groups: FRA,DATAMount point paths: /acfs_ohServices: Type: RACStart concurrency: Stop concurrency: OSDBA group: dbaOSOPER group: dbaDatabase instances: racdb1,racdb2Configured nodes: rac01,rac02CSS critical: noCPU count: 0Memory target: 0Maximum memory: 0Default network number for database services: Database is administrator managed