代码之家  ›  专栏  ›  技术社区  ›  Anees Ur Rehman

如何将Jasper Report Integration 2.3.0与Oracle Apex 5.1集成

  •  0
  • Anees Ur Rehman  · 技术社区  · 7 年前

    我想根据Jasper Report Integration Index页面中的给定安装,将Jasper Report Integration 2.3.0与Oracle Apex 5.1集成,但不是这样。安装后,我面临以下一些问题,请指导解决方案。。

    The Upper Checks 1,2,3 are showing "All tests Passed"

    1 回复  |  直到 7 年前
        1
  •  0
  •   Jeff Leach    7 年前

    我的猜测是,这是UTL_HTTP上Oracle DB中的安全性。您必须允许访问目的地,在您的情况下,您的JasperReport URL。这里有一个链接描述了允许web资源访问。 https://www.toadworld.com/platforms/oracle/w/wiki/11520.calling-web-pages-and-web-services-from-the-oracle-database

    这是本文的核心:


    如果您只想用HTTP读取网页的内容,可以使用UTL\U HTTP包。 允许访问

    数据库不允许调用开发人员想象的任何地址;您需要首先设置访问控制列表(ACL)。有两个步骤:创建ACL,并将主机和端口范围添加到ACL。

    允许访问例如www.oracle。com,您可以使用以下内容:

    BEGIN
    DBMS_NETWORK_ACL_ADMIN.create_acl (
        acl          => 'acl_oracle',
        description  => 'Allow access to oracle.com for testing',
        principal    => 'SCOTT',
        is_grant     => TRUE,
        privilege    => 'connect',
        start_date   => SYSTIMESTAMP,
        end_date     => NULL);
    DBMS_NETWORK_ACL_ADMIN.assign_acl (
        acl => 'acl_oracle',
        host => 'www.oracle.com',
        lower_port => 80,
        upper_port => NULL);
    COMMIT;
    END;
    /