How can I set the current schema for DB2 using Hibernate/JDBC?

后端 未结 2 1037
清酒与你
清酒与你 2020-12-31 04:44

I used to use currentSchema=MYSCHEMA; in my JDBC URL connection, but the version of DB2 we\'re using no longer supports that, showing the error \'The \"currentSchema\" prope

2条回答
  •  粉色の甜心
    2020-12-31 05:24

    With DB2 JDBC type 4 driver (com.ibm.db2.jcc.DB2Driver), I'm using this URL to connect :

    jdbc:db2://:/:currentSchema=;
    

    Source: http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/rjvdsprp.htm

提交回复
热议问题