Specify default schema for JDBC pool in weblogic/oracle

后端 未结 1 1171
既然无缘
既然无缘 2021-02-03 11:02

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 web

1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-03 11:51

    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.

    0 讨论(0)
提交回复
热议问题