Installing Oracle 11gR2 Enterprise Edition on Ubuntu 10.04 (Lucid Lynx)

Posted in: Technical Track

I recently reformatted my laptop with the latest Ubuntu LTS release, 10.04, aka Lucid Lynx. Since I like to have a native client installation as well as a portable sandbox server, I decided to install the latest version of Oracle EE, 11.2.0.1.

Rather than re-invent the wheel, I’m going to direct you to the previous Oracle-on-Ubuntu post by my colleague Augusto Bott. Many of the directions there hold true here (even with 32-bit vs 64-bit), with a few exceptions.

Download the Software
First and foremost, download the 32-or-64-bit installer files (there are 2 of them) from OTN.

Installing Pre-requisite Packages
Install these software packages on your Ubuntu 10.04 system:

$ sudo apt-get install unzip build-essential x11-utils rpm ksh lsb-rpm libaio1

Ubuntu 10.04 comes with libstdc++6 installed. However, Oracle 11gR2 requires libstdc++5. If you do not install libstdc++5, you will see errors as described in this OTN thread. The fix, as described in that thread, is to download and manually shoehorn the libstdc++5 library files onto Ubuntu 10.04:

$ wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_amd64.deb
$ dpkg-deb -x libstdc++5_3.3.6-17ubuntu1_amd64.deb ia64-libs
$ sudo cp ia64-libs/usr/lib/libstdc++.so.5.0.7 /usr/lib64/
$ cd /usr/lib64/
$ sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5

$ wget http://security.ubuntu.com/ubuntu/pool/universe/i/ia32-libs/ia32-libs_2.7ubuntu6.1_amd64.deb
$ dpkg-deb -x ia32-libs_2.7ubuntu6.1_amd64.deb ia32-libs
$ sudo cp ia32-libs/usr/lib32/libstdc++.so.5.0.7 /usr/lib32/
$ cd /usr/lib32
$ sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5

Now we’re ready to move on.

Create User and Groups
First create the oinstall and dba groups:

$ sudo su -
# addgroup oinstall
# addgroup dba

Then create the oracle user and assign it to those groups:

# useradd -g oinstall -G dba -d /home/oracle -s /bin/bash oracle
# passwd oracle
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
# mkdir /home/oracle
# chown -R oracle:dba /home/oracle

Now we create some symbolic links to give the Ubuntu system a more “Red Hat-ish layout,” as Augusto put it:

# ln -s /usr/bin/awk /bin/awk
# ln -s /usr/bin/rpm /bin/rpm
# ln -s /usr/bin/basename /bin/basename
# mkdir /etc/rc.d
# for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done
# mkdir -p /u01/app/oracle
# chown -R oracle:dba /u01

Then we update some sysctl parameters by editing /etc/sysctl.conf. It is wisest to backup this file first and then add these lines to the end of /etc/sysctl.conf:

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

Note that these values are different from what was needed in 11gR1.

Now we update some limits for the oracle software owner by adding these lines to the end of /etc/security/limits.conf:

oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535

Again, it is best to backup the file first.

Now we activate the new settings from /etc/sysctl.conf with this command:

# sysctl -p

You should see the new settings in the output of that command.

Unpack and Install the Software
From here we go into the directory containing our two 11gR2 database zip files. I’m using the 64-bit edition, so my files are named linux.x64_11gR2_databaseXof2.zip, where X is 1 or 2. I unzip both of these files, which creates a “database” subdirectory:

$ unzip linux.x64_11gR2_database_1of2.zip
$ unzip linux.x64_11gR2_database_2of2.zip

Each of these commands will produce a large volume of output to the terminal as it lists each file being unpacked. Once this is done, your directory should look something like this:

$ ls -lh
total 2.2G
drwxr-xr-x 8 seiler seiler 4.0K 2009-08-20 14:34 database
-rw-r--r-- 1 seiler seiler 1.2G 2010-03-09 11:33 linux.x64_11gR2_database_1of2.zip
-rw-r--r-- 1 seiler seiler 1.1G 2010-03-09 12:38 linux.x64_11gR2_database_2of2.zip

Now you simply cd into the database directory and run the runInstaller program:

$ cd database
$ ./runInstaller

