Oracle Database 11g Release 2 on Ubuntu 12.04 HOWTO

This HOWTO will guide you though installation of Oracle Database 11g Release 2 on Ubuntu 12.04.

Before start I will assume you have a clean Ubuntu Server 12.04 installed with minimal packages requirement. It is strongly recommend to install on a new host, as it will modify a lot of default settings ;-)

Install the base system

First of all you should install Ubuntu 12.04 with minimal packages, almost nothing else is required at the beginning.

After initial installation run the following command to upgrade your system as latest stable + some optional useful packages:

aptitude update && \
aptitude -y full-upgrade && \
tasksel install openssh-server && \
tasksel install server && \
tasksel install mail-server && \
aptitude -y install colordiff mlocate ntp pwgen rsync vim

In case you are NOT using remote X11 with SSH so local GUI is required, install additional packages as below:

aptitude -y install lxde-core xorg

Once everything get ready you may start the GUI and test with:

startx

Check your /etc/hostname and update as below:

localhost.localdomain

Check your /etc/hosts and update as below:

127.0.0.1       localhost.localdomain   localhost

Check your /etc/resolv.conf and update as below:

search localdomain

In case of using OpenStack VM, default search domain assigned by DHCP would be "novalocal"; therefore we need to update /etc/dhcp/dhclient.conf as below:

supersede domain-name "localdomain";
supersede domain-search "localdomain", "novalocal";

Then restart network by:

/etc/init.d/networking restart

Running /etc/init.d/hostname.sh (or simply reboot your Ubuntu), then test the hostname of system with:

hostname

Remeber to double check if time zone setup correctly:

dpkg-reconfigure tzdata

Ok up to this point your Ubuntu 12.04 should basically configure for installing Oracle 11gR2.

Check your hardware setup

First of all, you need to have AT LEAST 1GB of physical memory (I use 2GB here). Check it with:

grep MemTotal /proc/meminfo

On the other hand, it is suggest to have swap with 1.5 time of your physical memory, e.g. around 2GB. Check it with:

grep SwapTotal /proc/meminfo

In case I am using libvirt + KVM VM client, I don't hope to create swap partition by default or else if all VMs are running out of resourse they will all keep on swapping to harddisk and finally all gone...

Here I will create a temperate swap file and activate it during installation; once reboot it will gone automatically (or manually disable it with swapoff /tmp/swap):

dd if=/dev/zero of=/tmp/swap bs=1M count=4096
chmod 600 /tmp/swap
mkswap /tmp/swap
swapon /tmp/swap
grep SwapTotal /proc/meminfo

Shared memory is very important, too. Or else you may face the ORA-00845 error message. First check it with:

df -kh /dev/shm/

If you have less than 512MB (I will suggest for 1GB), edit your /etc/fstab and add/modify the following line:

tmpfs           /dev/shm        tmpfs   defaults,size=1024M    0       0

Then remount it and check the size once again:

mount -o remount /dev/shm
df -kh /dev/shm/

Install dependence packages

As I assume you have Ubuntu 12.04 installed correctly with X11, we just need to dig into dependence packages installation directly (in case of AMD64):

aptitude -y install alien binutils build-essential cpp-4.4 debhelper g++-4.4 gawk gcc-4.4 gcc-4.4-base gettext html2text ia32-libs intltool-debian ksh lesstif2 lib32bz2-dev lib32z1-dev libaio-dev libaio1 libbeecrypt7 libc6 libc6-dev libc6-dev-i386 libdb4.8 libelf-dev libelf1 libltdl-dev libltdl7 libmotif4 libodbcinstq4-1 libodbcinstq4-1:i386 libqt4-core libqt4-gui libsqlite3-0 libstdc++5 libstdc++6 libstdc++6-4.4-dev lsb lsb-core lsb-cxx lsb-desktop lsb-graphics lsb-qt4 make odbcinst pax po-debconf rpm rpm-common sysstat unixodbc unixodbc-dev unzip

System groups and users

