Specify default schema for JDBC pool in weblogic/oracle

做~自己de王妃 提交于 2019-12-03 07:34:42

问题


We use the same user for multiple projects and I want to have a different default schema for different connection pools. Is there a way to specify the default schema in the weblogic JDBC configuration?


回答1:


Ok, I figured it out myself:

If you go to Data Source-> Configuration -> Connection Pool -> click Advanced,

There is Init SQL there that will be executed for initialization of newly created physical db connection, we can put:

SQL ALTER SESSION SET CURRENT_SCHEMA=animals

to make the default schema.



来源:https://stackoverflow.com/questions/16065230/specify-default-schema-for-jdbc-pool-in-weblogic-oracle

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