This will launch the Oracle Universal Installer, or OUI, program. The rest is pretty straight forward. Since this is just a sandbox, I chose not to provide any email info and declined to receive updates. I chose to first install the software only, which went perfectly well. OUI will complain about missing packages, since it is checking for RPMs. We can safely ignore these and proceed with installation.

Once installation is done I set these variables in my bash environment:

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
export EDITOR=/usr/bin/vi

Then some quick tests to verify installation:

$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Thu Jun 10 23:46:42 2010

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> quit
$ /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch lsinventory
Invoking OPatch 11.1.0.6.6

Oracle Interim Patch Installer version 11.1.0.6.6
Copyright (c) 2009, Oracle Corporation.  All rights reserved.

Oracle Home       : /u01/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 11.1.0.6.6
OUI version       : 11.2.0.1.0
OUI location      : /u01/app/oracle/product/11.2.0/dbhome_1/oui
Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2010-06-10_23-46-53PM.log

Patch history file: /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch_history.txt

Lsinventory Output file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2010-06-10_23-46-53PM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle Database 11g                                                  11.2.0.1.0
There are 1 products installed in this Oracle Home.

There are no Interim patches installed in this Oracle Home.

--------------------------------------------------------------------------------

OPatch succeeded.

Everything looks hunky-dory. Let’s create an instance.

I launched dbca to create an Oracle 11gR2 instance. The one problem I encountered here was that, at the end of dbca prompts, the “Confirmation” dialog window was blank. Other blog posts on the internet suggested blindly clicking around until you magically hit the “OK” button, but more often than not I would hit the “Cancel” button. Turns out this is a not-so-uncommon problem with Java Swing and Gnome’s visual effects. The solution for Gnome users is to disable Visual Effects in the Appearance preferences before launching dbca. If you are using a lightweight desktop environment such as LXDE, you shouldn’t have this problem.

And that’s that. The rest is nothing new to those who have done installations before. You can optionally configure TNS names or Listener with the netca tool, or log into your new instance and enjoy.

Special thanks to Augusto Bott for not only authoring the previous Oracle-on-Ubuntu articles but also for suggesting the Gnome Visual Effects conflict!

Interested in working with Don? Schedule a tech call.

About the Author

Oracle database administrator for The Pythian Group, headquartered in Ottawa, Ontario, Canada. I am located in Manitowoc, Wisconsin, USA.OCP 10gR2 DBA

74 Comments. Leave new

I did not reinstall oracle when I install the OS (tried to upgrade first then gave up and installed again) but relinked ORacle and it worked fine so far apart from some strange i/o caused by ext4 and memory issues (free buffer)

for ext4 issue I followed this and suggest everybody who wants to use ext4 with oracle

http://oracleandy.wordpress.com/2010/05/19/oracle-on-ext4-warning/

still having interesting free buffer problem though. (maybe I should send you a mail for you to test if you will see the same issue on your system)

By the way thanks both of you again for disabling visual effect trick.

Reply
Installing Oracle 11gR2 Enterprise Edition on Ubuntu 10.04 (Lucid Lynx) | Ubuntu-News - Your one stop for news about Ubuntu
June 13, 2010 9:13 am

[…] I recently reformatted my laptop with the latest Ubuntu LTS release, 10.04, aka Lucid Lynx. Since I like to have a native client installation as well as a portable sandbox server, I decided to install the latest version of Oracle EE, 11.2.0.1. More here […]

Reply

Could even install Oracle Applications 12.1.1 on Ubuntu 10.04 using these instructions (little adjustments here and there, and a little additional stuff). Much appreciated

Reply

Error in invoking target ‘install’ of makefile ‘/oracle/10g/ctx/lib/ins_ctx.mk’…. am a newbie in ubuntu…any recommendation?

Reply

Alex, seems like you missed the section about libstdc++5 libs.

Reply
Installing Oracle 11gR2 Enterprise Edition on Ubuntu 10.04 (Lucid Lynx) « die Seilerwerks
June 30, 2010 3:38 pm

[…] leave a comment » Note: This post originally appeared on The Pythian Group blog. […]

Reply

Thanks for an excellent description which worked wonderfully.

