Global Data Management Forum

 View Only

Lokal License check for .Net /cli

  • 1.  Lokal License check for .Net /cli

    Posted Fri January 13, 2023 03:25 AM
    We have problems in .Net  where the license check on host hangs up, and causes connection timeouts.  (we have case for that.) 

    We will try to explore having the license file locally. 

    In JDBC  It is possible to set a parameter to test local license first . * see below 

    But i can not find a similar option  for  .Net ?    

    In which order is the license check done  in .Net / CLI   ? 
    is there a similar parameter ?  

    regards Thomas 

    IBM Data Server Driver for JDBC and SQLJ enhancements for Db2 11.5.6 - IBM Documentation

    In Db2 11.5.5 and older version clients, when establishing a connection, the driver checks for the server-side Db2 license first. If a server-side license is not found, it then looks for a client-side license.
    With the release of Db2 11.5.6, you can configure your JDBC driver to check for the client-side license first.
    A new configuration parameter, useClientSideLicenseFirst has three settings:

    • When set to 1, the driver checks for a client-side license and, if present, validates the connection. It no longer checks for the server-side license.
    • When set to 2, the driver checks for a server-side license with which to validate the connection. If no server-side license is found, it proceeds to look for a client-side license for validating the connection. This is the behavior for 11.5.5 and earlier versions of the Db2 client.
    • A setting of 0 represents a NOT_SET state for the property. This results in the same behavior as the 2 setting, with the driver looking for the server-side license first.


    Thomas Holm Sennels