Saturday, January 8, 2011

Installing and Configuring Oracle VM Server 2.2.1 and Oracle VM Manager 2.2

I had attended Oracle's VM Roadshow in Riyadh recently and wanted to test Oracle VM Server 2.2.1 to see if it was worth the hype.

I planned to Install Oracle VM Server and Oracle VM Manager as a VMware guest, but when I researched on various forums and blogs including OTN, I came to know that "Oracle VM Server is a bare-metal product and that it cannot be installed as a VMware guest!".

Failure to procure a spare machine and having some time to kill made me try and succeed in installing Oracle VM Server and Oracle VM Manager as a VMware Guest.

The following are the steps:-
Download Oracle Server and Oracle VM Manager from http://edelivery.oracle.com/oraclevm

Open VMware and select New Virtual Machine option.
Select the option Typical for type of configuration.

 
Click next to go to the next screen
Select “Installer disk image file” option here and browse and select the iso file of Oracle VM Server you downloaded from the above link.


 Select Linux as OS

Select the Location where you want to store the Virtual Disk

Specify the maximum size of the disk
 
Click Finish

Oracle VM Server loads 
Press Enter to start the installation of Oracle VM Server
 Press Skip

 Select the Type of Keyboard


Press Yes to Create new partitions
 
Select the option Remove all partitions and press ok

Click Yes to confirm


 Click Yes to Review and Modify Partition Layout

Click on the /OVS mount point and select Delete
Goto the / partition select EDIT 

Select the option Fill all the available space and press OK(If you go with the defaults then during the installation of Database XE the pre-requisites might fail, as it requires a minimum space of 2600 MB in the installation drive.)


Press OK on the partitioning page

Press OK on Boot Loader Configuration Screen

Select OK on Oracle VM Management Interface

Select Manual address configuration on the IPv4 Configuration Screen and specify the IP and Netmask




Set the Gateway and Primary DNS


Manually Set the Hostname

Set the Time Zone

Set the Oracle VM Agent Password
Set the Root Password


click OK to begin the installation




 Select Reboot after the installation is completed

When the VM is restarting press enter to enter the GNU-GRUB to select the 32-bit option else you will encounter an error "ERR: Not a 64-Bit CPU!erver-ovs (xen-64-3 .1.3 2.6.18-8.1.15.0.16.el5ovs)'" as by default the Oracle VM Server boots as a xen-64-3 .1.3 2.6.18-8.1.15.0.16.el5ovs!


When you press Enter during reboot you will see the below screen, select the first option and press enter

You will be prompted for EUL Agreement, select Agree

Login with Username 'root' and its password.

Installing and Configuring Oracle VM Manager 2.2
Goto Virtual Machine Settings and change the change the CD/DVD ISO image to point to the iso image of VM Manager you downloaded from Oracle Website.

Execute the following as root
# mkdir /media/cdrom
# mount /dev/cdrom /media/cdrom
#cd /media/cdrom
#sh runInstaller.sh
 This will start the Oracle VM Manager Installation



 Select the option 1 on the next screen
Select 1 on the next screen

Specify the passwords for SYS and SYSTEM

 Select 'y' on the next screen 

Set the 'OVS','oc4jadmin','keystore','admin' Passwords



Enter the outgoing SMTP mail server to end the installation.

As Oracle VM server does not include XWindows thus there is no Graphical User Interface.


So, from the browser of Host PC of VMware Workstation enter the following address
https://192.168.1.111:4443/OVS or 
https://ahmed.blogspot.com/OVS(If you mapped VM Server IP to Host name in etc/hosts file
And, you would see Oracle VM Manager home screen

All the Best ;)


Sunday, January 2, 2011

Changing OC4J ORMI Default Port for Oracle Warehouse Builder

I had an issue recently when i had to move Oracle Warehouse Builder and OBIEE on the same machine, they were running on separate machines in the production environment.

I was not able to start the OC4J service of Oracle Warehouse Builder as OBIEE OC4J was already running.

I Changed the ORMI OC4J Port of the Oracle Warehouse Builder and it worked like a charm!
  
The following are simple steps to change the ORMI default port in Oracle Warehouse Builder.

Navigate to OWB_HOME\bin\win32 and run ccashut.bat(in case OC4J is already running).
Next navigate to OWB_HOME\owb\jrt\config\rmi.xml file look out for rmi-server tag for port and ssl-port attributes.
Change the default non-ssl port 23791 and ssl port 23943, to any port which is not blocked.
Now start OC4J by navigating to OWB_HOME\bin\win32 and run ccastart.bat.
Edit the ccashut.bat in OWB_HOME\bin\win32, look out for string ormi://localhost:23791 and change the port number here to the value you specified in rmi file, If this step is not done you cannot shutdown CCA.

After the above changes you have to un-register and re-register the Default Agent to make the mappings work.

Goto Control Center Manager
Right Click Default Agent
Select Unregister Option select Yes
Right Click again on Default Agent select Register
Change the Port here(the same port that was put in rmi.xml file) and Press Ok.