Author |
Message
|
Roger |
Posted: Mon Jun 06, 2005 8:08 am Post subject: MQSICREATE Broker problem |
|
|
Novice
Joined: 28 Jun 2001 Posts: 13
|
Looking back over the forum I have read several examples of this problem but have not managed to find the solution to my problem. My configuration will shock some and come as no surprise to others - I am unable to upgrade any element of this configuration due to the constraints of the project and sponsoring business. Basically the setup is WMQI 2.1 CSD4 with a Oracle 8i (816 merant driver). I can connect to my Oracle database with SQLPLUS and userid correctly - when I try to create my broker using this syntax:
mqsicreatebroker BMPSIS09 -i mqsi -a ******* -q BMPSIS09 -n WMQP05 -u wmqi21 -p ******* -w /var/wmqi -g 3600 -k 180
I get the following errors:
AMQ8110: WebSphere MQ queue manager already exists.
WebSphere MQ queue manager running.
The setmqaut command completed successfully.
The setmqaut command completed successfully.
The setmqaut command completed successfully.
The setmqaut command completed successfully.
The setmqaut command completed successfully.
The setmqaut command completed successfully.
The setmqaut command completed successfully.
BIP2321E: Database error: ODBC return code '-1'.
The message broker encountered an error whilst executing a database operation. T
he ODBC return code was '-1'. See the following messages for information obtaine
d from the database pertaining to this error.
Use the following messages to determine the cause of the error. This is likely t
o be such things as incorrect datasource or table names. Then correct either the
database or message broker configuration.
BIP2322E: Database error: SQL State 'HY000'; Native Error Code '12154'; Error Te
xt '[MERANT][ODBC Oracle 8 driver][Oracle 8]ORA-12154: TNS:could not resolve ser
vice name
'.
The error has the following diagnostic information: SQL State 'H
Y000' SQL Native Error Code '12154' SQL Error Text '[MERANT][ODBC
Oracle 8 driver][Oracle 8]ORA-12154: TNS:could not resolve service name
'
This message may be accompanied by other messages describing the effect on the m
essage broker itself. Use the reason identified in this message with the accomp
anying messages to determine the cause of the error.
BIP8040E: Unable to connect to the database.
The database cannot be accessed with the userid and password that were specified when the broker was created.
Check that the database is running, that an ODBC connection has been created and that the userid and password pair specified for ODBC connect on the mqsicreate command are capable of being used to connect to the database using an ODBC conne
ction. Also ensure that the database has an adequate number of database connections available for use.
I know some of you will recognise this old chestnut but I can assure you the tnsnames.ora file correctly maps to the database, the passwords and accounts are correct and the driver is the right one. Sorry, upgrading or migrating to WMBIMB 5 is not an option at the moment or later patches than CSD4. Any ideas, anyone? Aplogies for the length of this problem. |
|
Back to top |
|
 |
JT |
Posted: Mon Jun 06, 2005 8:24 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Post the contents of the .odbc.ini and tnsnames.ora files (another pair of eyes can't hurt).
Are the Oracle environment variables set correctly (i.e. ORACLE_HOME)? |
|
Back to top |
|
 |
wschutz |
Posted: Mon Jun 06, 2005 8:56 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Also, ensure that the mqsi userid has the correct Oracle environmet setup, $ORAHOME comes to mind. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jun 06, 2005 9:05 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I wonder if you need an entry in /etc/services that matches the Oracle client information? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Roger |
Posted: Mon Jun 06, 2005 12:59 pm Post subject: |
|
|
Novice
Joined: 28 Jun 2001 Posts: 13
|
wschutz wrote: |
Also, ensure that the mqsi userid has the correct Oracle environmet setup, $ORAHOME comes to mind. |
ORACLE_HOME=/orcl/app/oracle/product/8.1.7 |
|
Back to top |
|
 |
Roger |
Posted: Mon Jun 06, 2005 1:08 pm Post subject: |
|
|
Novice
Joined: 28 Jun 2001 Posts: 13
|
JT wrote: |
Post the contents of the .odbc.ini and tnsnames.ora files (another pair of eyes can't hurt).
Are the Oracle environment variables set correctly (i.e. ORACLE_HOME)? |
[ODBC Data Sources]
WMQP05=MERANT 3.70 Oracle 8 Driver
MQSIBKDB=IBM DB2 ODBC Driver
MYDB=IBM DB2 ODBC Driver
ORACLEDB=MERANT 3.70 Oracle 8 Driver
SYBASEDB=MERANT 3.70 Sybase ASE Driver
[MQSIBKDB]
Driver=/u/db2inst1/sqllib/lib/libdb2.so
Description=MQSIBKDB DB2 ODBC Database
Database=MQSIBKDB
[MYDB]
Driver=/u/db2inst1/sqllib/lib/libdb2.so
Description=MYDB DB2 ODBC Database
Database=MYDB
[ORACLEDB]
Driver=/opt/wmqi/merant/lib/UKor816.so
WorkArounds=536870912
WorkArounds2=2
Description=Oracle8
ServerName=YourServerName
EnableDescribeParam=1
OptimizePrepare=1
[SYBASEDB]
Driver=/opt/wmqi/merant/lib/UKase16.so
Description=Sybase11
Database=sybasedb
ServerName=YourServerName
WorkstationID=id
EnableDescribeParam=1
OptimizePrepare=1
SelectMethod=0
NetworkAddress=10.30.14.72,5000
[WMQP05]
Driver=/opt/mqsi/merant/lib/UKor816.so
WorkArounds=536870912
WorkArounds2=2
Description=Oracle8
ServerName=WMQP05 # This is the Oracle Schema - must map to entry in tnsnames.ora file
LogonID=mqsi
Password=*******
EnableDescribeParam=1
OptimizePrepare=1
[ODBC]
Trace=1
TraceFile=/var/wmqi/odbc/odbctrace.out
TraceDll=/opt/wmqi/merant/lib/odbctrac.so
InstallDir=/opt/wmqi/merant
I have told the DBA to do something about the formatting in TNSNAMES.ORA but you can read it, just!!
# TNSNAMES.ORA Network Configuration File: /orcl/app/oracle/product/8.1.7/networ
k/admin/tnsnames.ora
# Generated manually.
WMQP01 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ubns0
5)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = WMQP01)))
WMQP02 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ubrs0
5)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = WMQP02)))
WMQP03 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ubns0
2)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = WMQP03)))
WMQP04 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ubrs0
2)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = WMQP04)))
WMQP05 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ubnf6000)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = WMQP05)
)
)
WMQP06 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ubrf6
000)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = WMQ
P06)))
There is an odbc trace available but I don't hink it will help much. |
|
Back to top |
|
 |
