Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Programmatically determine hostname and port for APEX via PL/SQL

hayden_c2Jul 24 2008 — edited Jul 25 2008
Hi,
Is it possible to get the host name (and port) of the current APEX instance programmatically using PL/SQL?
The reason I ask is that I prepare emails using the APEX_MAIL API for one of my applications, and rather than hard-code (or use substitution strings) the URL to the APEX application in the PL/SQL block that generates and sends the email, I would like to make it dynamic, so migrating it from a development APEX host to a production APEX host doesn't require changing these values.
Any Ideas?

Cheers,
Hayden
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2008
Added on Jul 24 2008
1 comment
1,885 views