cancel
Showing results for 
Search instead for 
Did you mean: 

DlLoadLib .../dboraslib.so: wrong ELF class: ELFCLASS64

Former Member
0 Kudos
358

Hi Ineed your help !

The source system:

It is an SAP R/3 4.6C with SAP Kernel 46D_EXT 64 BIT NU, patch level 2337.

The platform is Oracle 10g (10.0.2.0) on Linux Red Hat EL 4.5 with LinuxKernel 2.6.9-34.ELsmp (x86_64).The SID is PRD.

The target system:

It is a Red Hat Linux 5.4 with Linux Kernel 2.6.18-164.15.1.el5 (x86_64).

The SID is DEV.

The System Copy is based on SAP R/3 4.6C SR2 with SAP Kernel STACK 64 BIT

UN 4.6D_EXT with patch level 2500. Oracle 10g (10.2.0.4).

The modality of the System Copy is to R3COPY (Backup/Restore).

---

The documentation used:

SAP Guides:

R/3 Installation on UNIX: Oracle Database - Release 4.6C SR2 (Mat #51013680)

SAP R/3 Homogeneous System Copy - UNIX Windows OS/390 OS/400 - Release

4.6C SR2 (Mat #51013678)

SAP Notes:

389530 - INST: R/3 4.6C SR2 - Homogeneous System Copy

816145 - Installation 4.6C SR2 on Linux x86_64 with Oracle

946141 - Inst. SAP Systems on UX/Oracle 10.2 with R3SETUP

939406 - System Copy 4.0B - 4.6C to Linux x86_64

980981 - SysCopy: SAP Systems with EXT Kernel & Oracle 10.2 (R3SETUP)

788770 - Linux: R3SETUP - CALCRAM_IND_IND Phase fails

---

The assembly of the kernel and the directory of installation, I made

according to notes 816145 and 946141.

####

    1. In the source I ran:

####

R3COPY:

- (a) Source system: Generating the script CONTROL.SQL

- (b) Source system: Forcing necessary log switches before backup

I took backup offline.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

This is something to do with your oracle client software I guess, you have 10g server, but you client software is 9i according to ldd dump.

For oracle 9i client software, did you check the note 521230 item#14 it says

"You must not install 9.2 client software on a database server on which Oracle 9.2.0 is installed (see Note 539922). Instead, you must use the CROCLLNK script to create the relevant links to the server software"

Cheers,

Denny

Former Member
0 Kudos

User devadm:

$ env|grep -i ora

PATH=/oracle/DEV/102_64/bin:.:/home/devadm:/usr/sap/DEV/SYS/exe/run:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin

LD_LIBRARY_PATH=/usr/sap/DEV/SYS/exe/run:/oracle/client/92x_64/lib

dbms_type=ORA

dbs_ora_tnsname=DEV

dbs_ora_schema=SAPSR3

ORACLE_PSRV=DEV

ORACLE_SID=DEV

ORACLE_HOME=/oracle/DEV/102_64

ORACLE_BASE=/oracle

ORA_NLS=/oracle/DEV/102_64/ocommon/NLS_723/admin/data

ORA_NLS32=/oracle/DEV/102_64/ocommon/NLS_733/admin/data

ORA_NLS33=/oracle/client/92x_64/ocommon/nls/admin/data

SAPDATA_HOME=/oracle/DEV

$ ldd /sapmnt/DEV/exe/dboraslib.so

libclntsh.so.9.0 => /oracle/client/92x_64/lib/libclntsh.so.9.0

(0x00002ada9c3da000)

libwtc9.so => /oracle/client/92x_64/lib/libwtc9.so

(0x00002ada9d0ce000)

libc.so.6 => /lib64/libc.so.6 (0x00002ada9d1e9000)

libdl.so.2 => /lib64/libdl.so.2 (0x00002ada9d541000)

libm.so.6 => /lib64/libm.so.6 (0x00002ada9d745000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ada9d9c8000)

libnsl.so.1 => /lib64/libnsl.so.1 (0x00002ada9dbe4000)

/lib64/ld-linux-x86-64.so.2 (0x0000003450400000)

User oradev:

env | grep -i ora

PATH=/oracle/DEV/102_64/bin:.:/oracle/DEV:/usr/sap/DEV/SYS/exe/run:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin

LD_LIBRARY_PATH=/usr/sap/DEV/SYS/exe/run:/oracle/DEV/102_32/lib

dbms_type=ORA

dbs_ora_tnsname=DEV

dbs_ora_schema=SAPSR3

ORACLE_PSRV=DEV

ORACLE_SID=DEV

ORACLE_HOME=/oracle/DEV/102_64

ORACLE_BASE=/oracle

ORA_NLS=/oracle/DEV/102_64/ocommon/NLS_723/admin/data

ORA_NLS32=/oracle/DEV/102_64/ocommon/NLS_733/admin/data

ORA_NLS33=/oracle/client/92x_64/ocommon/nls/admin/data

SAPDATA_HOME=/oracle/DEV

$ldd /sapmnt/DEV/exe/dboraslib.so

libclntsh.so.9.0 => /oracle/client/92x_64/lib/libclntsh.so.9.0

(0x00002ad81fa81000)

libwtc9.so => /oracle/client/92x_64/lib/libwtc9.so

(0x00002ad820775000)

libc.so.6 => /lib64/libc.so.6 (0x00002ad820890000)

libdl.so.2 => /lib64/libdl.so.2 (0x00002ad820be8000)

libm.so.6 => /lib64/libm.so.6 (0x00002ad820dec000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ad82106f000)

libnsl.so.1 => /lib64/libnsl.so.1 (0x00002ad82128b000)

/lib64/ld-linux-x86-64.so.2 (0x0000003450400000)

---

That is what happens?

Please I am in an upgrade project and appreciate your help.

Best Regards

Gustavo Cabero

Former Member
0 Kudos

---

...dev_slic file shows:

-


trc file: "dev_slic", trc level: 2, release: "46D"

-


Mon May 17 18:31:38 2010

SlicSapInstall: sysname: >DEV< connect: >1< rollback: >1<

*****************************************************************************

*

  • LOCATION CPIC (TCP/IP) on local host

  • ERROR Can not set DbSl trace function

*

  • TIME Mon May 17 18:31:38 2010

  • RELEASE 46D

  • COMPONENT SLIC

  • VERSION 221

  • RC 20

  • MODULE slicdb.c

  • LINE 110

  • DETAIL DbSlControl(DBSL_CMD_IMP_FUNS_SET) failed with return code 20

  • RC-INFO: error loading dynamic db-library - check

  • environment for:

  • dbms_type = <db-type> (e.g. ora)

  • DIR_LIBRARY = <path to db-dll> (e.g.

  • /usr/sap/SID/SYS/exe/run)

  • LD_LIBRARY_PATH = <path do db and sap libs>

(e.g.

  • /oracle/SID/lib)

  • COUNTER 1

*

*****************************************************************************

---

Observing the environment of the users:

User root

  1. env | grep -i ora

dbms_type=ORA

LD_LIBRARY_PATH=/oracle/client/92x_32/lib:/oracle/client/92x_64/lib:/sapmnt/DEV/exe

ORACLE_SID=DEV

ORA_NLS33=/oracle/client/92x_64/ocommon/nls/admin/data

ORACLE_HOME=/oracle/DEV/102_64

  1. ldd /sapmnt/DEV/exe/dboraslib.so

libclntsh.so.9.0 => /oracle/client/92x_64/lib/libclntsh.so.9.0

(0x00002b1671d73000)

libwtc9.so => /oracle/client/92x_64/lib/libwtc9.so (0x00002b1672a67000) libc.so.6 => /lib64/libc.so.6 (0x00002b1672b82000)

libdl.so.2 => /lib64/libdl.so.2 (0x00002b1672eda000)

libm.so.6 => /lib64/libm.so.6 (0x00002b16730de000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b1673361000)

libnsl.so.1 => /lib64/libnsl.so.1 (0x00002b167357d000)

/lib64/ld-linux-x86-64.so.2 (0x0000003450400000)

Former Member
0 Kudos

####

    1. In the target I ran in de directory install:

####

./INSTOOL.SH

./INSTGUI &

/usr/bin/pre-r3setup.sh ./R3SETUP CENTRAL.R3S

Restore the datafiles and redo logs

Copy the files: R3COPY, CONTROL.SQL and new initDEV.ora to

/oracle/DEV/sapreorg.

The target SID and DBSID is DEV.

R3COPY:

- (c) Target system: Executing CONTROL.SQL to create new control files.

I restore the default passwords to SAPSR3, SYS and SYSTEM users.

I installed the Oracle's software to 10.2.0.4 + interim patches.

./INSTGUI &

/usr/bin/pre-r3setup.sh ./R3SETUP DBR3CP.R3S

---

...R3SETUP advances up to 91% and display the following error in the

DBR3LICENSECREATE_IND_ORA phase:

...

INFO 2010-05-17 18:31:38

Setting Password for the Database User

INFO 2010-05-17 18:31:38

Setting Password for sys User

INFO 2010-05-17 18:31:38

Setting Password for system User

INFO 2010-05-17 18:31:38

Creating the SAP System License

INFO 2010-05-17 18:31:38 DBR3LICENSECREATE_IND_ORA InternalInstallationDo:0

Create SAP license table.

db_con_init called

      • ERROR => DlLoadLib: /sapmnt/DEV/exe/dboraslib.so: wrong ELF class:

ELFCLASS64 -> DLENOACCESS (0,Success) [dlux.c 246]

      • ERROR => Couldn't load library '/sapmnt/DEV/exe/dboraslib.so'

[dbcon.c 3587]

ERROR 2010-05-17 18:31:38 DBR3LICENSECREATE_IND_ORA SlicCall:0

See logfile dev_slic for further information.

ERROR 2010-05-17 18:31:38 DBR3LICENSECREATE_IND_ORA InstallationDo:0

Phase failed.

ERROR 2010-05-17 18:31:39 Main

Installation aborted.

---

markus_doehr2
Active Contributor
0 Kudos

> *** ERROR => DlLoadLib: /sapmnt/DEV/exe/dboraslib.so: wrong ELF class:

> ELFCLASS64 -> DLENOACCESS (0,Success) [dlux.c 246]

> *** ERROR => Couldn't load library '/sapmnt/DEV/exe/dboraslib.so'

Your problem is, that the kernel is 32bit trying to load a 64bit library. This does not work.

Markus

Former Member
0 Kudos

Hi !

Finally, I applied the notes mentioned above, to build the kernel 4.6D x86_64 64-bit for linux 64 bit with Ora 10.2.x.

Based on your advice I checked everything again and again stood at 91%.

In short, as was the phase of License, I installed it with the command saplicense to OS level, and I forced the STATUS = OK in the command file. With this, continued until the end.

Regards