Weird behaviour when applying XLST in PL/SQL

I came across this strange behaviour when applying XSLT to an XML document. Below is a simplified version, based on some code that I found in OTN
declare
indoc VARCHAR2(2000);
xsldoc VARCHAR2(2000);
myParser dbms_xmlparser.Parser;
indomdoc dbms_xmldom.domdocument;
xsltdomdoc dbms_xmldom.domdocument;
xsl dbms_xslprocessor.stylesheet;
outdomdocf dbms_xmldom.domdocumentfragment;
outnode dbms_xmldom.domnode;
proc dbms_xslprocessor.processor;
buf varchar2(2000);
begin
indoc := '<emp><empno> 1</empno> <fname> robert </fname> <lname>
smith</lname> <sal>1000</sal> <job> engineer </job> </emp>';
xsldoc :=
'<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="utf-8"/>
<xsl:variable name="CR">
<xsl:text>
</xsl:text>
</xsl:variable>
<xsl:template match="/">
<xsl:value-of select="$CR" />
<xsl:value-of select="$CR" />
</xsl:template>
</xsl:stylesheet>';
myParser := dbms_xmlparser.newParser;
dbms_xmlparser.parseBuffer(myParser, indoc);
indomdoc := dbms_xmlparser.getDocument(myParser);
dbms_xmlparser.parseBuffer(myParser, xsldoc);
xsltdomdoc := dbms_xmlparser.getDocument(myParser);
xsl := dbms_xslprocessor.newstylesheet(xsltdomdoc, '');
proc := dbms_xslprocessor.newProcessor;
--apply stylesheet to DOM document  
outdomdocf := dbms_xslprocessor.processxsl(proc, xsl, indomdoc);
outnode := dbms_xmldom.makenode(outdomdocf);
-- PL/SQL DOM API for XMLType can be used here
dbms_xmldom.writetobuffer(outnode, buf);
dbms_output.put_line(buf);
end;
I would expect this to output two carriage returns and this is what I get with xsltproc on the Linux server. Instead, it outputs the entire source XML document without the tags, as shown below.
1 robert
smith1000 engineer 1 robert
smith1000 engineer
Now, if you change the definition of the CR variable to add some text, for example to
<xsl:variable name="CR">
<xsl:text>XX
</xsl:text>
It outputs:
XX
XX
which is what I would expect.
Does anyone have any idea what is going on here? Changing the variable definition to <xsl:variable name="CR" select="'&#xD;&#xA;'" /> fixes the problem by the way.

I came across this strange behaviour when applying XSLT to an XML document. Below is a simplified version, based on some code that I found in OTN
declare
indoc VARCHAR2(2000);
xsldoc VARCHAR2(2000);
myParser dbms_xmlparser.Parser;
indomdoc dbms_xmldom.domdocument;
xsltdomdoc dbms_xmldom.domdocument;
xsl dbms_xslprocessor.stylesheet;
outdomdocf dbms_xmldom.domdocumentfragment;
outnode dbms_xmldom.domnode;
proc dbms_xslprocessor.processor;
buf varchar2(2000);
begin
indoc := '<emp><empno> 1</empno> <fname> robert </fname> <lname>
smith</lname> <sal>1000</sal> <job> engineer </job> </emp>';
xsldoc :=
'<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="utf-8"/>
<xsl:variable name="CR">
<xsl:text>
</xsl:text>
</xsl:variable>
<xsl:template match="/">
<xsl:value-of select="$CR" />
<xsl:value-of select="$CR" />
</xsl:template>
</xsl:stylesheet>';
myParser := dbms_xmlparser.newParser;
dbms_xmlparser.parseBuffer(myParser, indoc);
indomdoc := dbms_xmlparser.getDocument(myParser);
dbms_xmlparser.parseBuffer(myParser, xsldoc);
xsltdomdoc := dbms_xmlparser.getDocument(myParser);
xsl := dbms_xslprocessor.newstylesheet(xsltdomdoc, '');
proc := dbms_xslprocessor.newProcessor;
--apply stylesheet to DOM document  
outdomdocf := dbms_xslprocessor.processxsl(proc, xsl, indomdoc);
outnode := dbms_xmldom.makenode(outdomdocf);
-- PL/SQL DOM API for XMLType can be used here
dbms_xmldom.writetobuffer(outnode, buf);
dbms_output.put_line(buf);
end;
I would expect this to output two carriage returns and this is what I get with xsltproc on the Linux server. Instead, it outputs the entire source XML document without the tags, as shown below.
1 robert
smith1000 engineer 1 robert
smith1000 engineer
Now, if you change the definition of the CR variable to add some text, for example to
<xsl:variable name="CR">
<xsl:text>XX
</xsl:text>
It outputs:
XX
XX
which is what I would expect.
Does anyone have any idea what is going on here? Changing the variable definition to <xsl:variable name="CR" select="'&#xD;&#xA;'" /> fixes the problem by the way.

