Installing Oracle 19c DB With Asm
Installing Oracle 19c DB With Asm
Installing Oracle 19c DB With Asm
LAPTOP SEPCIFICATION:
Device name DESKTOP-UDFCCC7
Processor Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz 2.19 GHz
Installed RAM 8.00 GB
System type 64-bit operating system, x64-based processor
Edition Windows 10 Home Single Language
Version 22H2
Installed on 12-01-2024
OS build 19045.5011
Experience Windows Feature Experience Pack 1000.19060.1000.0
(NOTE: If you were creating Storage disks using LVM without automatic partitioning, Check
SWAP was included, if not after Linux installation add SWAP memory to avoid difficulties in
GRID, ASM and 19 c DB installations)
dba,oper,asmdba,asmoper,asmadmin,kmdba,dgdba,backupdba,racdba oracle
4. Create directories for grid home, oracle home and oracle inventory
[Note : Here I have created two separate Volume Device each of around 40 G and it has segregated
has 6 primary disks partition for Creating oracle asm Diskgroups under /dev/sdb* & /dev/sdc*
8. Switch to grid user and edit the .bash_profile and .bashrc
Su –grid
vi .bash_profile
vi .bashrc
To make those Permissions and changes permanent use the below steps
sudo vi /etc/udev/rules.d/99-oracleasm.rules
KERNEL=="sdc[1-2]", OWNER="grid", GROUP="oinstall", MODE="0660"
KERNEL=="sdb[1-4]", OWNER="grid", GROUP="oinstall", MODE="0660"
INVENTORY_LOCATION=/u01/app/oraInventory
oracle.install.option=HA_CONFIG
ORACLE_BASE=/u01/app/grid
oracle.install.asm.OSDBA=oinstall
oracle.install.asm.OSOPER=oinstall
oracle.install.asm.OSASM=oinstall
oracle.install.crs.config.scanType=LOCAL_SCAN
oracle.install.crs.config.ClusterConfiguration=STANDALONE
oracle.install.crs.config.configureAsExtendedCluster=false
oracle.install.crs.config.gpnp.configureGNS=false
oracle.install.crs.config.autoConfigureClusterNodeVIP=false
oracle.install.crs.config.gpnp.gnsOption=CREATE_NEW_GNS
oracle.install.crs.configureGIMR=false
oracle.install.asm.configureGIMRDataDG=false
oracle.install.crs.config.useIPMI=false
oracle.install.asm.diskGroup.name=ORADATA,ORAFLASH,RDOG
oracle.install.asm.diskGroup.redundancy=EXTERNAL
oracle.install.asm.diskGroup.AUSize=4
oracle.install.asm.diskGroup.disksWithFailureGroupNames=/dev/sdb1,,/dev/sdb2,,/dev/sdb3,,/dev/sd
b4,,/dev/sdc1,,/dev/sdc2
oracle.install.asm.diskGroup.disks=/dev/sdb1,/dev/sdb2,/dev/sdb3,/dev/sdb4
oracle.install.asm.diskGroup.diskDiscoveryString=/dev/sdb*,,/dev/sdc*
oracle.install.asm.gimrDG.AUSize=1
oracle.install.asm.configureAFD=false
oracle.install.crs.configureRHPS=false
oracle.install.crs.config.ignoreDownNodes=false
oracle.install.config.managementOption=NONE
oracle.install.config.omsPort=0
oracle.install.crs.rootconfig.executeRootScript=true
oracle.install.crs.rootconfig.configMethod=ROOT
13. Once the Installation are completed , then Bring up Listener services ,Cluster ware
services and ASM servicers
Lsnrctl start
Lsnrctl status
Sqlplus / as sysasm
Startup
Shutdown immediate
(OR)
Srvctl start asm
Srvctl stop asm -f
14. Using ASMCA create multiple disk groups has ORADATA, ORAFLASH and REDOG
Note: Redundancy External
15. Now shutdown the ASM instance and create a pfile and startup using that :
[grid@racdb1 pfile]$ cat /u01/app/grid/admin/+ASM/pfile/init_+ASM.ora
#ASM specific parameters
instance_type = ASM
asm_diskstring = '/dev/sdc*', '/dev/sdb*' # Adjust to match your disk paths
asm_diskgroups = 'ORADATA', 'ORAFLASH', 'REDOG' # Replace with your actual disk group names
memory_target = 1G
processes = 150
diagnostic_dest = '<ORACLE_BASE>'
Then Create a spfile from Pfile:
create spfile='/u01/app/grid/19c/grid_home/dbs/spfileASM.ora' from
pfile='/u01/app/grid/admin/+ASM/pfile/init_+ASM.ora'
16. Install Oracle 19c Database
Switch to Oracle user
su - oracle
vi .bash_profile
Vi .bashrc
NOTE: Once the environment are set , close the terminal and again check echo $ORACLE_SID to see
the changes
17.Copy the Db_home 19c file to oracle_home and unzip the file
db_block_size=8192
open_cursors=300
db_name="rac1"
db_create_file_dest="+ORADATA"
db_recovery_file_dest="+ORADATA"
db_recovery_file_dest_size=8256m
compatible=19.0.0
diagnostic_dest=/u01/app/oracle
nls_language="AMERICAN"
nls_territory="AMERICA"
local_listener=LISTENER_RAC1
processes=300
sga_target=1455m
audit_file_dest="/u01/app/oracle/admin/rac1/adump"
audit_trail=db
remote_login_passwordfile=EXCLUSIVE
dispatchers="(PROTOCOL=TCP) (SERVICE=rac1XDB)"
pga_aggregate_target=485m
undo_tablespace=UNDOTBS1
control_files=("+ORADATA/RAC1/CONTROLFILE/current.261.1182352465",
"+ORADATA/RAC1/CONTROLFILE/current.260.1182352467")
20. Create spfile from Pfile
1. System Preparation: Update the Linux system and install necessary prerequisite
packages.
2. User and Group Setup: Create required OS groups (asmdba, asmoper, asmadmin)
and users (grid, oracle) with appropriate permissions.
3. Directory Structure: Create directories for Grid home, Oracle home, and Oracle
inventory.
4. Disk Configuration: Initialize ASM, create and configure ASM disks, and set
ownership and permissions for disk partitions.
5. Environment Configuration: Edit .bash_profile and .bashrc for the grid user
and set necessary kernel parameters for Oracle.
6. Grid Installation: Download Oracle 19c Grid software, prepare a response file, and
run the Grid installation.
7. Post-Installation Configuration: Start Oracle Listener and Cluster services, and use
ASMCA to create disk groups.
8. ASM Configuration: Create a parameter file for the ASM instance, and create a
spfile from the pfile.
9. Database Installation: Switch to the Oracle user, set environment variables, copy
and unzip the Oracle DB files, and run the Oracle Universal Installer.
10. Database Configuration: Create a pfile with database parameters, then create a spfile
from that pfile, and start the database.
This process encompasses both the setup of the Oracle Grid Infrastructure with ASM and the
installation of the Oracle 19c Database, ensuring proper configuration for performance and
management. If you need more details on any specific step, let me know!