Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

linux debian lenny 64bit installing ORACLE 64 errors

373 views
Skip to first unread message

Daniel Suleyman

unread,
Sep 25, 2009, 7:20:07 AM9/25/09
to
Any advice will be appreciated.

LOG

 
oracle@mach:~/database$ ./runInstaller -ignoreSysPrereqs -responsefile /home/oracle/sampleOracle.rsp
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                              
        Failed <<<<


>>> Ignoring required pre-requisite failures. Continuing...

Preparing to launch Oracle Universal Installer from /home/u01/tmp/OraInstall2009-09-25_12-50-45PM. Please wait ...oracle@unimark:~/database$ Oracle Universal Installer, Versi                                 on 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.

Exception java.lang.UnsatisfiedLinkError: /home/u01/tmp/OraInstall2009-09-25_12-50-45PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: wrong ELF class: ELFCLASS64 occurred..
java.lang.UnsatisfiedLinkError: /home/u01/tmp/OraInstall2009-09-25_12-50-45PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: wrong ELF class: ELFCLASS64
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at sun.security.action.LoadLibraryAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
        at sun.awt.DebugHelper.<clinit>(Unknown Source)
        at java.awt.Component.<clinit>(Unknown Source)
        at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
        at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)
        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)
        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
Exception in thread "main" java.lang.NoClassDefFoundError
        at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
        at oracle.sysman.oii.oiif.oiifm.OiifmAlert.<clinit>(OiifmAlert.java:151)
        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984)
        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)



ENVIRONMNET

TERM=xterm
SHELL=/bin/bash
TMPDIR=/home/u01/tmp
SSH_CLIENT=
OLDPWD=/home/oracle
SSH_TTY=/dev/pts/6
USER=oracle
LD_LIBRARY_PATH=/home/chroot/lenny_32/lib/:/home/chroot/lenny_32/usr/lib/
TEMP=/home/u01/tmp
ORACLE_SID=orcl
ORACLE_BASE=/home/u01/app/oracle
MAIL=/var/mail/oracle
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
PWD=/home/oracle/database
JAVA_HOME=/usr/lib/j2sdk1.5-sun/
LANG=en_US.UTF-8
SHLVL=1
HOME=/home/oracle
LOGNAME=oracle

DISPLAY=127.0.0.1:0.0
_=/usr/bin/env

Umarzuki Mochlis

unread,
Sep 25, 2009, 10:00:16 AM9/25/09
to
2009/9/25 Daniel Suleyman <dani...@gmail.com>:

> Any advice will be appreciated.

the installer supports 64 bit?

--
Regards,

Umarzuki Mochlis
http://gameornot.net


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Michał Bożek

unread,
Sep 25, 2009, 5:00:13 PM9/25/09
to
On Fri, 25 Sep 2009 21:50:45 +0800
Umarzuki Mochlis <umar...@gmail.com> wrote:

> 2009/9/25 Daniel Suleyman <dani...@gmail.com>:
> > Any advice will be appreciated.

I assume, that you've got the 64 bit version of Oracle, but a
double check might be useful (as always).

> >> Preparing to launch Oracle Universal Installer from
> >> /home/u01/tmp/OraInstall2009-09-25_12-50-45PM. Please wait
> >> ...oracle@unimark:~/database$ Oracle Universal Installer,
> >> Versi                                 on 10.2.0.1.0 Production

Do you have a requirement to install exactly 10.2.0.1? I've had
my share of problems with installations of 10.2 on Debian, while 11 was
(almost) painless. If possible I'd recommend a switch to the newest
version.

> >> Exception java.lang.UnsatisfiedLinkError:
> >> /home/u01/tmp/OraInstall2009-09-25_12-50-45PM/jre/1.4.2/lib/i386/libawt.so:
> >> libXp.so.6: wrong ELF class: ELFCLASS64 occurred..
> >> java.lang.UnsatisfiedLinkError:
> >> /home/u01/tmp/OraInstall2009-09-25_12-50-45PM/jre/1.4.2/lib/i386/libawt.so:
> >> libXp.so.6: wrong ELF class: ELFCLASS64

