Jaspersoft Studio - Oracle JDBC 数据适配器 - 将特定架构设置为当前架构
我有最新版本的 Jaspersoft Studio,并且使用 Oracle 的 JDBC 数据适配器 (ojdbc11.jar),但连接是使用默认架构建立的,而我希望每个报表的查询在另一个模式中执行(我们称之为:“MySchema”)。
例如,带有此 SELECT 子句的报告将无法工作:
select *
from myTable
而带有此 SELECT 子句的报告将工作:
select *
from MySchema.myTable
我尝试了如下操作:
jdbc:oracle:thin:@//10.1.1.55:1521/DOMAIN.COM;connectionProperties={currentSchema=MySchema}
或这个:
jdbc:oracle:thin:@//10.1.1.55:1521/DOMAIN.COM;connectionProperties={CURRENT_SCHEMA=MySchema}
或这个:
jdbc:oracle:thin:@//10.1.1.55:1521/DOMAIN.COM?searchpath=MySchema
或this:
jdbc:oracle:thin:@//10.1.1.55:1521/DOMAIN.COM??currentSchema=MySchema
但没有成功。
您在这个方向上有解决方案吗?或者您知道解决问题的其他方法吗?
如果您认为我有对数十个表和函数进行选择的报告,那么这是一个非常大的问题。
I have the latest version of Jaspersoft Studio and I am using Oracle's JDBC data adapter (ojdbc11.jar), but the connection is made with the default schema, while I want the queries of each report to be executed in another schema (let's call it that: "MySchema").
For example a report with this SELECT clause will not work:
select *
from myTable
while a report with this SELECT clause will work:
select *
from MySchema.myTable
I tried things like this:
jdbc:oracle:thin:@//10.1.1.55:1521/DOMAIN.COM;connectionProperties={currentSchema=MySchema}
or this:
jdbc:oracle:thin:@//10.1.1.55:1521/DOMAIN.COM;connectionProperties={CURRENT_SCHEMA=MySchema}
or this:
jdbc:oracle:thin:@//10.1.1.55:1521/DOMAIN.COM?searchpath=MySchema
or this:
jdbc:oracle:thin:@//10.1.1.55:1521/DOMAIN.COM??currentSchema=MySchema
but without success.
Do you have a solution in this direction or do you know of any other way to solve the problem?
This is an extremely big problem if you consider that I have reports that make selects to dozens of tables and functions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论