Oracle Rac Installation on Oracle Linux

Oracle Linux version 7.6 login as root user #hostname Prerequiste server need to connect to internet so that install all the required RPM #yum -y install oracle-database-server-12cR2-preinstall This will by default create oracle user to check weather user is created or not #id oracle Oracle asm binaries RPM #yum -y install oracleasm* also need to install kmod -racleasm #yum -y install kmod-oracleasm* need to update the yum repositries #yum -y update Need to create the Groups #groupadd -g 54327 asmdba #groupadd -g 54328 asmoper #groupadd -g 54329 asmadmin oracle user must be part of asmdba to use asm so modify and add asmdba secondry group to oracle user # now add the grid user # useradd -u 54331 -g oinstall -G dba,asmdba,asmoper,asmadmin,racdba grid give password to oracle and grid user #passwd oracle #passwd grid now configure the oracle asm #oracleasm configure -i it will ask which user will be owning the asm disks in our case it will be the grid user so enter grid and also ask for group of the driver and in our case it is dba it will ask do you wanted that asm loaded automatically when system start enter yes also ask for scan of oracleasm press yes and enter after this we need to load or initiate the asm so #oracleasm init need to add harddisk in our case add atleast three different mount point from the harddisk after adding disk and restarting the system #fdisk -l now create the mountpoint in the disk #fdisk /dev/sdb n and enter the size of the space we wanted to allocate that is suppose 100g after creating donot forget to make change and for this press w and enter #w this will alter the partition table now create asmdisk in the newly created partition as required #oracleasm createdisk CRS1 /dev/sdb1 (/dev/sdb1 is the partition where wanted to create asm so it may be enter as per system) #oracleasm createdisk DATA1 /dev/sdb2 #oracleasm createdisk FRA /dev/sdb3 #oracleasm listdisks This is to check that all the disks are available or not #cd /dev/oracleasm #cd disks #ls -lrt now create the important directories #mkdir -p /u01/app/oracle #mkdir -p /u01/app/oracle/product/12.2.0/db_home #chown -R oracle:oinstall /u01 create directories for grid installation #mkdir -p /u01/app/grid #mkdir -p /u01/app/grid/12.2.0/grid_home chown -R grid:oinstall /u01/app/grid chmod -R 775 /u01 set grid bash profile connect to grid user in separate session as security measure keep copy of the bash profile file before making any changes $cp .bash_profile .bash_profile.orignal $vi .bash_profile write the following and save if [ -f ~/.bashrc ]; then . ~/.bashrc fi ORACLE_SID=+ASM; export ORACLE_SID ORACLE_BASE=/u01/app/grid; export ORACLE_BASE ORACLE_HOME=/u01/app/grid/12.2.0/grid_home; export ORACLE_HOME ORACLE_TERM=xterm; export ORACLE_TERM JAVA_HOME=/usr/bin/java; export JAVA_HOME TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin PATH=${PATH}:/usr/bin:/bin:/usr/local/bin export PATH umask 022 :wq! Now execute the bash profile to chack $. .bash_profile $ env|grep ORA download the oracle grid 12.2 from the oracle site and copy it on the server copy the software into grid home with grid user /u01/app/grid/12.2.0/grid_home The grid installation has been changes now we had to copy the file to the grid home and unzip it in that location $unzip linux64_12201_grid_home.zip $ ls $./gridSetup.sh before excuting start xming on the server to get the graphicall interface go with second option that is restart now create the disk group first we will create the CRS during the prereq it will fale several things just from root user runfixup.sh script the location will be given #/tmp/gridsetupaction2021-/CVU_12.2.0.1.0_grid/runfixup.sh asmcm >> DATA and FRA to configure the asm And FRA $asmca in the graphical interface create the new disk group diskgroup name is DATA and make it external check the box FRA also add after creating the diskgroup exit from the graphical interface +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ now we need to install the oracle software and for this we need to set the bash profile login as oracle user copy the bash profile for security purpose cp .bash_profile .bash_profile_original vi .bash_profile if [ -f ~/.bashrc ]; then . ~/.bashrc fi ORACLE_HOSTNAME=asm.dba.com; export ORACLE_HOSTNAME it is the name of the mashine ORACLE_SID=prod; export ORACLE_SID ORACLE_UNQNAME=PROD; EXPORT ORACLE_UNQNAME ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=/u01/app/oracle/product/12.2.0/db_home; export ORACLE_HOME ORACLE_TERM=xterm; export ORACLE_TERM JAVA_HOME=/usr/bin/java; export JAVA_HOME NLS_DATE_FORMAT="DD-MON-YYY HH24:MI:SS"; export NLS_DATE_FORMAT TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin PATH=${PATH}:/usr/bin:/bin:/usr/local/bin export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib LD_LIBRARY_PATH=${LD_LIBRARY_PATH} :$ORACLE_HOME/oracm/lib LD_LIBRARY_PATH=${LD_LIBRARY_PATH} :/lib:/usr/lob:/usr/local/lib export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/Jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/neywork/jlib export CLASSPATH TEMP=/temp ;export TMP TMPDIR=$tmp ; export TMPDIR umask 022 now execute the bash profile $ . .bash_profile $env|grep ORA unzip the database software $unzip oracle_database_linux12.2.0 after unzipping the file go the database folder which is create and execute the runinstaller ./runInstaller in the graphicall interface press next and carryon with the default groups

Comments

Popular posts from this blog

Oracle Database 19c Installation on Linux