High Availbility

OS & Virtualization

Tuesday, June 18, 2013

Oracle 11g R2 response file example

After installing the Operating System and configuring all necessary parameters, one has to install the Oracle software. It is usually a good idea to use a response file to do this.
There are a few reasons to use a response file:
  • The installation is reproducible (the most important point)
  • No X server is necessary when using a response file with the Oracle Universal Installer (OUI)
  • The installation is easily scriptable
  • Strictly enforcing the OFA or other policies on all hosts is much easier
So after extracting the archive with the software downloaded from the Oracle website, we usually find an example response file in the “response/” folder of the software package. So here is an example of a response file:

oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/home/oracle/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true


Note that this is a very minimalistic response file, where only the software is installed (no database is created). Please refer to the Oracle documentation and the response file that Oracle provides as part of their software delivery package.

To install the software, execute the runInstaller -silent -responseFile

More silent install
http://www.pythian.com/blog/oracle-silent-mode-part-110-installation-of-102-and-111-databases/

Tuesday, June 04, 2013

Howto Setup Yum repositories ISO CDROM

Q : How do you use yum to update / install packages from an ISO of CentOS / FC / RHEL CD?

Solution 1 : Use your DVD directly without creating any repo
  1. Mount the ISO file
    # mkdir /media/cdrom
    # mount /dev/sr0 /media/cdrom
  2. Create config file
    # vi /etc/yum.repos.d/iso.repo

    [dvd]
    baseurl=file:///media/cdrom
    enabled=1
    gpgcheck=0
  3. Run the command
    # yum install --enablerepo=dvd packagename
Solution 2 : Creation of yum repositories is handled by a separate tool called createrepo, which generates the necessary XML metadata. If you have a slow internet connection or collection of all downloaded ISO images, use this hack to install rpms from iso images

  1. Step # 1: Mount an ISO file
    # rpm -i createrepo*
    # mkdir /media/cdrom
    # mount /dev/sr0 /media/cdrom
  2. Step # 2: Create a repository
    # mkdir /tmp/repo
    # cd /mnt/iso
    # createrepo -o /tmp/repo .
  3. Step # 3: Create config file
    # vi /etc/yum.repos.d/iso.repo

    Append following text:
    [ISO Repository]
    baseurl=file:///media/cdrom
    enabled=1
Now use yum command to install packages from ISO images:
# yum install package-name