How To Configure Linux for Oracle Database(Redhat 5.9)

How To Configure Linux for Oracle Database(Redhat 5.9)

We will configure linux for oracle database in this article.

We will edit the host file. We will do this in both nodes. (with root user)

Configure /etc/hosts for Oracle

The /etc/hosts file is opened in edit mode with the following command and the following lines are added. We do this in both nodes.

Set Kernel Parameters for Oracle

We set the kernel parameters. We do this in both nodes. (with root user)

We edit the file with the command below. We delete all the content and write the values below.

Configure /etc/security/limits.conf for Security

We write the parameters for the security settings. We do this in both nodes. (with root user)

We edit the /etc/security/limits.conf file with the command below and add the following lines at the end of the file.

We edit the /etc/pam.d/login file with the command below and add the following line at the end of the file. We do this in both nodes. (with root user).

By running the command below, we ensure that the parameters are valid. We do this in both nodes. (with root user).

Now let’s check the RPM required for installations. We do this in both nodes. (with root user).

Install the missing RPMs. We do this in both nodes. (with root user).

We create users and groups. We do this in both nodes. (with root user)

We set the user passwords. We do this in both nodes. (with root user).

We create the folders and grant the necessary privileges to the users. We do this in both nodes. (with root user).

We update the /etc/profile file as follows. We do this in both nodes. (with root user).

Configure bash_profile Oracle

We login with Oracle user and edit the file bash_profile. We do this in both nodes. (with oracle user)

We ensure that the profile settings are valid. We do this in both nodes. (with oracle user)

We login with the grid user and edit the bash_profile file. We do this in both nodes. (with grid user)

We ensure that the profile settings are valid. We do this in both nodes. (with grid user)

We check the DNS definition of Scan IPs.

We make changes to the “/etc/nsswitch.conf” file as follows. We do this in both nodes. (with root user)

We install the RPMs required for ASM library driver software installation. We copy the downloaded files to the “setup” folder with the Oracle user. We do this in both nodes. (with root user)

Configure ASM Disks

We configure ASM disks. We do this only on one node. (with root user)

We list our disks with the # fdisk -l command. We see that the disks are listed and no partition is created on them. Since these disks will be shared with the second node, we must make sure that these disks are listed in the second node as well.

We create partition on disks. We do this for all disks.

Configure oracleasm service

We configure the “oracleasm” service. We do this in both nodes. (with root user)

After running the “service oracleasm configure” command, let’s answer the questions as below.

Create ASM Disks

We create ASM disks. We do this on only one node. (with root user)

We check ASM Disks.

Leave a Reply