Being a novice I ran across these two issues which may be evident to a more experienced user/related to some mistake on my part:
1) The password in the useradd statement used to create the oracle user must be in _encrypted_ format. I found it easier to use the passwd command to set the password.
2) From “Unpack and Install the Software” on I had to run as user oracle and because I failed to provide oracle with sudo capabilities I had to switch to a sudo-capable user when the installation required root privilege.
Everything else went just as described :-)

Reply

has anyone tried compiling c++ code after installing using this tutorial ?

I get the error

`cat /u01/app/oracle/product/11.2.0/dbhome_1/lib/sysliblist` -ldl -lm
/usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc++.so: undefined reference to `__stack_chk_fail@GLIBC_2.4′
collect2: ld returned 1 exit status

and when checking /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc++.so, I find it is a symb link pointing to libstdc++.so.6

presumably it need needs to be referencing libstdc++.so.5 ?

Reply

I ran runInstaller as oracle user but it is giving me following error:

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

Checking Temp space: must be greater than 80 MB. Actual 4817 MB Passed
Checking swap space: must be greater than 150 MB. Actual 1951 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] n

User Selected: No

Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2010-07-20_11-43-55PM/installActions2010-07-20_11-43-55PM.log

Can someone help?? Thanks in advance

Reply

When I tried ignoring the errors I got these errors:

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

Checking Temp space: must be greater than 80 MB. Actual 4523 MB Passed
Checking swap space: must be greater than 150 MB. Actual 1951 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 <<<>> Ignoring required pre-requisite failures. Continuing…
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-07-20_11-52-03PM. Please wait …oracle@Blackpearl:~/database$ 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.(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.(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@Blackpearl:~/database$

Reply
Michiel Weggen
July 23, 2010 4:51 am

do a “xhost +” before you su – oracle, to allow the oracle use to connect to the x server

Reply
Javier Alcala
July 24, 2010 9:40 am

Great post!!! Thank you very much. With your information I have installed oracle in my lucid lynx.

Reply

This was a great post, thank you very much.

One question; I haven’t wanted to install a starter database in a long time, but this time I did. However, I didn’t select the option when I first installed. How can I create the starter DB after the fact? Do the scripts reside on the installation media somewhere? Googling isn’t helping much here.

Reply

Ah…nevermind. Forgot about the “sample schema” option in DBCA. Feel like a n00b now.

Reply

Oh, and @Tushar, as I found elsewhere earlier today: you can also install “sux” and use that in place of “su.” It passes the user permission to use the X session when it switches.

Reply

Thanks for the great write up. I installed 11gR2 on Lucid without any hitch.

Pardon me though, I am a bit of a newbie to both oracle and Linux. After the whole installation (I installed the sample schema during installation process), how do I achieve the following:

1. Start the listener and register the database, orcl, against it.
2. Do I have to manually start the DB everytime I boot up?

Thanks.

Reply

Hi all,

I am new to Ubuntu and I just installed 10.04 and tried to install oracle 11g in this PC by following instructions on this page. Everything works fine until I got to the step “Prerequisite Checks” I got Run Level check failed. Current it is 2 but it need to be 3,5. Could somebody help me on this? I searched on the web and tried to use command “telinit” to change it to 3 and reboot. But when I ran the oracle install again it still says Run Level 2. Thank you very much for your help!

Reply

Hi Shirley,

Why did you reboot? I faced the same problem, I used telinit to change my runlevel to 3 and started the installer again.
This time, the failure was gone.

Reply

Wonderful Explanation
But with me at the end of installing
The Oracle net configuration Assistant Failed

Reply

Just finished my installation… Ubuntu 10.04 64bit, Oracle 11gR2 in a VirtualBox vm on a Mac OSX host. Excellent write up! thx!

Reply

I spend a lot of time with this and could not get it to work in Ubuntu, problems all over the place.

Tried it with CentOS and worked first time with no problems.

I guess the story is that Ubuntu is basically a desktop system.

Oh Well.

Reply

Does the OUI cleanly uninstall on Ubuntu 10.04?

Reply

I followed this blog entry and had smooth sailing.

That is until I tried dbca:

$ dbca
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xb785a6f3, pid=5953, tid=3077314240
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [ld-linux.so.2+0xd6f3]

I posted some details here:

http://forums.oracle.com/forums/thread.jspa?threadID=1077139

I am searching from clues…

Reply

Oops wrong OTN thread.

I posted the details here:

http://forums.oracle.com/forums/thread.jspa?threadID=1114741

Reply

Hi,

Do you know the reference for the installation of Oracle client 11gR2 32 bit on Ubuntu 10.04 64 bit? It is the only way to have client libraries for a 32 bit application and starting with 11gR2 Oracle supports 32 bit software to be installed on 64 bit OS.

During this installation I have a few errors during the linking phase which are a result of incompatible libraries. Of course the compatible ones are present on my system, but in the lib32 directory which is not searched during installation process. Current workaround: install client 11gR1 64 bit that includes 32 bit libraries.

Best regards.

Reply

I come chinese from chinese.It’ very diffcult for me to install oracle 11g r2 on the ubuntu 10.04,I try again and again but ending a failure.you remind me of the importance of the libstdc++5.but I don’t know why it’s so difficult to install oracle on ubuntu .think you!

Reply

Hi,
when i give sqlplus after installing . it asks for username and password..
Can any one please give username and password.

Thanks in advance.

Reply

hi,
when i give sqlplus /nolog ,SQL> appears..but when i give any create table command, it shows error message of “Not Connected” ..

Please help.. Thanks in advance…

Reply

I followed all the steps, including the steps for libstdc++ libraries, but still Oracle installer displayed error as mentioned in the oracle forum. I decided to ignore it and continued the installation. Voila..everything just went fine and I am using the database now. I used the 64 bit of Oracle 11gR2, Ubuntu 64 bit 10.10. I also installed Oracle Fusion MW 11g R1.

Reply

Thank you so very much for posting this walkthrough!

I encountered an error as the installer was copying files:

File not found
/oracle/app/product/11.2.0/dbhome_1/owb/external/oc4j_applications/applications/WFMLRSVCApp.ear

Any ideas why this is happening?

Reply

I have pored through the log files, and can’t find any evidence of what would produce the above error.

My system config:
Ubuntu 10.04
kernel 2.6.32-25-generic
GNOME 2.30.2
installing Oracle 11gR2 database (32 bit)

Any help would be appreciated.
Thanks!

Reply

I m not able to configure getting below error msg-
[INS-32012] Unable to create directory.
there is enough space and permission also R/W for the directory “oradata”
anurag@anurag-laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda8 27G 9.5G 16G 38% /
none 1.9G 336K 1.9G 1% /dev
none 1.9G 184K 1.9G 1% /dev/shm
none 1.9G 88K 1.9G 1% /var/run
none 1.9G 0 1.9G 0% /var/lock
none 1.9G 0 1.9G 0% /lib/init/rw
anurag@anurag-laptop:~$

Reply

I do have the same problem, no clue how to solve it

Reply

These instructions worked perfectly for me, to install Oracle 11R2 on Ubuntu server 10.10 x86_64.

Thank you very much for this post

Roland

Reply

Wonderful!
It works!
Perfect guru DBA!
Perfect!

Thanks a lot!!!!!!!!!

Reply

I am an extreme ubuntu newbie, and when I got to the following step (on 10.10), I got a permission problem. Any tips?

wget http://security.ubuntu.com/ubuntu/pool/universe/i/ia32-libs/ia32-libs_2.7ubuntu6.1_amd64.deb

Cannot write to `ia32-libs_2.7ubuntu6.1_amd64.deb’ (Permission denied).