Based on this snippet I'd say, that a 32 bit version of
libawt.so tries to use libXp.so which is only available in 64 bits on
your system. Unfortunately, even though Oracle packages are available
for AMD64, the installer itself requires 32 bit Java to be present. So
I'd check if appropriate Java version is present. At least that was one
the quirks during my installation attempts.

Also with Oracle 11, you can skip most the 'fake requirements'
used to make Oracle think its installed on RHEL or its derivatves, ie.
install it somewhere else than /u01/app/oracle, which was quite hard to
change in 10.2 if I remember well. My current installation for example
resides in /usr/local/oracle/11g1/ which is quite useful.

Hope it helps.

Regards,
--
Michał Bożek

Daniel Suleyman

unread,
Sep 26, 2009, 3:00:12 AM9/26/09
to
кому: мне, debian-user
Показать подробные сведения 18:50 (16 ч. назад)


Umarzuki Mochlis: No it dosent' the problem was in X's. i am not having any graphical environment on system.

./runInstaller -ignoreSysPrereqs -responsefile /home/oracle/sampleOracle.rsp

helped to install software: Ihave chrooted environment of 32 bit lenny(I used 32 bit libraries from it to install oracle on 64 bit lenny)

michal_bozek

Yes I am installing 64 bit oracle

No requiremnets, can you describe what needed to install 11G?

i managed to install oracle on /home/u01/app/oracle/product/10.2.1/db1/bin.



Now  I have other problem :(


/home/u01/app/oracle/product/10.2.1/db1/bin$ ./sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Sep 26 11:35:12 2009

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

Enter user-name: sys as sysdba
Enter password:
oracleorcl: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
ERROR:
ORA-12547: TNS:lost contact


installing libaio1 now....i will post results and full solution if I will be suceeded  .....

2009/9/26 Michał Bożek <michal...@lavabit.com>

Daniel Suleyman

unread,
Sep 26, 2009, 5:30:09 AM9/26/09
to
solved all minir errors.

and finaly major ones ((

failed scripts:

# Copyright (c) 1999, 2005, Oracle. All rights reserved.
/home/u01/app/oracle/product/10.2.1/db1/jdk/jre//bin/java   -Duser.dir=/home/u01/app/oracle/product/10.2.1/db1/network/jlib -classpath /home/u01/app/oracle/product/10.2.1/db1/jdk/jre//lib/i18n.jar:/home/u01/app/oracle/product/10.2.1/db1/jdk/jre//lib/rt.jar:/home/u01/app/oracle/product/10.2.1/db1/jlib/ewt3.jar:/home/u01/app/oracle/product/10.2.1/db1/jlib/ewtcompat-3_3_15.jar:/home/u01/app/oracle/product/10.2.1/db1/jlib/netcfg.jar:/home/u01/app/oracle/product/10.2.1/db1/network/jlib/netcam.jar:/home/u01/app/oracle/product/10.2.1/db1/network/jlib/netca.jar:/home/u01/app/oracle/product/10.2.1/db1/jlib/help4.jar:/home/u01/app/oracle/product/10.2.1/db1/jlib/jewt4.jar:/home/u01/app/oracle/product/10.2.1/db1/jlib/oracle_ice.jar:/home/u01/app/oracle/product/10.2.1/db1/jlib/share.jar:/home/u01/app/oracle/product/10.2.1/db1/jlib/swingall-1_1_1.jar:/home/u01/app/oracle/product/10.2.1/db1/jlib/srvmhas.jar:/home/u01/app/oracle/product/10.2.1/db1/jlib/srvm.jar:/home/u01/app/oracle/product/10.2.1/db1/network/tools:/home/u01/app/oracle/product/10.2.1/db1/jlib/ldapjclnt9.jar:/home/u01/app/oracle/product/10.2.1/db1/jlib/ldapjclnt10.jar:/home/u01/app/oracle/product/10.2.1/db1/oui/jlib/OraInstaller.jar:/home/u01/app/oracle/product/10.2.1/db1/lib/xmlparserv2.jar oracle.net.ca.NetCA /orahome /home/u01/app/oracle/product/10.2.1/db1 /orahnam db1home /instype typical /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp /cfg local /authadp NO_VALUE /nodeinfo NO_VALUE /responseFile /home/u01/app/oracle/product/10.2.1/db1/network/install/netca_typ.rsp  /silent

/home/u01/app/oracle/product/10.2.1/db1/bin/dbca -silent  -createDatabase -templateName General_Purpose.dbc -gdbName orcl -sid orcl  -sysPassword 0562c49642c9568cd8284e86ab24cbadf7  -systemPassword 0575e5904269a26b1d4b44f0a450383f59  -sysmanPassword 05fbcc6742c9b386ff9edf15fbfde8b716  -dbsnmpPassword 05fbcc6742c9b386ff9edf15fbfde8b716  -emConfiguration LOCAL     -datafileJarLocation /home/u01/app/oracle/product/10.2.1/db1/assistants/dbca/templates  -responseFile NO_VALUE   -characterset WE8ISO8859P1   -obfuscatedPasswords true  -sampleSchema false -oratabLocation /home/u01/app/oracle/product/10.2.1/db1/install/oratab  -recoveryAreaDestination NO_VALUE

/home/u01/app/oracle/product/10.2.1/db1/bin/isqlplusctl start
~


errors for 1) script

UnsatisfiedLinkError exception loading native library: njni10


java.lang.UnsatisfiedLinkError: jniGetOracleHome
        at oracle.net.common.NetGetEnv.jniGetOracleHome(Native Method)
        at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source)
        at oracle.net.ca.NetCA.main(Unknown Source)
Oracle Net Services configuration failed.  The exit code is -1

error fot scrip 2)