Check your existing setup with:

grep oinstall /etc/group
grep dba /etc/group
grep nobody /etc/group
id oracle
id nobody

Most likely, you should run the following command for create the required system groups and users. Latest Ubuntu already come with user nobody so we don't need to retouch it:

addgroup --system oinstall
addgroup --system dba
useradd -r -g oinstall -G dba -m -s /bin/bash -d /var/lib/oracle oracle
passwd oracle

Configure kernel parameters

Check your existing setup with:

/sbin/sysctl -a | grep sem
/sbin/sysctl -a | grep shm
/sbin/sysctl -a | grep file-max
/sbin/sysctl -a | grep ip_local_port_range
/sbin/sysctl -a | grep rmem_default
/sbin/sysctl -a | grep rmem_max
/sbin/sysctl -a | grep wmem_default
/sbin/sysctl -a | grep wmem_max

Create /etc/sysctl.d/99-oracle.conf and add the following lines:

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586

Run the following command to reload these kernel parameters:

service procps start

Shell limits for oracle user

Create /etc/security/limits.d/oracle.conf as below:

oracle  soft    nproc   2047
oracle  hard    nproc   16384
oracle  soft    nofile  1024
oracle  hard    nofile  65536
oracle  soft    stack   10240

Check (or add) if the following line exits within /etc/pam.d/login:

session    required   pam_limits.so

Check (or add) if the following line exits within /etc/pam.d/su:

session    required   pam_limits.so

Create required directories

Create required directory and change permission:

rm -rf /u01 /u02
mkdir -p /u01/app/oracle
mkdir -p /u02/oradata
chown -R oracle:oinstall /u01 /u02
chmod -R 775 /u01 /u02

Configuring the oracle user's environment

Add following line to /var/lib/oracle/.profile (as i will create a AL32UTF8 database; change to US7ASCII if you will create ASCII database). This will also map Oracle's /bin to your $PATH so can run Oracle's binary directly when login as user oracle:

if [ $SHELL = "/bin/ksh" ]; then
  ulimit -p 16384
  ulimit -n 65536
else
  ulimit -u 16384 -n 65536
fi

umask 022
export ORACLE_HOSTNAME=localhost.localdomain
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=AL32UTF8
export NLS_LANG=.AL32UTF8
export ORACLE_UNQNAME=AL32UTF8
unset TNS_ADMIN
if [ -d "$ORACLE_HOME/bin" ]; then
    PATH="$ORACLE_HOME/bin:$PATH"
fi

Fake Oracle installer

As mentioned before , Ubuntu is not listed as Oracle officially support platform and so we need to "fake" it. Create symbolic links:

mkdir /usr/lib64
ln -s /etc /etc/rc.d
ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib64/
ln -s /usr/bin/awk /bin/awk
ln -s /usr/bin/basename /bin/basename
ln -s /usr/bin/rpm /bin/rpm
ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/
ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64/
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /lib64/
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib64/

Also mask ourself as RedHat:

echo 'Red Hat Linux release 5' > /etc/redhat-release

Last step before installation start

First of all, login with your new oracle user, with X enabled.

If you are using PuTTY + Xming, for sure that the X11 forward is enabled.

Copy the file linux_11gR1_database.zip to oracle's home directory, then unzip it:

cp linux.x64_11gR2_database_1of2.zip /var/lib/oracle
cp linux.x64_11gR2_database_2of2.zip /var/lib/oracle
cd /var/lib/oracle
unzip -q linux.x64_11gR2_database_1of2.zip
unzip -q linux.x64_11gR2_database_2of2.zip
chown -Rf oracle:oinstall /var/lib/oracle/

I will STRONGLY suggest for a complete reboot, and double-check ALL pre-installation BEFORE starting the next step.

Recommended installation procedures

First of all login with useraccount "oracle" and start the X11 with startx, then start the installer with:

cd /var/lib/oracle/database && ./runInstaller

