在weblogic/oracle中为JDBC池指定默认模式 [英] Specify default schema for JDBC pool in weblogic/oracle

查看:142
本文介绍了在weblogic/oracle中为JDBC池指定默认模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将同一用户用于多个项目,并且我想为不同的连接池使用不同的默认架构. 有没有办法在weblogic JDBC配置中指定默认架构?

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?

推荐答案

好吧,我自己弄清楚了:

Ok, I figured it out myself:

如果您转到数据源-> 配置-> 连接池->单击高级

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

Init SQL将会执行,以初始化新创建的物理数据库连接,我们可以输入:

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

创建默认架构.

这篇关于在weblogic/oracle中为JDBC池指定默认模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