Home » Developer & Programmer » JDeveloper, Java & XML » DBMS_EPG virtual path settings
DBMS_EPG virtual path settings [message #342960] Mon, 25 August 2008 11:42 Go to next message
rkaula
Messages: 22
Registered: December 2005
Junior Member
I am trying to configure the Oracle 11g embedded HTTP server through the DBMS_EPG package. The create_dad and map_dad procedure map a DAD to a specified virtual path. However, how does this virtual path relate to the physical folder on the machine? In other words, if one want to store image files for access through the virtual path, where does one store these files on the machine. For example,

begin
dbms_epg.map_dad('classpsp','/mypath/*');
end;

Now how does /mypath/ relate to the physical folder on the hard drive.

Thanks.

Rajeev.
Re: DBMS_EPG virtual path settings [message #642036 is a reply to message #342960] Mon, 31 August 2015 18:41 Go to previous messageGo to next message
surferal41
Messages: 3
Registered: February 2009
Junior Member
hello.

did you ever get an answer? Running the same with Oracle 12c dbms_epg.

please advise
Kind regards,
Re: DBMS_EPG virtual path settings [message #642044 is a reply to message #642036] Tue, 01 September 2015 01:36 Go to previous messageGo to next message
John Watson
Messages: 8928
Registered: January 2010
Location: Global Village
Senior Member
You upload your images into the database.

Note that this topic is seven years old.
Re: DBMS_EPG virtual path settings [message #642052 is a reply to message #642044] Tue, 01 September 2015 04:11 Go to previous message
surferal41
Messages: 3
Registered: February 2009
Junior Member
Thank you. What we need, (preparing a POC with Oracle 12c) is to enable a start page (index.html) as our homepage when we call this: http://orcl12c.com

Currently we are getting a default virtual Index of (dir) listing as our homepage:

Index of /

Name Last modified Size

dbfs/ Mon, 07 Jul 2014 05:53:44 GMT -
home/ Mon, 07 Jul 2014 06:15:41 GMT -
olap_data_security/ Mon, 07 Jul 2014 06:20:27 GMT -
public/ Mon, 07 Jul 2014 05:53:43 GMT -
sys/ Mon, 07 Jul 2014 05:53:44 GMT -
xds/ Mon, 07 Jul 2014 06:20:27 GMT -


Current Dad settings below my name. Your help sir is really appreciated!

Kind Regards,
AR

BEGIN
DBMS_EPG.create_dad (
dad_name => 'home_dad',
path => '/home/*');
END;
/

BEGIN
DBMS_EPG.authorize_dad (
dad_name => 'home_dad',
user => 'APPS');
END;
/
BEGIN
DBMS_EPG.set_dad_attribute (
dad_name => 'home_dad',
attr_name => 'database-username',
attr_value => 'APPS');
END;
/
BEGIN
DBMS_EPG.set_dad_attribute (
dad_name => 'home_dad',
attr_name => 'default-page',
attr_value => 'jane.www');
END;
/
BEGIN
DBMS_EPG.set_dad_attribute (
dad_name => 'home_dad',
attr_name => 'document-path',
attr_value => 'docs');
END;
/
CREATE OR REPLACE PACKAGE apps.jane AS
PROCEDURE www;
END;
/
SHOW ERRORS
CREATE OR REPLACE PACKAGE BODY apps.jane AS
PROCEDURE www is
BEGIN
HTP.htmlopen;
HTP.headopen;
HTP.title('This is a test page!');
HTP.headclose;
HTP.bodyopen;
HTP.print('This is a test page! DateTime: ' || TO_CHAR(SYSTIMESTAMP));
HTP.bodyclose;
HTP.htmlclose;
END www;
end;
/
show errors

Previous Topic: JDeveloper
Next Topic: Parsing XML
Goto Forum:
  


Current Time: Tue Apr 16 11:08:11 CDT 2024