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

Post on 08-Mar-2020

20 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Install and configure Oracle Grid Infrastructure 12c Release 2

Part 3

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

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

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

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

Ignore the errors related to NTP and Swap size

[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.

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]#

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

Create the RACDB database via DBCA

Connect as oracle user

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

[oracle@rac01 bin]$ ./dbca

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

top related