I was a newbie with Virtualbox and Enteprise Manager 12C with OEL6 (64-bit) was quite a new combination, so what can go wrong…?

You could do the following:

  • read an article about installing OEL6 here or
  • read an article about installing software on Virtualbox here on oracle-base.com (excellent article, it’s about RAC on Virtualbox, but it gives you a pretty good idea of the possibilities of Virtualbox..) or
  • go for OEL5 and download the ‘devdays’ virtualbox (redhat 5) according these instructions or
  • read an article about installing   Grid Control 12 C at  ora600.be or at oracle-base.com .

But when you’re a bit pigheaded and just start to install,  here are a few challenges you may have to overcome…. The following is not a complete installation guide, merely some experiences 🙂 . My goal was to bump in a lot of misery, and at some points I achieved this I think (a new concept of working…):

  • Get a little familiar with the possibilities of VirtualBox, the most important, obvious part in the beginning: how to mount an iso-file (settings, choose an empty IDE controller, pick the cd/dvd symbol at the right edge)
  • Choose memory and storage wisely for Grid Control 12C. An amount of 4.5 GB memory and 40GB storage should be enough. Remember that Linux needs space too – in my case about 6 GB, performing a default ‘click’ install. 20GB is too small, trust me, I know (!).
  • After downloading OEL 6.1 from the software delivery cloud , Oracle database 11.2.0.1 from otn.oracle.com or above (11.2.0.2 / 11.2.0.3) from My Oracle Support, and Grid Control 12C  from otn.oracle.com the fun begins..
  • Some things about the database you have to install first: when you install the database fairly default (with no enterprise-manager stuff in it by the way!), some parameters should be adjusted:
    • 1 datafile must be set on ‘autoextend’.
    • processes > = 300  (greater or equal)
    • no use of memory_target
    • pga_aggregate_target > 1GB
    • session_cached_cursor >=300
    • job_que_processes >= 20
    • sga_target >=2 GB
    • shared_pool_size >= 600M
    • at least 3 redolog-files of 500M
  • Mount the OEL61- iso-file (settings, choose an empty IDE controller, pick the cd/dvd symbol at the right edge), start the VM, and install OEL6. Should be fairly straightforward.
  • Few things you may need the most at this point:
    • Vboxguestadditions. You will need this! This comes too with as an iso-file. Trying to install you may bump into some packages missing. The messages appearing are fairly evident, description of how to overcome this has been described by ‘oraclenerd‘.
    • Reading or wrestling with vboxguestadditons, you’ll notice that it’s more than convenient to have a network connection to Internet for Linux. In my case it didn’t work out of the box. Updated the firewall (off), checked SELinux setting (disabled), checked the Virtualbox Network Adapter (NAT) checked right netmask… Then I discovered that the network configuration GUI did not work that well (at least at my , so I manually checked and edited files like /etc/sysconfig/network, /etc/sysconfig/network-scripts/ifcg-eth0, /etc/hosts and more, and compared it with a virtualbox that worked: the earlier mentioned ‘devdays’ . Eventually, after editing the mac-address of my network-adapter (in Virtualbox —> settings —> network —–> network adapter 1 , advanced) , it worked suddenly.  Probably I did something wrong there. But: working!
    • While installing Oracle software (database, grid control) it’s very convenient to have a shared directory between your OEL6 – virtual environment, and the host, in my case Windows 7. Three things you need: vboxguestadditions, share a directory on windows 7, and a mount command in OEL6: ‘mount -t vboxsf <share-name> <mountpoint>’.
  • While you’ve got connection to the internet, don’t try to install the needed packes from the cd by manually type rpm-commands. There’s a dependency hell waiting. Just use the ‘yum install’. But for that, you need a repository. Do the following:

Oracle Linux 6

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
Enable the appropriate repository by editing the yum configuration file
Open the yum configuration file in a text editor
Locate the section in the file for the repository you plan to update from, e.g. [el4_u6_base]
Change enabled=0 to enabled=1
Begin using yum, for example:
yum list
yum install firefox

  • Installing packages in this way should be giving a whole lot more comfort, and when you forget a package to install, the installer will give you a warning during the installation. 1 Package in particular is a headache for the installer: glibc-devel-2.12-1.25.el6.i686.rpm. If you installed a newer one, and you’re sure it is there,  just ignore the warning:

Checking for make-3.81; found make-1:3.81-19.el6-x86_64.    Passed
Checking for binutils-2.17.50.0.6; found binutils-2.20.51.0.2-5.20.el6-x86_64.    Passed
Checking for gcc-4.1.1; found gcc-4.4.5-6.el6-x86_64.    Passed
Checking for libaio-0.3.106; found libaio-0.3.107-10.el6-x86_64.    Passed
Checking for glibc-common-2.3.4; found glibc-common-2.12-1.25.el6-x86_64.    Passed
Checking for libstdc++-4.1.1; found libstdc++-4.4.5-6.el6-x86_64.    Passed
Checking for sysstat-5.0.5; found sysstat-9.0.4-18.el6-x86_64.    Passed
Checking for glibc-devel-2.5-49-i386; Not found.    Failed <<<<
Checking for glibc-devel-2.5-49-x86_64; found glibc-devel-2.12-1.25.el6-x86_64.    Passed
Check complete. The overall result of this check is: Failed <<<<

  • Tested the so-called fix-scripts of the installer. Installed Linux, and started the Installer. The installer will give you a script to overcome some prerequisites but be aware this is not 100% idiot-proof. You have to edit a few files yourself.
  • Some things about the database you have to install first: when you install the database fairly default (with no enterprise-manager stuff in it by the way!), some parameters should be adjusted:
    • 1 datafile must be set on ‘autoextend’.
    • processes > = 300  (greater or equal)
    • no use of memory_target
    • pga_aggregate_target > 1GB
    • session_cached_cursor >=300
    • job_que_processes >= 20
    • sga_target >=2 GB
    • shared_pool_size >= 600M
    • at least 3 redolog-files of 500M
  • While installing Grid Control 12 you could be getting en error at 99% of your installation: ‘Webtier could not be started’ :-). This could be the problem that the there’s no hostname in /etc/sysconfig/network which must be the same name as in /etc/hosts.

My advise: prepare yourself, read the doc and the above mentioned links and the installation will be lot smoother than the above installation.

Somethings about de-installing:

  • De-installed everything but the database.I still expected that the installer deleted also the files. Unfortunately, you need to delete the files – and the temp directory manually before installing again.. And don’t forget to delete the so-called empty-homes in the installer (oms-directory in this case), otherwise it will be found in the inventory and marked as not empty.
  • You have to delete the SYSMAN , SYSMAN_DS schema, as well as the tablespace.