call dbms_xdb.cfg_update
(
updatexml
(
dbms_xdb.cfg_get(),
'/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list',
xmlelement
(
"servlet-list",
xmlattributes('http://xmlns.oracle.com/xdb/xdbconfig.xsd' AS "xmlns"),
xmlconcat
(
extract
(
dbms_xdb.cfg_get(),
'/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet'
),
xmltype
(
'
PolicyServlet
Java
Policy Table Servlet
PolicyServlet
SYS
authenticatedUser
authenticatedUser
'
)
)
),
'/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings',
xmlelement
(
"servlet-mappings",
xmlattributes('http://xmlns.oracle.com/xdb/xdbconfig.xsd' AS "xmlns"),
xmlconcat
(
extract
(
dbms_xdb.cfg_get(),
'/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings/servlet-mapping'
),
xmltype
(
'
/security/policy
PolicyServlet
'
)
)
)
)
)
/