Next we go though the installation (I don't have the "Oracle Support Password" so just skip in here):

In "Selection Installation Option", choose "Create and configure a database":

In "System Class", choose "Server Class" (we hope to give a full control during installation):

In "Node Selection", choose "Single instance database installation":

In "Select Install Type", choose "Advanced install":

In "Select Product Languages", I choose to install all available languages:

In "Select Database Edition", I choose "Enterprise Edition":

In "Specify Installation Location", it should default as below:

  • Oracle Base: /u01/app/oracle
  • Sofeware Location: /u01/app/oracle/product/11.2.0/dbhome_1

In "Create Inventory", it should default as below:

  • Inventory Directory: /u01/app/oraInventory
  • oraInventory Group Name: oinstall

In "Select Configure Type", choose "General Purpose / Transaction Processing":

(IMPORTANT!) In "Specify Database Identifiers", configure as below:

  • Global database name: AL32UTF8.localdomain
  • Oracle Service Identifier (SID): AL32UTF8

In "Specify Configuration Options", configure as below:

  • Memory -> Enable Automatic Memory Management: TRUE
  • Character sets: Use Unicode (AL32UTF8)

In "Specify Management Options", choose "Use Database Control for database management" but keep other else empty:

In "Specify Database Storage Options", choose "File System" where:

  • Specify database file location: /u02/oradata

In "Specify Recovery Options", choose "Do not enable automated backups":

In "Specify Schema Passwords", I am a bit lazy so choose "Use the same password for all accounts" (don't do this in production server!):

In "Privileged Operating System Groups", confirm as below:

  • Database Administrator (OSDBA) Group: dba
  • Database Operator (OSOPER) Group: oinstall

In "Preform Prerequisite Checks", just simply ignore all warning message (since we are using Debian but not Oracle officially supported OS):

So just confirm everything in "Summary":

And now let's go for a coffee break ;-)

Oh it should that almost done! Special note for Ubuntu 12.04: If you face error during installation so update as below:

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
sed -i 's/^\(\s*\$(MK_EMAGENT_NMECTL)\)\s*$/\1 -lnnz11/g' $ORACLE_HOME/sysman/lib/ins_emagent.mk
sed -i 's/^\(\$LD \$LD_RUNTIME\) \(\$LD_OPT\)/\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/bin/genorasdksh
sed -i 's/^\(\s*\)\(\$(OCRLIBS_DEFAULT)\)/\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/srvm/lib/ins_srvm.mk
sed -i 's/^\(TNSLSNR_LINKLINE.*\$(TNSLSNR_OFILES)\) \(\$(LINKTTLIBS)\)/\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/network/lib/env_network.mk
sed -i 's/^\(ORACLE_LINKLINE.*\$(ORACLE_LINKER)\) \(\$(PL_FLAGS)\)/\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/rdbms/lib/env_rdbms.mk

Then keep ongoing for installation ;-)

Now following the instructions and run the following commands with "root" user:

/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.2.0/dbhome_1/root.sh

Ok you get it!

Confirm with installation progress

In previous screen the installer mentioned that we can access "Enterprise Manager Database Control URL - (AL32UTF8)" from https://localhost.localdomain:1158/em, so now let's open the browser and test it with following account:

  • User Name: SYS
  • Password: your_secret_password
  • Connect As: SYSDBA

Once login it should show as below:

Autostart Oracle during system boot

There is almost for sure that you will hope to start your Oracle automatically during system boot. Even you may turn this feature off, but the init.d script is very useful, too.

First of all, specify which database instant will be started together with Oracle. Edit /etc/oratab as below:

AL32UTF8:/u01/app/oracle/product/11.2.0/dbhome_1:Y

Next, create init.d script as /etc/init.d/oracle:

#!/bin/bash
#
# Run-level Startup script for the Oracle Instance and Listener
#
### BEGIN INIT INFO
# Provides:          Oracle
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Startup/Shutdown Oracle listener and instance
### END INIT INFO

ORA_HOME="/u01/app/oracle/product/11.2.0/dbhome_1"
ORA_OWNR="oracle"

# if the executables do not exist -- display error

if [ ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME ]
then
        echo "Oracle startup: cannot start"
        exit 1
fi

# depending on parameter -- startup, shutdown, restart
# of the instance and listener or usage display

case "$1" in
        start)
                # Oracle listener and instance startup
                echo -n "Starting Oracle: "
                su - $ORA_OWNR -c "$ORA_HOME/bin/dbstart $ORA_HOME"
                su - $ORA_OWNR -c "$ORA_HOME/bin/lsnrctl start"

                #Optional : for Enterprise Manager software only
                su - $ORA_OWNR -c "$ORA_HOME/bin/emctl start dbconsole"

                touch /var/lock/oracle
                echo "OK"
                ;;
        stop)
                # Oracle listener and instance shutdown
                echo -n "Shutdown Oracle: "

                #Optional : for Enterprise Manager software only
                su - $ORA_OWNR -c "$ORA_HOME/bin/emctl stop dbconsole"

                su - $ORA_OWNR -c "$ORA_HOME/bin/lsnrctl stop"
                su - $ORA_OWNR -c "$ORA_HOME/bin/dbshut $ORA_HOME"
                rm -f /var/lock/oracle
                echo "OK"
                ;;
        reload|restart)
                $0 stop
                $0 start
                ;;
        *)
                echo "Usage: $0 start|stop|restart|reload"
                exit 1
