Author |
Message
|
mqwbi |
Posted: Fri Jan 09, 2009 12:05 pm Post subject: problem in running mqsiprofile |
|
|
Novice
Joined: 15 Dec 2008 Posts: 24
|
Hi
I am using WMB 6.1 and WMQ 6.0 on AIX 5.3
My service user id for the broker is bkrusr . In the .profile file in its home directory, i have added these lines
. /opt/IBM/mqsi/6.1/bin/mqsiprofile
. <db2 instance directory>/sqllib/db2profile
added these lines. Saved the file
and ran
. ./.profile from the home directory
despite this, everytime aix is unable to recognise mqsi and db2 commands.
How do i get rid of this?
Can you help?
Thank You |
|
Back to top |
|
 |
SAFraser |
Posted: Fri Jan 09, 2009 1:38 pm Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
While I think what you've done should work, I have gotten inconsistent results when I've tried it on Solaris. So I've gotten into the habit of manually sourcing mqsiprofile after I 'su' to my broker service ID.
I hope others may offer a more effective solution. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Jan 09, 2009 1:47 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
I have this in the profile file:
Code: |
. /opt/ibm/mqsi/6.1/bin/mqsiprofile
export ODBCINI=/var/mqsi/odbc/odbc64.ini |
If you then su - wmbid from another ID, it insures it runs the mqsiprofile command. This is RHEL 5 in my case, WMB 6.1.0.3. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Jan 10, 2009 3:19 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Have you tried "newgrp -" When called with the "-" at the end it usually asks for the profile to be reloaded...... _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Sat Jan 10, 2009 6:10 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Of course, different shells require the "profile" file to have different names.
Are you sure you're using a shell that should call ".profile" when you log on, and not for example ".bash_profile"?
Also make sure you are logging into an interactive session that will run the profile and not into a non-interactive session that runs the rc. |
|
Back to top |
|
 |
smdavies99 |
Posted: Sat Jan 10, 2009 8:24 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
And if you are not sure what shell you are using use the following
$ echo $SHELL
an example is shown below
[color=orange][code]
[root@T3TA piccies]# echo $SHELL
/bin/bash
[root@T3TA piccies]#[/color]
[/code]
Therefore I would have to edit the .bash version of the .profile file to include the source of the wbi profile. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|