You are on page 1of 50

Create the necessary directories and the grid user.

Set the necessary permissions

Edit the file /home/grid/.bash_profile and add the following lines to set up the grid user environment

Edit the file /home/oracle/.bash_profile and add the following lines to set up the oracle user
environment

Shutdown your system and add the necessary disks to be used as ASM disks. In this case Ill created 3
disks

Startup you system and configure you ASM driver as the root user

Check if your disks are available

1.
2.
3.
4.
5.
6.

Its time to setup the disks. As you saw in the previous screenshot, i have three additional disks
named (/dev/sdb, /dev/sdc, /dev/sdd ) we need to partition each disks in order to make them
available for ASM. We will use fdisk to partition them, here is the order youll have to follow.
fdisk /dev/sdb
n,p,1,1,w
fdisk /dev/sdc
n,p,1,1,w
fdisk /dev/sdd
n,p,1,1,w
Here is how it looks like:

Lets check again our disks. You will notice that 3 more devices appear, those are the partition we
created.

Next lets disable SELinux as follows vi /etc/selinux/config

Create your ASM disks as follows


oracleam createdisk DISK1 /dev/sdb1
oracleam createdisk DISK2 /dev/sdc1
oracleam createdisk DISK3 /dev/sdd1

At this point we will have our server ready for the grid infrastructure installation.
PART II Installing Oracle Grid Infrastructure 11.2.0.3 and ASM
In this installation we will use role separation of duties; we will proceed as the grid user whos going to
be the GRID_HOME owner
If you have downloaded all the files required, unzip the file p10404530_112030_Linux-x8664_3of7.zip as follows

After unzipping the file, you will have a folder called grid. Start the installer with ./runInstaler

Skip the software updates

Select the option for a standalone server as shown in the picture

Select you languages

Create one diskgroup called DATA with disks ( DISK1, DISK2 ) with external redundancy a shown.

Specify a password for sys and asmsnmp accounts

Leave the default groups and continue

Choose the paths to de ORACLE_BASE and ORACLE_HOME

Note: 11.0.3 in the path, should be 11.2.3 if you follow OFA or you can choose whatever you want in
your ORACLE_HOME path

Specify for inventory

Next the installer will perform a check on your server as shown

If the installer finds that something is not right with your server, it will tell you to run some fixup
scripts. Run them as root until your good

Once ready continue with the installation

During the installation you will prompted to run two scripts a root user, run them to continue

After the installation ends click close to finnish

To verify the installation just execute the command crsctl status resource t as grid user

And with sqlplus

At this point we have our Oracle Restart and ASM in place.

PART III Installing the Database Software and creating the Database
Now we are going to install the database software as the oracle user. Unzip all the files required as
follows

unzip p10404530_112030_Linux-x86-64_1of7.zip
unzip p10404530_112030_Linux-x86-64_2of7.zip
Youll have a folder called database lets get inside and ejecute the oracle installer with
./runInstaller

If you have toy Oracle Support credencials put them in place and continue.

Skip Sofware updates if you want and continue

Select install software only and continue

Select Single instance Database installation and continue

Select your language and continue

Select enterprise Edition or the one you prefer and continue

Choose your ORACLE_BASE and ORACLE_HOME

Review your installation and click install to proceed

As the installation goes on, you will need to execute a script as the root user

At the end of the installation you will see something like this.

Now lets create our database with dbca. As the oracle user execute the dbca

Select create a database

Select your template, this time were going to select general purpose

Write your Global database name and sid

Choose to configure the enterprise manager

Write in the passwords for the administrative users

Choose the storage for your database. Select ASM and write the name of your diskgroup.

Specify your asm credentials

Choose to enable or not archiving and the FRA for you database. This time we are not going to set it
up. NOT RECOMMENDED IN PRODUCCTION SYSTEM.

Adjust your memory settings as you want or leave the defaults

Next review your database storage. You dont really need yo modify anything here.

On the summary screen click OK to begin the creation of the database

At the end you will see a summary of the database you just created

Lets verify

Done! We now have a fully functional single database instance using ASM for storage over Oracle
Linux 6.
Good Luck!

David.

You might also like