Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2007

    Talking Unanswered: how do you open db2 command line in Linux v8.1 db2

    Hello everyone.

    Someone just installed DB2 on a RHEL4 Linux box and I need to test to see if its collecting data or not...

    The problem is I have no idea how to get to the db2 command line.

    I'm reading this tutorial and it tells me to type in db2start but this doesn't work.

    I'm checking in the following directory:

    Any idea how I can get to the screen so I can try to log in and run some queries?

    Thanks any help would be great!
    IBM: Tivoli zSeries Co-op

  2. #2
    Join Date
    Jun 2003
    Toronto, Canada
    Provided Answers: 1
    The executable name for DB2 command line processor is "db2"
    "It does not work" is not a valid problem statement.

  3. #3
    Join Date
    Aug 2007
    I also tried that in the bin directory of db2 v8.1

    I tried both db2 and also running it as a shell script ./db2 and there is no db2 to run, so does this mean db2 was installed improperly or am I missing something?

    This is on linux by the way (RHEL 4)

    I get the following error when ./db2

    root@opie~] ./db2
    SQL10007N Message "-1390" could not be retrieved. Reason code: "6".

    Google told me the problem is I need to set the DB2INSTANCE environment variable...but what do I set it to exactly?

    Sorry I'm a n00b to db2/linux.
    Last edited by mr_coffee; 10-15-07 at 20:13.
    IBM: Tivoli zSeries Co-op

  4. #4
    Join Date
    Jun 2006
    create a client instance for this user, and sqllib and bin and other will be created profile will be changed and sqllib/bin will be in the path and db2 can be executed.. (see db2icrt command to be executed from root)
    Best Regards, Guy Przytula
    DB2 UDB LUW certified V6/7/8

  5. #5
    Join Date
    Jan 2003
    Provided Answers: 1
    it look like you haven't installed/configured as it should.
    Try looking into how-to for db2-linux:

Posting Permissions

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