Similar Messages

  • Changed behaviour when handling Oracle Objects in SQL Developer 3.1

    In version of SQL Developer before (and including) 3.0, when one executed - F5, run script, not F9, run query - a query that included an SDO_GEOMETRY (oracle object) object the object's elements where displayed in the output text form.
    In SQL Developer 3.1 that has changed. Now, one only gets [MDSYS.SDO_GEOMETRY] as a placeholder.
    Many spatial users prefer the former behaviour.
    Has something changed in 3.1 that causes this?
    Is there a way that I can get the previous behaviour back?
    I program the GeoRaptor SQL Developer extension. GeoRaptor has an Addin that allows it to reformat SDO_GEOMETRY objects in a result set on the fly.
    Does one need to do something similar now in SQL Developer 3.1?
    If so, can you provide an example.
    Finally, are there any plans to release Javadoc for the SQL Developer jar files that an extension developer needs to use when constructing an extension?
    regards
    Simon

    >
    In SQL Developer 3.1 that has changed. Now, one only gets [MDSYS.SDO_GEOMETRY] as a placeholder.
    >
    Yes - there has been some history re SDO_GEOMETRY in particular.
    See Gary Graham's reply in this thread
    Re: Query result window doesn't show contents of collection types
    >
    There is some history behind this change. It started with a performance issue populating the grid for SDO_GEOMETRY objects:
    Re: SQLD 3.1EA -  Fails to render resultset output containing SDO_GEOMETRY

  • Weird behaviour when spanning colums in GridPane

    Using column span seems to influence the size of all the columns spanned in a weird (as in: I can't figure it out) way.
    With the code below, you would expect the second column to be the size of the button (the only node placed directly in it), and the first column to take up all remaining space.
    But for some reason, the second column is bigger than the button. Note that in my original code (way more complex than the example below) the second column was over 300 pixels too wide.
    The only workaround I found was to set the preferred size of the nodes in the first column, and to set a preferred column size as well (see commented lines). Nothing I tried on the second column seemed to have any effect.
    Am I missing something here, or is this a bug ?
    GridPane root = GridPaneBuilder.create()
            .padding(new Insets(10))
            .hgap(15)
            .vgap(15)
            .gridLinesVisible(true)
            .build();
    root.getColumnConstraints().addAll(
            ColumnConstraintsBuilder.create()
                .hgrow(Priority.ALWAYS)
                //.prefWidth(200)
                .halignment(HPos.RIGHT)
                .build(),
            ColumnConstraintsBuilder.create()
                .hgrow(Priority.NEVER)
                .build());
    TextField text = new TextField();
    //text.setPrefWidth(200);
    GridPane.setColumnSpan(text, 2);
    root.add(text, 0, 0);
    Button cancel = new Button("Cancel");
    root.add(cancel, 0, 1);
    Button save = new Button("Save");
    root.add(save, 1, 1);
    Scene scene = new Scene(root);
    primaryStage.setTitle("GridPane Span Test");
    primaryStage.setScene(scene);
    primaryStage.show();

    I think it is bug
    Re: Strange GridPane behaviour in relation to column width

  • Weird behaviour when drilling down in time hierarchy

    Hi Experts,
    We have time hierarchy
    year--->quarter--->month--->week--->day.
    But when im drilling down from Quarter it is showing the week level and not the month level and then again if i m trying to drill down from quarter then it is showing the month.
    What can be the issue here?
    Regards

    Hi,
    just check what u have set into preferred drill path tab for Logical level quarter.
    Regards,
    Vikas
    Edited by: user7312087 on Jul 7, 2009 12:27 AM

  • Weird behaviour when soft proofing.

    I'm finding that if I open an image in DEVELOP, when soft proofing is ALREADY switched on, the sliders usually grey out as soon as I make a first adjustment, the histogram display disappears as well. Toggling the soft proof check box brings everything back to life.

    I'm on Win 7 Pro 64, HP Z800, Nvidia Quadro FX3800, Xeon 6 Core. Wacom Intous.
    ...and I'm still getting the problem. I suspected maybe the Wacom tablet so disabled the service but still get problem with a mouse. I created a new catalogue and imported some different images,
    still get the problem, except for the FIRST time I try it with a new image, then everything's OK but subsequent tries give the problem. The files are either layered tiffs of finalised images or DNG or Hasselblad 3F
    originals.
    The grey outs occurred after the first adjustment, after choosing "Make Proof Copy". I have now checked the "Don't Ask Again" button and the problem seems to have gone away. Just a little glich I guess.
    Cheers.

  • SQL MP - SPN Status monitor weird behaviour

    Hi all,
    I have a strange behaviour with the monitor that checks SQL 2008 SPN status. More precisely I have a weird behaviour with the script used by the monitor. The script is GetSQL2008SPNState.vbs. I configured the SQL monitoring profile (which is used by the
    script) with a domain account with necessary rights.
    Let's say I have a SQL Server called SQL1. SQL1 is in domain AD1. I have a forest called contoso.com with two child domains AD1 and AD2.
    On SQL1 I sometimes see events 4001 generated by this script that mentions a problem to connect to WMI namespace (which is healthy, I checked with wbemtest). The event says that it couldn't connect to
    \\SQL1.AD1.contoso.com.AD2.contoso.com\root\blabla. I have no idea why it is using that broken FQDN.
    I made some research into the script and understood the following:
    The script has the SQL server FQDN as parameter (here SQL1.AD1.contoso.com)
    It searches the defaultnamingcontext by doing
     Set oRootDse = GetObject("GC://RootDSE)
     sRootnamingContext = oRootDse.Get("defaultNamingContext")
    It converts the defaultnamingcontext variable from "DC=a,DC=b,DC,c" to ".a.b.c"
    It checks if the defaultnamingcontext is in the fqdn and if not it appends it at the end of the fqdn. Dunno if I'm clear here so here are examples of good and bad behaviours:
    GOOD:
    FQDN is SQL1.AD1.contoso.com, defaultnamingcontext gives AD1.contoso.com, AD1.contoso.com is in SQL1.AD1.contoso.com so the script go on using SQL1.AD1.contoso.com and it's ok...
    BAD:
    FQDN is SQL1.AD1.contoso.com, defaultnamingcontext gives AD2.contoso.com, AD2.contoso.com is not in SQL1.AD1.contoso.com so the script go on using SQL1.AD1.contoso.com.AD2.contoso.com and it's broken...
    I didn't mention earlier but the runas account I use is from domain AD1. It's called AD1\svc_scom_mp
    My question is how comes sometimes (sometimes means during 6 hours, a whole day, nothing reccurent :( ) The defaultnamingcontext gives me the fqdn of the other domain ??
    I'm wondering if this can be due to the fact that I also have an account called svc_scom_mp in AD2 but I'm 100% sure it's not used here as it's not targeted nor distributed to any AD1 computers.
    I guess it's more an AD problem than anything else.
    Any ideas ?
    <a href="http://myitforum.com/cs2/blogs/fdufour/default.aspx">Supervize Me ©</a>

    Hi François
    I tested GetSQL2008SPNState.vbs on my POC with a similar configuration (one root and two child domains) and i have got the same issue. I think the root cause is the Server less binding (GC://RootDSE) used to search defaultNamingContext.
    With Server less binding, GC name relies on
    DNS round robin to find a GC, if a GC from another domain is returned the defaultNamingContext will be the other domain.
    You can check GC resolution with nslookup:
    nslookup gc._msdcs.contoso.com  (the root domain)
    repeat the command to see the round robin result.
    I wrote a vbscript to test it:
    This script search all GC and search defaultNamingContext with GC provider server less and server name binding. With LDAP Provider the right domain name is always returned.
    =============================
    ldapFilter = "(&(objectClass=nTDSDSA)(options:1.2.840.113556.1.4.803:=1))"
    Set rootDSE = GetObject("LDAP://rootDSE")
    configDN =   rootDSE.Get("configurationNamingContext")
    Set ado = CreateObject("ADODB.Connection")
    ado.Provider = "ADSDSOObject"
    ado.Open "ADSearch"
    Set objectList =   ado.Execute("<LDAP://" &configDN& ">;" & ldapFilter & ";distinguishedName;subtree")
    ' GC Server less binding LDAP
          Set oRootDse = GetObject("LDAP://RootDSE")
          If Not (oRootDse Is Nothing) Then
                sDefaultNamingContext = oRootDse.Get("defaultNamingContext")
                wscript.echo "Server less binding:
    LDAP://RootDSE"
                wscript.echo "   DefaultNamingContext found: " & sDefaultNamingContext
                 wscript.echo " "
          Else
                wscript.echo "   NOT found: "
          End If
    ' GC Server less binding  GC
          Set oRootDse = GetObject("GC://RootDSE")
          If Not (oRootDse Is Nothing) Then
                sDefaultNamingContext = oRootDse.Get("defaultNamingContext")
                wscript.echo "Server less binding: GC://RootDSE"
                wscript.echo "   DefaultNamingContext found: " & sDefaultNamingContext
                 wscript.echo " "
          Else
                wscript.echo "   NOT found: "
          End If
    wscript.echo "Server Name binding: GC://<ServerName>/RootDSE"
    While Not objectList.EOF
        nTSDSA = objectList.Fields("distinguishedName")
        serverDN = Mid(nTSDSA, 18)                                        
        Set serverObj = GetObject("LDAP://" & serverDN )
        WScript.Echo " GC name:" & serverObj.dNSHostName
        ' GC Server Binding
        Set oRootDse = GetObject("GC://" & serverObj.dNSHostName & "/RootDSE")
          If Not (oRootDse Is Nothing) Then
                sDefaultNamingContext = oRootDse.Get("defaultNamingContext")
                wscript.echo "   DefaultNamingContext found: " & sDefaultNamingContext
          Else
                wscript.echo "   NOT found: "
          End If
        wscript.echo " "
        objectList.MoveNext
    Wend
    ======================================================
    Cordialement

  • Error and weird behaviour in executable launch

    Hello folks,
    This post is regarding a weird behaviour i am experiencing with an executable i built. 
    LABVIEW version(Includes Runtime engine) LV2012 SP1 f3
    DAQmx: 9.6.1
    The behaviour is listed below in detail. 
    In a nutshell, the exectuable runs on the development computer but does not run on the Target computer. Also, Irresepctive of which PC i run the executable on, i cannot access the block diagram even after enabling debugging everywhere. 
    On the target PC, the app fires up but does not run further, no error codes appear on the screen, it's like the app freezes after firing up. And to add to the misery, i cannot access the block diagram to debug and know what's going on. 
    Also, I have tried including the dynamic vis to my build script. No bueno. 
    What I see on running the app is addressed below:
    TARGET COMPUTER:
    DAQmx 9.7 and LV2012 SP1 f4 RTE have been installed manually.
    App does not run: No broken run button, the app launches but does nothing when the vi is run. No error messages.
    The block diagram is still inaccessible, even after selecting the “Enable debugging” option in the build specifications.
    DEVELOPMENT COMPUTER:
    The app launches and runs perfectly.
    The block diagram is still inaccessible, even after selecting the “Enable debugging” option in the build specifications.
    DAQmx 9.7 and LV2012 SP1 f4 RTE were not installed as the app recognized the already installed Labview environment.
    Additional steps that I have tried,
     Created and ran only an executable on the target PC, the attempt was unsuccessful. The vi showed similar characteristics as mentioned above in the target PC section.
     Created and ran an installer with additional install options(LV2012 f4 RTE and DAQmx 9.7)on the target PC, the attempt was again unsuccessful. The vi showed similar characteristics as mentioned above in the target PC section.  No error messages.
     Tried both the steps mentioned above on the development computer and the attempts were successful. .
    To the best of my knowledge, I believe, the issue here is with the environment I am creating for the executable and the installer to run with/off of. After having carefully followed the installation procedure for the Run-Time Engine and the DAQmx drivers, I still do not know what I am missing. 
    Please advise.
    Thanks guys, 
    RP.

    Hey guys, 
    So, got the application to work. Almost. 
    The problem was that the executable was missing the hardware config from the Device. 
    Now, the new issue is as following: 
    The goal of the vi is to generate a report of the test conducted. So, the way the vi works is that, the second the vi is run, an empty word file is created with only the company logo,  
    Field headings, which are populated after the test is conducted. 
    The logo is a .jpg file, which has a relative path into the executable.
    The field heading are String constants wired into a 'concatenate strings.vi' which are in turn wired to into the report generation vis.
    What's happening is that when i run the app on the target pc, Only the logo appears on the word template. Even when i conduct the whole test and stop the vi, the results aren't populated in the word file. Which is a little weird.
    Does any one know whats doing that?
    Please refer to the attached word files.
    Right - It is the file format desired. 
    Wrong - It is the file format achieved. 
    Please advise.
    Thanks,
    RP. 
    Attachments:
    Right.docx ‏17 KB
    Wrong.docx ‏16 KB

  • Problem signing XML when applying XPATH2 filer

    I have a problem when applying XPATH2 filter to a XML Signature, because it inserts the namespaces from the main XML node to all descendants. I'm doing this:
    1. XMLSignatureFactory fac = XMLSignatureFactory.getInstance(AppConstants.DOM);
    2. XPathType tipoFiltro = new XPathType("//mainNode", Filter.INTERSECT);
         3. ArrayList<XPathType> lista = new ArrayList<XPathType>();
         4. lista.add(tipoFiltro);
         5. XPathFilter2ParameterSpec listaXPath = new XPathFilter2ParameterSpec(lista);
         6. Transform filtro = fac.newTransform(Transform.XPATH2, listaXPath);
         7. Transform enveloped = fac.newTransform(Transform.ENVELOPED,(TransformParameterSpec) null);
         8. ArrayList<Transform> listaTransformadas = new ArrayList<Transform>();
         9. listaTransformadas.add(filtro); //If comented, no problem
         10. listaTransformadas.add(enveloped);
         11. ref = fac.newReference("", fac.newDigestMethod(DigestMethod.SHA1, null), listaTransformadas,null,null);     
         12. SignedInfo si = fac.newSignedInfo(fac.newCanonicalizationMethod(CanonicalizationMethod.INCLUSIVE,(C14NMethodParameterSpec) null), fac.newSignatureMethod(SignatureMethod.RSA_SHA1, null), Collections.singletonList(ref));
         ... more code (KeyInfo,...)
         13. DOMSignContext dsc = new DOMSignContext(keyEntry.getPrivateKey(), doc.getDocumentElement());
         14. XMLSignature signature = fac.newXMLSignature(si, ki);
         15. signature.sign(dsc);
         If I do the same without XPATH2 filter (Line 9 commented), it doesn't insert the namespaces in any node (they're only in the main node). The objetive of applying this xpath2 filter is to exclude XSLT reference (<?xml-stylesheet type="text/xsl" href=".\xsl\myTemplate.xsl"?>) from the signature.
         How can I avoid this situation? Is there another method for signing XML documents that allows this? Is there another way to exclude XLST reference that doesn't insert namespaces in all nodes?

    I have a problem when applying XPATH2 filter to a XML Signature, because it inserts the namespaces from the main XML node to all descendants. I'm doing this:
    1. XMLSignatureFactory fac = XMLSignatureFactory.getInstance(AppConstants.DOM);
    2. XPathType tipoFiltro = new XPathType("//mainNode", Filter.INTERSECT);
         3. ArrayList<XPathType> lista = new ArrayList<XPathType>();
         4. lista.add(tipoFiltro);
         5. XPathFilter2ParameterSpec listaXPath = new XPathFilter2ParameterSpec(lista);
         6. Transform filtro = fac.newTransform(Transform.XPATH2, listaXPath);
         7. Transform enveloped = fac.newTransform(Transform.ENVELOPED,(TransformParameterSpec) null);
         8. ArrayList<Transform> listaTransformadas = new ArrayList<Transform>();
         9. listaTransformadas.add(filtro); //If comented, no problem
         10. listaTransformadas.add(enveloped);
         11. ref = fac.newReference("", fac.newDigestMethod(DigestMethod.SHA1, null), listaTransformadas,null,null);     
         12. SignedInfo si = fac.newSignedInfo(fac.newCanonicalizationMethod(CanonicalizationMethod.INCLUSIVE,(C14NMethodParameterSpec) null), fac.newSignatureMethod(SignatureMethod.RSA_SHA1, null), Collections.singletonList(ref));
         ... more code (KeyInfo,...)
         13. DOMSignContext dsc = new DOMSignContext(keyEntry.getPrivateKey(), doc.getDocumentElement());
         14. XMLSignature signature = fac.newXMLSignature(si, ki);
         15. signature.sign(dsc);
         If I do the same without XPATH2 filter (Line 9 commented), it doesn't insert the namespaces in any node (they're only in the main node). The objetive of applying this xpath2 filter is to exclude XSLT reference (<?xml-stylesheet type="text/xsl" href=".\xsl\myTemplate.xsl"?>) from the signature.
         How can I avoid this situation? Is there another method for signing XML documents that allows this? Is there another way to exclude XLST reference that doesn't insert namespaces in all nodes?

  • Weird behaviour of OBIEE 11g hierarchy columns

    Hi,
    I'm facing this weird issue when i implement the OBIEE 11g new feature called hierarchy column.The issue is that the last value in the hierarchy is reporting
    Example
    Store Heir-achy
    ->Store Country
    ->Store City
    ->Store name
    ->Store Name
    ->Store name (And the level goes on and on).
    I don't know why this weird thing is happening.Any help is appreciated.
    Thanks,
    Sunny.

    Thanks for the response, in regards to whether it is 1 or 2 Logical Facts, it is still the same behaviour. IN regards to the Logical Dimension, yes it is set with two LTS with the applicable content levels set. I even tried that as just 1 LTS doing the join through the General tab. Still the same behaviour with the drill-down. I am assuming it will always go through the full drill path regardless of what level the Fact you are hitting is at.

  • HTML Link -AS2 fine, AS3 weird behaviour

    Hi Guys, I'm working on a project at the moment, and am
    seeing weird behaviour with the way my swf handles html links
    inside dynamic textboxes. When rendered as a AS2 file, the link
    works on a release as expected. When its inside a AS3 file the link
    will only work if the user right click and chooses 'open in new
    window' was there a change in behaviour how AS3 handles these
    links, or is there now an declaration needed to be made to allow
    these link to have the old behaviour?
    The project calls for xml data and embedded in that is a html
    link. Originally I thought it might have been the way I'd formed
    the xml so I tried with a hardcoded version instead (dynamic
    textbox, add text -> highlight -> add link through properties
    tab). But I still see the same behaviour between the as2 and as3
    versions.
    Any help would be greatly appreciated.
    Cheers.

    Actually, the ''href'' attribute is supposed to direct the browser to a new URL, etc., not run a script. Instead, use the ''onclick'' event attribute:
    ''<a onclick = “$('.div-feedback').fadeIn();”></a>''.
    Happy coding!

  • Error occurs when applying pre-install task of patch 9239089

    Error occurs when applying pre-install task of patch 9239089
    ----------------------------------Pre-install Tasks--------------------------------------
    4. Use SQL*Plus to run the script:
    UNIX:
    $ sqlplus /nolog
    SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql <APPS schema name>
    ----------------------------------error message---------------------------------------
    End of Creating PL/SQL Package AD_DBMS_METADATA.
    DECLARE
    ERROR at line 1:
    ORA-20000: ORA-00933: SQL command not properly endedError in
    ad_grants.Give_grants
    ORA-06512: at line 685
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Thanks,
    Jackie

    Jackie,
    $ sqlplus /nolog
    SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql <APPS schema name> You need to run the script as follows (replace <APPS schema name> with apps):
    SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql appsThanks,
    Hussein

  • Error when applying patch 3171663(11.5.9 CU2 )..

    hi..
    error when applying patch 3171663(11.5.9 CU2 )
    below error in log file:
    Assigned: file mscplan.odf on worker 1 for product msc username MSC.
    Time is: Sat May 22 2010 21:58:03
    FAILED: file mscplan.odf on worker 1 for product msc username MSC.
    Time is: Sat May 22 2010 21:58:04
    ATTENTION: All workers either have failed or are waiting:
         FAILED: file mscplan.odf on worker 1.
    ATTENTION: Please fix the above failed worker(s) so the manager can continue.
    below error in workerlog.. in adworker1
    ===============================================================================
    The table is missing the index MSC_TRADING_PARTNERS_U2
    or index MSC_TRADING_PARTNERS_U2 exists on another table.
    Create it with the statement:
    Start time for statement below is: Sat May 22 2010 21:58:04
    CREATE UNIQUE INDEX MSC.MSC_TRADING_PARTNERS_U2 ON MSC.MSC_TRADING_PARTNERS
    (SR_INSTANCE_ID, SR_TP_ID, PARTNER_TYPE, COMPANY_ID) LOGGING STORAGE
    (INITIAL 4K NEXT 40K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 0
    FREELIST GROUPS 4 FREELISTS 4 ) PCTFREE 10 INITRANS 11 MAXTRANS 255
    COMPUTE STATISTICS TABLESPACE MSCX
    Statement executed.
    AD Worker error:
    The index cannot be created as the table has duplicate keys.
    Use the following SQL statement to identify the duplicate keys:
    SELECT SR_INSTANCE_ID, SR_TP_ID, PARTNER_TYPE, COMPANY_ID, count(*)
    FROM MSC.MSC_TRADING_PARTNERS
    GROUP BY SR_INSTANCE_ID, SR_TP_ID, PARTNER_TYPE, COMPANY_ID
    HAVING count(*)>1
    AD Worker error:
    Unable to compare or correct tables or indexes or keys
         because of the error above
    Time when worker failed: Sat May 22 2010 21:58:04
    ====================================================================
    My application version :11.5.9
    my database version 8.1.7.4
    Regards
    Jaffer Ali

    >
    Use the following SQL statement to identify the duplicate keys:
    SELECT SR_INSTANCE_ID, SR_TP_ID, PARTNER_TYPE, COMPANY_ID, count(*)
    FROM MSC.MSC_TRADING_PARTNERS
    GROUP BY SR_INSTANCE_ID, SR_TP_ID, PARTNER_TYPE, COMPANY_ID
    HAVING count(*)>1
    >
    Pl post the output of the above statement
    HTH
    Srini

  • Weird behaviour in the Fontbook display pane

    I have just been checking through some font conflicts using FontBook. All have resolved successfully, but I have noticed weird behaviour involving four or five fonts. Some of them show up as all-Cyrillic faces (Arno Pro), or all-Hebrew faces (Stone Sans) or all-Arabic faces (Balzano) in the display pane, yet print perfectly as Western characters when used in any program (Pages, Word, Bean, FCE, Keynote etc).
    It's not actually causing any problem, I suppose, apart from a weird representation in Fontbook. I have tried deactivating and reactivating these fonts. I have tried quitting and restarting Fontbook. I have even tried restarting the computer. The Cyrillics, Hebrews and Arabics keep coming back.
    Is this a known Fontbook bug, or am I doing something wrong?

    Thank you, Kappy and Tom:
    I tried the Preview Repertoire command and it showed that the fonts did, indeed, have the full Latin complement of characters. It's just that only the Cyrillic/Hebrew/Arabic/Gujarati/Mandarin selections are showing up in some fonts' preview panes: particularly those fonts with the suffix "Pro" in the title (Myriad Pro, and so on).
    How strange.

  • Weird behaviour in report filter with Presentation variables

    Hi All,
    I'm facing a weird behaviour on filtering the report using presentation variables
    Prompt:
    1. Start Date assigned to PV_ST_DT
    2. End Date assigned to PV_END_DT
    Report
    In the filter section given the "between" condition with these two presentation variable
    Fiscal Date between {@PV_ST_DT}{01/01/1990} AND {@PV_END_DT}{01/01/1990}
    this given filter condition results in the report like
    Fiscal Date is equal to ({@PV_END_DT} value)
    the filter criteria is not applied as I given, I have tried by changing the conditions like greater than or equal to , less than or equal to. The filter applied only the last presentation variable value with the prompt condition, It is not taking the condition specified in the report.
    Can anyone provide a solution on this?

    Below format: works perfectly fine
    Fiscal Date BETWEEN '@{PV_ST_DT}{01/01/2007}' AND '@{PV_END_DT}{01/03/2007}'

  • Weird behaviour with dragImage in DragManager & NativeDragManager

    I'm getting some unexpected (to me anyway) behaviour when I set the "dragImage" property for DragManager and NativeDragManager when I call "doDrag".
    DragManager.doDrag(dragInitiator:IUIComponent, dragSource:DragSource, mouseEvent:MouseEvent, dragImage:IFlexDisplayObject = null, xOffset:Number = 0, yOffset:Number = 0, imageAlpha:Number = 0.5, allowMove:Boolean = true):void
    So I'm setting the "dragImage" property to a 30x30 pixel PNG that I've embedded, and when I run my app and click to drag I do see the image, but it's weirdly greyed out.  I experimented with setting the "imageAlpha" property to 1.0 and the greyness dissapears, and the image is still semi-transparent.  I think what's happening is that the image gets laid over the default skin, which is a grey box, at 0.5 transparency, and then the whole thing is set to another transparency amount.  If that's true.. then.. what's the point in having the imageAlpha set to 0.5 by default?  Who wants their drag image to be greyed out like that?  And how do you adjust the transparency if imageAlpha doesn't do that for you?
    NativeDragManager.doDrag(dragInitiator:InteractiveObject, clipboard:Clipboard, dragImage:BitmapData = null, offset:Point = null, allowedActions:NativeDragOptions = null):void
    For NativeDragManager I've tried setting the "dragImage" property to the bitmap data of the same PNG that I embedded (Why BitmapData?  Why not an IFlexDisplayObject like DragManager uses?) and it renders it in much the same way as DragManager does, once I'd set the "imageAlpha" to 1.0.  But when I drag the image outside of the application it pixel shifts it, chopping aproximately two pixels off of the left edge, and sticking them on the right edge.  I've no clue why it's doing this...

    As to the first question, yes, the default is set to 0.5 as the documentation states.  Many UI systems make icons semitransparent when dragging (e.g. Win 7 & OSX).

Maybe you are looking for

  • How do I convert a  XLR created in works to a PDF?

    I created a document in Microsoft Works Spreadsheet which is a xlr file. I need to convert it to a pdf file. I installed adobe acrobat but now what do I do?

  • Windows 8 Boot camp no sound or thunderbolt display

    Today I configured a Windows 8 bootcamp on my late 2011 Macbook pro i5 with 2 internal storage devices SSD Mac boot HDD windows boot.  I installed all apple bootcamp 5 drivers as well as tried to install realetk sound drivers to get the sound to work

  • Need help with simple VS2005 C++ code

    I'm not sure if I am doing something wrong, or if the Switch Front Panel isn't expected to reflect the results of my code.  I have a virtual 1163 cart setup in MAX.  I start the Switch Soft Front Panel and can see the state of the channels. I have au

  • PI Directory APIs

    Hello folks I am trying to update a communication channel using PI directory APIs. When i call the Change operation in CommunicationChannelIn service, I get a log saying the TransportProtocolVersion attribute is blank and must be provided. I retrieve

  • ITunes Library/ Startup Disc Full ...Help Needed!!!

    My computer is sending me two messages this week. That my starup disc is full and now "The iTunes music library cannot be saved. The disc you are attempting to use is full. Please delete some files to fix the problem." I have an 100 GB external hard