Site icon IT Tutorial

Oracle Automatic Storage Management 18c Step by Step Installation -1

Hi,

I will tell Oracle Automatic Storage Management 18c installation in this post. If you don’t have any information about Automatic Storage Management, please read following articles.

 

 

 

https://ittutorial.org/2018/02/13/oracle-automatic-storage-management-1-2/

 

https://ittutorial.org/2018/02/14/oracle-automatic-storage-management-2-2/

 

Before Oracle Automatic Storage Management ( ASM ) installation, we need to prepare Oracle ASM disk like following.

 

ASMLib software is used to format or configure any disk on Linux as an ASM disk. The ASMLib software consists of the following 3 components.

• Open source (GPL) core module package: kmod-oracleasm
• Open source (GPL) utilities package: oracleasm-support
• Closed-source library package: oracleasmlib

We are downloading and installing them with the following yum packages.

Firstly yum install oracleasm like following.

 

[root@MehmetSalih ~]# yum install oracleasm
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package kernel-uek.x86_64 0:4.14.35-1844.2.5.el7uek will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================================
Installing:
kernel-uek x86_64 4.14.35-1844.2.5.el7uek ol7_UEKR5 52 M
Transaction Summary
==========================================================================================================================================================
Install 1 Package
Total download size: 52 M
Installed size: 59 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
kernel-uek-4.14.35-1844.2.5.el7uek.x86_64.rpm | 52 MB 00:00:13
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : kernel-uek-4.14.35-1844.2.5.el7uek.x86_64 1/1
Verifying : kernel-uek-4.14.35-1844.2.5.el7uek.x86_64 1/1
Installed:
kernel-uek.x86_64 0:4.14.35-1844.2.5.el7uek
Complete!
[root@MehmetSalih ~]#

 

And then you should install related yum packages like following.

 

[root@MehmetSalih ~]# yum install oracleasm-support.x86_64
[root@MehmetSalih ~]# yum install kmod-oracleasm

 

 

 

After Oracle ASM lib packages are installed you need to configure like following.

[root@MehmetSalih ~]# oracleasm configure -i
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.

Default user to own the driver interface []: oracle
Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done

Check Oracle ASM status like following.

[root@MehmetSalih ~]# oracleasm status
Checking if ASM is loaded: no
Checking if /dev/oracleasm is mounted: no
[root@MehmetSalih ~]#
[root@MehmetSalih ~]#

 

İnitialize oracleasm like following

[root@MehmetSalih ~]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@MehmetSalih ~]#

 

After seeing Oracleasm software works correctly, the disk is created as follows.

[root@MehmetSalih ~]# oracleasm createdisk DATA /dev/sdb2
Writing disk header: done
Instantiating disk: done
[root@MehmetSalih ~]#

 

And we can list oracle asmdisk like following.

[root@MehmetSalih ~]# oracleasm listdisks
DATA
[root@MehmetSalih ~]#

 

 

The Oracle ASM 18c installation file is downloaded from https://support.oracle.com or https://edelivery.oracle.com and transfered to the server.

The corresponding file is unzip and connect server via vncserver and run the gridSetup.sh file to start the installation like following.

 

Choose second option to install Standalone Oracle Automatic Storage management installation.

 

 

 

 

Specify Oracle ASM disk like following. Our Oracle ASM disks are under the /dev/oracleasm/disks/ directory, so type this directory like following.

 

 

 

 

Choose Redundancy as external like following.

 

Specify Oracle sys and system passwords like following.

 

 

 

 

 

I don’t have Enterprise manager Cloud control so I don’t register it.

Specify operating systems group like following.

 

 

 

 

 

 

Type Oracle base

 

 

 

 

Type Oracle inventory directory

 

Click next button

 

 

 

 

Verification result gives us some warning, we can ignore them.

 

Installation summary like following.

 

 

 

Execute root.sh in the server with root user like following.

 

[root@MehmetSalih ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@MehmetSalih ~]#
[root@MehmetSalih ~]#










[root@MehmetSalih ~]# /u01/install/root.sh
Performing root user operation.

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/install

Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/install/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/oracle/crsdata/mehmetsalih/crsconfig/roothas_2019-02-18_04-07-24PM.log
2019/02/18 16:07:28 CLSRSC-363: User ignored prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node mehmetsalih successfully pinned.
2019/02/18 16:07:46 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'mehmetsalih'
CRS-2673: Attempting to stop 'ora.evmd' on 'mehmetsalih'
CRS-2677: Stop of 'ora.evmd' on 'mehmetsalih' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'mehmetsalih' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.

mehmetsalih 2019/02/18 16:09:12 /u01/install/cdata/mehmetsalih/backup_20190218_160912.olr 70732493
2019/02/18 16:09:13 CLSRSC-327: Successfully configured Oracle Restart for a standalone server
[root@MehmetSalih ~]#

 

 

 

Oracle ASM installation is completed successful.

 

 

 

 

 

Do you want to learn Oracle database 19c Installation, then read the following articles.

Oracle Database 19c on Linux 7.6 Step by Step Installation -2

 

Exit mobile version