UnsatisfiedLinkError exception loading native library: njni10
Exception in thread "main" java.lang.UnsatisfiedLinkError: get
        at oracle.net.common.NetGetEnv.get(Native Method)
        at oracle.net.config.Config.getNetDir(Unknown Source)
        at oracle.net.config.Config.initConfig(Unknown Source)
        at oracle.net.config.Config.<init>(Unknown Source)
        at oracle.sysman.assistants.util.NetworkUtils.<init>(NetworkUtils.java:222)
        at oracle.sysman.assistants.util.step.StepContext.<init>(StepContext.java:255)
        at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:682)
        at oracle.sysman.assistants.dbca.backend.SilentHost.<init>(SilentHost.java:125)
        at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:150)
        at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:94)
        at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:180)


2009/9/26 Michał Bożek <michal...@lavabit.com>

Michał Bożek

unread,
Sep 26, 2009, 6:20:06 AM9/26/09
to
On Sat, 26 Sep 2009 14:19:59 +0500
Daniel Suleyman <dani...@gmail.com> wrote:

> UnsatisfiedLinkError exception loading native library: njni10

Now this might have various reasons... Please check the
following:
- is libnjni10.so present in your system? It should be in:
$ORACLE_HOME/lib/ and $ORACLE_HOME/lib32/
- if it is present, then does LD_LIBRARY_PATH contain the above paths?

Also please check $ORACLE_HOME/install/make.log for any linking
errors. In any case you might want to try when the libraries are
available na LD_LIBRARY_PATH is set correctly:

rm -f $ORACLE_HOME/install/make.log
cd $ORACLE_HOME/bin
/relink all > $ORACLE_HOME/install/make.log

Daniel Suleyman

unread,
Sep 26, 2009, 6:20:05 AM9/26/09
to
As for a step by step installation guide I should have it
somewhere in my backups - I'll try to find it and post it later on.

it will be greate

LD_LIBRARY_PATH=/home/u01/app/oracle/product/10.2.1/db1/lib32:/home/u01/app/oracle/product/10.2.1/db1/lib
/home/u01/app/oracle/product/10.2.1/db1/lib/libnjni10.so
/home/u01/app/oracle/product/10.2.1/db1/lib32/libnjni10.so


for log i will report latter.

Thank you in advance

2009/9/26 Michał Bożek <michal...@lavabit.com>

Michał Bożek

unread,
Sep 26, 2009, 6:40:06 AM9/26/09
to
On Sat, 26 Sep 2009 11:54:14 +0500
Daniel Suleyman <dani...@gmail.com> wrote:

