Mencoba instalasi oraclexe di ubuntu 11.10 (oneric ocelot) · PDF fileMencoba instalasi...

download Mencoba instalasi oraclexe di ubuntu 11.10 (oneric ocelot) · PDF fileMencoba instalasi oraclexe di ubuntu 11.10 ... Install oracle software : ... Pada port 8080 ini tergantung port

If you can't read please download the document

Transcript of Mencoba instalasi oraclexe di ubuntu 11.10 (oneric ocelot) · PDF fileMencoba instalasi...

  • Mencoba ins ta la s i orac l exe di ubuntu 11.10 (oner ic oce lo t )

    1. Tambahakan oracle repository, dengan cara ketikkan perintah berikut :

    membuka terminal diubuntu atau ctrl-alt+t$ sudo gedit /etc/apt/sources.list

    ==>: Kemudian tambahkan repo dibawah ini :

    deb http://oss.oracle.com/debian unstable main non-free

    2. 2. Kemudian update :

    $ sudo apt-get update

    3. 3. Install oracle software :

    $ sudo apt-get install libaio$ sudo apt-get install oracle-xe-client$ sudo apt-get install oracle-xe$ sudo apt-get install oracle-xe-universal

    4. 4. Install paket Oracle Express

    $ sudo aptitude install oracle-xe oracle-xe-client

    5. 5. Konfigurasi buat setting password, port, dll

    $ sudo /etc/init.d/oracle-xe configure

    6. 6. Tambahkan Oracle gpg-public key untuk apt-key chain :

    $ wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt

    7. 7. Kemudian buat akses-ny masuk kbrowser :

    http://127.0.0.1:8080/apex

    Pada port 8080 ini tergantung port yang diinstall pada saat proses instalasi oracle

    selamat belajar DBMS Oracle from desabener.co.cc

    salam desa bener

    Kita khan udan selesai instal khan,ngopi dulu sambil makan sepotong roti bakar bekas dan

    eittt...terusin dulu nich masih ada tutornya lagi dibawahnya....istirahat dulu lach....lanjutin lagi nanti

    dan kasih ruang istirahat daya fikirnya dulu...hehehe...

    dalam penginstalan DBMS Oracle ini kadang kita pada saat proses instalasi mengalami kendala so

    what jangan bingung disini,admin telah cari-cari di mbah google dan menemukan tutorial dari mbah

    Oracle.com dalam forum oracle dan uraiannya copy pastenya dibawah ini

  • Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto

    Author: Dude

    Version: D

    Last modified: 14-Jan-2012

    You are welcome to add comments, but please do not discuss your installation issues in this

    thread. If you have a question about the instructions, please add a simple note to the link of

    your own thread. The instructions are the result of my own research and development. If you

    would like to use any of the information for your own blog or website, please include a link to

    this reference to include future changes.

    https://forums.oracle.com/forums/thread.jspa?threadID=2301639

    Purpose

    This document outlines instructions how to install Oracle XE under Ubuntu 11.10.

    Ubuntu or Debian based Linux is not on the list of supported operation systems according to the

    Oracle documentation at

    http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm. You may want to

    consider virtualization software like Oracle Virtualbox and install Oracle Enterprise Linux as a free

    and professional alternative to installing XE under Ubuntu. You can also download pre-build virtual

    machines that include Oracle XE. You can browse http://otn.oracle.com/community/developer-vm

    for more information.

    https://forums.oracle.com/forums/thread.jspa?threadID=2301639http://otn.oracle.com/community/developer-vmhttp://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm

  • Topics

    1) Install Linux Ubuntu

    2) Remote Terminal

    3) Install Additional Software

    4) Managing Swap Space

    5) Modify Kernel Parameters

    6) Oracle Home Directory

    ...a) Resize the Root Partition

    ...b) Setup External Storage

    7) ORA-00845: MEMORY_TARGET

    8) Installing Oracle 11gR2 Express Edition

    9) Post-Installation

    10) Tips and Troubleshooting

    ...a) Port 1521 appears to be in use by another application

    ...b) cannot touch `/var/lock/subsys/listener': No such file or directory

    ...c) ORA-00845: MEMORY_TARGET

    ...d) Apex ADMIN password

    ...e) SYS and SYSTEM password

    ...f) Uninstall Oracle 11g XE

    ...g) Reconfigure Oracle 11g XE

    ...h) Gnome Classic desktop

    ...i) Unix vi cursor keys

    ...j) Backup Database

  • 11) History

    12) References

    1) Install Linux Ubuntu

    The following assumes you have installed Ubuntu 11.10 Desktop Edition for AMD 64-bit, or

    upgraded from a previous version. Keep in mind that Oracle 11gR2 Express Edition is only

    available for 64-bit architecture. It is not necessarily a requirement, but I would not bother to install

    Oracle 11gR2 XE on a system with less than 2 GB of RAM installed. You can download Ubuntu for

    free at: http://www.ubuntu.com/download/ubuntu and install it using the default settings provided.

    You can apply the latest OS patch-sets by clicking the power button icon in the upper right hand

    corner of the screen and selecting "Updates available..."

    2) Remote Terminal

    You will need command line access to perform the installation tasks. Select the top "Dash Home"

    button of the Unity toolbar and enter the word "terminal", or use CTRL-ALT-t. If you prefer to open

    a remote terminal session use SSH. Ubuntu does not come with a secure shell login by default. To

    install it, use the following command:

    sudo apt-get install openssh-server

    You cannot login as root unless you set a root password using the "sudo passwd root" command.

    However, you can get root user access using the "sudo" command, which requires only to re-enter

    the password of your personal account. Access to "sudo" is controlled by the /etc/sudoers file.

    The best way to establish a remote command line session as root is to login with your personal

    account, e.g.: ssh [email protected], and then type "sudo su -" to become root, or use "sudo

    " to execute individual commands. If your account does not have "sudo" access you

    http://www.ubuntu.com/download/ubuntu

  • can login as root using "su - root", but will need to know the root password.

    3) Install Additional Software

    Oracle 11g Express Edition requires additional software that is not installed by default:

    sudo apt-get install alien libaio1 unixodbc

    4) Managing Swap Space

    Oracle demands that the minimum swap space for Oracle Database XE is 2 GB (2095100 KB) or

    twice the size of RAM, whichever is lesser. Enter the following shell command to verify your swap

    space:

    cat /proc/meminfo | grep -i swap

    SwapCached: 0 kBSwapTotal: 2095100 kBSwapFree: 2095100 kB

    You can increase available swap space by using a swap file as long as disk space permits. The

    advantage of a swap file versus a swap partition is flexible space management because you can add

    or delete swap space on demand as necessary. The following will create and enable an additional 1

    GB swap file at system startup, located in the /home directory:

    Login as root:

    sudo su -

    Enter the following commands:

    dd if=/dev/zero of=/home/swapfile bs=1024 count=1048576mkswap /home/swapfile

  • swapon /home/swapfileswapon -a

    Create a backup of the original "fstab" file and add the new swap file:

    cp /etc/fstab /etc/fstab.backup_`date +%N`echo '/home/swapfile swap swap defaults 0 0' >> /etc/fstab

    Exit from root and verify the new swap space:

    exitswapon -s

    Filename Type Size Used Priority/dev/sda5 partition 2095100 0 -1/home/swapfile file 1048572 0 -2

    Swap space is not a substitute for installed RAM. Swap space is a safeguard that allows the system

    to move idle processes to disk before the OOM killer will begin to terminate processes in order to

    free up enough real memory to keep the system operational. The general rule for sizing the swap

    space depends on the size of installed RAM. If your system has less then 4 GB of RAM the swap

    space should usually be at least twice this size. If you have more than 8 GB of RAM installed you

    may consider to use an equal size as swap space. The more RAM you have installed, the less likely

    you are going to run into memory starvation, and the less likely you are going to need swap space,

    unless you have a bad process.

    5) Modify Kernel Parameters

    Oracle 11gR2 Express Edition requires the following Kernel parameters. Enter the commands

    exactly as shown:

    Login as root:

    sudo su -

  • Cut & paste the following directly into a command shell (not a text editor):

    cat > /etc/sysctl.d/60-oracle.conf

  • 6.a) Resize the Root Partition

    Provided you have sufficient free disk space, you should be able to resize the root partition to create

    an extra ext3 filesystem. Considering the 11 GB user datafile limit of the Express Edition, 18 GB

    should be more than enough.

    You can use the free Gparted Live CD to shrink your startup volume. Gparted downloads are

    available at http://sourceforge.net/projects/gparted/files/gparted-live-stable. When burning the CD,

    pay attention to burn the raw .iso image and not the possibly "mounted" image. If you are using a

    virtual machine like Oracle Virtualbox, you can mount the .iso image directly. There are going to be

    a few prompts when the system starts from the CD, but you can press Return to accept the defaults.

    When the Gparted window appears:

    - Select your ext4 root partition, usually /dev/sda1- Select the "Resize/Move" button from the toolbar. - Enter 18000 into the "Free space following" field and press the Return key. Be careful not not change the start of the partition! - Click the "Resize/Move" of the dialog and then then the "Apply" toolbar button. The process may take several minutes - do not aban