Weblogic: Call DB2 stored procedure without schema name (property currentSchema)

人盡茶涼 提交于 2019-12-03 14:56:06

Stored procedure (and function) resolution is not controlled by the CURRENT SCHEMA special register. It is controlled by the CURRENT PATH special register.

So, you can either:

  • Execute the SQL statement SET CURRENT PATH = MYSCHEMA
    or

  • Use the currentFunctionPath JDBC property.

You can at highest specify it in the JDBC URL of the datasource. E.g.

jdbc:db2://hostname:port/DBNAME:currentSchema=MYSCHEMA;

This however affects all connections coming from the same datasource.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!