> No requiremnets, can you describe what needed to install 11G?

Apart from the package available here:
http://www.oracle.com/technology/software/products/database/oracle11g/112010_linx8664soft.html

hardware requirements got a bit higher since 10.2. 11g requires
almost 4GiB HDD space for its install plus approximately 1GiB for a
starter database. Memory and swap requirements remained the same. It
should install painlessly on a 64 bit environment, but the installer
itself still relies on 32 bit Java.

Rest of the installation setup does not differ from 10.2 as far
as I remember.

As for a step by step installation guide I should have it
somewhere in my backups - I'll try to find it and post it later on.

Regards,

Daniel Suleyman

unread,
Sep 26, 2009, 1:10:06 PM9/26/09
to
This errors come up now after playing wth ldconfig

oracle@:/home/u01/app/oracle/product/10.2.1/db1/bin$ ./relink all > test
cp: cannot stat `/DISCARD/': No such file or directory
ar: creating /home/u01/app/oracle/product/10.2.1/db1/lib/libclntst10.a
cp: cannot stat `/DISCARD/': No such file or directory
ar: creating /home/u01/app/oracle/product/10.2.1/db1/lib32/libclntst10.a
mv: `ldapdelete' and `/home/u01/app/oracle/product/10.2.1/db1/bin/ldapdelete' are the same file
make: [inst_clientonly] Error 1 (ignored)
mv: `ldapmodify' and `/home/u01/app/oracle/product/10.2.1/db1/bin/ldapmodify' are the same file
make: [inst_clientonly] Error 1 (ignored)
mv: `ldapmodifymt' and `/home/u01/app/oracle/product/10.2.1/db1/bin/ldapmodifymt' are the same file
make: [inst_clientonly] Error 1 (ignored)
mv: `ldapadd' and `/home/u01/app/oracle/product/10.2.1/db1/bin/ldapadd' are the same file
make: [inst_clientonly] Error 1 (ignored)
mv: `ldapaddmt' and `/home/u01/app/oracle/product/10.2.1/db1/bin/ldapaddmt' are the same file
make: [inst_clientonly] Error 1 (ignored)
mv: `ldapsearch' and `/home/u01/app/oracle/product/10.2.1/db1/bin/ldapsearch' are the same file
make: [inst_clientonly] Error 1 (ignored)
mv: `dsml2ldif' and `/home/u01/app/oracle/product/10.2.1/db1/bin/dsml2ldif' are the same file
make: [inst_clientonly] Error 1 (ignored)
mv: `ldapcompare' and `/home/u01/app/oracle/product/10.2.1/db1/bin/ldapcompare' are the same file
make: [inst_clientonly] Error 1 (ignored)
mv: `ldapbind' and `/home/u01/app/oracle/product/10.2.1/db1/bin/ldapbind' are the same file
make: [inst_clientonly] Error 1 (ignored)
mv: `ldapmoddn' and `/home/u01/app/oracle/product/10.2.1/db1/bin/ldapmoddn' are the same file
make: [inst_clientonly] Error 1 (ignored)
/home/u01/app/oracle/product/10.2.1/db1/lib//libcore10.a(slftmp.o): In function `SlfTmpnam':
slftmp.c:(.text+0x10): warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/bin/find: `/home/u01/app/oracle/product/10.2.1/db1/lib32/.1.0': Too many levels of symbolic links
/usr/bin/find: `/home/u01/app/oracle/product/10.2.1/db1/lib/.1.0': Too many levels of symbolic links
/usr/bin/ld: i386 architecture of input file `/home/u01/app/oracle/product/10.2.1/db1/sysman/lib/snmccolm.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/home/u01/app/oracle/product/10.2.1/db1/sysman/lib/libnmccol.a(nmccole.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/home/u01/app/oracle/product/10.2.1/db1/sysman/lib/libnmcbuf.a(nmcbuft.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/home/u01/app/oracle/product/10.2.1/db1/sysman/lib/libnmcbuf.a(nmcbufw.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/home/u01/app/oracle/product/10.2.1/db1/sysman/lib/libnmcbuf.a(nmcbufu.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/home/u01/app/oracle/product/10.2.1/db1/sysman/lib/libnmcbuf.a(snmcbufm.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/home/u01/app/oracle/product/10.2.1/db1/sysman/lib/libnmcbuf.a(nmcbuff.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/home/u01/app/oracle/product/10.2.1/db1/sysman/lib//libnmadbg.a(nmadbg.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/home/u01/app/oracle/product/10.2.1/db1/sysman/lib//libnmadbg.a(snmadbg.o)' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
make[1]: *** [/home/u01/app/oracle/product/10.2.1/db1/sysman/lib/nmccollector] Error 1
make: *** [nmccollector] Error 2
/home/u01/app/oracle/product/10.2.1/db1/lib32//libclntsh.so: undefined reference to `nnfyboot'
/home/u01/app/oracle/product/10.2.1/db1/lib32//libclntsh.so: undefined reference to `nnfoboot'
collect2: ld returned 1 exit status
make[1]: *** [/home/u01/app/oracle/product/10.2.1/db1/sysman/lib/e2eme] Error 1
make: *** [e2eme] Error 2
/home/u01/app/oracle/product/10.2.1/db1/lib32//libagtsh.so: undefined reference to `nnfyboot'
collect2: ld returned 1 exit status
make[1]: *** [/home/u01/app/oracle/product/10.2.1/db1/rdbms/lib/extproc32] Error 1
make: *** [extproc32] Error 2
gcc: unrecognized option '-h'
gcc: unrecognized option '-h'
gcc: unrecognized option '-h'




