Saturday, August 3, 2013

Create Virtual Machine “OCM” & Install Linux Guest OS

image image  

clip_image006 clip_image008

clip_image010 image  

image

Add two more virtual hard disks to ocm VM.

image image

image image

image image

image

Similarly add ocmhd3. After adding ocmhd3, you will see:

image

Now add additional nework adapter: We will have 2 or more network adapters for each VM.

1) One with network mode of NAT

image

2)Another with network mode of Host-only Adapter

image

This is how it will look. Check storage and network.

image

 

Download OS ISO image from:

https://edelivery.oracle.com/linux

clip_image016

Select below as Exam environment suggests that the lab would be running Oracle Linux 5.4 32-bit.

clip_image018

clip_image020

V17793-01.zip will be downloaded. Extract it. It will extract below file:

Enterprise-R5-U4-Server-i386-dvd.iso

image image

Click the CD icon and provide ISO image downloaded for Linux OS.

Then click “Start” for ocm.

ocm1 ocm2 ocm3 ocm4 ocm5 ocm6 ocm7 ocm8 ocm9 ocm10 ocm11 ocm12 ocm13 ocm14

ocm1 ocm2

ocm5 ocm3 ocm4 ocm5    ocm18 ocm19 ocm20 ocm31 ocm32 ocm33   ocm36 ocm37 ocm38 ocm39 ocm40  ocm42 ocm43 ocm44 ocm45 ocm46 ocm47 ocm48 ocm49

  Few more tasks:

1. Don’t forget to install guest additions for linux to make sure higher screen resolution is available as well as some other features. Follow http://vishalorcl.blogspot.com/2013/09/install-virtualbox-linux-guest.html

2. Install oracle-validated rpm using yum install oracle-validated. Check the output here::

When it is installed, the Oracle Pre-Install RPM or Oracle Validated RPM does the following:

  • Automatically downloads and installs any additional RPM packages needed for installing Oracle Grid Infrastructure and Oracle Database, and resolves any dependencies

  • Creates an oracle user, and creates the oraInventory (oinstall) and OSDBA (dba) groups for that user

    [root@ocm ~]# id oracle
    uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba) context=root:system_r:unconfined_t:SystemLow-SystemHigh
  •  

  • As needed, sets sysctl.conf settings, system startup parameters, and driver parameters to values based on recommendations from the Oracle RDBMS Pre-Install program

  • Sets hard and soft resource limits

  • Sets other recommended parameters, depending on your kernel version

http://docs.oracle.com/cd/E11882_01/install.112/e47689/pre_install.htm#BABFBIDF

3. Modify /etc/hosts as shown below: 

[root@ocm ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               ocm.vp.com ocm localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6

[root@ocm ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.56.101 ocm.vp.com ocm
127.0.0.1 localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6

VM OCM is ready for use.

Install Oracle VM VirtualBox and Extension Pack

 

I will use "Oracle VM VirtualBox" for setting up virtual machines/servers. At the time of writing this post Version 4.2.16 was available.

Download link:

http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html?ssSourceSiteId=ocomen

Download both “Oracle VM VirtualBox” and “Oracle VM VirtualBox Extension Pack”

Install “Oracle VM VirtualBox” v4.2.16. Took below screenshots with (Fn+Alt+Prnt Scrn)

clip_image002 clip_image004

clip_image006 clip_image008

clip_image010 clip_image012

clip_image014 

Install “Oracle VM VirtualBox Extension Pack” for v4.2.16

Right click on downloaded file “Oracle_VM_VirtualBox_Extension_Pack-4.2.16-86992” and click open.

clip_image016 clip_image018

clip_image020

Friday, August 2, 2013

OCM 11g Preparation

After being a dba for over 10 years, I have decided that I would attempt to give OCM exam for 11g.

Target period: Nov/Dec 2013.

I will register for the exam just a month before the exam date after looking at available schedule and having confidence. But I don't intend to postpone it in 2014.

I will create multiple posts for each task/scenario related to each of the topics.

This will be a MASTER post and I will put links for all the posts here. This will help me to keep track of the topics I covered and will also help others if they are looking for some help in preparation

OU links for exam details:
http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=458&get_params=p_track_id:Datab11g

http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:11GOCM&p_org_id=1001&lang=US

Additional information and resources in above link shows exam environment information:


Exam Environment
  • Oracle Linux Release 5.4 (32-bit)
  • Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 (32-bit)
  • Oracle Enterprise Manager 11g Grid Control Release 1 (11.1.0.1.0)  (32-bit)



Task: Create Practice Environment

1. My LAB – HW and SW

2. Install Oracle VM VirtualBox and Extension Pack

3. Create Virtual Machine “OCM” & Install Linux Guest OS

4. Clone Virtual Machine OCM to OCMSFSDB

 

Task: Create the Database

1. On ocmsfsdb: Install Oracle Database 11g Enterprise Edition Release 11.2.0.3.0(32-bit)

2. Create database on ocmsfsdb

From Oracle Database Administrator’s guide:

The specific methods for creating a database are:

So I will create three databases on ocmsfsdb:

a. Using dbca (Recommended)

        i. Interactive – db_name: idbcadb

        ii. Silent – db_name: sdbcadb

b. Manually - “create database …” - mandb
 

3. Determine and set sizing parameters for database structures

a. Physical storage structures

     i. Data files

     ii. Control files

     iii. Online redo log files

b. Logical storage structures

     i. Data blocks

     ii. Extents

     iii. Segments

     iv. Tablespaces
    



<More to come>