Comprehensive Guide to Installing Oracle ASM in Silent Mode
Welcome to our step-by-step guide on installing Oracle ASM in silent mode. This guide is designed to simplify the process for both beginners and experienced users. Follow these instructions to set up Oracle ASM seamlessly and efficiently.
Note: Following steps where performed in Oracle 11g Environment but the same can be followed in the newer releases as well.
Step 1: Prerequisites
Ensure that you have the necessary pre-installation packages. Open your terminal as the root user and run the following command
# yum install oracle-rdbms-server-11gR2-preinstall
Step 2: Download Oracle Stage
Download the Grid and Database stages from Oracle Metalink. This is a critical step, as it ensures you have the correct installation files.
Step 3: Install Oracle ASM Support
As the root user, run the following command:
# yum install oracleasm-support
Step 4: Install JDK
Search for JDK using the following command:
# yum search JDK
Then, install the appropriate version:
# yum install java-1.7.0*
Step 5: Create Directories
Create the necessary directories for Grid and Oracle users:
For Grid User
# mkdir -p /home/grid/u01/app/oracle/oraInventory
For Oracle User
# mkdir -p /u01/app/grid/product/11.2.0
# mkdir -p /u01/app/oracle/oraInventory
# mkdir -p /u01/app/oracle/product/11.2.0/db_1
Ensure the correct permissions for each directory as specified.
Step 6: Configure Oracle ASM Library Driver
Run the following command as the root user:
# /etc/init.d/oracleasm configure
Follow the on-screen prompts to configure the Oracle ASM library driver.
Step 7: Create ASM Disk
Create the ASM disk using the following command:
/etc/init.d/oracleasm createdisk VOL1 /dev/sdc1
Repeat this command for all raw disks, ensuring that the Grid user has read/write rights.
Step 8: Install Grid Infrastructure
Navigate to the Grid stage directory and run the installer:
# cd /u01/Stage/grid/
# ./runInstaller -silent -ignorePrereq -responseFile /home/grid/grid.rsp -showProgress
Step 9: Configure ASM
Configure ASM using the asmca utility:
asmca -silent -configureASM -sysAsmPassword oracle123 -asmsnmpPassword oracle123 -diskString ‘/dev/oracleasm/disks/*’ -diskGroupName DATA -disk ‘/dev/oracleasm/disks/*’ -redundancy EXTERNAL
Step 10: Install Oracle Database
Move to the Database stage directory and run the installer:
cd /u01/Stage/database/stage/
./runInstaller -silent -debug -force \
FROM_LOCATION=/u01/Stage/database/stage/products.xml \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/u01/app/oracle/oraInventory \
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 \
ORACLE_HOME_NAME=”OraDb11g_Home1″ \
ORACLE_BASE=/u01/app/oracle \
oracle.install.db.InstallEdition=EE \
oracle.install.db.isCustomInstall=false \
oracle.install.db.DBA_GROUP=oinstall \
oracle.install.db.OPER_GROUP=oinstall \
DECLINE_SECURITY_UPDATES=true
Step 11: Create Database
Create the Oracle database using dbca:
dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbName ORCL -sid ORCL -SysPassword oracle123 -SystemPassword oracle123 -emConfiguration NONE -storageType ASM -asmSysPassword oracle123 -diskGroupName DATA -characterSet AL32UTF8 -memoryPercentage 40
Conclusion
Congratulations! You’ve successfully installed Oracle ASM in silent mode. If you ever need to deinstall Oracle Grid or Database, follow the provided steps. This guide aims to make the process accessible and straightforward for users of all levels.
