To remove data XML from XML using REGEXP_REPLACE tags

Hello

I try to use the SQL REGEXP_REPLACE function on a piece of XML, to remove the actual XML data from the weather. My ultimate goal is to end up with a list separated by commas to names of XML elements. In the first stage, I want to just pull all of the actual data.

I tested the following query, and it initially appeared to work:
SELECT REGEXP_REPLACE('>THIS IS A TEST<', 
                      '>([[:alnum:]]\s|\S)*<',
                      '><' ) AS test_result
  FROM dual;
Unfortunately, when I applied it to a full XML string, it did not. Here is the query to test that I used:
SELECT REGEXP_REPLACE('<ROW><TEST_ELEMENT1>123</TEST_ELEMENT1><TEST_ELEMENT2>THIS IS A TEST!</TEST_ELEMENT2></ROW>',
                      '>([[:alnum:]]\s|\S)*<',
                      '><') AS test_result
  FROM dual;
I found myself with the following result:

* & lt; LINE & gt; & lt; / LINE & gt; *

What I was trying to a:

* & lt; LINE & gt; & lt; TEST_ELEMENT1 & gt; & lt; / TEST_ELEMENT1 & gt; & lt; TEST_ELEMENT2 & gt; & lt; / TEST_ELEMENT2 & gt; & lt; / LINE & gt; *

If you are reading this and you are a Posix regular expression guru, could you let me know exactly where I am going wrong? Regular expressions are not my strong point, but I would better go home.

Hello

For your final requirement, the 'commas list names of XML elements', what using XQuery with something like:

SELECT xmlquery(
  'string-join( for $i in $d//*
                return local-name($i), "," )'
  passing xmltype('123THIS IS A TEST!') as "d"
  returning content
).getStringVal()
FROM dual;

Tags: Database

