Thursday, April 12, 2012

How to Install OVM Manager 3.0.3

In this post, we will address how to install OVM Manager 3.0.3 step by step.

1. run createOracle.sh to create the below items automatically or you can create them manually

  • Creates the operating system dba group
  • Creates the oracle user and adds it to the dba group
  • Creates the /u01 directory
  • Sets the required parameters in the /etc/security/limits.conf file
  • Opens the required ports in the /etc/sysconfig/iptables file

2.mount ovm manager 3.0.3 iso file

[root@ovmtest software]# ls
ovm-manager-3.0.3.iso  ovm-server-3.0.3.iso  V18419-01.zip
[root@ovmtest software]# mount -o loop ovm-manager-3.0.3.iso /ovmcd/
[root@ovmtest software]# cd /ovmcd/

3. execute runInstaller.sh
We choose production mode and use external oracle enterprise database instead of oracle xe.

[root@ovmtest ovmcd]# ./runInstaller.sh

Oracle VM Manager Release 3.0.3 Installer

Oracle VM Manager Installer log file:
  /tmp/ovmm-installer.selfextract_uM1668/install-2012-04-12-144211.log

Please select an installation type:
   1: Demo
   2: Production
   3: Uninstall
   4: Help

   Select Number (1-4): 2

Starting standard installation ...


Verifying installation prerequisites ...

Oracle Database Repository
==========================
Would you like to install Oracle Database 11g Express Edition (XE) or connect to an existing Oracle database?
   1: Install Oracle Database 11g XE
   2: Use an existing Oracle database
   Select Number (1-2): 2

Enter the Oracle Database hostname [localhost]: vrremccdb.tpgi.com.au
Enter the Oracle Database System ID (SID) [XE]: ovm
Enter the Oracle Database SYSTEM password:
Enter the Oracle Database listener port [1521]:
Enter the Oracle VM Manager database schema [ovs]:
Enter the Oracle VM Manager database schema password:
Enter the Oracle VM Manager database schema password (confirm):


Oracle Weblogic Server 11g
==========================
Enter the Oracle WebLogic Server 11g user [weblogic]:
Enter the Oracle WebLogic Server 11g user password:
Enter the Oracle WebLogic Server 11g user password (confirm):

Oracle VM Manager application
=============================
Enter the username for the Oracle VM Manager administration user [admin]:
Enter the admin user password:
Enter the admin user password (confirm):

Verifying configuration ...

Start installing the configured components:
   1: Continue
   2: Abort

   Select Number (1-2): 1
Step 1 of 9 : Database ...
Installing Database ...
Database installation skipped ...

Step 2 of 9 : Java ...
Installing Java ...

Step 3 of 9 : Database Schema ...
Creating database schema 'ovs' ...

Step 4 of 9 : WebLogic ...
Retrieving Oracle WebLogic Server 11g ...
Installing Oracle WebLogic Server 11g ...

Step 5 of 9 : ADF ...
Retrieving Oracle Application Development Framework (ADF) ...
Unzipping Oracle ADF ...
Installing Oracle ADF ...

Step 6 of 9 : Oracle VM  ...
Retrieving Oracle VM Manager Application ...
Extracting Oracle VM Manager Application ...
Installing Oracle VM Manager Core ...

Step 7 of 9 : Domain creation ...
Creating Oracle WebLogic Server domain ...
Starting Oracle WebLogic Server 11g ...
Configuring data source 'OVMDS' ...
Creating Oracle VM Manager user 'admin' ...





Step 8 of 9 : Deploy ...
Deploying Oracle VM Manager Core container ...
Deploying Oracle VM Manager UI Console ...
Deploying Oracle VM Manager Help ...
Enabling HTTPS ...
Granting ovm-admin role to user 'admin' ...

Step 9 of 9 : Oracle VM Manager Shell ...
Retrieving Oracle VM Manager Shell & API ...
Extracting Oracle VM Manager Shell & API ...
Installing Oracle VM Manager Shell & API ...


Retrieving Oracle VM Manager Upgrade tool ...
Extracting Oracle VM Manager Upgrade tool ...
Installing Oracle VM Manager Upgrade tool ...
Copying Oracle VM Manager shell to '/usr/bin/ovm_shell.sh' ...
Installing ovm_admin.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Installing ovm_upgrade.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Enabling Oracle VM Manager service ...
Shutting down Oracle VM Manager instance ...
Restarting Oracle VM Manager instance ...
Waiting 15 seconds for the application to initialize ...
Oracle VM Manager is running ...
Oracle VM Manager installed.

