Jaspersoft Studio - Oracle JDBC 数据适配器 - 将特定架构设置为当前架构

发布于 2025-01-10 03:29:52 字数 1037 浏览 5 评论 0原文

我有最新版本的 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:

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文