Similar Questions

  • Can I export the data (XML) using Acrobat Standard DC?

    I am currently using Adobe Acrobat XI which is allow me to export XML data from tools > forms > form additional Options > export data. I know this feature is also available in Acrobat Standard DC?

    Hi jack65464326,

    Yes, you can export the data (XML) using Acrobat Standard DC, refer to this KB document for help Acrobat help. Collection and management of the PDF to form data.

    Kind regards

    Nicos

  • Extending from weblogic security roles (groups) to jazn-"Data.xml" using SQLAuth...

    Hello
    as the title suggests is that I want to do...

    The problem I encounter is that I can't map my Weblogic roles at a level of demand - roles.
    I do not see my weblogic on jazn-"Data.xml" roles and I can't create groups to the application level because
    everything works as SQLAuthenticator on Weblogic...
    I can get the role of user with EL as #{securityContext.userInRole ['ROLE']} but it cannot apply to jazn-"Data.xml".

    Hope that if anyone can help...
    Thank you
    Renan.

    PS: Jdev Studio Edition Version 11.1.1.1.0
    JPA/EJB/ADF app

    Published by: RenanMC on 12/09/2009 09:13

    Hello

    you create groups of jazn-"Data.xml" and then use the weblogic.xml file to map these business groups for groups returned by the SQLAuthenticator

    Frank

  • How can I remove the automatic margins when using list tags?

    Hello

    I am trying to create a list of links on my Web page using Dreamweaver CS4. I created a .li tag using CSS so that no bullets/numbers appear and then I created .ul a: link, ul a: hover etc tags composed to make all list items in the bearings.

    However, the text in the list indent automatically (like if I put some kind of margin) and so is out of proportion with the text above it. Without margin/padding is defined in any of the CSS so I am confused.

    Any help would be appreciated.

    Once you add the margin/padding 0 in your css and close support, everything lines up for me. You can post a screenshot of the problem?

  • Remove the glare from glasses

    How can I remove the glare from glasses using Photoshop CC?

    It is one of those which is based on the issues of particular situation.  I generally use a combination of the tool clone, brush (by hand painting lost areas), copied and reverse the other eye area.

    Download the image if you want more info

  • Reading XML using XSLT data

    I have a problem of reading xml using XSLT data. There is a CASE - 900000016, has two sequences. SEQ NO1 and NO2 SEQ. Each sequence has an activity. I try to display the info of the activity under corresponding sequences.

    SEQ 01

    Activity

    SEQ 02

    Activity

    This is the xml file.

    <? XML version = "1.0" encoding = "utf-8" standalone = "yes"? >
    < case >
    < EventList >
    < PAEvent >
    < CASENO > 900000016 < / CASENO >
    < > 01 SEQ_NO < / SEQ_NO >
    APPROVED < STATUS > < / STATUS >
    < REASON > < / REASON >
    < PR_NO > 506024 < / PR_NO >
    < SRV_BEG_DAT > 11/02/2010 < / SRV_BEG_DAT >
    < SRV_END_DAT > 11/02/2010 < / SRV_END_DAT >
    < / PAEvent >
    < PAEvent >
    < CASENO > 900000016 < / CASENO >
    < > 02 SEQ_NO < / SEQ_NO >
    APPROVED < STATUS > < / STATUS >
    < TYPE > < / TYPE >
    < REASON > < / REASON >
    < PR_NO > < / PR_NO >
    < SRV_BEG_DAT > 11/02/2010 < / SRV_BEG_DAT >
    < SRV_END_DAT > 28/02/2010 < / SRV_END_DAT >
    < / PAEvent >
    false < hasErrors > < / hasErrors >
    < / EventList >
    < ActivitiesList >
    < PAActivity >
    < CASE_NO > 900000016 < / CASE_NO >
    < > 01 SEQNO < / SEQNO >
    < ACTVTY_LN_NO > 03 < / ACTVTY_LN_NO >
    < ACTVTY_TYP >: < / ACTVTY_TYP >
    < UNIT_PRC > 16.2500 < / UNIT_PRC >
    < / PAActivity >
    < PAActivity >
    < CASE_NO > 900000016 < / CASE_NO >
    < > 02 SEQNO < / SEQNO >
    < ACTVTY_LN_NO > 01 < / ACTVTY_LN_NO >
    < ACTVTY_TYP > P < / ACTVTY_TYP >
    < UNIT_PRC > 0.0000 < / UNIT_PRC >
    < / PAActivity >
    false < hasErrors > < / hasErrors >
    < / ActivitiesList >
    < / Cases >


    XSLT code

    <? XML version = "1.0" encoding = "utf-8"? >
    < xsl: stylesheet version = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" >
    < xsl: template match = "Case" >
    < div Id = "dvEvents" align = "center" >
    <!--list of events-->
    < table width = "75%" border = "0" >
    < style tr = "text-align: left;" background-color: gray; ">
    < td colspan = "8" class = "SmallBlackFontBolder" >
    < b > < /b > events
    < table >
    < /tr >
    < xsl: for-each select = "EventList/PAEvent" >
    < b >
    < class td = "SmallBlackFontBold" style = "" text-align: left; "width ="8% "> Seq No.: < table >"
    < class td = "SmallGreenFontBold" align = "left" width = "10%" >
    < xsl: value-of select = "SEQ_NO" / >
    < table >

    < class td = "SmallBlackFontBold" align = "left" width = "8%" > status: < table >
    < td align = "left" width = "11%" >
    < xsl: value-of select = "STATUS" / >
    < table >
    < /tr >

    < b >
    < td >
    <!--get the list of activities-->
    < xsl: for-each select = "Case/ActivitiesList/PAActivity" >
    < xsl: if test = "Case, EventList, PAEvent, SEQ_NO = case, ActivitiesList, PAActivity, SEQNO" >
    < table width = "75%" >
    < b >
    < class td = "SmallBlackFontBold" style = "" text-align: left; "width ="8% "> Seq No.: < table >"
    < class td = "SmallGreenFontBold" align = "left" width = "10%" >
    < xsl: value-of select = "Case, ActivitiesList, PAActivity, SEQNO" / >
    < table >
    Unit price < td >: < table >
    < td align = "left" width = "11%" >
    < xsl: value-of select = "Case, ActivitiesList, PAActivity, UNIT_PRC" / >
    < table >
    < /tr >
    < /table >
    < / xsl: if >
    < / xsl: foreach >
    <!--get the list of activities-->
    < table >
    < /tr >

    < b >
    < class td = "SmallBlackFontBold" align = "left" width = "8%" > reason: < table >
    < td align = "left" width = "20%" >
    < xsl: value-of select = "PAEvent/EventList/reason" / >
    < table >
    < td > < table >
    < td > < table >
    < class td = "SmallBlackFontBold" align = "left" width = "14%" > PR_NO: < table >
    < td align = "left" width = "18%" >
    < xsl: value-of select = "PAEvent/EventList/PR_NO" / >
    < table >
    < /tr >

    < / xsl: foreach >
    < /table >

    < / div >
    < / xsl: template >
    < / xsl: stylesheet >

    Published by: 837989 on April 25, 2013 14:13
  • When the redeployment, jazn-"Data.xml" crushes users the App provides on Weblogic

    Hello world

    I use
    -JDeveloper 11.1.2.1.0
    -Weblogic 10.3.5

    I found that when I transferred a request, it seemed that whatever the roles that I have setup in the Console of Administration WebLogic for users who are not defined in the jazn of application data, gets crushed by the data from jazn-Application data

    for example
    I have an application with jazn-"Data.xml", defined as follows:
    -Creation of 4 users
    -Created the company 3 roles (role of customer, NormalRole, ReadOnlyRole)
    -Assigned 4 users to roles of business as a result
    -Given the workflow, Web Page and ADF entity as a result object

    If I configure the 5th, 6th, 7th and so on users through the Console of Administration WebLogic and grant them a role (i.e. NormalRole). As soon as I redeploy the application, all users (except 4 which are defined in the jazn-data application) seem to lose the delivered business role that I gave earlier in the Console of Administration WebLogic.

    It's not ideal because we always maintain user through the Console of Administration WebLogic (so we can add / remove / update user information at any time, rather than having to do it by changing jazn-Application data and do a redeployment). Is that what I was wrong? I tried excluding the jazn-"Data.xml" during deployment, but the application does not work. What should I do to prevent this?

    Thanks for any information.


    Kind regards
    Andi

    You are aware of the request-> Application-> deployment 'Deployment of Security Options' properties, particularly checkboxes to crush the security on the deployment objects?

    CM.

  • Best way to Parse XML using Dreamweaver CC 2015.3

    I was on a wild goose chase - trying to figure out how to parse XML using DW CC

    every article I read, says something about XML & XSLT, but it is no longer available in the new CC - I read about using jQuery or php, but have not yet find a resource to learn specifically "using DW CC.

    I'm willing to learn how to parse XML with DW CC but I would get a definitive direction to go before I'm trying to learn something that adobe will put in 'end of life '.

    advice or links to resources that can parse XML DW CC 2015 would be LARGELY APPRECIATED, thank you

    x 126 has written:

    What I'm asking is...

    1. What is the best procedure to insert XML into a page using DW CC 2015 as my editor?
    a. what happened to spry? b. what happened to XSLT?

    As Nancy explained, Spry has been abandoned by Adobe, a few years ago.

    XSLT server behavior has been removed at the same time as other server behaviors Dreamweaver CC. The problem with most of the PHP server behaviors was that they were based on code that has been removed from PHP 7. The XSLT server behavior didn't rely on these features, but it was not the most friendly of server behaviors. XSLT is a complex language that is to be avoided when parsing XML unless you really know what you're doing.

    The easiest way to manipulate XML in Dreamweaver should use PHP SimpleXML. I've linked to the samples page in the PHP online documentation. Believe me, it's much easier than trying to do battle with XSLT. If you have a subscription to lynda.com, you can learn more about SimpleXML to my operational with SimpleXMLclass.

  • ADFC-0619: failed the authorization check but system-jazn-"Data.xml" entry

    Hello

    I have an urgent problem with permission on production area.

    I set the permission for my App. create custom pages so login and custom to redirect, the Spanish developer Login bean works fine, but on prodocution I got an exception:

    WatchRule: (SEVERITY = "Error") AND ((MSGID = ' WL-101020') OR (MSGID = "WL-101017'") OR (MSGID = "WL-000802'") OR (MSGID = "BEA-101020'") OR (MSGID = "BEA-101017'") OR (MSGID = "BEA-000802'"))

    [WatchData: DATE = July 7, 2014 11:05:33 AM EDT SERVER = AdminServer MESSAGE = [path of the module: app_name_test ServletContext@304698745[app:AppName: / app_name_test spec-version: 2.5]] Servlet failed with Exception

    oracle.adf.controller.security.AuthorizationException: ADFC-0619: authorization check failed: 'viewcontroller.pageDefs.homePageDef', 'VIEW '.

    at oracle.adf.controller.internal.security.AuthorizationEnforcer.handleFailure(AuthorizationEnforcer.java:182)

    at oracle.adf.controller.internal.security.AuthorizationEnforcer.internalCheckPermission(AuthorizationEnforcer.java:162)

    at oracle.adf.controller.internal.security.AuthorizationEnforcer.checkPermission(AuthorizationEnforcer.java:116)

    at oracle.adfinternal.controller.state.ControllerState.checkPermission(ControllerState.java:663)

    at oracle.adfinternal.controller.state.ControllerState.initializeUrl(ControllerState.java:700)

    at oracle.adfinternal.controller.state.ControllerState.synchronizeStatePart2(ControllerState.java:473)

    at oracle.adfinternal.controller.application.SyncNavigationStateListener.afterPhase(SyncNavigationStateListener.java:59)

    to oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$ PagePhaseListenerWrapper.afterPhase (ADFLifecycleImpl.java:530)

    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:120)

    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:168)

    to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ PhaseInvokerImpl.dispatchAfterPagePhaseEvent (ADFPhaseListener.java:131)

    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:74)

    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:447)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

    JPS - config.Xml

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < jpsConfig xmlns =" http://xmlns.Oracle.com/OracleAS/schema/11/JPs-config-11_1.xsd "" xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance " xsi: schemaLocation = " http://xmlns.Oracle.com/OracleAS/Schema/11/JPS-config-11_1.xsd HSD-config - 11_1.xsd" >

    < = name="oracle.security.jps.jaas.mode"/ 'doasprivileged' property value >

    < serviceProviders >

    "< class ="oracle.security.jps.internal.idstore.xml.XmlIdentityStoreProvider serviceProvider"name =" idstore.xml.provider "type ="IDENTITY_STORE">

    < description > XML-based IdStore provider < / description >

    < / serviceProvider >

    "< class ="oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider serviceProvider"name =" policystore.xml.provider "type ="POLICY_STORE">

    < description > XML-based PolicyStore provider < / description >

    < / serviceProvider >

    "< class ="oracle.security.jps.internal.anonymous.idm.IdmAnonymousServiceProvider serviceProvider"name =" anonymous.provider "type 'ANONYMOUS' = >

    < description > anonymous access provider < / description >

    < / serviceProvider >

    "< class ="oracle.security.jps.internal.login.jaas.JaasLoginServiceProvider serviceProvider"name =" jaas.login.provider "type ="LOGIN">

    < description > Service Provider for the connection Module < / description >

    < / serviceProvider >

    < / serviceProviders >

    < serviceInstances >

    < provider = "idstore.xml.provider serviceInstance" name ="idstore.xml" > "

    "< value="./jazn-data.xml property "name ="location"/ >

    < property value = 'OBFUSCATE' name="jps.xml.idstore.pwd.encoding"/ >

    < value property = "jazn.com" name = "subscriber.name" / > "

    < / serviceInstance >

    < provider = "policystore.xml.provider serviceInstance" name ="policystore.xml" > "

    "< value="./jazn-data.xml property "name ="location"/ >

    < = 'false' name="oracle.security.jps.policy.principal.cache.key"/ property value >

    < / serviceInstance >

    < provider = "anonymous.provider serviceInstance" name = "anonymous" / > "

    < provider = "jaas.login.provider serviceInstance" name ="anonymous.loginmodule" > "

    < value = "oracle.security.jps.internal.jaas.module.anonymous.AnonymousLoginModule property" name = "loginModuleClassName" / > "

    < property value = "REQUIRED" name="jaas.login.controlFlag"/ >

    < property value = "true" name = "debug" / >

    < property value = "true" name = "addAllRoles" / >

    < / serviceInstance >

    < provider = "jaas.login.provider serviceInstance" name ="idstore.loginmodule" > "

    < value = "oracle.security.jps.internal.jaas.module.idstore.IdStoreLoginModule property" name = "loginModuleClassName" / > "

    < property value = "REQUIRED" name="jaas.login.controlFlag"/ >

    < property value = "true" name = "debug" / >

    < property value = "true" name = "addAllRoles" / >

    < = 'false' name="remove.anonymous.role"/ property value >

    < / serviceInstance >

    < / serviceInstances >

    < jpsContexts default 'anonymous' = >

    < name jpsContext 'anonymous' = >

    < serviceInstanceRef ref = 'anonymous' / >

    < serviceInstanceRef ref = "anonymous.loginmodule" / >

    < / jpsContext >

    < / jpsContexts >

    < / jpsConfig >

    Web.Xml

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < web - app xmlns =" http://Java.Sun.com/XML/NS/JavaEE "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance "

    " xsi: schemaLocation =" http://Java.Sun.com/XML/NS/JavaEE http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"" "" "

    version "2.5" = >

    < context-param >

    javax.faces.STATE_SAVING_METHOD < param-name > < / param-name >

    customer of < param-value > < / param-value >

    < / context-param >

    < context-param >

    javax.faces.PARTIAL_STATE_SAVING < param-name > < / param-name >

    < param-value > false < / param-value >

    < / context-param >

    < context-param >

    < description > if this parameter is set to true, there will be an automatic check of the date of the change of your JSP pages and saved state will be scrapped when JSP change. It will also automatically check if your css skinning files have changed without requiring you to restart the server. This facilitates the development, but adds above. For this reason, this parameter must be set to false when your application is deployed. < / description >

    org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION < param-name > < / param-name >

    < param-value > false < / param-value >

    < / context-param >

    < context-param >

    < description > if the comment "generated by...» "down in pages ADF Faces HTML should contain version number information. < / description >

    oracle.adf.view.rich.versionString.HIDDEN < param-name > < / param-name >

    < param-value > false < / param-value >

    < / context-param >

    < context-param >

    Oracle.ADF.jsp.provider.0 < param-name > < / param-name >

    oracle.mds.jsp.MDSJSPProviderHelper < param-value > < / param-value >

    < / context-param >

    < context-param >

    < description > File Upload < / description >

    org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE < param-name > < / param-name >

    < param-value > 10485760 < / param-value >

    < / context-param >

    < context-param >

    < description > the safety precautions to prevent clickjacking: bust of executives if the area of window ancestor (Protocol, host and port) and the framework are different. Other options for this setting are always and never. < / description >

    org.apache.myfaces.trinidad.security.FRAME_BUSTING < param-name > < / param-name >

    differentOrigin < param-value > < / param-value >

    < / context-param >

    < context-param >

    javax.faces.FACELETS_SKIP_XML_INSTRUCTIONS < param-name > < / param-name >

    < param-value > true < / param-value >

    < / context-param >

    < context-param >

    javax.faces.FACELETS_SKIP_COMMENTS < param-name > < / param-name >

    < param-value > true < / param-value >

    < / context-param >

    < context-param >

    javax.faces.FACELETS_DECORATORS < param-name > < / param-name >

    oracle.adfinternal.view.faces.facelets.rich.AdfTagDecorator < param-value > < / param-value >

    < / context-param >

    < context-param >

    javax.faces.FACELETS_RESOURCE_RESOLVER < param-name > < / param-name >

    oracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver < param-value > < / param-value >

    < / context-param >

    < filter >

    < filter-name > JpsFilter < / filter-name >

    > class filter < oracle.security.jps.ee.http.JpsFilter < / class filter >

    < init-param >

    enable.anonymous < param-name > < / param-name >

    < param-value > true < / param-value >

    < / init-param >

    < init-param >

    Remove.anonymous.role < param-name > < / param-name >

    < param-value > false < / param-value >

    < / init-param >

    < / filter >

    < filter >

    < name of filter > Trinidad < / filter-name >

    > class filter < org.apache.myfaces.trinidad.webapp.TrinidadFilter < / class filter >

    < / filter >

    < filter >

    < filter-name > adfBindings < / filter-name >

    > class filter < oracle.adf.model.servlet.ADFBindingFilter < / class filter >

    < / filter >

    < filter >

    < filter-name > ADFLibraryFilter < / filter-name >

    > class filter < oracle.adf.library.webapp.LibraryFilter < / class filter >

    < / filter >

    < filter mapping >

    < filter-name > JpsFilter < / filter-name >

    < url-pattern > / * < / url-pattern >

    < distributor > BEFORE < / dispatcher >

    < distributor > APPLICATION < / dispatcher >

    < distributor > INCLUDE < / dispatcher >

    < / filter-mapping >

    < filter mapping >

    < name of filter > Trinidad < / filter-name >

    < name servlet - > Faces Servlet < / servlet-name >

    < distributor > BEFORE < / dispatcher >

    < distributor > APPLICATION < / dispatcher >

    < distributor > ERROR < / dispatcher >

    < / filter-mapping >

    < filter mapping >

    < filter-name > adfBindings < / filter-name >

    < name servlet - > Faces Servlet < / servlet-name >

    < distributor > BEFORE < / dispatcher >

    < distributor > APPLICATION < / dispatcher >

    < / filter-mapping >

    < filter mapping >

    < filter-name > ADFLibraryFilter < / filter-name >

    < url-pattern > / * < / url-pattern >

    < distributor > BEFORE < / dispatcher >

    < distributor > APPLICATION < / dispatcher >

    < / filter-mapping >

    < filter mapping >

    < filter-name > adfBindings < / filter-name >

    < name servlet - > adfAuthentication < / servlet-name >

    < distributor > BEFORE < / dispatcher >

    < distributor > APPLICATION < / dispatcher >

    < / filter-mapping >

    <>earpiece

    oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack <-listener class > < / listener class >

    < / earphone >

    <>earpiece

    oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack <-listener class > < / listener class >

    < / earphone >

    <>earpiece

    Oracle.BC4J.MBean.BC4JConfigLifeCycleCallBack <-listener class > < / listener class >

    < / earphone >

    < servlet >

    < name servlet - > Faces Servlet < / servlet-name >

    > the servlet class < javax.faces.webapp.FacesServlet < / servlet-class >

    < load-on-startup > 1 < / load-on-startup >

    < / servlet >

    < servlet >

    resources < name of the servlet > - < / servlet-name >

    > the servlet class < org.apache.myfaces.trinidad.webapp.ResourceServlet < / servlet-class >

    < / servlet >

    < servlet >

    < name servlet - > BIGRAPHSERVLET < / servlet-name >

    > the servlet class < oracle.adf.view.faces.bi.webapp.GraphServlet < / servlet-class >

    < / servlet >

    < servlet >

    < name servlet - > BIGAUGESERVLET < / servlet-name >

    > the servlet class < oracle.adf.view.faces.bi.webapp.GaugeServlet < / servlet-class >

    < / servlet >

    < servlet >

    < name servlet - > MapProxyServlet < / servlet-name >

    > the servlet class < oracle.adf.view.faces.bi.webapp.MapProxyServlet < / servlet-class >

    < / servlet >

    < servlet >

    < name servlet - > GatewayServlet < / servlet-name >

    > the servlet class < oracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet < / servlet-class >

    < / servlet >

    < servlet >

    < name servlet - > adflibResources < / servlet-name >

    > the servlet class < oracle.adf.library.webapp.ResourceServlet < / servlet-class >

    < / servlet >

    < servlet >

    < name servlet - > adfAuthentication < / servlet-name >

    > the servlet class < oracle.adf.share.security.authentication.AuthenticationServlet < / servlet-class >

    < init-param >

    success_url < param-name > < / param-name >

    /faces/home.jspx < param-value > < / param-value >

    < / init-param >

    < load-on-startup > 1 < / load-on-startup >

    < / servlet >

    < servlet-mapping >

    < name servlet - > Faces Servlet < / servlet-name >

    < url-pattern > /visages / * < / url-pattern >

    < / servlet-mapping >

    < servlet-mapping >

    resources < name of the servlet > - < / servlet-name >

    < url-pattern > /adf / * < / url-pattern >

    < / servlet-mapping >

    < servlet-mapping >

    resources < name of the servlet > - < / servlet-name >

    < url-pattern > /afr / * < / url-pattern >

    < / servlet-mapping >

    < servlet-mapping >

    < name servlet - > BIGRAPHSERVLET < / servlet-name >

    < url-pattern >/servlet/GraphServlet / * < / url-pattern >

    < / servlet-mapping >

    < servlet-mapping >

    < name servlet - > BIGAUGESERVLET < / servlet-name >

    < url-pattern >/servlet/GaugeServlet / * < / url-pattern >

    < / servlet-mapping >

    < servlet-mapping >

    < name servlet - > MapProxyServlet < / servlet-name >

    < url-pattern > /mapproxy / * < / url-pattern >

    < / servlet-mapping >

    < servlet-mapping >

    resources < name of the servlet > - < / servlet-name >

    < url-pattern > /bi / * < / url-pattern >

    < / servlet-mapping >

    < servlet-mapping >

    < name servlet - > GatewayServlet < / servlet-name >

    < url-pattern > /flashbridge / * < / url-pattern >

    < / servlet-mapping >

    < servlet-mapping >

    < name servlet - > adflibResources < / servlet-name >

    < url-pattern > /adflib / * < / url-pattern >

    < / servlet-mapping >

    < servlet-mapping >

    < name servlet - > adfAuthentication < / servlet-name >

    <>url-pattern / adfAuthentication < / url-pattern >

    < / servlet-mapping >

    < mapping mime - >

    SWF < extension > < / extension >

    mime-type application/x-shockwave-flash <>< / mime-type >

    < / mime map >

    < mapping mime - >

    AMF < extension > < / extension >

    <>mime-type application/x-amf < / mime-type >

    < / mime map >

    < jsp-config >

    < jsp-property-group >

    *.jsff < url-pattern > < / url-pattern >

    true < East - xml > < / xml is >

    < / jsp-property-group >

    < / jsp-config >

    < security constraint >

    < web-resource-collection >

    < web-resource-name > adfAuthentication < / web-resource-name >

    <>url-pattern / adfAuthentication < / url-pattern >

    < / web-resource-collection >

    <>auth-constraint

    valid users - < role name > < / role name >

    < / auth-constraint >

    < / security constraint >

    <>login-config

    FORM < auth-method > < / auth-method >

    < form-login-config >

    /faces/login.jspx < form-login-page > < / form-login-page >

    /faces/login.jspx < form-error-page > < / form-error-page >

    < / form-login-config >

    < / login-config >

    <-security role >

    valid users - < role name > < / role name >

    < / security role >

    < / web - app >

    jazn-"Data.xml"

    <? XML version = "1.0" encoding = "UTF - 8" standalone = 'Yes'? "" >

    " < jazn-data xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    " xsi: noNamespaceSchemaLocation = ' http://xmlns.Oracle.com/OracleAS/schema/jazn-data.xsd "> "

    < default = "jazn.com Kingdom-jazn" >

    < domain >

    < name > jazn.com < / name >

    < / domain >

    < / Kingdom-jazn >

    < policy store >

    applications <>

    < application >

    < name > AppName < / name >

    < jazn > political

    <>grant

    < dealer >

    < directors >

    < principal >

    < name > authenticated role < / name >

    oracle.security.jps.internal.core.principals.JpsAuthenticatedRoleImpl < class > < / class >

    < / main >

    < / directors >

    < / dealer >

    <>permissions

    < permission >

    oracle.adf.share.security.authorization.RegionPermission < class > < / class >

    < name > viewcontroller.pageDefs.homePageDef < / name >

    Display < share > < / actions >

    < / authorization >

    < / authorization >

    < / grant >

    < / jazn-policy >

    < / application >

    < / applications >

    < / policy-store >

    < / jazn-data >

    My fragment of connection method:

    HttpServletRequest request = (HttpServletRequest) () .getRequest () ctx.getExternalContext;
    try {}

    Topic topic = Authentication.login (new URLCallbackHandler (UN, pw));weblogic.servlet.security.ServletAuthentication.runAs (object, request);

    HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext (m:System.NET.FtpWebRequest.GetResponse ());

    sendForward (request, response, LOGIN_URL);
    } catch (FailedLoginException fle) {}
    LOG.severe (fle);
    String errorText = rsBundle.getString ("ERROR_LOGIN");
    FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_ERROR, errorText, errorText);
    ctx.addMessage (null, msg);
    }

    I use Jdev 11.1.2.4

    Any help why this configuration works on production envirement?

    My system-jazn-"Data.xml" has entered correct...

    Finally, I found... Administrator develop new envirement and they use java 1.8 (WTF). Have to kill them immediately after to write this post...

    I found that the search to setDomainEnv.sh

    Changed start at 1.6 and all works like magic... IM really surprised that start weblogic with java 8 and generate strange symtomps with authentication...

    I thank all of you for the help

  • Error trying to update the model XML using XML Publisher administrator

    Hello people,

    We are on R12.1.3

    I changed a condition in a report and you try to download the new model XML using XML Publisher administrator.

    When I click the button to apply, it is throwing an error "bad request".

    Navigation: XML Publisher Admin > data definitions > query report

    Click on the report name > click 'Update file', in addition to the data model > choose file > click Apply

    I get the below error

    Bad request

    Your browser has requested that this server could not understand.


    Now, I could not download a new model of XML.


    I'm doing something wrong.


    Kind regards

    Kris

    user10163762 wrote:

    Thanks Eugen and Hussein.

    The problem is not with the template.

    It seems to be a problem in this particular case.

    Transferred to another instance.

    However once I run the program, I can't display the output as flashes and disappears from the window of the browser.

    My colleague says, it's to do with the trusted site to download something from the browser.

    Can you please guide me on how to solve this problem?

    http://bit.LY/1k8e2vi

    Thank you

    Hussein

  • Merge two files of system-jazn-"Data.xml"

    Hello

    I have a system-jazn-"Data.xml" from Apps BI 7.9.6.4 sized * 1291 KB * (having financial, HR, EAM Analytics) Note: a new installation and no changes have been made in safety.

    Now for EAM Analytics, there is a bug and all application roles are not present in the policy store and apply a patch Patch 16321623 which just States copy the new file system-jazn-"Data.xml" to the location of fmwconfig (see ) doc 1548988.1 )
    Problem is that the size of the system-jazn-"Data.xml" is * 342 kb.*

    Looks like both of these system-jazn-"Data.xml" should be merged. (don't know, maybe this 342KO file contains all application roles)
    Need advice here... as for what I'd do here. ?

    Thank you
    Ashish

    See that there is no problem if you replace, just take the backup or rename the existing _old and copy a new. Even when I installed the OBIA on windows machine on top of some OBIEE dummy to generate the folders (biapps) of informatica, dac, RPD, catalogue files metadata then afterwards I got the file from the file 800ko and according to the guidelines of the oracle, I need to replace the one that is generated with OLIVIER on top on OBIEE which is only 320 kb file I simply replaced it na not thorw errors/problems until now. So I m confident enough to replace the file.

    See this link http://docs.oracle.com/cd/E20490_01/bia.7963/e19038/windows_ic.htm#BABDCEGC paragraph 4.17 applying the security policy of the Oracle BI Applications to the BI domain

    If your BI EE deployed with the Oracle's Applications of BI system is different from the BI EE system used to install some Applications of BI from Oracle, you must apply to the security policy of the domain of BI on BI EE system deployed by following the steps below.

    If your BI EE deployed with the Oracle's Applications of BI system is the same as the BI EE system used to install some Applications of BI of Oracle, then the installer of Oracle's Applications of BI performs this configuration automatically.

    To apply the security policy of the Oracle BI Applications to the BI domain:

    Note: Machine is the machine system. B is the deployment machine.

    Stop all processes in the system of BI EE. More precisely:

    the Administration Server

    + (if there is a cluster) all managed servers in the cluster bi_cluster +.

    all processes managed opmn

    On computer B, save and rename the existing DOMAIN_HOME/config/fmwconfig/system-jazn-data.xml.

    For example, if the root folder of BI EE is named OracleBIEE11g, then the folder location of the field (on Windows) can be C:\OracleBIEE11g\user_projects\domains\bifoundation_domain\config\fmwconfig.

    Copy the jazn file Applications of BI of Oracle machine machine B to DOMAIN_HOME/config/fmwconfig A ORACLE_HOME/biapps/admin/provisioning/system-jazn-data.xml.

    Start all processes in the BI EE system for security of Oracle's Applications of BI policy take effect. More precisely:

    the Administration Server

    + (if there is a cluster) all managed servers in the cluster bi_cluster +.

    all processes managed opmn

    It may be useful

  • Nested reading XML using XQUERY in the PL/SQL procedure

    I'm using Oracle 11 G.
    I have a PL/SQL procedure, which is reading XML using xquery XMLTYPE column in a table. The XML contains data of the DEPARTMENT and its SECTIONS. DEPARTMENT has a to-many with SECTIONS or a DEPARTMENT can have one or more SECTIONS, and there may be cases where the DEPARTMENT will have all SECTIONS.

    The XML structure is such that
    <DATA>
    label to identify a DEPARTMENT and all its corresponding SECTIONS.

    XML
    <ROWSET> 
    <DATA>
     <DEPARTMENT>
      <DEPARTMENT_ID>DEP1</DEPARTMENT_ID>
      <DEPARTMENT_NAME>myDEPARTMENT1</DEPARTMENT_NAME>
     </DEPARTMENT>
     <SECTIONS>
      <SECTIONS_ID>6390135666643567</SECTIONS_ID>
      <SECTIONS_NAME>mySection1</SECTIONS_NAME>
      </SECTIONS>
       <SECTIONS>
      <SECTIONS_ID>6390135666643567</SECTIONS_ID>
      <SECTIONS_NAME>mySection2</SECTIONS_NAME>
      </SECTIONS>
     </DATA>
     <DATA>
     <DEPARTMENT>
      <DEPARTMENT_ID>DEP2</DEPARTMENT_ID>
      <DEPARTMENT_NAME>myDEPARTMENT2</DEPARTMENT_NAME>
     </DEPARTMENT>
     <SECTIONS>
      <SECTIONS_ID>63902</SECTIONS_ID>
      <SECTIONS_NAME>mySection1</SECTIONS_NAME>
      </SECTIONS>
     </DATA>
    </ROWSET>
    XQUERY
    select
     department_id,
      department_name,
      sections_id,
      sections_name
    from
      OFFLINE_XML xml_list,
      xmltable(
        '
          for $department in $param/ROWSET/DATA
            return $department
        '
        passing xml_list.xml_file as "param"
        columns
          "DEPARTMENT_ID"   varchar2(100) path '//DEPARTMENT/DEPARTMENT_ID',
          "DEPARTMENT_NAME" varchar2(4000) path '//DEPARTMENT/DEPARTMENT_NAME',
          "SECTIONS_ID"     varchar2(100) path '//SECTIONS/SECTIONS_ID',
          "SECTIONS_NAME"   varchar2(4000) path '//SECTIONS/SECTIONS_NAME'
      ) section_list
    where
      xml_list.Status = 5
    The performance of the query, you receive an error
    ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton 
    sequence - got multi-item sequence
    It is natural because I have several sections, now how I'll handle this situation.

    It's the usual approach to manage several nested collections:

    SQL> select d.department_id
      2       , d.department_name
      3       , s.sections_id
      4       , s.sections_name
      5  from offline_xml t
      6     , xmltable(
      7         '/ROWSET/DATA'
      8         passing t.xml_file
      9         columns
     10           DEPARTMENT_ID   varchar2(20) path 'DEPARTMENT/DEPARTMENT_ID'
     11         , DEPARTMENT_NAME varchar2(30) path 'DEPARTMENT/DEPARTMENT_NAME'
     12         , SECTIONS        xmltype      path 'SECTIONS'
     13       ) d
     14     , xmltable(
     15         '/SECTIONS'
     16         passing d.sections
     17         columns
     18           SECTIONS_ID     varchar2(20) path 'SECTIONS_ID'
     19         , SECTIONS_NAME   varchar2(30) path 'SECTIONS_NAME'
     20      ) s
     21  ;
    
    DEPARTMENT_ID        DEPARTMENT_NAME                SECTIONS_ID          SECTIONS_NAME
    -------------------- ------------------------------ -------------------- ------------------------------
    DEP1                 myDEPARTMENT1                  6390135666643567     mySection1
    DEP1                 myDEPARTMENT1                  6390135666643567     mySection2
    DEP2                 myDEPARTMENT2                  63902                mySection1
     
    
  • Remove an XML node

    Hello

    I have an XML that is generated at the click of a button in the form.

    I use xfa.data.saveXML ("pretty"); to generate the XML.

    Here is the XML

    <? XML version = "1.0" encoding = "UTF-8"? >

    "< xfa: data xmlns:xfa ="http://www.xfa.org/schema/xfa-data/1.0/">."

    < ITEM >

    < DATA >

    < ROW_IID > 0 < / ROW_IID >

    < PARENT > 0 < / PARENT >

    < CHILD > 0 < / CHILD >

    < / DATA >

    < NAME >

    < FNAME > 0 < / FNAME >

    < LNAME > 0 < / LNAME >

    < / NAME >

    < / ITEM >

    < / xfa: data >

    I want to remove the < NAME > node in the XML file and assign the XML handling to a text field.

    Could you get it someone please let me know how to do the same thing?

    Thanks :)

    Hello

    Whereas you want to output a string you can use XSLT, so something like (which copy all xml except the NAME nodes);

    var stylesheet =

    http://www.w3.org/1999/XSL/transform">

    txt var = $data. ELEMENT.applyXSL (stylesheet.toXMLString ());

    Console.println (txt)

    You can also use;

    $data. ELEMENT.nodes.remove ($data.) ELEMENT.NAME)

    Console.println($Data.) ELEMENT.saveXML ("pretty"));

    Concerning

    Bruce

  • Problem in the evaluation of the XPath in xml using java.

    Hello

    I wrote a method to evaluate the xpath expression and returns the result in the string 'true' or 'false' or 'anyValue as in the xpath expression.

    for example:

    < k >
    < g > 1 / < g >
    < c >! / < c >
    < /k >
    < k >
    < g > 2 / < g >
    < c > # </c >
    < /k >

    < k >
    $ < c >/< c >
    < /k >

    If the xpath expression is /k [g / text () = '1'] / c/text () = "#"-the code returns false

    Similarly /k [g / text () = '1'] / c/text () ='! ' - returns true

    But in the flow of my project, we have removed the xml node that contains no data. Thus, the last < k > tag is not have < g >. then, East - wat I think

    If the xpath expression is /k [g / text () = "] / c / text () = ' $' should return true. but since there is no < g > tag, it returns false. But, by the logic of my project, g is there, but the bcz removed its null...

    Pls help me with this...

    Thank you
    Sabarisri. N

    Edited by: Sabarisri N November 11, 2011 16:33

    Edited by: Sabarisri N November 11, 2011 16:35

    The criteria for the return of true or false is not clear as the three bodies that are specific. To take account of these three cases, the xpath expression can be very restrictive in look like that. By way of illustration, I put it in a knot xsl or xsl: When, use tests, assuming the context node to be the parent of the node k.

    
    

    Because the conditions are specific, it seems inevitably awkward due to the need of the enumeration of the case-by-case basis.

  • Remove all contacts from Sharedlist (ContactList) using Api

    I want to delete all the contacts in a sharedlist using api. One method that I discovered is that api rest is to send the ID of all the contacts in the list. When there are more contacts in the list, it takes a lot of time because I have to query the list to get the ID of first contact, then send the request PUT with the ID to delete the contacts. Is there an alternative way to do. If this isn't the case, then what's the number max of ID I can send with destruction of membership options.

    Concerning

    Maury

    Thank you very much zatokar, with your trick that I could remove all contacts from sharedlist in a single request. All we have to do is add sync action as delette in export defination. It will delete all the data on the shared list.

    Sample request is less than

    {

    "name': 'example of export."

    'fields': {}

    "ContactId": "{{Contact.Id}}.

    },

    'syncActions ':

    {

    'destination': "{{ContactList [LIST_ID]}}"

    'action': 'delete '.

    }

    }