esac
exit 0

Permission is very important, too:

chmod 755 /etc/init.d/oracle

Finally, install the script so Oracle will start during system bootup:

update-rc.d-insserv oracle defaults 99 01

NOTE: You may find the following error message during /etc/init.d/oracle/stop:

Shutdown Oracle: ulimit: 25: bad number

You can then update /u01/app/oracle/product/11.2.0/dbhome_1/bin/emctl with #!/bin/bash to solve the problem:

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
sed -i 's/^#!\/bin\/sh -f\s*/#!\/bin\/bash -f/g' $ORACLE_HOME/bin/emctl

References

  • http://lostinmac.com/2012/01/29/installtion-doracle-11gr2-sur-ubunutu-11-10/
  • https://forums.oracle.com/forums/thread.jspa?threadID=2301639
  • https://forums.oracle.com/forums/thread.jspa?threadID=697814

Comments

admin's picture

Thanks a lot,
Just installed oracle on Ubuntu 12.04 following your instructions.
Kudos to you for a really great resource. Each and every instruction is complete and precise.

Thanks again,
Sohel

admin's picture

Thank you.
It helps me a lot.

admin's picture

Just used to install Oracle 11.2.0.3 on Ubuntu 12.04, and everything is working nicely :-)
All in your guide is very well done, expecially your last note on how to correct errors during linking phase.
Best regards

admin's picture

i have this problem
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n]

admin's picture

well done Edison, your post helped a lot.

Thanks,
Mehrdad

admin's picture

I installed database software only. After that using dbca command to create the database. While creating i'm getting the error " Tns lost contact". Then i checked the lsnrctl. It is not went into the "lsnrctl>" prompt. how to check the listener is working or not?

admin's picture

Thanks you for your instructions.

admin's picture

can you show 32b installation please

admin's picture

Hi! I am having some problems with installing Oracle database 11g r2 in Ubuntu 12.04 (32-bit)

I tried your first code without using sudo:
aptitude update && \
aptitude -y full-upgrade && \
tasksel install openssh-server && \
tasksel install server && \
tasksel install mail-server && \
tasksel install ubuntu-desktop && \
aptitude -y install colordiff mlocate ntp pwgen rsync vim

It returned a message saying:
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

so I used a sudo su command and then I tried your first code again, the output is:

No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

xserver-xorg install
tasksel: aptitude failed (100)

What should I do?

admin's picture

I run into "ORA-00845: MEMORY_TARGET not supported" using 16Gb server (8Gb shared) and found alternate solution by setting up this script and run as first at startup

