如何确定Oracle APEX中的主机名? [英] How to determine the hostname in Oracle APEX?

查看:97
本文介绍了如何确定Oracle APEX中的主机名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Oracle APEX中创建一些指向应用程序本身的链接.但是它改变了我的开发环境和生产环境.我需要一种确定当前主机名和端口的方法.哪个功能可以帮助我?

I want to create some links in Oracle APEX to the application itself. But it changes in my development envireonment and the production environment. I need a way to determine my current hostname and port. Which function can help me?

推荐答案

必要的方法在APEX_UTIL-程序包中,并称为

The necessary method is in the APEX_UTIL-package and called HOST_URL. With the parameter, you can extend the output:

假设您的主机名是example.com,端口是5883.

Given your hostname is example.com and your port is 5883.

function call                    |  result
---------------------------------|-----------------------------------
APEX_UTIL.HOST_URL()             |  http://example.com:5883
APEX_UTIL.HOST_URL('SCRIPT')     |  http://example.com:5883/pls/apex/
APEX_UTIL.HOST_URL('IMGPRE')     |  http://example.com:5883/i/

值为IMGPRE的结果取决于您在应用程序属性">用户界面">常规属性">图像前缀"中的配置.

The result with the value IMGPRE depends on your configuration at Application Properties > User Interface > General Properties > Image prefix.

这篇关于如何确定Oracle APEX中的主机名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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