Please wait while WebLogic configures the applications... This can take up to 5 minutes.


Installation Summary
--------------------
Database configuration:
  Database host name          : vrremccdb.tpgi.com.au
  Database instance name (SID): ovm
  Database listener port      : 1521
  Application Express port    : None
  Oracle VM Manager schema    : ovs

Weblogic Server configuration:
  Administration username     : weblogic

Oracle VM Manager configuration:
  Username                    : admin
  Core management port        : 54321
  UUID                        : 0004fb00000100005e6aa1a395288727


Passwords:
There are no default passwords for any users. The passwords to use for Oracle VM Manager, Oracle Database 11g XE, and Oracle WebLogic Server have been set by you during this installation. In the case of a default install, all passwords are the same.

Oracle VM Manager UI:
  http://ovmtest.tpgi.com.au:7001/ovm/console
  https://ovmtest.tpgi.com.au:7002/ovm/console
Log in with the user 'admin', and the password you set during the installation.

Please note that you need to install tightvnc-java on this computer to access a virtual machine's console.

For more information about Oracle Virtualization, please visit:
  http://www.oracle.com/virtualization/

Oracle VM Manager installation complete.

Please remove configuration file /tmp/ovm_config-FnkP4.

Tuesday, April 10, 2012

How to Install OID OVD 11.1.1.6 on Oracle Linux 64bit

In this post, we address how to install OID and OVD 11.1.1.6 step by step.

It's my first time to install OID and OVD. :)

1. Run RCU to install the schema of OID and OAM



2.  install jrockit since it's 64 bit linux system
./jrockit-jdk1.6.0_29-R28.2.2-4.1.0-linux-x64.bin

3. install weblogic
java -jar  wls1036_generic.jar

4. install OID, OVD 11.1.1.6
./runInstaller &

Choose oracle inventory location and hit OK








step1: Hit Next



step 2: Choose Skip Software Updates and Hit Next



step 3:



step 4:



step 5:



step 6:



step 7:



step 8:






step 9:





5. Create Domain by configuration wizard (config.sh on linux)

[oracle@vrrIDM11g bin]$ ./config.sh &

step1:



step2:



step3:



step4:



step5:



step6:



step7:



step8:



step9:



step10:



step11:



step12:




Post Installation:

1. Admin Console:

http://vrridm11g:7001/console

2. em console

http://vrridm11g:7001/em

3.odsm (Oracle Directory Services Manager) console

http://vrridm11g:7005/odsm

4. OID server port:

non ssl: 3060

ssl: 3131

5. OVD port:

admin port: 8899 (https)
ldap:  6501
ldaps: 7501










Sunday, March 4, 2012

How to Change Oracle Management Agent Port

How to Change Oracle Management Agent Port

The Oracle Management Agent uses a predefined port number to receive requests from the Management Service. This port number is defined by default when you install the Agent on a managed host. If you later need to modify this port, you can use the following procedure.

1. stop agent

<agent_home>/agent_inst/bin/emctl stop agent

2. backup emd.properties under <agent_home>/agent_inst/sysman/config/

3. vi emd.properties

4. Change the port number in EMD_URL property

For example:
EMD_URL=http://managed_host1.acme.com:1830/emd/main
5. Save the changes 
6. Start Oracle Management Agent
<agent_home>/agent_inst/bin/emctl start agent

Wednesday, February 15, 2012

Deploy Oracle Management Agent failed with error: HTTPS url https://emserverHost:4900/empbs/genwallet is not reachable from the target node

Deploy Oracle Management Agent failed with error: HTTPS url https://emserverHost:4900/empbs/genwallet is not reachable from the target node

Today I tried to deploy Oracle Management Agent to one target host but always failed with the above error.

So I did below things to narrow down the issue

1. check if any firewall blocks the communication on port 4900
check /etc/sysconfig/iptables with root priviledge.

2. if it's not firewall issue, double check if host is reachable from target server. also double check if it's reachable via ipaddress

telnet host 4900
telnet ip 4900

In my case, telnet ip 4900 works but telnet hostname 4900 failed. so it means something wrong about dns hostname resolving.

It could be fix in dns level or add one more entry to /etc/hosts

Changing iptables to enable https on port 4900

I tried to deploy oracle management agent on one ovm, since all oracle vm are using iptables, so i got some error that failed to connect via https on port 4900 during agent push.

Here is what i did to enable https on port in iptables

1. [soa@vRRSOADEV01 agent_inst]$ sudo vi /etc/sysconfig/iptables

