Global Data Management Forum

IBM.Data.DB2.Core-lnx 3.1.0.400 nuget - .Net core 3.1 AWS lambda issue

  • 1.  IBM.Data.DB2.Core-lnx 3.1.0.400 nuget - .Net core 3.1 AWS lambda issue

    Posted Mon July 26, 2021 01:01 PM

    We have .Net Core 3.1 API hosted in Lambda. To connect to on premise DB2, we are using IBM.Data.DB2.Core-lnx 3.1.0.400 nuget. We have created deployment package and deployed to S3 and referenced it to Lambda. Required DLLs for IBM DB2 is part of the deployment packages.

     

    While executing DB2 calls we are getting following error:

    Unable to load shared library 'libdb2.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibdb2.so: cannot open shared object file: No such file or directory,Exception:System.DllNotFoundException: Unable to load shared library 'libdb2.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibdb2.so: cannot open shared object file: No such file or directory at IBM.Data.DB2.Core.UnsafeNativeMethods.DB232.SQLFreeConnAttribsADONET(DB2SQLGetConnAttribsADONETParams& pParam) at IBM.Data.DB2.Core.ConnSettingsFromXmlConfig.Dispose(Boolean disposing) at IBM.Data.DB2.Core.ConnSettingsFromXmlConfig.Dispose() at IBM.Data.DB2.Core.DB2ConnPool.ReplaceConnectionStringParms(DB2Connection connection, String szValue, DB2ConnSettings& pSettings, DB2ConnSettingsInternal& pSettingsInternal, Boolean bAttach, Boolean pushDownStrAppended) at IBM.Data.DB2.Core.DB2Connection.set_ConnectionString(String value) at IBM.Data.DB2.Core.DB2Connection..ctor(String connectionString) at Framework.Core.DataAccess.DB2Access.get_Connection()

    ------------------------------
    sidhdharth patel
    ------------------------------

    #DataManagementGlobal
    #DataServerDrivers