Skip to Content
author's profile photo Former Member
Former Member

unable to connect database through command line

Dear Experts.

I m not able to connect database through via:

-> db2 connect to <sid> user db2<sid> using <password>

So i raised the issue with SAP .and Sap suggest me to drop and create the instance once again .When i check instance using command db2ilist i get O/p Db2 .

So i have to drop this instance and recreate it again ?

Kindly suggest me as its showing only one instance .



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Sep 27, 2010 at 08:17 AM

    Hi Ashok,

    What error you you get with the connect command and what is written to the db2diag.log?

    Dropping and recreating the instance should not take too long but have you tried performing an instance update?

    Is this a newly installed system or has it been running for some time?

    What was done prior to the connect not wokring? were any passwords changed/ hardware change/ fixpack or release update?



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 27, 2010 at 08:13 AM

    Hi Ashok,

    could you please be more specific. What is the return of your CLP command?

    Are you trying to connect from db server or an SAP appserver. Is your system using the CLI driver client?



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.