【问题标题】:Unable to call a Oracle stored procedure from SSRS report builder 3.0无法从 SSRS 报表生成器 3.0 调用 Oracle 存储过程
【发布时间】:2023-03-12 10:57:01
【问题描述】:

这个问题已经被很多开发者发布了,但是很遗憾我找不到任何可以使用的解决方案。

我们正在从 Crystal Reports 迁移到 SSRS 报表(Report Builder 3.0),对于报表开发,我们使用 oracle 驱动程序和存储过程作为连接选项。

当我尝试运行查询或任何表时,我能够运行并获取所需的数据集,但是当使用存储过程(2 输入 1 输出 sys_refcursor)时,出现以下错误:

ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'PRocedure'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

我尝试了不同的方法,但无法向前迈出一步。

【问题讨论】:

    标签: oracle stored-procedures crystal-reports ssrs-2008-r2 reportbuilder3.0


    【解决方案1】:

    试了很多天,终于找到了在SSRS中使用存储过程的方法。

    发布答案以便其他人可以使用。

    从报表生成器中,我找不到将存储过程连接到 oracle 数据库的任何解决方案,遵循以下过程:

    1. 安装 Visual Studio 2017

    2. 为 Visual Studio 安装 Microsoft.DataTools.ReportingServices 这将安装 SSRS 工具以从 Visual Studio 进行开发。

    3. 现在要获得 oracle 连接需要安装 ODAC 工具。为使连接正常工作,请安装 32 位 ODAC 工具(安装期间选择所有选项)和 64 位 ODAC 工具,无需“Oracle developer tools for visual studio”。

    现在,当您启动 Visual Studio 时,连接到报告并选择程序,它应该会自动为您提供该程序的元数据。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-05
      • 1970-01-01
      相关资源
      最近更新 更多