Maybe you are looking for

  • New Satellite Pro U400-12y is very slow

    Just bought Satellite Pro U400-12y with Vista Business pre-installed (1 GB preinstalled memory).However, the startup is very slow and actually the computer seems to work in a time warp. Any ideas? Is there a fundamental problem?

  • Satellite L650-1PN (Euro) - ATI Performance

    Hi guys I have a question: my laptop here for a few days started with breaks fps for example, I play Counter strike source fps and I have a 200 250 but derepente am with them 60 to 80 al 50 for 3 seconds and then back to normal I have the support of

  • Change Windows XP from French to English Compaq mini 110 PC laptop

    My laptop OS is French and I want to reinstall it in English. I have the product key and have tried using "winnt32" but it says "disk error" when I try to choose the English option. This laptop was given to my daughter because the original owner coul

  • Valid email required? Failed to add another user to the escan.

    Hi, my printer is HP Photosmart 7520 I try to add a user who will be my work email address, I get to the Welcome screen, then asked to enter the email address, this is made of sinople carefully and then I get a message "Please enter a valid email add

  • G4-2149se: g4-2149se drivers

    I reinstalled windows 7 on my computer and now the following drives will not install and I can't see anywhere on the driver page. PCI device Hardware/device ID: PCI\VEN_10EC & DEV_5229 & SUBSYS_1847103C & REV_01 SM Bus controller Hardware/device ID: