AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Problème de connexion base DB2 LMT

    Posted Tue October 06, 2020 01:17 PM

    Bonjour,

    Suite à la montée de version 9.2.21 d’LMT sur un serveur de test, je n’ai plus de connexion à la base TEMADB.

    Je n’ai pas eu de problème avec cet upgrade. Mais lors de la connexion à la console WEB LMT le produit m’a indiqué qu’il fallait que je crée et que je configure la base TEMABD.

    J’ai analysé le fichier tema.log est j’ai trouvé le message suivant :

    [10/5/20 10:55:44:076 UTC] 00000127 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[ERROR] Cannot connect to the database: Java::ComIbmDb2JccAm::SqlSyntaxErrorExcep

    tion: [jcc][10165][10036][4.22.29] Invalid database URL syntax: jdbc:db2://localhost:50000/:retrieveMessagesFromServerOnGetMessage=true;enableExtendedIndicators=2;currentSchema=DBO;. ERRORCODE=-4461, SQLSTATE=42815.

    The next try for 60 seconds.

    J’ai vérifié le fichier database.yml pour comparer si j’avais le même numéro de port:

    production:

    host: localhost

    database: temadb

    username: db2inst1

    database_type: db2

    port: '50000'

    encrypted_password: "{aes}AMHM54Rmkjhk2sLyAZ761Xl/id8QadpZCfJypEPu+C61"

    Celui-ci est bien à l’écoute

    # netstat -na | grep 50000

    tcp 0 0 0.0.0.0:50000 0.0.0.0:* LISTEN

    Je pense utiliser le pilote JBDC de type 4 d’après le fichier server.xml

    <dataSource id='DatabaseConnection' jndiName='jdbc/ilmtDatabaseConnection'>

    <jdbcDriver libraryRef='DatabaseLib'/>

    <properties.db2.jcc databaseName='temadb' driverType='4' enableExtendedIndicators='2' password='{aes}AC2ika1YaamvuUOtcjJNI11u+QtjyBgg4v3ErhfhP7SA' portNumber='50000' serverName='localhost' user='db2inst1'/>

    </dataSource>

    <application autoStart='true' context-root='/' location='tema.war' type='war'>

    <classloader apiTypeVisibility='spec, ibm-api, api, third-party' commonLibraryRef='lmt,DatabaseLib' delegation='parentLast'/>

    </application>

    <webContainer deferServletLoad='false' disableXPoweredBy='true' useoriginalrequeststate='true'/>

    <applicationMonitor dropinsEnabled='false' updateTrigger='disabled'/>

    </server>

    La version du DB2 est là v11.1 fix pack 4, normalement supportée par cette version d’LMT

    DB21085I This instance or install (instance name, where applicable:

    "db2inst1") uses "64" bits and DB2 code release "SQL11014" with level

    identifier "0205010F".

    Informational tokens are "DB2 v11.1.4.4", "s1902261400", "DYN1902261400AMD64",

    and Fix Pack "4a".

    Product is installed at "/tech/IBM/db2/V11.1".

    Auriez-vous une idée pour résoudre mon problème.

    Cordialement



    #AIX
    #Support
    #SupportMigration


  • 2.  RE: Problème de connexion base DB2 LMT

    Posted Tue October 06, 2020 01:42 PM

    Hi,

    Wondering if you can try this from db2 command line and see if it works.

    db2 connect to temadb using db2inst1

    If everything looks okay, please open a new case and attach tema.log in full, along with upgrade logs (to verify if the upgrade went fine) -

    https://www.ibm.com/support/knowledgecenter/en/SS8JFY_9.2.0/com.ibm.lmt.doc/Inventory/probdet/r_server_install_log.html

    Please do not attach any log file to forum, instead please open a case against ILMT Support.

    Thanks.



    #AIX
    #Support
    #SupportMigration


  • 3.  RE: Problème de connexion base DB2 LMT

    Posted Tue October 06, 2020 02:08 PM

    Merci de votre retour.

    j'ai passé la commande

    db2 connect to temadb user db2inst1 using *******

    j'ai bien le bon résultat la base est bien UP

    Database Connection Information

    Database server = DB2/LINUXX8664 11.1.4.4

    SQL authorization

    ID = DB2INST1

    Local database alias = TEMADB

    je vais ouvrir un incident avec les fichiers que vous voulez.

    Cordialement



    #AIX
    #Support
    #SupportMigration