2. add one entry:

-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 4900 -j ACCEPT


3. Save the changes and restart iptables via

[soa@vRRSOADEV01 agent_inst]$ sudo /sbin/service iptables restart

That's it.

Tuesday, February 14, 2012

Could not execute auto check for display colors using command /usr/bin/xdpyinfo

When try to install oracle database 11gR2 on RedHat Linux 5.2 (running on Oracle VM) via running runInstaller.sh in ssh

I hit the below error:

Could not execute auto check for display colors using command /usr/bin/xdpyinfo

This is the installation of Linux without installing x11 server.

1. So I run the below command to install x11 server

yum install xorg-x11-server-Xorg xorg-x11-server-common.

2. If you haven't configured yum before, please follow the below document to config yum
http://public-yum.oracle.com/

basiclly, you need to login as root, wget yum repository, enable repository update, then u can use yum install to update your linux env.

3. If it still doesn't work, double check if you use 'su - oracle' because Using 'su - oracle' will break X screen forwarding or proper display when using Oracle runInstaller.

So you need ssh the host with user oracle.

Monday, February 13, 2012

How to switch dhcp to static ip and change hostname on Linux

Change Hostname
1. vi /etc/sysconfig/network
2. change  HOSTNAME=xxxxxx
3. save changes 
4.  restart the xinetd service. (ex: type service xinetd restart


Change DHCP to Static IP
1.  vi /etc/sysconfig/network-scripts/ifcfg-eth0
2.  do the below changes 
from


DEVICE=eth0 
BOOTPROTO=dhcp 
HWADDR=00:D0:B7:08:09:BB 
ONBOOT=yes


To



DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
HWADDR=00:16:3E:17:82:7C
IPADDR=192.168.1.146
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
TYPE=Ethernet




Sunday, February 12, 2012

How to install Enterprise Manager Cloud Control 12C in Silent Mode

I plan to install Enterprise Manager Cloud Control 12C to the virtual machine accessed via VPN.

The normal installation procedure with GUI part is very slow via VPN and it's risky whenever VPN connection gets reset, I may lost what I have done or cause some inconsistent status.

So I decide to use silent mode to install Enterprise Manager Cloud Control 12C.

Silent mode has 2 parts: 1. Install software only. 2. Config software.

1. Install software
open and edit the software_only_new.rsp under <InstallationPackage>/response folder

Here is the workable  software_only_new.rsp I am using

RESPONSEFILE_VERSION=2.2.1.0.0

UNIX_GROUP_NAME=soa
INVENTORY_LOCATION=/home/soa/oraInventory
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
MYORACLESUPPORT_USERNAME=<Value Unspecified>
MYORACLESUPPORT_PASSWORD=<Value Unspecified>
INSTALL_UPDATES_SELECTION="skip"
STAGE_LOCATION=<Value Unspecified>
MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES=<Value Unspecified>
MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES=<Value Unspecified>
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/product/emcc12c_instance/middleware
PLUGIN_SELECTION={"oracle.em.soee"}
FROM_LOCATION=/u01/app/oracle/data/emcc/installer/oms/Disk1/stage/products.xml
DEINSTALL_LIST={"oracle.sysman.top.oms","12.1.0.1.0"}
REMOVE_HOMES=<Value Unspecified>
b_upgrade=false
EM_INSTALL_TYPE="NOSEED"
CONFIGURATION_TYPE="LATER"
TOPLEVEL_COMPONENT={"oracle.sysman.top.oms","12.1.0.1.0"}

2. Run the below command to install software only
<InstallationPackage>/runInstaller -silent -responseFile <AbosultePath>/software_only_new.rsp


[soa@vrremcc12c installer]$ ./runInstaller -silent -responseFile /u01/app/oracle/data/emcc/installer/response                                                                                                                                /software_only_new.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 400 MB.   Actual 650 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 6074 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-02-13_10-54-42PM. Please wait ...[soa                                                                                                                                @vrremcc12c installer]$
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/jdk16
Installation in progress
........
Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing Oracle WebLogic Server

[soa@vrremcc12c installer]$
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/oms
Installation in progress

.......Installation in progress
..
Install successful
Linking in progress
Link successful
Setup in progress

Setup successful
 Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.db/12.1.0.1.0
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.db/12.1.0.1.0/12.1.0.1.0_OMS_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-01-10-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/plugins/oracle.sysman.db.oms.plugin_12.1.0.1.0
Installation in progress
.
Install successful
Linking in progress

Link successful
Setup in progress

Setup successful

 Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.xa/12.1.0.1.0
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.xa/12.1.0.1.0/12.1.0.1.0_OMS_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-02-30-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/plugins/oracle.sysman.xa.oms.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
 Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.emas/12.1.0.1.0
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.emas/12.1.0.1.0/12.1.0.1.0_OMS_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-02-53-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/plugins/oracle.sysman.emas.oms.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
 Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.mos/12.1.0.1.0
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.mos/12.1.0.1.0/12.1.0.1.0_OMS_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-04-05-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/plugins/oracle.sysman.mos.oms.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful

[soa@vrremcc12c installer]$  Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.em.soee/12.1.0.1.0
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.em.soee/12.1.0.1.0/12.1.0.1.0_OMS_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-04-28-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/plugins/oracle.em.soee.oms.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
 Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.beacon/12.1.0.1.0
 Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.oh/12.1.0.1.0
 Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.csa/12.1.0.1.0
 Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.emrep/12.1.0.1.0
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-05-05-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/core/12.1.0.1.0
Installation in progress
......
Install successful
Linking in progress

Link successful
Setup in progress
....
Setup successful
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-06-10-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/sbin
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.emas/12.1.0.1.0/12.1.0.1.0_Agent_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-06-54-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.emas.agent.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.emrep/12.1.0.1.0/12.1.0.1.0_Agent_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-07-17-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.emrep.agent.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.beacon/12.1.0.1.0/12.1.0.1.0_Agent_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-07-40-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.beacon.agent.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.db/12.1.0.1.0/12.1.0.1.0_Discovery_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-08-03-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.db.discovery.plugin_12.1.0.1.0
Installation in progress
.
Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.oh/12.1.0.1.0/12.1.0.1.0_Discovery_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-08-26-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.oh.discovery.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.xa/12.1.0.1.0/12.1.0.1.0_Discovery_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-08-48-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.xa.discovery.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.emas/12.1.0.1.0/12.1.0.1.0_Discovery_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-09-11-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.emas.discovery.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.csa/12.1.0.1.0/12.1.0.1.0_Discovery_2000_0.zip
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-09-33-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.csa.discovery.plugin_12.1.0.1.0
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-09-55-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/oracle_common
Installation in progress
........
Install successful
Linking in progress

Link successful
Setup in progress
..
Setup successful
You can find the log of this install session at:
 /home/soa/oraInventory/logs/cloneActions2012-02-13_11-13-53-PM.log

Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/Oracle_WT
Installation in progress
........
Install successful
Linking in progress

Link successful
Setup in progress
.
Setup successful
Running command : /u01/app/oracle/product/emcc12c_instance/middleware/oms/perl/bin/perl /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/oneoffs/apply_NewOneoffs.pl /u01/app/oracle/product/emcc12c_instance/middleware/oms true

Warning: The following configuration scripts need to be executed as the "root" user
  /u01/app/oracle/product/emcc12c_instance/middleware/oms/allroot.sh
To execute the configuration scripts:
 1. Open a new  terminal window
 2. Login in as "root"
 3. Run the scripts

Enterprise Manager Cloud Control Installation has finished.

3. After finish installation, run $<oms_home>/allroot.sh with root privilege.

Now we have finished software installation part. We need walk through the configuration part to make enterprise manager cloud control 12c run properly. :)



