Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2013
    Posts
    14

    Unanswered: db2profile on RHEL 6.3

    Hi all,

    I want one of my user account to know where my DB2 client is. I looked at the db2profile file in the client install and the DB2INSTANCE is set to "instancename" and the INSTHOME is set to "instancehomedir".

    Am I supposed to change these values? The file says "DO NOT EDIT".

    Thanks md

  2. #2
    Join Date
    Jan 2003
    Posts
    4,292
    Provided Answers: 5
    The reason for the DO NOT EDIT is that FixPacks will replace it, and any user changes would be lost. To fix this, this calls "userprofile" in the same directory, which does not get updated by FixPacks. Edit this file to do what you want.

    Andy

  3. #3
    Join Date
    Jun 2013
    Posts
    14
    Thanks AR,
    But which db2profile do i run in my user .bash_profile the one in

    /opt/ibm/db2/v9x/cfg

    or

    /home/db2inst1/sqllib



    The one in the sqllib seems to have the right variables.

    thanks
    md

  4. #4
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    The one in the instance home directory.
    ---
    "It does not work" is not a valid problem statement.

  5. #5
    Join Date
    Jun 2013
    Posts
    14
    Thanks, n_i

    My user account can now find "db2" ...awesome!

    Was it supposed to update the PATH and LIBPATH in my .bash_profile, because nothing in their was updated? My bash_profile calls the db2profile if it exists.

  6. #6
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Quote Originally Posted by md888 View Post

    Was it supposed to update the PATH and LIBPATH in my .bash_profile, because nothing in their was updated? My bash_profile calls the db2profile if it exists.
    No it was not. Adding a source call to db2profile is the way to do it.
    ---
    "It does not work" is not a valid problem statement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •