gavinsoorma.com · web viewinstall and configure oracle grid infrastructure 12c release 2 part 3...

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

Upload: others

Post on 08-Mar-2020

16 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

Install and configure Oracle Grid Infrastructure 12c Release 2

Part 3

Page 2: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

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 · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 4: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 5: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 6: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 7: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 8: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 9: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 10: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 11: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 12: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 13: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 14: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

[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 · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

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 · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 17: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 18: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 19: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 20: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 21: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 22: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 23: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 24: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 25: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 26: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

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

Page 27: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 28: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 29: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

Ignore the errors related to NTP and Swap size

Page 30: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 31: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 32: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 33: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 34: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 35: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 36: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

[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 · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

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 · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 39: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

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 · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 41: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 42: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 43: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 44: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 45: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

Create the RACDB database via DBCA

Connect as oracle user

Page 46: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

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

[oracle@rac01 bin]$ ./dbca

Page 47: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 48: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 49: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 50: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 51: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 52: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 53: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 54: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 55: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 56: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 57: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 58: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 59: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 60: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 61: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 62: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 63: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 64: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 65: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 66: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 67: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 68: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 69: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 70: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 71: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 72: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database
Page 73: gavinsoorma.com · Web viewInstall and configure Oracle Grid Infrastructure 12c Release 2 Part 3 Create the directory for the ACFS file system for hosting the Oracle 12c Database

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