Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2010

    Unanswered: unable to connect to database

    I have a database with below details :-

    =>db2 list db directory

    System Database Directory

    Number of entries in the directory = 1

    Database 1 entry:

    Database alias = TEST123
    Database name = TEST
    Local database directory = /u01/TEST/db
    Database release level = d.00
    Comment =
    Directory entry type = Indirect
    Catalog database partition number = 0
    Alternate server hostname =
    Alternate server port number =
    Could not connect to the database when tried with dbname

    /=>db2 connect to TEST
    SQL1013N The database alias name or database name "TEST" could not be found.

    I am able to connect to the database with Alias name.
    /=>db2 connect to TEST123

    Database Connection Information

    Database server = DB2/AIX64 9.7.3
    SQL authorization ID = tstusr
    Local database alias = TEST123

    Wanted to know if we can connect to the database with dbname or I should use only Alias .

    Thank you

  2. #2
    Join Date
    Apr 2006
    Provided Answers: 11
    yes correct - use the alias
    imagine multiple sample db on different systems - they are all cataloged with different alias..
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5-V11 Fundamentals- DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified

Posting Permissions

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