Oracle Rest数据服务(ORDS)URL链接 [英] Oracle Rest Data Service (ORDS) URL link

查看:332
本文介绍了Oracle Rest数据服务(ORDS)URL链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have installed ORDS 3.0 on Centos 7 and using it in standalone mode, but I am currently having two issues:

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

  • The URL contains /ords, e.g.: http://localhost/ords. I want to change it to /apex instead. I have tried renaming ords.war to apex.war, but the URL hasn't changed.

我无法在系统引导时启动ORDS.我已经为其创建了一个systemctl服务,但是ORDS在启动后会停止.

I am unable to start ORDS at system boot. I have created a systemctl service for it, but ORDS stops after starting.

推荐答案

ORDS的特定版本可能很重要,例如从3.0到3.9确实发生了很大变化.

The specific version of ORDS can be important, things do change quite a bit from version 3.0 to 3.9 for example.

但是...

在init选项卡脚本中启动ORDS几乎与其他任何事情一样,您应该能够对它进行nohup并将输出重定向到日志文件.如果您正在执行此操作,则显示的日志文件是什么,为什么它在启动后就停止了?

Starting ORDS in your init tab scripts is pretty much like anything else, you should be able to nohup it and redirect the output to a log file. If you're doing this, what's the log file showing, WHY is it stopping after it starts?

URL的-由于您以独立模式运行ORDS,因此可以利用正在使用的嵌入式Jetty网络服务器.

And the URL's - since you're running ORDS in standalone mode, you can take advantage of the embedded Jetty webserver that's being used.

这意味着您可以配置URI的重写方式. 克里斯(Kris)给出了如何执行此操作的示例

That means you can config how URI's are rewritten. Kris has an example of how to do this here.

如何将/catalog映射到/ords/klrice/metadata-catalog/

How to map /catalog to /ords/klrice/metadata-catalog/

<Call name="addRule">
         <Arg>
           <New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
             <Set name="pattern">/catalog</Set>
             <Set name="replacement">/ords/klrice/metadata-catalog/</Set>
           </New>
         </Arg>
       </Call>
</Ref>

这篇关于Oracle Rest数据服务(ORDS)URL链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