ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » The system could not dynamically load the shared library

Post new topic  Reply to topic Goto page 1, 2  Next
 The system could not dynamically load the shared library « View previous topic :: View next topic » 
Author Message
kailashbawane
PostPosted: Wed Nov 12, 2008 4:17 am    Post subject: The system could not dynamically load the shared library Reply with quote

Acolyte

Joined: 13 Jun 2007
Posts: 51
Location: Pune,INDIA

Hi All,

We are upgraded Oracle 9.2 to 10G, After configuration we are facing some problem with QueueManager. i changed the qm.ini file, the changes are below:

XAResourceManager:
Name=myoracle
SwitchFile=jdbcora_10G
XAOpenString=Oracle_XA+Acc=P//+SesTm=35+LogDir=/RINd_apps/mhs/mqmhs/log
ThreadOfControl=PROCESS

After startin QM i am getting following error:

AMQ6254: The system could not dynamically load the shared library
'/var/mqm/exits64/jdbcora_10G', library '/var/mqm/exits/jdbcora_10G' has been
used instead.

EXPLANATION:
This message applies to UNIX systems. The shared library
'/var/mqm/exits64/jdbcora_10G' failed to load as it is probably a 64-bit
library, a 32-bit library is required. Note that MQ has sucessfully located and
loaded a 32-bit library named '/var/mqm/exits/jdbcora_10G'.
ACTION:
Supply the name of a 32-bit library or put the library (alternatively a
symbolic link can be used) in the appropriate place: 32-bit libraries in
/var/mqm/exits; 64-bit libraries in /var/mqm/exits64.

Its really great If anyone tell me what to do?


Thanks....Waiting for reply ~!!
_________________
ITO- MQ ISE.
" Slow n steady always win the race. "
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
JosephGramig
PostPosted: Wed Nov 12, 2008 4:27 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Can you provide the whole qm.ini file?
Back to top
View user's profile Send private message AIM Address
kailashbawane
PostPosted: Wed Nov 12, 2008 4:53 am    Post subject: the whole qm.ini file : Reply with quote

Acolyte

Joined: 13 Jun 2007
Posts: 51
Location: Pune,INDIA

qm.ini

Module Name: qm.ini *#
#* Type : WebSphere MQ queue manager configuration file *#
# Function : Define the configuration of a single queue manager *#
#* *#
#*******************************************************************#
#* Notes : *#
#* 1) This file defines the configuration of the queue manager *#
#* *#
#*******************************************************************#
ExitPath:
ExitsDefaultPath=/var/mqm/exits/
ExitsDefaultPath64=/var/mqm/exits64/
#* *#
RestrictedMode:
ApplicationGroup=msgsupp
#* *#
Log:
LogPrimaryFiles=3
LogSecondaryFiles=2
LogFilePages=1024
LogType=LINEAR
LogBufferPages=0
LogPath=/var/mqm/log/RINDQM/
LogWriteIntegrity=TripleWrite
Service:
Name=AuthorizationService
EntryPoints=13
ServiceComponent:
Service=AuthorizationService
Name=MQSeries.UNIX.auth.service
Module=/usr/mqm/lib64/amqzfu
ComponentDataSize=0
TCP:
Port=1345
XAResourceManager:
Name=myoracle
SwitchFile=jdbcora_10G
XAOpenString=Oracle_XA+Acc=P//+SesTm=35+LogDir=/rind_apps/mhs/mqmhs/log
ThreadOfControl=PROCESS
_________________
ITO- MQ ISE.
" Slow n steady always win the race. "
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
JosephGramig
PostPosted: Wed Nov 12, 2008 5:04 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Try removing the extra '/' at the end of your ExitPath stanzas and stop/start your QMGR to make it effective.

The InfoCenter does not have them, see: http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.amqzag.doc/fa12510_.htm

Although it has nothing to do with your question, consider:
Code:

CHANNELS:
   AdoptNewMCA=ALL
   AdoptNewMCACheck=ALL
   AdoptNewMCATimeout=60
   MaxChannels=500
   MaxActiveChannels=500
TCP:
   KeepAlive=Yes
   ListenerBacklog=500
Back to top
View user's profile Send private message AIM Address
exerk
PostPosted: Wed Nov 12, 2008 5:58 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

The example also shows a fully qualified path name to the switch file, although the error message you posted implies that the switch file is in the exits directory (which to me seems an odd place to put it).
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
kailashbawane
PostPosted: Wed Nov 12, 2008 6:15 am    Post subject: Reply with quote

