Category: APEX

January 17
December 7

Michael McLaughlin had written last week some nice small blog posts on XML DB. I couldn’t resist to see if I could make this one easier… 😉

The package DBMS_EPG is sole based on the xdbconfig.xml file, which is the configuration file for the XML DB Protocol Server, which is not, by the way, an Apache Server configured inside the database, but a custom build protocol server hook-in into the Oracle listener, that passes its data to the Shared Server SQL*Net Architecture.

So I made some attempts on my 11gR2 database, without using the nowadays “extract” deprecated functions… After fiddling around with the XMLTABLE function, using DBMS_XDB.CFG_GET() to get the content of the xdbconfig.xml XML document (its result is an xmltype datatype), the following simplified code that results the DAD’s in a varchar2(15) list.

SQL> SELECT u.dad as "PL/SQL DAD List"
  2  FROM   XMLTable(XMLNAMESPACES (
  3                                  default 'http://xmlns.oracle.com/xdb/xdbconfig.xsd'
  4                                ),
  5                  '//servlet-list/*[servlet-language="PL/SQL"]'
  6                  PASSING DBMS_XDB.CFG_GET()
  7                  COLUMNS DAD varchar2(15) PATH '/servlet/servlet-name/text()'
  8                 ) u
  9  ;

PL/SQL DAD List
---------------
APEX

1 row selected.

SQL>  EXECUTE dbms_epg.create_dad('MARCO','/XFiles/*');

PL/SQL procedure successfully completed.

SQL> SELECT u.dad as "PL/SQL DAD List"
  2  FROM   XMLTable(XMLNAMESPACES (
  3                                  default 'http://xmlns.oracle.com/xdb/xdbconfig.xsd'
  4                                ),
  5                  '//servlet-list/*[servlet-language="PL/SQL"]'
  6                  PASSING DBMS_XDB.CFG_GET()
  7                  COLUMNS DAD varchar2(15) PATH '/servlet/servlet-name/text()'
  8                 ) u
  9  ;

PL/SQL DAD List
---------------
APEX
MARCO

2 rows selected.
November 26

The XFiles for Apex “Early Adapter” 0.1. release, is available for download.

In principle its the same stuff I got from Mark Drake and posted about before, but now also with the APEX SQL workspace import script as well. I have to start somewhere and I shouldn’t let you wait too long playing around with it yourself. If need more info, then also have a look at the original PPT’s from Mark and Carl used during their OOW 2008 presentation.

Roel Hartman and I am trying / made a first attempt of an installation manual. So try it yourself first (…on a test environment of course…) with the hints given here by me and have a look later at the XFiles post that describes the proper installation steps needed.

Be aware that there are certain pre conditions that should be met. We, Roel and I, identified at least the following: