Ibatis 调用 db2 function 可以不指定schema吗?

2025-05-21 10:31:11
推荐回答(1个)
回答(1):

帮一下包试试?db2terminatedb2CONNECTTOdbnameuserUSERIDusingPASSWORDdb2BINDpath\db2schema.bndBLOCKINGALLGRANTPUBLICSQLERRORCONTINUEdb2BINDpath\@db2ubind.lstBLOCKINGALLGRANTPUBLICACTIONADDdb2BINDpath\@db2cli.lstBLOCKINGALLGRANTPUBLICACTIONADDdb2terminatewheredbnamerepresentsthenameofadatabasetowhichthefilesshouldbebound,andwherepathisthefullpathnameofthedirectorywherethebindfilesarelocated,suchasINSTHOME\sqllib\bndwhereINSTHOMErepresentsthehomedirectoryoftheDB2instance.db2ubind.lstanddb2cli.lstcontainlistsofrequiredbindfilesusedbyDB2databaseproducts.PackagesthatarealreadyboundwillreturnanSQL0719Nerror.Thisisexpected.