ldconifgs

oracle@:/home/u01/app/oracle/product/10.2.1/db1/bin$ ls /etc/ld.so.conf.d/*
/etc/ld.so.conf.d/libc.conf  /etc/ld.so.conf.d/local-32bit.conf  /etc/ld.so.conf.d/x86_64-linux-gnu.conf

oracle@:/home/u01/app/oracle/product/10.2.1/db1/bin$ cat /etc/ld.so.conf.d/*
# libc default configuration
/usr/local/lib
/usr/lib

/home/u01/app/oracle/product/10.2.1/db1/lib32/
# Multiarch support
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu



2009/9/26 Michał Bożek <michal...@lavabit.com>
On Sat, 26 Sep 2009 15:15:29 +0500
Daniel Suleyman <dani...@gmail.com> wrote:

> As for a step by step installation guide I should have it
> somewhere in my backups - I'll try to find it and post it later on.
>
> *it will be greate*

       Should be attached to the massage. It's been done a graphical
install, though it should not be a major difference.

> LD_LIBRARY_PATH=/home/u01/app/oracle/product/10.2.1/db1/lib32:/home/u01/app/oracle/product/10.2.1/db1/lib
> /home/u01/app/oracle/product/10.2.1/db1/lib/libnjni10.so
> /home/u01/app/oracle/product/10.2.1/db1/lib32/libnjni10.so

       Those look OK. Maybe the log file will tell something more.

Regards,
--
Michał Bożek

Michał Bożek

unread,
Sep 28, 2009, 3:30:11 PM9/28/09
to
On Sat, 26 Sep 2009 22:07:02 +0500
Daniel Suleyman <dani...@gmail.com> wrote:

> oracle@:/home/u01/app/oracle/product/10.2.1/db1/bin$ ./relink all >
> test cp: cannot stat `/DISCARD/': No such file or directory

I haven't got a 10.2 install at hand at the moment - does any
of the *.mk files reference the /DISCARD/ directory? Executing

cd $ORACLE_BASE
for FILE in `find -name *mk*`; do grep DISCARD $FILE; done

should give you a list of such makefiles. If any of them does, please

> /usr/bin/ld: i386 architecture of input file
> `/home/u01/app/oracle/product/10.2.1/db1/sysman/lib/snmccolm.o' is
> incompatible with i386:x86-64 output

This set of errors is more worrying - looks like you're trying
to link 32 and 64 bit binaries. It seems, that at least part of the
package is 32 bit. It's guaranteed to conflict with a 64 bit system.

0 new messages