Roger |
Posted: Mon Jun 06, 2005 1:17 pm Post subject: |
|
|
Novice
Joined: 28 Jun 2001 Posts: 13
|
JT wrote: |
Post the contents of the .odbc.ini and tnsnames.ora files (another pair of eyes can't hurt).
Are the Oracle environment variables set correctly (i.e. ORACLE_HOME)? |
MQSI_REGISTRY=/var/wmqi
CLASSPATH=/opt/wmqi/jre/lib/rt.jar:/opt/wmqi/jre/lib/i18n.jar:/opt/wmqi/classes/
mci.jar:/opt/wmqi/classes/jfaceall.jar:/opt/wmqi/classes/swingall.jar:
LOGNAME=mqsi
ORACLE_SID=WMQP05
AUTOTREE=/opt/autosys
_RLD_ARGS=-ignore_unresolved
SYBASE=/opt/sybase/sybase
MQSI_PRELOAD=/orcl/app/oracle/product/8.1.7/lib/libclntsh.so
SHELL=/bin/ksh
ICU_DATA=/opt/nnsy/share/icu/data
ODBCINI=/var/wmqi/odbc/.odbc.ini
AUTOUSER=/opt/autosys/P00/autouser
LD_LIBRARY_PATH=/orcl/app/oracle/product/8.1.7/lib:/opt/wmqi/lib:/opt/wmqi/jre/l
ib/sparc:/opt/wmqi/merant/lib:/opt/autosys/autosys_4.5/lib::/opt/nnsy/bin
TERM=vt220
XAPPLRESDIR=/opt/autosys/app-defaults
ORACLE_HOME=/orcl/app/oracle/product/8.1.7
PWD=/orcl/app/oracle/product/8.1.7/network/admin
TZ=GB-Eire |
|
Back to top |
|
 |
JT |
Posted: Tue Jun 07, 2005 6:21 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Quote: |
[WMQP05]
Driver=/opt/mqsi/merant/lib/UKor816.so
WorkArounds=536870912
WorkArounds2=2
Description=Oracle8
ServerName=WMQP05 # This is the Oracle Schema - must map to entry in tnsnames.ora file
LogonID=mqsi
Password=*******
EnableDescribeParam=1
OptimizePrepare=1 |
Quote: |
mqsicreatebroker BMPSIS09 -i mqsi -a ******* -q BMPSIS09 -n WMQP05 -u wmqi21 -p ******* -w /var/wmqi -g 3600 -k 180 |
The one thing that strikes me as odd with your configuration (compared to my own) is the bolded parms appear to conflict. I'm not sure if there is a negative ramification (which id/password overrides the other), but try eliminating the database id/password parms from the .odbc.ini stanza:
Does /var/wmqi/odbc/odbctrace.out provide any details? |
|
Back to top |
|
 |
Roger |
Posted: Tue Jun 07, 2005 1:20 pm Post subject: |
|
|
Novice
Joined: 28 Jun 2001 Posts: 13
|
[quote="Roger"][quote="JT"]Post the contents of the .odbc.ini and tnsnames.ora files (another pair of eyes can't hurt).
The solution had been staring me in the face all along - the .odbc.ini had a comment following the servername stanza - whoever heard of an Odbc link being that clever to distinguish between a comment and the true service name! Removing that cured the problem - but thanks to all of you who responded. |
|
Back to top |
|
 |
|