cat > /etc/init.d/oracle-shm <<-EOF
#! /bin/sh
# /etc/init.d/oracle-shm
#
#
case "\$1" in
start)
echo "Starting script /etc/init.d/oracle-shm"
# Run only once at system startup
if [ -e /dev/shm/.oracle-shm ]; then
echo "/dev/shm is already mounted, nothing to do"
else
rm -f /dev/shm
mkdir /dev/shm
mount --move /run/shm /dev/shm
mount -B /dev/shm /run/shm
touch /dev/shm/.oracle-shm
fi
;;
stop)
echo "Stopping script /etc/init.d/oracle-shm"
echo "Nothing to do"
;;
*)
echo "Usage: /etc/init.d/oracle-shm {start|stop}"
exit 1
;;
esac
#
### BEGIN INIT INFO
# Provides: oracle-shm
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Bind /run/shm to /dev/shm at system startup.
# Description: Fix to allow Oracle 11g use AMM.
### END INIT INFO
EOF

Install the oracle-shm init script:

chmod 755 /etc/init.d/oracle-shm
update-rc.d oracle-shm defaults 01 99

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

admin's picture

i have te next problem , i am in a terminal window

oracle@localhost:~/database$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 3435 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2706 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] y

>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-06-08_10-38-53PM. Please wait ...oracle@localhost:~/database$ No protocol specified
No protocol specified
Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)

oracle@localhost:~/database$ xhost + dimitruss
No protocol specified
No protocol specified
xhost: unable to open display ":0"
oracle@localhost:~/database$

Amien Hanantio's picture

hello, i tried to install oracle 11gR2 on my ubuntu 12.04(running on vmware 8, my prime OS is Windows 7)
and i've got the same error, again and again. how could i fix it?

can anyone help
my gmail : amienhanantio@gmail.com

admin's picture

First, excellent guide. But I have a problem that I can not solve, this is the point 11, after the judgment:

cd / var / lib / oracle / database &&. / runInstaller

Always get the same error, and I can not solve:

/ var / lib / oracle / database / install / .oui: 2: / var / lib / oracle / database / install / .oui: Syntax error: “)” unexpected

I hope your help, thank you very much

Oscar's picture

error de sintaxis
cd / var / lib / oracle / database && /.runInstaller falto el punto...

admin's picture

This guide is just what I needed, stellar piece of work!

admin's picture

I got the "ORA-00845: MEMORY_TARGET not supported" too, did what Lorenzo says but nothing...

$grep SwapTotal /proc/meminfo
SwapTotal: 8364028 kB

$df -kh /dev/shm/
none 3,9G 152K 3,9G 1% /run/shm

I got 8gb physical...
Any sugests please?
THX

admin's picture

Thanks for the excellent guide, I did not expect to get Oracle 11g work on ubuntu as smoothly!

As I use a server environment, I didn't install ubuntu-desktop, but used ssh x forwarding as follows.
I use a root password, I dont know if the Xauthority trick works with sudo. Also make sure any x client is installed before - if you don't need desktop, you can simply try [apt-get install x11-apps].

ssh -X loginuser@server
su -
cp ~loginuser/.Xauthority /root/
cp ~loginuser/.Xauthority ~oracle/
chown oracle ~oracle/.Xauthority
su - oracle

And then runInstaller opens a window on your remote machine

admin's picture

A terrific guide for sure. For those of us that need a more minimalistic installation:
1. Install ubuntu 12.04 server 64 bit minimum install.
The only package selected should be OpenSSH

2. Instead of invoking all this "aptitude update .... " thing do the following:
apt-get install make rpm libc6 libstdc++5
apt-get install lsb-cxx
apt-get install build-essential
apt-get install libaio1
apt-get install libaio-dev
apt-get install unixODBC
apt-get install unixODBC-dev
apt-get install pdksh
apt-get install expat
apt-get install sysstat
apt-get install libelf-dev
apt-get install elfutils
apt-get install pmount
apt-get install apache2