Acolyte

Joined: 13 Jun 2007
Posts: 51
Location: Pune,INDIA

Fully qualified path means? can you please explain briefly?

Its my kind request to you..
_________________
ITO- MQ ISE.
" Slow n steady always win the race. "
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
exerk
PostPosted: Wed Nov 12, 2008 6:20 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

kailashbawane wrote:
Fully qualified path means? can you please explain briefly?

Its my kind request to you..


For example: SwitchFile=/usr/ora/jdbcora_10G

I just would not expect to see a switch-file placed in the exits directory.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
kailashbawane
PostPosted: Wed Nov 12, 2008 12:34 pm    Post subject: Reply with quote

Acolyte

Joined: 13 Jun 2007
Posts: 51
Location: Pune,INDIA

Hi all.

I have done some changes to qm.ini :

#*******************************************************************#
#* Module Name: qm.ini *#
#* Type : WebSphere MQ queue manager configuration file *#
# Function : Define the configuration of a single queue manager *#
#* *#
#*******************************************************************#
#* Notes : *#
#* 1) This file defines the configuration of the queue manager *#
#* *#
#*******************************************************************#
ExitPath:
ExitsDefaultPath=/var/mqm/exits
ExitsDefaultPath64=/var/mqm/exits64
#* *#
RestrictedMode:
ApplicationGroup=msgsupp
#* *#
Log:
LogPrimaryFiles=3
LogSecondaryFiles=2
LogFilePages=1024
LogType=LINEAR
LogBufferPages=0
LogPath=/var/mqm/log/RINDQM/
LogWriteIntegrity=TripleWrite
Service:
Name=AuthorizationService
EntryPoints=13
ServiceComponent:
Service=AuthorizationService
Name=MQSeries.UNIX.auth.service
Module=/usr/mqm/lib64/amqzfu
ComponentDataSize=0
TCP:
Port=1345
XAResourceManager:
Name=myoracle
SwitchFile=/var/mqm/exits/jdbcora_10G
XAOpenString=Oracle_XA+Acc=P//+SesTm=35+LogDir=/rind_apps/mhs/mqmhs/log
ThreadOfControl=PROCESS

[color=red]After the changes I stop and start the QM [/color]

I am getting following error:

-------------------------------------------------------------------------------
11/12/08 16:28:15 - Process(991364.1) User(rindmhs) Program(amqzxma0_nd)
AMQ6175: The system could not dynamically load the shared library
'/var/mqm/exits/jdbcora_10G'. The system returned error number '8' and error
message ' 0509-022 Cannot load module /var/mqm/exits/jdbcora_10G.
0509-103
The module has an invalid magic number.'. The queue manager will continue
without this module.

EXPLANATION:
This message applies to AIX systems. The shared library
'/var/mqm/exits/jdbcora_10G' failed to load correctly due to a problem with the
library.
ACTION:
Check the file access permissions and that the file has not been corrupted.
----- amqxufnx.c : 1158 -------------------------------------------------------
11/12/08 16:28:15 - Process(991364.1) User(rindmhs) Program(amqzxma0_nd)
AMQ7622: WebSphere MQ could not load the XA switch load file for resource
manager 'myoracle'.

EXPLANATION:
An error has occurred loading XA switch file /var/mqm/exits/jdbcora_10G. If the
error occurred during startup then the queue manager will terminate. At all
other times the queue manager will continue without this resource manager
meaning that it will no longer be able to participate in global transactions.
The queue manager will also retry the load of the switch file at regular
intervals so that the resource manager will be able to participate again should
the load problem be resolved.
ACTION:
Look for a previous message outlining the reason for the load failure. Message
AMQ6175 is issued if the load failed because of a system error. If this is the
case then follow the guidance given in message AMQ6175 to resolve the problem.
In the absence of prior messages or FFST information related to this problem
check that the name of the switch load file is correct and that it is present
in a directory from which it can be dynamically loaded by the queue manager.
The easiest method of doing this is to define the switch load file as a
fully-qualified name. Note that if the queue manager is still running it will
need to be restarted in order that any changes made to its configuration data
can be picked up.
----- amqtrmca.c : 256 --------------------------------------------------------


What should i do now?
_________________
ITO- MQ ISE.
" Slow n steady always win the race. "
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
fjb_saper
PostPosted: Wed Nov 12, 2008 2:58 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Invalid magic number might have something to do with the LIBPATH/ LD_LIBRARY_PATH. There is some literature about this in the upgrade manual from 5.3 to 6.0... Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mvic
PostPosted: Wed Nov 12, 2008 3:12 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

kailashbawane wrote:
SwitchFile=/var/mqm/exits/jdbcora_10G

The switch load file needs to be loaded by app and queue manager processes.

Queue manager processes are 64-bit. Apps can be 64 or 32 bit.

You'll need a 32-bit version of the switch load file under /var/mqm/exits for 32-bit processes to load and a 64-bit version of the switch load file under /var/mqm/exits64 for 64-bit processes to load.

If this worked before for Oracle 9, I am wondering why it no longer works for Oracle 10.

It apparently(?) worked without a fully qualified path to the file, and this is what I would expect. If you put a fully qualified path in the qm.ini file then I would not expect the 32/64-bit heuristic I described above to work.

So, does it help to return to the non-qualified filename, and ensure the 2 versions of the jdbcora file are correctly located under /var/mqm/exits and /var/mqm/exits64 ?
Back to top
View user's profile Send private message
kailashbawane
PostPosted: Wed Nov 12, 2008 3:44 pm    Post subject: Reply with quote

Acolyte

Joined: 13 Jun 2007
Posts: 51
Location: Pune,INDIA

Hi mvic

Quote:
So, does it help to return to the non-qualified filename, and ensure the 2 versions of the jdbcora file are correctly located under /var/mqm/exits and /var/mqm/exits64 ?


Do i need to change in qm.ini? what should i change in qm.ini?
How do i check for a version of jdbcora ?
_________________
ITO- MQ ISE.
" Slow n steady always win the race. "
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
mvic
PostPosted: Wed Nov 12, 2008 4:39 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

kailashbawane wrote:
Do i need to change in qm.ini? what should i change in qm.ini?
How do i check for a version of jdbcora ?

Yes you will need to change qm.ini back to how it was in your post at 12:53 GMT / 17:53 EST.

You will need to ensure that as well as a 32-bit version of jdbcora_10G under /var/mqm/exits there is a 64-bit version of jdbcora_10G under /var/mqm/exits64.

That's my opinion, with a little bit of knowledge of how these things are supposed to work. I don't, however, have direct personal experience of setting it up myself.

If anyone else on the forum does have direct experience then hopefully they will speak up if I got any of these details wrong.
Back to top
View user's profile Send private message
exerk
PostPosted: Thu Nov 13, 2008 12:47 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Quote:
EXPLANATION:
An error has occurred loading XA switch file /var/mqm/exits/jdbcora_10G. If the error occurred during startup then the queue manager will terminate. At all other times the queue manager will continue without this resource manager meaning that it will no longer be able to participate in global transactions.

The queue manager will also retry the load of the switch file at regular
intervals so that the resource manager will be able to participate again should the load problem be resolved.
ACTION:
Look for a previous message outlining the reason for the load failure. Message AMQ6175 is issued if the load failed because of a system error. If this is the case then follow the guidance given in message AMQ6175 to resolve the problem. In the absence of prior messages or FFST information related to this problem check that the name of the switch load file is correct and that it is present in a directory from which it can be dynamically loaded by the queue manager. The easiest method of doing this is to define the switch load file as a fully-qualified name. Note that if the queue manager is still running it will need to be restarted in order that any changes made to its configuration data can be picked up.


Maybe the switchfile needs renewing, i.e. new version...only ever done this on WMQ V5.3 and can't remember what the Oracle version was, and I reiterate my previous statement - I would not expect to see it in the exit(s) directory.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Nov 13, 2008 1:42 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

exerk wrote:
I reiterate my previous statement - I would not expect to see it in the exit(s) directory.

See http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amqzag.doc/fa13590_.htm
Back to top
View user's profile Send private message
exerk
PostPosted: Thu Nov 13, 2008 1:51 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

mvic wrote:
exerk wrote:
I reiterate my previous statement - I would not expect to see it in the exit(s) directory.

See http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amqzag.doc/fa13590_.htm


That refers to a DB3 switchfile whereas kailashbawane is using Oracle - I don't know if there is a difference to how the switchfile(s) should be located.

exerk wrote:
...only ever done this on WMQ V5.3 and can't remember what the Oracle version was...


And in that case the switch file was located in /directory/sub-directory/switchfile, where the directory was the user application root directory.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » The system could not dynamically load the shared library
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.