Reply

try to run wget command under sudo command

Reply

I am installing on a 32 bit machine. The fix for libstdc++5 seems to be for 64 bit.

Does anyone know the format of the below commands for 32 bit and do I need to do both :-

wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_amd64.deb
02 $ dpkg-deb -x libstdc++5_3.3.6-17ubuntu1_amd64.deb ia64-libs
03 $ sudo cp ia64-libs/usr/lib/libstdc++.so.5.0.7 /usr/lib64/
04 $ cd /usr/lib64/
05 $ sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5
06
07 $ wget http://security.ubuntu.com/ubuntu/pool/universe/i/ia32-libs/ia32-libs_2.7ubuntu6.1_amd64.deb
08 $ dpkg-deb -x ia32-libs_2.7ubuntu6.1_amd64.deb ia32-libs
09 $ sudo cp ia32-libs/usr/lib32/libstdc++.so.5.0.7 /usr/lib32/
10 $ cd /usr/lib32
11 $ sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5

I did find this (below) link which gives the syntax for 32 bit for the first libstdc++5 fix. That leaves the second one to figure out :-

http://forums.oracle.com/forums/thread.jspa?threadID=1077139&tstart=0

http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb

dpkg-deb -x libstdc++5_3.3.6-17ubuntu1_i386.deb ia-libs

cp ia-libs/usr/lib/libstdc++.so.5.0.7 /usr/lib

cd /usr/lib

ln -sf libstdc++.so.5.0.7 libstdc++.so.5

Thanks

Reply
M.Maghiz Mannan
December 26, 2010 5:14 am

thank you very much. its very useful for oracle installation.but i have a doubt for what purpose create another user and user group .i thought no need to create another user and user group to installation oracle.

Reply

Hello,

really good tutorial. I installed Oracle 11gR2 without any problems on Ubuntu 10.10 Maverick. Just 2 issues remains, but these are not conditions for running the database:
1.) The login page to Enterprise manager is blank. The site is there, but blank, I already tried to find something at ORA portal, but still without success.
2.) There remains some empty libraries in $ORACLE_HOME/lib directory. I think, I could recreate manually symbolic links:
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefsql.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmevq.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmadm.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefut.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefud.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefsqlt.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmeoci.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefos.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmevc.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmevsp.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmalk.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefvr.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmcfhc.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefport.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefpfa.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmastk.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmemso.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmadbg.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefojmx.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefw.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmasf.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefdms.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmcfsga.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmefsp.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: Soubor /oracle/db/11g/lib/libnmarl.so.0 je prázdný, nezkontrolováno.
/sbin/ldconfig.real: /oracle/db/11g/lib/libexpat.so.1 není symbolický odkaz

These are issues which don’t prevernt Oracle database from running, just in case someone also experienced this, let me know.

Best regards,

Ladislav Jech

Reply

Fantastic, worked like a charm. Thanks for the great tutorial!

Reply

