문제

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".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top