Search This Blog

Tuesday, August 16, 2011

Oracle VM manager on Oracle 11g

How to install ORACLE VM manager using Oracle 11g as database?

By default ORACLE VM manager is using oracle express edition as a database.
But it has been observed that oracle 11g is a better alternative to XE. So here is the detailed steps of installing ORACLE VM Manager on top of ORACLE 11g.

Database Version:
Oracle Database 11g software, version

Step 1: Backup and Uninstall existing OVM (Oracle vm manager)

First you will need to take backup of existing OVM using script stored @ sh /opt/ovs-manager-2.2/bin/

Next you will need to uninstall the existing OVM(Oracle vm manager) using script .

Welcome to Oracle VM Manager 2.2

Please enter the choice: [1|2|3]
1. Install Oracle VM Manager
2. Uninstall Oracle VM Manager
3. Upgrade Oracle VM Manager

Are you sure you want to uninstall Oracle VM Manager? [y|N] (default=N) : y
Uninstalling Oracle VM Manager.

The ovs-manager package (rpm) was not previously installed.

Removing the oc4j package(rpm) ...Done

Removing the oracle-xe-univ package(rpm) ...Done
Oracle VM Manager was removed.

Remove all existing database directories and files This is necessary to avoid any error during oracle 11g installation.

# rm -rf /etc/ora*
# rm -rf /opt/oracle/OraInventory/
#rm -rf /home/oracle/oraInventory

remove ORACLE_HOME entry from oracle user bash_profile

Step 2: Install ORACLE 11g.

export display for getting GUI for installation.

oracle@export DISPLAY=:0.0

login using oracle user .run of Oracle 11g.

At this stage you will need to change some kernel parameters using root login.

#vi /etc/sysctl.conf
edit according to error
and then fire sysctl -p to commit changes.

click back and next on installation screen.
You should get output as below.

You will need to run the script mentioned in above diagram using root credentials.

# sh /home/oracle/oraInventory/
Changing permissions of /home/oracle/oraInventory to 770.
Changing groupname of /home/oracle/oraInventory to oinstall.
The execution of the script is complete
You have new mail in /var/spool/mail/root

# sh /home/oracle/app/db_1/
Running Oracle 11g script...

The following environment variables are set as:
ORACLE_HOME= /home/oracle/app/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)

Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

Now login using oracle user.
edit bash profile file according to following entries.

export ORACLE_HOME=/home/oracle/app/db_1
PATH=/usr/sbin:$ORACLE_HOME/bin:$PATH:$HOME/bin; export PATH

Edit listener file according to below entries.
$ cat /home/oracle/app/db_1/network/admin/listener.ora
# listener.ora Network Configuration File: /home/oracle/app/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

(ORACLE_HOME = /home/oracle/app/db_1)


Now start the listener
$ lsnrctl start

LSNRCTL for Linux: Version - Production on 16-AUG-2011 13:32:06

Copyright (c) 1991, 2007, Oracle. All rights reserved.

Starting /home/oracle/app/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version - Production
System parameter file is /home/oracle/app/db_1/network/admin/listener.ora
Log messages written to /home/oracle/app/db_1/log/diag/tnslsnr/HOSTNAME/listener/alert/log.xml

Version TNSLSNR for Linux: Version - Production
Start Date 16-AUG-2011 13:32:07
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
Listener Parameter File /home/oracle/app/db_1/network/admin/listener.ora
Listener Log File /home/oracle/app/db_1/log/diag/tnslsnr/HOSTNAME/listener/alert/log.xml
Listening Endpoints Summary...
Services Summary...
Service "XE" has 1 instance(s).
Instance "XE", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

Now check the status of database it should be in READ WRITE mode otherwise you will have to make it up.

[oracle@~]$ sqlplus /nolog

SQL*Plus: Release - Production on Tue Aug 16 13:32:19 2011

Copyright (c) 1982, 2007, Oracle. All rights reserved.

SQL> connect sys as sysdba
Enter password:
SQL> select open_mode from v$database;


Step 3: Install OVM.

# sh
Welcome to Oracle VM Manager 2.2

Please enter the choice: [1|2|3]
1. Install Oracle VM Manager
2. Uninstall Oracle VM Manager
3. Upgrade Oracle VM Manager

Starting Oracle VM Manager 2.2 installation ...

Do you want to install a new database or use an existing one? [1|2]
1. Install a new Oracle XE database on localhost
2. Use an existing Oracle database in my network
Please enter the database hostname or ip address(Default: HOSTNAME):IPADDRESS
Specify a port that will be used for the database listener [1521]:1522
Please specify the database SID(Default: orcl):XE

Please enter the password for database account 'SYS':

Provisioning Oracle instant client ...

Checking the availability of the database ...

Set default database schema to 'OVS'.
Please enter the password for account 'OVS':
Confirm the password:

Please enter the default tablespace for user OVS(DEFAULT: USERS):
Checking the availability of the tablespace USERS ...

Creating the Oracle VM Manager database schema ...Done

Installing the ovs-manager package (rpm) ...

Installing the oc4j package (rpm) ...

Please enter the password for account 'oc4jadmin':
Confirm the password:

Starting OC4J ... Done.
To access the OC4J Home Page and change the password go to

Deploying Oracle VM Manager application to OC4J container.
Creating connection pool ... Done
Creating data source ... Done
Deploying application help ... Done
Deploying application ... Done

Please enter the keystore password for the Web Service:
Confirm the password:

Setting keystore password for Web Service ... Done
Do you want to use HTTPS access for Oracle VM Manager (Y|n)?n

Configuring OC4J to use HTTP ... Done
Stopping OC4J ... Done
Starting OC4J ... Done

Please enter the password for the default account 'admin':
Confirm the password:

Configuring SMTP server ...
Please enter the outgoing SMTP mail server(e.g. -,
Mail server checking, may need some time, please wait ...
Setting the SMTP server to ...

Please enter an e-mail address for account 'admin':
Confirm the e-mail address :
Unable to send an email to '', would you like to change the email address(Y|n)?n
Updating e-mail address for account 'admin' to '' ...

The console feature is not enabled by default.
For detailed setup, refer to Oracle VM Manager User's Guide

Installation of Oracle VM Manager completed successfully.

To access the Oracle VM Manager 2.2 home page go to:

To access the Oracle VM Manager web services WSDL page go to:

To access the Oracle VM Manager help page go to:

No comments:

Post a Comment