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 » WebSphere Message Broker (ACE) Support » Errors running mqsicreatebroker on AIX5.3 Oracle 9.2.0.4 db

Post new topic  Reply to topic
 Errors running mqsicreatebroker on AIX5.3 Oracle 9.2.0.4 db « View previous topic :: View next topic » 
Author Message
vefranco
PostPosted: Tue Jul 19, 2005 2:22 pm    Post subject: Errors running mqsicreatebroker on AIX5.3 Oracle 9.2.0.4 db Reply with quote

Newbie

Joined: 13 Jul 2005
Posts: 2
Location: Alexandria, VA

Working with our SA and trying to create the message broker.

The command she is running is:
mqsicreatebroker BRKRDEV1 -i mqm -a mqm -q DEVSERV301 -n brkrdev1 -u mqsystem -p *******

The errors we receive are:
BIP2321E: Database error: ODBC return code '-1'.
The message broker encountered an error whilst executing a database
operation. The ODBC return code was '-1'. See the following messages for information obtained from the database pertaining to this error.
Use the following messages to determine the cause of the error. This is
likely to be such things as incorrect datasource or table names. Then
correct either the database or message broker configuration.

BIP2322E: Database error: SQL State '08001'; Native Error Code '0';
Error Text '[DataDirect][ODBC Oracle driver]Client unable to establish
connection.'.The error has the following diagnostic information: SQL State '08001' SQL Native Error Code '0' SQL Error Text
'[DataDirect][ODBC Oracle driver]Client unable to establish connection.'
This message may be accompanied by other messages describing the effect on the message broker itself. Use the reason identified in this
message with the accompanying 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 connection. Also ensure that the database has a
adequate number of database connections available for use.

the odbc.ini file is:
[ODBC Data Sources]
MQSIBKDB=IBM DB2 ODBC Driver
MYDB=IBM DB2 ODBC Driver
ORACLEDB=DataDirect 410 Oracle 8 Driver
SYBASEDB=DataDirect 410 Sybase ASE Driver
[MQSIBKDB]
Driver=/u/db2inst1/sqllib/lib/libdb2.a
Description=MQSIBKDB DB2 ODBC Database
Database=MQSIBKDB
[MYDB]
Driver=/u/db2inst1/sqllib/lib/libdb2.a
Description=MYDB DB2 ODBC Database
Database=MYDB
[ORACLEDB]
Driver=/usr/opt/wmqi/merant/lib/UKor818.so
WorkArounds=536870912
WorkArounds2=2
Description=Oracle8
ServerName=brkrdev1
EnableDescribeParam=1
OptimizePrepare=1
[SYBASEDB]
Driver=/usr/opt/wmqi/merant/lib/UKase18.so
Description=Sybase11
Database=sybasedb
ServerName=YourServerName
WorkstationID=id
EnableDescribeParam=1
OptimizePrepare=1
SelectMethod=0
NetworkAddress=10.30.14.72,5000
SelectUserName=1
[ODBC]
Trace=0
TraceFile=/var/wmqi/odbc/odbctrace.out
TraceDll=/usr/opt/wmqi/merant/lib/odbctrac.so
InstallDir=/usr/opt/wmqi/merant

the tnsnames.ora file is:
BRKRDEV1.HOFFMAN.ARMY.MIL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = devserv3)(PORT = 1532))
)
(CONNECT_DATA =
(SERVICE_NAME = brkrdev1)
)
)

A few other things to note:
1. user running command is "mqm", and has ORACLE_HOME and LD_LIBRARY_PATH set in its profile
2. the setupdatabase command was run
3. the userid and password used in the mscreatebroker command above has full permissions in Oracle, also I connect via SQL*Plus
4. the symbolic link was created

I tried to look at similar posts with the same 3 error messages and have exhausted what else to check.

Thanks in advance for any help.

Valerie
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 19, 2005 4:03 pm    Post subject: Re: Errors running mqsicreatebroker on AIX5.3 Oracle 9.2.0.4 Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

vefranco wrote:
also I connect via SQL*Plus


From the broker machine? As the mqm user? What about as the mqsystem user?

Confirm that the broker service user profile has all necessary environment entries (path, libpath, orahome, etc.).

Confirm that the database user you are using has all the necessary permissions to the table.

Check the database logs to see if it's throwing a companion error.

Read about mqsichangetrace.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JT
PostPosted: Tue Jul 19, 2005 7:12 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
mqsicreatebroker BRKRDEV1 -i mqm -a mqm -q DEVSERV301 -n brkrdev1 -u mqsystem -p *******

You've identified the broker database as brkrdev1, but I don't see an entry for it in the .odbc.ini file, so you need this entry:

Quote:
[ODBC Data Sources]
MQSIBKDB=IBM DB2 ODBC Driver
MYDB=IBM DB2 ODBC Driver
ORACLEDB=DataDirect 410 Oracle 8 Driver
SYBASEDB=DataDirect 410 Sybase ASE Driver
BRKRDEV1=DataDirect 410 Oracle 8 Driver

[BRKRDEV1]
Driver=/usr/opt/wmqi/merant/lib/UKor818.so
WorkArounds=536870912
WorkArounds2=2
Description=Oracle8
ServerName=brkrdev1
EnableDescribeParam=1
OptimizePrepare=1
Back to top
View user's profile Send private message
vefranco
PostPosted: Wed Jul 20, 2005 10:57 am    Post subject: Reply with quote

Newbie

Joined: 13 Jul 2005
Posts: 2
Location: Alexandria, VA

thanks for your responses!

changed the following and it worked:
1. in tnsnames.ora, SERVICE_NAME, changed to SID

2. added the entry in the odbc.ini, for "BRKRDEV1", also fully-qualified ServiceName to match what was in tnsnames.ora

3. created tablespace for tables (was told by IBM that script that created tables also created tablespaces)

4. set ORACLE_SID in .profile



Valerie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Errors running mqsicreatebroker on AIX5.3 Oracle 9.2.0.4 db
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.