How to Install Oracle Database 11gR2 in Silent Mode

I need install Oracle DB 11gR2 to OVM in remote city via VPN.

The difficulty is via VPN, it's very slow to do normal installation with GUI via ssh.

So I decide to do silent installation without any GUI part involved.

Here is the workable response file sample for installation and configuration of  database.

You can use the below command to run the silent mode and after installation finish, run root.sh with root privilege.

 ./runInstaller -silent -responseFile /u01/app/oracle/data/db/database/db_install_new.rsp



oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_AND_CONFIG
ORACLE_HOSTNAME=myhost.com.au
UNIX_GROUP_NAME=soa
INVENTORY_LOCATION=/home/soa/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=false
oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0

oracle.install.db.DBA_GROUP=soa
oracle.install.db.OPER_GROUP=soa
oracle.install.db.CLUSTER_NODES=
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE/TRANSACTION_PROCESSING
oracle.install.db.config.starterdb.globalDBName=emcc
oracle.install.db.config.starterdb.SID=emcc
oracle.install.db.config.starterdb.characterSet=AL32UTF8
oracle.install.db.config.starterdb.memoryOption=true
oracle.install.db.config.starterdb.memoryLimit=512
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.enableSecuritySettings=true
oracle.install.db.config.starterdb.password.ALL=welcome1
oracle.install.db.config.starterdb.password.SYS=welcome1
oracle.install.db.config.starterdb.password.SYSTEM=welcome1
oracle.install.db.config.starterdb.password.SYSMAN=welcome1
oracle.install.db.config.starterdb.password.DBSNMP=welcome1
oracle.install.db.config.starterdb.control=DB_CONTROL
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
oracle.install.db.config.starterdb.dbcontrol.emailAddress=
oracle.install.db.config.starterdb.dbcontrol.SMTPServer=
oracle.install.db.config.starterdb.automatedBackup.enable=false
oracle.install.db.config.starterdb.automatedBackup.osuid=
oracle.install.db.config.starterdb.automatedBackup.ospwd=
oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/u01/app/oracle/oradata
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
oracle.install.db.config.asm.diskGroup=
oracle.install.db.config.asm.ASMSNMPPassword=
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=false
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=