2. To install make SSH session from another machine that has Mac OS X 10.6+ or a desktop linux installation making sure you tunnel the X display
ssh -X oracle@[your_to_be_oracle_server_ip]

3. Ignore the complain about 255 colors and you will have a nice remote X11 session.

Everything else in this guide is a top notch.

admin's picture

I Have stucked on below error :-
:light main process 942 terminated with status 127"

Please help.

admin's picture

Hi,

Thanks for this detailed instructions.!
I have problems starting my emctl
my SID is ORDLDEV and in the instructions above SID is AL32UTF8
However my script in /etc/init.d/oracle throws an error:

OC4J Configuration issue. /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_AL32UTF8 not found.

I have the dir : /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_orcldev

could you please help me out.

Thanks in advance!!

admin's picture

I have installed Ubuntu 12.04 64-bit, and found your pam_limits.so path to be incorrect.
you had:
session required /lib/security/pam_limits.so

on my PC it is:
/lib/x86_64-linux-gnu/security/pam_limits.so

It can always be verified by:
sudo find /lib -name pam_limits.so -exec ls -l {} \;

admin's picture

i have done all the pre-installation steps as mentioned, but whenever i am trying to copy the zip file into the oracle folder, an error message is displayed "cp: cannot stat 'linux_11gR2_database_1of2.zip': No such file or directory". Plz help.

admin's picture

dude you are awesome! you made installing oracle 11g a walk in the park

thanks!

admin's picture

Thank's all work fine.

Good jOb about clarity of these informations.

thank's

admin's picture

Thanks a lot for the guide Edison! It was very helpful. I installed on top of full-blown Ubuntu 12.04 desktop without problems. My purpose is not to run a database but to just extract some data from an existing Oracle export file.

By the way, if one gets the display problem in installation ("Check if the DISPLAY variable is set. Failed"), one can use 'sux':
apt-get install sux
sux root
sux oracle
./runInstaller

admin's picture

Thanks a lot for this guide. works great on a Debian wheezy 64bits :)

admin's picture

Thank you very much for this tutorial with which i had finally installed oralce 11G on Ubuntu

I

admin's picture

Hi, cool Tuturial

on Lubuntu I hat to add oracle to the xhost like that:

xhost + SI:localuser:oracle

No protocol specified
Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164
from:

https://forums.oracle.com/forums/thread.jspa?threadID=569326&start=15&ts...

admin's picture

First, excellent guide. But I have a problem that I can not solve, this is the point 11, after the judgment:

cd / var / lib / oracle / database &&. / runInstaller

Always get the same error, and I can not solve:

/ var / lib / oracle / database / install / .oui: 2: / var / lib / oracle / database / install / .oui: Syntax error: “)” unexpected

Can some one help

hswong3i's picture

The unzip of file may be error, which may due to:
1. download file is not complete
2. unzip process not complete successfully

Long story short, please check with file MD5 after download ;-)

sunil Poddar's picture

getting error-ORA-12547: TNS:lost contact.so

Vlado Saivc's picture

I installed Oracle 11 g R2 on Ubuntu 12.0.4 and everything works as it should. However, if the computer is not in use for more than 20-minutes, then no longer possible to access the database via a browser, or from the local computers and even over the network and the computer shows that the database is booted. Does anyone might know what the problem is.

Ravi Reddy's picture

What is the meaning of this command "update-rc.d-insserv oracle defaults 99 01". This probably took away most of my time.

jcmartinez's picture

[20802] Network Configuration Manager failed
I get this error message when installation progress achieve 95% in a clean ubuntu 12.04 installation. I don't know how to solve it. ¿Anyone got this error?

hswong3i's picture

Are you using Ubuntu Desktop rather than Server version? If so by default Ubuntu with install Network Manager which may case the problem. In Oracle installation, we usually assume a static fixed IP, so we should set it up manually.

Add new comment

Restricted HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <h4> <h5> <h6>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • HTML tags will be transformed to conform to HTML standards.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.