I ran into this http://forums.oracle.com/forums/thread.jspa?threadID=1115155&tstart=0
I’m going to follow it.
I got the same error as Scott :(
“Cannot write to `ia32-libs_2.7ubuntu6.1_amd64.deb’ (Permission denied).”

Reply

well this is just about permissions, just run wget command with in a sudo way>
$#sudo wget http://….etc.

Reply

I was able to get the installation to work just fine using Parallels for my VM on OS X.6, Ubuntu 10.04, and Oracle 11G R2 EE. Other than a couple configurations issue like not being able to use emctl it works fantastically. The EM works just fine on the web as well . . .

Reply
OBIEE 11g on CentOS 5.5 – the install from the VirtualBox to stand-alone Admin Tool – Hyperion, Linux, Oracle and Video Games
January 20, 2011 8:13 am

[…] this point I had VBoxes. Clones in fact. To install Oracle I found this some useful blogs: Blog #1 Blog #2 […]

Reply

For anyone who got this error while trying to start the ‘dbca’, i have figured it out..

$ dbca
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xb785a6f3, pid=5953, tid=3077314240
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [ld-linux.so.2+0xd6f3]

This is a problem with the 32 bit version of Ubuntu. I have been installing oracle on Virtual Machines so I was able to delete the machine and create a new one with a 64 bit version of ubuntu 10.10. Following my oracle install i was able to open ‘dbca’ no problem.

Spent a long time trying to get around this one before I figured it out.

Reply

is it ok to install libstdc++5 using Synaptic Package Manager

didn’t work

sudo cp ia64-libs/usr/lib/libstdc++.so.5.0.7 /usr/lib64/

and

sudo cp ia32-libs/usr/lib32/libstdc++.so.5.0.7 /usr/lib32/

Reply

Maybe I’m just lazy but why can’t we just double click something called install. This process took ages. Doesn’t help that I’m not a very good at typing. Thanks for this though. Very helpful.

Reply

Good question. I’m surprised that Oracle doesn’t have RPMs for DBMS and GI on RHEL/OEL.

Reply

On Ubuntu 10.10 I installed 11.2.0.2 and to get the libstdc++5, I just specified

sudo apt-get install libstdc++5 and so far no install errors.

Reply

Hi,

Following the given steps, able to create an user ‘Oracle’. However I’m unable to get what the password for it is.
Executed as it is
‘useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle’

Please let me know how can i proceed. Using ‘password’ for password did not worked.

Using: Ubuntu 10.10 64-bit. Oracle 11gR2.

Reply

Prathamesh: Use the passwd command as root to change the password. There is a previous comment that says the command that I used earlier needs to be in encrypted format. I will update this post use separate commands.

Reply

I had some troubles passing the “linking binaries” step
==> fyi, all were solved by creating the below symbolinc links:
ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib/libpthread_nonshared.a
ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib/libc_nonshared.a
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/libstdc++.so.6
ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib64/libgcc_s.so.1

Although, to start the Oracle installer on a VM Ubuntu, I used:
cd database
xhost +
sudo su oracle
./runInstaller
==> The xhost+ allows to bypass the screen nb of color requirement.

hth

Reply
How To: Install Oracle Database 11g R2 on Ubuntu 10.10 | Software Development & Integration
June 16, 2011 4:51 pm

[…] Installing Oracle 11gR2 Enterprise Edition on Ubuntu 10.04 (Lucid Lynx) […]

Reply
One approach for Oracle parallel export/import | faneas
August 18, 2011 10:30 am

[…] post has been written to speed up class activity. I have followed many items from  Installing Oracle 11gR2 Enterprise Edition on Ubuntu 10.04 (Lucid Lynx) and added other items from my own. This post assumes you are familiar with Unix […]

Reply

please good people am a newbie to linux and i need a step by step method on how to run oracle 11g on ubuntu11. the above method is confusing me pleassssse….

Reply

./runInstaller while i executing this command its showing unexpected error

Reply

@Hussain can you please provide the text of the error message?

@Rolland I’m afraid I’m not prepared to give a full-blown Linux tutorial here. Perhaps to make things easier on yourself, start with one of the tutorials for using OEL. I know Tim Hall has excellent tutorials on his website at http://www.oracle-base.com

Reply

In Ubuntu 10.10 just add the libstd++5 and you can skip the downloading of the libstdc++5 for 32 and 64.

sudo apt-get install unzip build-essential x11-utils rpm ksh lsb-rpm libaio1

to

sudo apt-get install unzip build-essential x11-utils rpm ksh lsb-rpm libaio1 libstdc++5

Using kernel
Linux q 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux

Worked like a charm. Great instructions.

Reply

thanks for the masterly documented installation details.

basically i am trying to Lucid on IBM Power 5 machine (ppc64) and on top of it oracle 10.2.0, still in a dielamma on where to start with.

does anyone of this reader list came across this?
if so can u pls help me in deciding java (IBM java, icedtea,or openjdk?), other dependent requirements?

Reply

problem with oracle Install
./runInstaller -ignoreSysPrereqs
Vérification de l’espace temporaire : doit être supérieur à 80 Mo. Réel 1937 Mo Réussite
Vérification de l’espace de swap : il doit être supérieur à 150 Mo. Réel 307 Mo Réussite
Vérification de l’écran : doit être configuré pour afficher au moins 256 couleurs. Réel 16777216 Réussite
Préparation du lancement d’Oracle Universal Installer à partir de /u1/oradata/tmp/OraInstall2011-12-22_12-17-38AM. Veuillez patienter…oracle@(none):/u2/oradata/11$ Oracle Universal Installer, Version 11.1.0.6.0 Production
Copyright (C) 1999, 2007, Oracle. Tous droits réservés.

Exception java.lang.UnsatisfiedLinkError: /u1/oradata/tmp/OraInstall2011-12-22_12-17-38AM/jdk/jre/lib/i386/xawt/libmawt.so: Can’t load IA 32-bit .so on a IA 32-bit platform occurred..
java.lang.UnsatisfiedLinkError: /u1/oradata/tmp/OraInstall2011-12-22_12-17-38AM/jdk/jre/lib/i386/xawt/libmawt.so: Can’t load IA 32-bit .so on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)

installation Stoped

Reply

Hello,

I have the next error: Error in invoking target ‘install’ of makefile ‘/oracle/10g/ctx/lib/ins_ctx.mk’

I have libstdc++5 and libstdc++6.

/var/lib/dpkg/info/libstdc++5:i386.list
/var/lib/dpkg/info/libstdc++5:i386.md5sums
/var/lib/dpkg/info/libstdc++5:i386.postinst
/var/lib/dpkg/info/libstdc++5:i386.postrm
/var/lib/dpkg/info/libstdc++5:i386.shlibs
/var/lib/dpkg/info/libstdc++5:i386.symbols
/var/lib/dpkg/info/libstdc++6:i386.list
/var/lib/dpkg/info/libstdc++6:i386.md5sums
/var/lib/dpkg/info/libstdc++6:i386.postinst
/var/lib/dpkg/info/libstdc++6:i386.postrm
/var/lib/dpkg/info/libstdc++6:i386.shlibs
/var/lib/dpkg/info/libstdc++6:i386.symbols

Could anyone help me please?

Thanks

Reply

Great post !
Install works fine on my brand new Ubuntu 10.04 LTS x64. (I’m new to Linux …)
Nevertheless, I have 4 remarks:
1 – Even though it is also described by Oracle, I did not need the ia32-libs (https://forums.oracle.com/forums/thread.jspa?threadID=1115155)
2 – Which is the best method for setting environment variables (ORACLE_HOME etc.) permanently for all users?
3 – I used a startup script described here: http://www.oracle-base.com/articles/linux/AutomatingDatabaseStartupAndShutdownOnLinux.php to start Oracle instance.
4 – Before reboot, all works fine. After reboot, the Oracle database instance is working (I checked some queries with SQLPLUS), but not the Enterprise Manager (https://localhost:1158/em). Any clue ?
Thanks for help !
Fred

Reply
Instalando o Oracle 11g Release 2 no Ubuntu 11.10 « whoisroot
March 28, 2012 11:50 pm
Reply

Thanks a lot for your post! It helped me a lot!

I have mentioned you as a source in a post I have created for my new blog as I have also posted my experience while installing Oracle 11g in Ubuntu 11.10. Obs: It is in portuguese.

http://whoisroot.wordpress.com/2012/03/15/instalando-o-oracle-11g-release-2-no-ubuntu-11-10/

Hope it is ok.

Thanks again!

Reply

any idea of how to install oracle 11g on ubuntu 12.xx

appreciate help.

Reply
Cristian Ionitoiu
July 13, 2014 10:59 am

has anyone managed to install it on Ubuntu 14.04?

Reply

Starting Oracle Universal Installer…

Checking Temp space: must be greater than 120 MB. Actual 12115 MB Passed
Checking swap space: must be greater than 150 MB. Actual 7999 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 <<<>> Ignoring required pre-requisite failures. Continuing…
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-08-04_04-47-37AM. Please wait …[oracle@INPUHJPC04790 database]$ 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.(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.(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)
^C
[oracle@INPUHJPC04790 database]$ export DISPLAY=10.10.206.150:0.1
d

Reply

Hi All,
Starting Oracle Universal Installer…

Checking Temp space: must be greater than 120 MB. Actual 12115 MB Passed
Checking swap space: must be greater than 150 MB. Actual 7999 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 <<<>> Ignoring required pre-requisite failures. Continuing…
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-08-04_04-47-37AM. Please wait …[oracle@INPUHJPC04790 database]$ 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.(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.(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)
^C
[oracle@INPUHJPC04790 database]$ export DISPLAY=10.10.206.150:0.1
d

can any one help me to resolve this error? ThX in Advance….Kams

Reply

Kams, please exit from the “oracle” user.

in root , xhost +
then , su – oracle

Then invoke the installer.

Best Regards,
raj

Reply

Linux Containers (Docker in this caes). Easiest way to install Oracle 11gR2 EE on Ubuntu (or any other Linux for that matter). Details and step-by-step howto here: https://sites.google.com/site/nandydandyoracle/environments/docker-11gr2-ee-ul

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *