问题标签 [oracle-ords]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
20917 浏览

tomcat - ords 数据库未映射数据库

我正在尝试配置 Oracle Apex 5 和 ORDS 以与 Tomcat 一起使用。我设法按照 Oracle 文档说明完成了所有步骤,但是当我尝试使用http://localhost:8080/ords/它访问 ORDS 时出现错误:

404 未找到

该请求无法映射到任何数据库。检查请求 URL 是否正确,并且该 URL 到数据库映射已正确配置

请支持,独立工作。

Oracle:11g
操作系统:Linux
Tomcat:7(运行中)

0 投票
2 回答
11481 浏览

tomcat - Oracle Apex 或 ORDS 无法识别图像文件夹

我已经安装了 Oracle Apex 5 并通过 Tomcat 配置了 ORDS,但是我收到如下错误:

There is a problem with your environment because the Application Express files have not been loaded. Please verify that you have copied the images directory to your application server as instructed in the Installation Guide. In addition, please verify that your image prefix path is correct. Your current path is /i/ (it should contain both starting and ending forward slashes, such as the default /i/). Use the SQL script reset_image_prefix.sql if you need to change it.

0 投票
0 回答
1180 浏览

oracle - Oracle ORDS 获取登录用户

我成功地遵循了第 3.5.5.3 节中的步骤 1-4,在3.5 配置对 RESTful 服务的安全访问以进行基于 cookie 的第一方身份验证并且资源受到保护,因此我使用 hr_admin/password 登录并成功检索资源。如何在 SQL 中检测到这是 hr_admin?我检查了:

除其他外,但在任何地方都找不到用户名(hr_admin),所有内容都指向数据库模式(ORDSTEST)。我所使用的用户名是用户通过其 Web 浏览器提供的 OAuth 身份验证的用户名和角色。

客户端是不受信任的 HTML/JavaScript,因此我无法存储名称客户端并将其与每个请求一起发送。

在 APEX 中,调用将是 V('APP_USER') 但这不适用于 ORDS。

0 投票
1 回答
2261 浏览

tomcat - Tomcat 9 使用 ORDS 和 Oracle Apex 重写

如何使用 Tomcat(8.x、9.x - 支持本机重写)和 ORDS 和 Oracle Apex(前面没有 Apache)设置 URL 重写(如 Apache 中的 mod_Rewrite)?

0 投票
1 回答
2160 浏览

oracle - 更改 Oracle ORDS 2 的 HTTP 端口

我的 DBA 告诉我,我无法更改我的 APEX 服务正在侦听的 HTTP 端口,并且需要重新安装 ORDS,可能升级到 Oracle 支持的 ORDS 3。但我也被告知,重新安装 ORDS(2 或 3)将需要重建我的 Oracle 实例。

我不是 DBA,我是 Apex 工作区管理员和 11GR2 Oracle 实例的企业所有者。我不认为我们不能简单地通过一些配置更改 HTTP 端口,然后重新启动服务。

另外,我不认为我们不能在 ORDS 2 之上安装/升级 ORDS 3.0,或者重新安装 ORDS 2,而不报废和重建整个 Oracle 实例。

尤其是当我看到这样的文章时:

https://blog.cdivilly.com/2015/03/11/install-ords-3.0.0/

https://docs.oracle.com/cd/E56351_01/doc.30/e56293/install.htm#AELIG-GUID-BEF8B58F-53C2-4377-AC38-595A85094E79

任何人都可以建议,在使用 Oracle 11GR2 时,如何配置 APEX http 端口或 ORDS 2,以及在不对实例和现有数据产生重大影响的情况下升级到 ORDS 3 和 APEX 5(从 ORDS 2 和 APEX 4.2)是否可行/应用程序。

任何建议表示赞赏。

0 投票
1 回答
566 浏览

java - 将参数传递到“java -jar ords.war”

我是一名 Oracle DBA,我们使用 Bash 编写了很多工作脚本。我们在我的工作地点使用 APEX 和 ORDS,我经常运行“java -jar ords.war”卸载/安装等,并且必须手动完成。我只想编写脚本并通过 bash 脚本自动提供参数。

如果我手动运行命令,那么当我收到提示时,我必须输入相关参数:主机名、端口、sid、sys 密码和应用程​​序密码。

那么,如何使用 bash 脚本提供这些参数呢?我在 Google 上搜索了一下,并尝试将参数放在引号中或使用外部文件,但我没有得到任何乐趣。有什么想法吗?

编辑 Tripleee:

如果这篇文章是另一个帖子的副本,那么您有机会指出我正确的方向,因为我找不到它。

编辑 REW:

我们经常设置 Oracle EBS 数据库的克隆。除了重新配置 ORDS 之外,一切都是脚本化的。我们在多个实例上执行此操作,因此我们的脚本计算出 SID、端口、服务器名称等是什么,然后将它们提供给各种程序,例如 ADADMIN 等。我要做的就是运行“java -jar ords.war uninstall ”。当手动运行时,您必须从命令行为程序提供 5 个参数(服务器名称、端口、SID、sys 密码和应用程​​序密码)。我只想自动提供这些参数,但每次我收到“警告:控制台不可用,高级安装需要”错误消息时,它都会停止。

0 投票
1 回答
265 浏览

oracle - 设置 Oracle Rest Data 服务的问题

我已经成功安装了 Oracle REST 数据库服务版本 3.0.4.60.12.48。我可以访问 Oracle Apex,但是当我创建 Web 服务并单击测试按钮时,我收到此错误。

评估资源模板时出错:GET hr/employees/,
SQL 错误代码:28000,
SQL 错误消息:ORA-28000:帐户已锁定

我尝试连接到Oracle_apex_public用户和所有其他用户以检查是否有任何帐户被锁定,但我可以使用 SQLDeveloper 连接到这些帐户。

我也尝试过重新安装和更改 ORDS 配置文件中的默认表空间,但仍然无法正常工作。

如果有人知道出了什么问题,请提供帮助。

0 投票
1 回答
1504 浏览

java - Oracle Rest 数据服务 (ORDS) URL 链接

我已经在 Centos 7 上安装了 ORDS 3.0 并在独立模式下使用它,但我目前遇到两个问题:

  • URL 包含 /ords,例如:http://localhost/ords。我想将其更改为 /apex 。我尝试将 ords.war 重命名为 apex.war,但 URL 没有改变。

  • 我无法在系统引导时启动 ORDS。我为它创建了一个 systemctl 服务,但 ORDS 启动后停止。

0 投票
1 回答
1989 浏览

oracle - Tomcat 8 上的 Oracle ORDS 在 url 中隐藏模式名称

我不希望用户能够在 ORDS URL 中看到上下文或模式名称。

在 Oracle 文档中,我的 URL 是这样的:

注意架构名称,HR 存在。我的目标是隐藏 ORDS、工作区和 hr。所以我的网址应该是:

我不想要的是更新浏览器栏的 HTTP 301 重定向。

尝试过的事情

1)UrlRewriteFilter 在 ROOT 但 type="redirect" 它只重定向和泄漏上下文。没有 type="redirect" 会产生“请求的资源不可用。” 来自Tomcat,所以显然甚至没有到达ORDS。

2)JSP重定向

成功重定向,但泄漏上下文。

3)Tomcat“rewrite Valve”再次同样的结果成功的301类型重定向。

没试过

1) 前端 Tomcat 与 Apache httpd 实例。

0 投票
2 回答
2227 浏览

java - Why isn't my ORDS servlet executing, even though I've followed the existing guidelines?

I'm presently writing an ORDS plugin which is intended to filter certain requests. I'm not quite about to get the filtering working, so I decided to follow Oracle's provided instructions for their Plugin API.

I've configured much of the build with a Gradle task which automatically:

  • Downloads the WAR
  • Adds the plugin JAR (also previously built with Gradle) to ORDS
  • Ensures that the configdir is set appropriately

Effectively, this is the automated equivalent to me running:

...and I deploy this to my local IntelliJ instance.

Here is what my servlet looks like. It's pretty basic.

I'm led to believe by the documentation that I should be able to access it at http://localhost:8080/ords/my_schema/plugin/servlet/, but that doesn't seem to be the case. I'm instead greeted with a 404:

What am I missing? I'm unclear as to what should be a very basic servlet - which is virtually analogous to the "Hello World!" example they have provided - is simply not registering appropriately.

Note:

  • The schema is enabled for ORDS.
  • This error happens with both containers I've used; Glassfish and Tomcat.
  • I am not using APEX, which seems to be a common add-on for this product. I'm intending to use ORDS as a RESTful provider for my data.
  • The trailing slash in the @Dispatches path doesn't seem to have an effect; if it's removed or if it's present the issue remains.

I am looking for authoritative answers or insights as to what could be going on here. Guesses and shots in the dark do me no good, as I've been tinkering with this myself, and there's a very good chance that our tinkering paths would have overlapped.


As loath as I am to add pictures to any question, BalusC suggested that I inspect the contents of the JAR to ensure that there's a specific providers file contained within.

From this screenshot, there appears to be two...

enter image description here

...and their contents are the same...

...but when I go to extract the JAR and inspect the file, it only contains the AnnotationsProvider line.

But wait! It gets weirder!

When I mount the JAR to extract individual files, I see lots of duplicates:

enter image description here

...which leads me to believe that, somehow, the older file is overwriting the newer file.