[英]Getting exception while running multi-tenance code using Hibernate
I am trying to run a multi-tenancy example following this link 我正在尝试通过此链接运行多租户示例
But, executing the code I am getting the below exception 但是,执行代码我得到以下异常
Caused by: java.sql.SQLSyntaxErrorException: ORA-00922: missing or invalid option
It is coming at 快到了
connection.createStatement().execute("SET SCHEMA 'public'");
and even commenting the above line, the same exception is coming at 甚至在评论上面的一行时,都会出现相同的异常
connection.createStatement().execute("SET SCHEMA '" + tenantIdentifier + "'");
Please provide your valuable inputs. 请提供您宝贵的意见。
The command is not correct. 该命令不正确。 It is "alter session set current_schema". 它是“更改会话集current_schema”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.