2012/01/31

Oracle Enterprise Manager Cloud Control Installation(Oracle Linux)


The installation begins…

We've done the previously prerequisite check
opt-out the option of security update via My Oracle Support if you don't have a Oracle Support account, then Next

image


Yes
image
Skip the Software Updates, then Next
image
Next
image
We'll install a Simple Enterprise Manager System, and Middleware Home Location is the where you want to install the software (binary), Next
image
Input the Administrator Password twice and give the repository database connection information, then Next

image
Because my default Oracle 11g R2 database will install Database Control automatically, we need to follow the instruction to remove that Database Control on repository database.
image
Do the following instruction
cd $ORACLE_HOME/bin
emca -deconfig dbcontrol db -repos drop -SYS_PWD <sys_password> -SYSMAN_PWD <sysman_password>
image
Answer Yes
image
These are something need to be set on repository database, we can do this later, OK

image
We're ready to install the Enterprise Manager Cloud Control 12c, Install

image

After few hours installation (mine is 5 hours, slow machines!)
image
logon as root cd to the directory that installer told you and run allroot.sh

image
Back to the screen and press OK
image
https://ol57ap.telus.net:7102/console
image
After login
image

2012/01/28

Oracle Database 11g Release 2(11.2) Express Edition Installation(Oracle Linux)


Package Requirements

  • glibc should be greater than or equal to 2.3.4-2.41
  • make should be greater than or equal to 3.80
  • binutils should be greater than or equal to 2.16.91.0.5
  • gcc should be greater than or equal to 4.1.2
  • libaio should be greater than or equal to 0.3.104
 

Kernel Parameter Requirements

Table 2 Kernel Parameter Settings Required for Oracle Database XE
Kernel Parameter Setting
semmsl
250
semmns
32000
semopm
100
semmni
128
shmmax
4294967295
shmmni
4096
shmall
2097152
file-max
6815744
VERSION
2.4.21
ip_local_port_range
9000–65500


Installation

rpm -ivh downloads/oracle-xe-11.2.0-1.0.x86_64.rpm
 

Configuration




  • A valid HTTP port for the Oracle Application Express (the default is 8080)

  • A valid port for the Oracle database listener (the default is 1521)

  • A password for the SYS and SYSTEM administrative user accounts

  • Confirm password for SYS and SYSTEM administrative user accounts

  • Whether you want the database to start automatically when the computer starts (next reboot)
 

Usuage


To start the database manually, run this command as root user:
# /etc/init.d/oracle-xe start

To stop the database manually, run the following command as root user:
# /etc/init.d/oracle-xe stop
 
Referenced from Oracle 


2012/01/27

Expand existing disk on VM Oracle Linux


VMWare Client Setting

Change the Hard Disk by double click
image
Utilities > Expand

image
Change the Maximum disk size to desired size, and Expand
image

Oracle Linux Setting


Turn on your Oracle Linux, type fdisk /dev/sda
p to see current partion status
n for new partition
give 3 to use next partition number, currently is 2
we use the whole increased space so accept the default cylinder parameter
and w to write the partition table to disk and exit
image
The result message want us to do a reboot, so do it.

image
After reboot still logon as root
pvcreate /dev/sda3
to create a physical volume
image
vgextend VolGroup00 /dev/sda3
to add the physical volume to volume group
image
vgdisplay
to see current Volume Group
image
We have 20G free to add volume group
lvextend -L+20G /dev/VolGroup00/LogVol00
image
resize2fs /dev/VolGroup00/LogVol00
image
Congratulation! You’ve sucessfully increase new space and can be used in your Oracle Linux on VMWare

Reference url
http://www.techotopia.com/index.php/Adding_a_New_Disk_to_an_RHEL_5_Volume_Group_and_Logical_Volume
http://echenh.blogspot.com/2010/04/how-to-extend-lvm-on-vmware-guest-os.html

RPM Usuage

To remove a rpm package
rpm -e <package name>

To install a rpm package
rpm -ivh <package name>

To query a rpm name
rpm -qa  <part of package name> Valentine's Day 2012 V

Oracle Enterprise Manager Cloud Control Installation Precheck(Oracle Linux)

OS Library

For example, if you run the command on a 32-bit system, you should see something similar to the following:
glibc-devel-2.3.4-2.43(i386)
glibc-headers-2.3.4-2.43(i386)
glibc-2.3.4-2.43(i686)
compat-glibc-headers-2.3.2-95.30(i386)
glibc-profile-2.3.4-2.43(i386)
glibc-utils-2.3.4-2.43(i386)
glibc-kernheaders-2.4-9.1.103.EL(i386)
glibc-common-2.3.4-2.43(i386)
compat-glibc-2.3.2-95.30(i386)

For example, if you run the command on a 64-bit system, you should see something similar to the following:
glibc-common-2.3.4-2.43(x86_64)
glibc-devel-2.3.4-2.43(x86_64)
glibc-profile-2.3.4-2.43(x86_64)
glibc-headers-2.3.4-2.43(x86_64)
glibc-utils-2.3.4-2.43(x86_64)
glibc-2.3.4-2.43(x86_64)
 
And sysstat-5.0.5
 

Kernel Parameter Requirements


For installing an OMS or a Management Agent on Unix operating systems (32-bit or 64-bit), set the kernel.shmmax parameter to a value 1 byte less than 4 GB or 4294967295.
Oracle recommends this value to avoid lack of memory issues for other applications and to enable a complete and successful core file generation under any and all circumstances.
To verify the value assigned to kernel.shmmax parameter, run the following command:
cat /proc/sys/kernel/shmmax
To set the value for kernel.shmmax parameter, run the following command:
sysctl -w kernel.shmmax=<new value>
 
Reference from Oracle Document
 

unzip Issue

 
But I could not install it via runInstaller at all.
After some research there is a solution for this
 

EM Cloud Control 12c RunInstaller Command Fails Before Launching Installer GUI With java.lang.NullPointerException In oraInstall_xxx.err File [ID 1369904.1]
The "unzip" binary provided by Oracle is in fact not able to correctly unzip the provided zip files for the Cloud Control installation.
Another release of the unzip should be downloaded from here: https://updates.oracle.com/unzips/unzips.html
The following version is needed:
# LINUX Intel (32bit and 64bit - Large file support)
Once this utility has been downloaded, proceed as described below :
oracle@vmtestoraem12c:/u01/app/software/em12c/ [rdbms1120] gzip -d unzip60_lnx.Z
oracle@vmtestoraem12c:/u01/app/software/em12c/ [rdbms1120] chmod u+x unzip60_lnx
oracle@vmtestoraem12c:/u01/app/software/em12c/ [rdbms1120] ./unzip60_lnx em12_linux64_disk1of2    



Thanks to Yann Neuhaus, he recorded the detail of this.



Other notice


unzip the em12_linux64_disk1of2.zip & em12_linux64_disk2of2.zip into the same folder