The way to create db instance via dbca silently:


<Oracle_Home>/bin/dbca -silent -createDatabase -templateName General_Purpose.dbc -sid emcc12c -gdbName emcc12c -emConfiguration LOCAL -storageType FS -datafileDestination /u01/app/oracle/product/11.2.0/oradata -datafileJarLocation /u01/app/oracle/product/11.2.0/dbhome_1/assistants/dbca/templates -responseFile /u01/app/oracle/data/db/db_install_new.rsp -characterset AL32UTF8 -obfuscatedPasswords false -sampleSchema false -oratabLocation /u01/app/oracle/product/11.2.0/dbhome_1/install/oratab -automaticMemoryManagement true -totalMemory 512 -maskPasswords false -oui_internal


Saturday, February 11, 2012

How To Add Swap Partition to Linux in Oracle VM

Hi,

I play with OVM this weekend and when I try to install Oracle database, it complains that I need increase swap space.

There is a 2 way to increase swap: by adding swap file or add a new swap partition.

Since there is not enough disk space for linux virtual disk in this Oracle virtual machine, so I decide to add new virtual disk as new swap partition.

Here is the step by step
1. Login oracle vm server manager console
2. Select virtual machine name and hit Configuration
3. Hit Storage tab
4. Hit Create New Virtual Disk, for example the new virtual disk is /dev/sdd
5. After virtual Disk created properly, login virtual machine
6. use su to change root user


[soa@vrremcc12c ~]$ su
Password:


7.  free -k to check how much swap space is currently used


[root@vrremcc12c soa]# free -k
             total       used       free     shared    buffers     cached
Mem:       6117676     192628    5925048          0       9368      56500
-/+ buffers/cache:     126760    5990916
Swap:      1052248          0    1052248

8.  user fdisk -l to check the new partition mounted
Disk /dev/sdd: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Disk /dev/sdd doesn't contain a valid partition table

9 format the new partition by fdisk

[root@vrremcc12c soa]# /sbin/fdisk /dev/sdd
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1018, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1018, default 1018):
Using default value 1018

Command (m for help): p

Disk /dev/sdd: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1        1018     5238597   83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

10. setup newly created partition by mkswap

[root@vrremcc12c soa]# /sbin/swapon -s
Filename                                Type            Size    Used    Priority
/dev/hda3                               partition       1052248 0       -1
[root@vrremcc12c soa]# /sbin/mkswap /dev/sdd1
Setting up swapspace version 1, size = 5364318 kB

11. enable swap partition 
[root@vrremcc12c soa]# /sbin/swapon /dev/sdd1
[root@vrremcc12c soa]# swap/sbin/on -s
Filename                                Type            Size    Used    Priority
/dev/hda3                               partition       1052248 0       -1
/dev/sdd1                               partition       5238588 0       -2
[root@vrremcc12c soa]#

12. update /etc/fstab file with new swap area
/dev/sdd1       swap    swap    defaults        0 0




Tuesday, February 7, 2012

Coherence Issue

These days, cope with coherence issues, will blog it when find the solution or workaround.

Post this blog to remind myself document what I have done for coherence area recently.

Friday, January 20, 2012

Do more with SOA Integration: Best of Packt - Packt Publishing

reading "Do more with SOA Integration: Best of Packt"

Link: http://www.packtpub.com/soa-integration-automation-business-processes-books-best-of-packt/book

A mash-up book from a range of expert SOA professionals, and a total of eight Packt titles - professional expertise distilled in a true sense.


Expect to get inspired by this book.