Tuesday, September 24, 2013

Installing Oracle Database Part 02

Dear Readers,

My name is Franz Devantier, creator of this blog.  I am an Oracle Certified Professional (OCP DBA 11g) Security DBA.  I will be sharing with you the basic duties of an Oracle DBA, and also some of the undocumented, and not so well known tasks. 

Installing Oracle Database Part 02
Accessing the Installation Software
The Oracle Database software is available on installation media.  You can request the installation media from Oracle.  I found that it is so much easier to download it from the Oracle Technology Network Web site.  Also you can try downloading from the Oracle Software Delivery Cloud portal.  If you are going to install the Oracle software from a hard disk, then you need to download it and unpack it, or if you do have the installation media, then to copy it from there.

Downloading Oracle Software
You can download the trial version of the oracle installation files from the Oracle Technology Network (OTN) or the Oracle Software Delivery Cloud portal.  Once downloaded you can extract them to your hard disk.  Make sure that you review and understand the terms of the license.  Most downloads include the development license.

Downloading the Installation Archive Files from OTN
=> You can use any browser to access the software download page from OTN:

=> Navigate to the download page for the product that you want to install.

=> On the download page, the required disk space is mentioned.  Make a note of the total space required.  If necessary you can add the individual files up to get the total size.

=> Select a file system with enough free space to store and expand the archive files.  You would probably need at least twice the amount of space of the archive files.

=>  on the file system identified, create a parent directory for each product that you are going to download.

=> Make sure that you have successfully downloaded all of the archive files to the directory that you have created for the software.

=> Compare the file size on your file system to the file size on the Oracle Technology Network to aid you to verify that they were downloaded successfully.

=> In the parent directory that you created, extract the files.  

Downloading the Software from Oracle Software Delivery Cloud
You can download the software from Oracle Software Delivery Cloud as Media Packs.  A Media Pack is in the same format as the software would be were you to receive it on CD-ROM or DVD.
=> Use any browser to access the Oracle Software Delivery Cloud portal;

=> You will need to complete the Export Validation process by entering information such as your name, company, email address and country, in the online form.  If you have an Oracle Single Sign on, then you can just sign on, and you are done.

=> When you get to the Media Pack Search page, you must specify the Product Pack and the Platform, to identify the Media Pack that you want to download.  You can also search for the Media Pack using the license list.

=> In the search results page, first click the “Readme”, and download and review the readme file for the product information and download instructions.

=> Choose the appropriate Media Pack from the search results, and download the zip files.  Once you have downloaded and extracted the zip files, you can proceed to the installation of the software.  You may find it useful to also keep a copy of the page where your media pack was on, because it contains a list of part numbers, and the descriptions.  You may need to refer to this during the installation process.

Extracting the Installation Files
=> Make sure that you are in the directory that contains the downloaded installation archive files.

=> If the downloaded file has the zip extension then.
# unzip filename.zip

If the downloaded file has the cpio.gz extension then.
# gunzip filename.cpio.gz
The above command will create files with that look something like this;
Filename.cpio

Now you need to extract these files further;
# cpio –idcmv < filename.cpio>

For each file, this command creates a subdirectory named Diskn, where n is the disk number identified in the file name.

Look for the instructions on the download page for the correct options to use with the cpio command.  Make a note of these cpio options, to be used when you have downloaded the files.

Copying the Software to the Hard Disk
Before you start the installation, you may like to copy the software to the hard disk, in order to enable the installation process to run faster.  Of course you must first mount the disk, before you can copy the software across.

On most Linux systems the disk should mount automatically after you insert it into the disk drive.  However if the disk does not mount automatically then you can try this process:
=> log in as the root user.  On Asianux, Oracle Linux, and Red Hat Enterprise Linux.
# eject /mnt/dvd
Or
# sudo eject /mnt/dvd
On SUSE Linux Enterprise Server.
# eject /media/dvd

=> Insert the media into the disk drive.

=> Verify that the disk is mounted automatically.
On Asianux, Oracle Linux, and Red Hat Enterprise Linux:
# ls /mnt/dvd
On SUSE Linux Enterprise Server:
# ls /media/dvd

=> On red Hat first verify that /mnt/dvd exists or otherwise create it.
On Asianux, Oracle Linux, and Red Hat Enterprise Linux:
# mount –t iso9660 /dev/dvd  /mnt/dvd
On SUSE Linux Enterprise server:
# mount –t iso9660 /mnt/dvd  /media/dvd
In the above examples /mnt/dvd and /media/dvd are the mount point directories that is to be used by the installation media.

=> Oracle Universal Installer (OUI) may display the Disk Location dialog box or screen.  If so you can enter the disk mount point as /mnt/dvd or /media/dvd.

Now you are ready to copy the installation software from the mounted disk to the hard disk or file system.  Sometimes you will find that the server does not have a disk drive for use.  In this case, you can copy the installation media to another server, and then mount that specific file system where you put the installation media, using NFS.  Alternatively you can FTP or SCP the files across to the server that you are working on.

Copying the contents of the installation media to a hard disk:
=> Firstly you will need to create a directory on the hard disk on a file system that has sufficient space.  Also this directory should be outside of the Oracle Base Directory, where you are going to put the Oracle Installation Software.
# mkdir OraDb11g

=> Now you will continue by changing to the directory that you just created.
# cd OraDb11g

=> If the disk which holds the installation software is not already mounted, then you must mount the disk.  See the above notes on mounting the disk drive.

=>Now you are ready to start copying the installation software.
# cp –R /<mount point directory> OraDb11g
If there is more than one installation disk, then you eject that disk once the copy is complete, make sure the next disk is mounted, and just do the copy again, until you have copied all the disks to the hard drive.

Franz Devantier.


No comments:

Post a Comment