install oracle 11g in Ubuntu 9.04

4 Jan

1. ubuntu version ?
ubs@ubs-desktop:~$ sudo su – root
[sudo] password for ubs:
root@ubs-desktop:~# sudo lsb_release -a
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-3.1-ia32:cxx-3.1-noarch:cxx-3.2-ia32:cxx-3.2-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:graphics-3.1-ia32:graphics-3.1-noarch:graphics-3.2-ia32:graphics-3.2-noarch:qt4-3.1-ia32:qt4-3.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty

2. ubuntu update
root@ubs-desktop:~# apt-get update

3. Users / groups Oracle’s creation and some modification
root@ubs-desktop:~# mkdir -p /u01/app/oracle
root@ubs-desktop:~# addgroup oinstall
root@ubs-desktop:~# addgroup dba
root@ubs-desktop:~# addgroup nobody
root@ubs-desktop:~# useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle
root@ubs-desktop:~# usermod -g nobody nobody
root@ubs-desktop:~# mkdir /home/oracle
root@ubs-desktop:~# chown -R oracle:dba /home/oracle
root@ubs-desktop:~# chown -R oracle:oinstall /u01

4. Red Hat simulation
root@ubs-desktop:~# ln -s /usr/bin/awk /bin/awk
root@ubs-desktop:~# ln -s /usr/bin/rpm /bin/rpm
root@ubs-desktop:~# ln -s /usr/bin/basename /bin/basename

5. Modify /etc/sysctl.conf
root@ubs-desktop:~# vi /etc/sysctl.conf
fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144

6. Reload the config file:
root@ubs-desktop:~# sysctl -p
fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144

7. Modify /etc/security/limits.conf, adding these lines
root@ubs-desktop:~# nano /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535

8. Modify /etc/pam.d/login, adding these lines
root@ubs-desktop:~# nano /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so

9. download linux_11gR1_database.zip from otn and unzip
root@ubs-desktop:~# unzip linux_11gR1_database.zip -d /u01

10. edit profile
root@ubs-desktop:~# nano /etc/profile

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin

10. X-Server
root@ubs-desktop:~# exit
ubs@ubs-desktop:~$ whoami
ubs
ubs@ubs-desktop:~$ xhost +
access control disabled, clients can connect from any host

ubs@ubs-desktop:~$ sudo su – root
root@ubs-desktop:~# su – oracle
oracle@ubs-desktop:~$ DISPLAY=:0.0; export DISPLAY
oracle@ubs-desktop:~$ xclock
oracle@ubs-desktop:~$ whoami
oracle
oracle@ubs-desktop:~$ cd /u01/database/
oracle@ubs-desktop:/u01/database$ ./runInstaller -ignoreSysPrereqs

em02

JUAL ebook 10g Real Application Clusters on vmware DETAIL

12 Responses to “install oracle 11g in Ubuntu 9.04”

  1. agung January 21, 2010 at 7:19 am #

    great…………..job bro

  2. Encep Sunandar February 14, 2010 at 1:55 am #

    Boss, aku sedang melakukan instalasi oracle 11g rilis 2 pada Ubuntu 9.10 tapi ada trouble…. mohon bantuan

    aku telah mengikuti semua instruksi anda tapi untuk mengeksekusi ./runInstaller terjadi error seperti ini.
    [: 154: /media/Soft: unexpected operator
    ./runInstaller: 154: /media/Soft: not found

    spesifikasi komputer saya:
    AMD Athlon X2 4000
    ram 2 GB
    Os: Ubuntu 9.10

    mohon bantuannya secara rinci karena saya pengguna baru dalam ubuntu.
    Terimakasih….

  3. setijoagus February 15, 2010 at 1:55 am #

    1. ubuntunya 32 bit / 64 bit ?, oraclenya yang di download hrs bersesuaian lho.

    2. kernel parameternya sudah dijalankan ? langkah 5 & 6

  4. rifki February 25, 2010 at 6:53 am #

    mas mau tanya, sy juga nginstall di ubuntu 9.10 dengan oracle 11G release 2. Nah saya juga mengalami masalah yang sama. jadi kernelnya ketika di prequisite check failed. package2nya juga banyak yang failed seperti make-3.80. Apa harus diinstall dengan versi yang sama dengan yang tertera disitu?
    Maaf mas mengganggu soalnya lagi bingung banget nih. Oh iya klo nginstallnya di ubuntu 9.10 desktop ga papa kan?

  5. rifki February 25, 2010 at 6:54 am #

    oh iya sy sudah mendownload oracle 11g yang bersesuaian

  6. setijoagus March 1, 2010 at 8:06 am #

    he…he…
    kayaknya mmg sulit ya install oracle di ubuntu ?
    saran saya paling mantap jika install di redhat / centos, sesuai dengan distro yang disarankan oracle sendiri.

    tapi kalau masih pingin pakai ubuntu, package 2x memang harus lengkap seprti yang disyaratkan oracle, kl agak nekat jalankan

    ./runInstaller -ignoreSysPrereqs

  7. Xinez March 18, 2010 at 8:17 am #

    wah..
    spertinya ruwet tenan instal oracle nya
    hehe..

    di ubuntu 9.10 udah di tes blom gan??
    gw mau coba install soalnya

    • setijoagus March 19, 2010 at 2:13 am #

      semua yang saya tulis untuk intslasi / percobaan di blog ini adalah pengalaman pribadi dan tentunya bukan copas [he…he…], jadi semua sudah dicoba.

      tetapi seperti comment saya sebelumnya oracle mensyaratkan linux yang dipakai adalah :
      * Asianux 2 SP2
      * Asianux 3
      * Oracle Enterprise Linux 4
      * Oracle Enterprise Linux 5
      * Red Hat Enterprise Linux 4
      * Red Hat Enterprise Linux 5
      * SUSE Linux Enterprise Server 10

  8. ogex September 17, 2010 at 3:59 pm #

    kalo menghubungkan oracle ke php gimana ya mas ????

    • setijoagus September 20, 2010 at 2:07 am #

      waduh, aku nggak pernah mas, coba nanya lewat google

  9. Thenuno November 20, 2010 at 7:17 am #

    tapi ini cuma untuk testing ajakan ? belum untuk production…..

    • setijoagus November 20, 2010 at 7:23 am #

      karena sesuatu hal, dan terpaksa saya pernah menginstalkan perusahaan xyz digunakan untuk production sampai sekarang ok 2x saja

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: