XDK 11g Bug

XDK 11g is included in JDeveloper 11g.
The DocumentEditVAL.setContinuousValidityChecking(boolean) method has a bug. When set to true:
document.setContinuousValidityChecking(true);
generates the following error:
oracle.xml.parser.v2.XMLDOMException: dom error 16 occurred
document is an object of type XMLDocument.
Edited by: dvohra on Dec 2, 2008 5:04 PM

The procedure to test the bug is as follows.
1. Create an application and a project in JDeveloper 11g.
2. Add a Java class, DOM3Validation, to the project.
3. Add Oracle XML Parser v2 library to classpath.
4. Copy the following listing to a file catalog.xml and save the file in a directory, C:/DOM3Validation.
<?xml version="1.0" encoding="windows-1252" ?>
<catalog title="Oracle Magazine" publisher="Oracle Publishing">
<journal>
<article>
</article>
</journal>
</catalog>
5. Copy the following XML Schema listing to a file catalog.xsd save the file to directory C:/DOM3Validation.
<?xml version="1.0" encoding="windows-1252" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="catalog">
<xs:complexType>
<xs:sequence>
<xs:element ref="journal" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="title" type="xs:string" use="optional"/>
<xs:attribute name="publisher" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="journal">
<xs:complexType>
<xs:sequence>
<xs:element ref="article" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="date" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="article">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="author" type="xs:string"/>
</xs:sequence>
<xs:attribute name="section">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Features"/>
<xs:enumeration value="SQL"/>
<xs:enumeration value="ORACLE DEVELOPER"/>
<xs:enumeration value="JSP"/>
<xs:enumeration value="XML"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
6. Copy the following listing to the Java class.
import org.w3c.dom.ls.*;
import oracle.xml.parser.schema.*;
import oracle.xml.parser.v2.*;
import java.net.*;
public class DOM3Validation {
public void validate() {
try {
XMLDOMImplementation impl = new XMLDOMImplementation();
LSParser parser =
impl.createLSParser(DOMImplementationLS.MODE_SYNCHRONOUS,
"http://www.w3.org/2001/XMLSchema");
XMLDocument document =
(XMLDocument)(parser.parseURI("file://C:/DOM3Validation/catalog.xml"));
XSDBuilder builder = new XSDBuilder();
URL url = new URL("file://C:/DOM3Validation/catalog.xsd");
XMLSchema schemadoc = builder.build(url);
document.setSchema(schemadoc);
document.setContinuousValidityChecking(true);
} catch (MalformedURLException e) {
System.err.println(e.getMessage());
} catch (XSDException e) {
System.err.println(e.getMessage());
public static void main(String[] args) {
DOM3Validation dom3Validation = new DOM3Validation();
dom3Validation.validate();
7. Run the Java class. The following error gets generated.
Exception in thread "main" oracle.xml.parser.v2.XMLDOMException: dom error 16 occurred
     at oracle.xml.parser.v2.XMLDocument.setContinuousValidityChecking(XMLDocument.java:3227)
Edited by: dvohra on Dec 3, 2008 12:25 PM
Edited by: dvohra on Dec 3, 2008 12:25 PM
Edited by: dvohra on Dec 4, 2008 12:15 PM

Similar Messages

  • OBIEE 11g: Bugs Fixed in 11.1.1.6.5 Patch Set

    Hello, I have a question about the patches that apply.
    I have installed the product BI Publisher Enterprise 11g (11.1.1.6.0)
    I detected a bug:
    bug 13791065 - UNGROUP OF A SUBGROUP WITH AN EXPRESSION DOES NOT WORK PROPERLY
    This bug was fixed in OBIEE 11g: Bugs Fixed in 11.1.1.6.5 Patch Set
    ¿could apply this patch to version BI Publisher Enterprise? Because this patch cotent the fix bug 13791065
    I think not because,...this patch only apply in OBIEE Enterprise 11g and I have BIP Enterprise 11g
    Patch 14630670: UPDATE FOR BI PUBLISHER ENTERPRISE 11.1.1.6.X SEPTEMBER 2012 is the last patch for me?
    This latest version does not contain the bug fix 13791065.
    thank you very much

    Thanks Daniele for the reply,
    I believe the 11.1.1.4 was released but only in OTN, not for everyone (I'm not 100% sure about this...) . However I know that a certain bug (9973004) was solved in 11.1.1.4, and this bug does not appear in the 11.1.1.5 list. That could happen with many other bugs, they could be solved in 11.1.1.4 but not appear in any list.
    Thanks again!

  • Oracle 11g bug ?!

    We are trying to execute a simple query of the form
    select * from sometable where upper(attr1) like 'WB%' or upper(attr2) like 'WB%' or upper(attr3) like 'WB%'
    The data does exist in the table but the query does not return values.
    Sometimes the count(*) on that table returns the correct number but the actual select statement does not return data.
    We have added a dummy where clause
    select * from sometable where upper(attr1) like 'WB%' or upper(attr2) like 'WB%' or upper(attr3) like 'WB%' or lower(attr2) like 'WB%' and the data does show up.
    We are on Oracle 11g 11.2.0.2 and have migrated recently from 10g. And this issue has started appearing after the migration.
    Any thoughts on what could be causing this issue ?
    Thanks
    Surya
    Edited by: Surya on 09-Mar-2011 06:11

    user11180582 wrote:
    We have added a dummy where clause
    select * from sometable where upper(attr1) like 'WB%' or upper(attr2) like 'WB%' or upper(attr3) like 'WB%' or lower(attr2) like 'WB%' and the data does show up. Hm. difficult but I doubt that you have a bug. I guess you have either some strange values or there is something in the full statement that is missing in your example.
    For example please be aware that the AND operator has a higher priority then the OR operator (is this way since oracle 7 at least).
    So if your real statement would include an and condition, this could produce unwanted outcome.
    select * from sometable
    where upper(attr1) like 'WB%'
         or upper(attr2) like 'WB%'
         or upper(attr3) like 'WB%'
         and lower(attr5) = 'XY' This is identical to:
    select * from sometable
    where upper(attr1) like 'WB%'
         or upper(attr2) like 'WB%'
         or (upper(attr3) like 'WB%' and lower(attr5) = 'XY' )But usually you want
    select * from sometable
    where (upper(attr1) like 'WB%' or upper(attr2) like 'WB%' or upper(attr3) like 'WB%')
            and lower(attr5) = 'XY' Some additon. Your condition could also be written like this. Maybe this helps to find the real cause of the error.
    select * from sometable
    where 'WB' in (substr(upper(attr1),1,2)
                       ,substr(upper(attr2),1,2)
                       ,substr(upper(attr3),1,2)
                       )I find this often to be better readable then a long LIKE + OR expression.

  • Oracle 11g bug for column ambigously defined error

    I have below format query running on Oracle 10g without any issues
    select col1
    from (select col1
    from (select 'A' col1
    from dual)
    ) v1
    inner join (select col1 as col2
    from (select 'A' col1
    from dual)
    ) v2
    on (v1.col1=v2.col2);
    When I run the exact same query on Oracle 11g I get column ambiguously defined error. But when I change the query to as below it works fine on 11g
    select v1.col1
    from (select col1
    from (select 'A' col1
    from dual)
    ) v1
    inner join (select col1 as col2
    from (select 'A' col1
    from dual)
    ) v2
    on (v1.col1=v2.col2);
    Is it because 11g ignores column alias in my inner queries.

    I'd tend to agree that this seems to be a bug in 11.1.0.7 (at least, that's the version I'm running it in)
    It's not even that Oracle doesn't know about the column aliases, you can remove the aliases in the ON without a problem, i.e.
    SELECT v1.col1
       FROM
      (SELECT col1 FROM
        (SELECT 'A' col1 FROM dual
      ) v1
    INNER JOIN
      (SELECT col1 AS col2 FROM
        (SELECT 'A' col1 FROM dual
      ) v2
         ON (col1=col2);works fine. Using the old join syntax also seems to work fine
    SELECT col1
       FROM
      (SELECT col1 FROM
        (SELECT 'A' col1 FROM dual
      ) v1,
      (SELECT col1 AS col2 FROM
        (SELECT 'A' col1 FROM dual
      ) v2
      WHERE (col1=col2);So it appears that something in the SQL 99 parser is broken. Have you logged a bug in Metalink?
    Justin

  • Download for XDK 11g as add-on to 11g Client?

    At http://www.oracle.com/technology/tech/xml/xdkhome.html I can see only a 10g XDK package. Where's the 11g XDK?
    I have sample OCI Spatial code, which also depends on XMLType, and thus the code includes xml.h, but this header is only available as part of a full 11g server install, not the 11g client install.
    I don't think it's practical to have all developers install the server instead of the client just to be able to interact in the code with XMLType. Does anyone know when the 11 XDK will be available as a stand-alone download?
    Any advice / work-around awaiting this, to avoid having to install the full 11g server?
    Thanks, --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Check the link..
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28394/adx_overview.htm#insertedID5
    This section assumes that you installed Oracle Database from either CD-ROM or from an archive downloaded from Oracle Technology Network (OTN). The Oracle Database CD installs the Oracle XDK by default.

  • Toplink Missing  Mapping  - Jdeveloper 11g BUG-

    Hi ,
    I am generating two entities using JDeveloper 11g both Tables has 280 columns, I am using "entities from tables" wizard.
    For the first table it is generating the proper meta data like this one:
    @Id
    @Column(name="CLIENT_ID_DWH", nullable = false)
    private String clientIdDwh;
    @Id
    @Column(nullable = false)
    private String effectivefromdate;
    @Column(nullable = false)
    private String effectivetodate;
    @Column(name="HEDAAB_TXBRONC_DATE")
    private Timestamp hedaabTxbroncDate;
    @Column(name="HEDAAB_TXBRONC_EFFDT")
    private String hedaabTxbroncEffdt;
    @Column(name="HEDAAB_TXBRONC_QUAL")
    private String hedaabTxbroncQual;
    @Column(name="HEDAAB_TXBRONC_RCVD")
    private Long hedaabTxbroncRcvd;
    @Column(name="HEDAAB_TXBRONC_REASON")
    private String hedaabTxbroncReason;
    @Column(name="HEDAAB_TXBRONC_REQ")
    private Long hedaabTxbroncReq;
    @Column(name="HEDADD01_ADHDINIT_DATE")
    private Timestamp hedadd01AdhdinitDate;
    @Column(name="HEDADD01_ADHDINIT_EFFDT")
    private String hedadd01AdhdinitEffdt;
    @Column(name="HEDADD01_ADHDINIT_QUAL")
    private String hedadd01AdhdinitQual;
    @Column(name="HEDADD01_ADHDINIT_RCVD")
    private Long hedadd01AdhdinitRcvd;
    @Column(name="HEDADD01_ADHDINIT_REASON")
    private String hedadd01AdhdinitReason;
    @Column(name="HEDADD01_ADHDINIT_REQ")
    For the second table it is generating the following meta data for exampe:
    @Id
    @Column(nullable = false)
    private String clientiddwh;
    @Id
    @Column(nullable = false)
    private String cycle;
    @Id
    @Column(nullable = false)
    private String cyclemod;
    private Long hedisadhdmedfollowupinitiald;
    private String hedisadhdmedfollowupinitialdt;
    private Long hedisadhdmedfollowupinitialn;
    private String hedisadhdmedfollowupinitialop;
    private String hedisadhdmedfollowupinitialqu;
    private Long hedisadhdmedfolupcontd;
    private String hedisadhdmedfolupcontdt;
    private Long hedisadhdmedfolupcontn;
    private String hedisadhdmedfolupcontop;
    private String hedisadhdmedfolupcontqu;
    private Long hedisadolwellcarevisitsd;
    private String hedisadolwellcarevisitsdt;
    private Long hedisadolwellcarevisitsn;
    private String hedisadolwellcarevisitsop;
    This is totally not understandable, what is going on?
    A.B

    Hello,
    You might want to post this in the JDeveloper forums. For the second class, it just looks like the column names haven't been put into the generated class. This is only a problem if the defaulted column names would not match what is in the database - ie @Id String clientiddwh will default to use the "CLIENTIDDWH" field. Does this match what is in the table?
    Best Regards,
    Chris

  • Default Subpackage Names for Business Components (11g); Bug?

    Does anyone know how to enable the ability to specify the default packages under Tools -> Default Project Properties ->Business Components -> Packages?
    Mine are all greyed out.
    Also, even when I have the bare minimum of an ADF model project, before even checking "Initialize Project for Business Components", the defalt packages are greyed out.
    Further, once I do check "Initialize Project for Business Components", the section for Default Subpackage Names is complete gone.
    I want to be able to specifiy the subpackages, so that when I regenerate entities etc. from tables the components go to the right packages.
    Thanks for any help.

    This seems like a bug to me. If you select Initialize Project for Business Components, everything is enabled. And stays that way even after you open a different application.
    But , You can set these values under Tools - Preferences - Business Components - Packages. This works nicely. Once you set these, create a new application and things will be fine. If you have existing application, it may require some xml file (.jpr) manipulation. That seems to be a nicer approach. I don't know what is the purpose of Default Project Properties, when you can set everything by Tools - Preferences.

  • 11g bug(?)--AM client methods returning collections

    Hi all,
    I've got an application module with a method returning a collection of view rows, and I've exposed it on my client interface. The problem is that, in the data control palette, the method's return is just an untyped "element"--there's no declarative way of accessing the view row's data, that I can see.
    I've tried setting the "Element Java Type" in the "Edit Client Interface" dialog (after generating a custom view row class and exposing accessors on a VR client interface), but that seems to have no effect. I've tried right-clicking on the "element" node in the DCP and selecting "Edit Definition," but that doesn't seem to do anything either (no editor appears). Is there a way to return a typed collection (or, even better, a ViewObject with all attributes pertaining thereto) from a service method and have valuable stuff appear in the DCP?

    Couple of comments
    - wrong forum, should go to: JDeveloper and OC4J 11g Technology Preview
    - if the method returns rows, or ideally a VO, why can't this be done through a VO directly ?
    Frank

  • Unable to take 2800 rows in  time series chart  in obiee 11g --bug in obiee

    Hi,
    in x axis there are 2800 rows containg timestap values and and y axis it contains values but it shocking that it is not not taking even 2800 rows in charts
    thanks

    Hi,
    you can find instanconfig.xml file under below path
    obiee installed drive:\Oracle\Middleware\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1
    Just FYI, you can update <chart> conntent under </ServerInstance> look at the <views> tag and put like below..
    For example mine is,
    <Views>
    <Pivot>
    <MaxCells>6500000</MaxCells>
    <MaxVisibleColumns>100</MaxVisibleColumns>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>65000</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>500</DefaultRowsDisplayed>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDownload>64000</DefaultRowsDisplayedInDownload>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DisableAutoPreview>false</DisableAutoPreview>
    </Pivot>
    <Table>
    <MaxCells>6500000</MaxCells>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>65000</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>500</DefaultRowsDisplayed>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDownload>64000</DefaultRowsDisplayedInDownload>
    </Table>
    *<Charts>*
    *<MaxVisibleColumns>20000</MaxVisibleColumns>*
    *<MaxVisiblePages>10000</MaxVisiblePages>*
    *<MaxVisibleRows>20000</MaxVisibleRows>*
    *<MaxVisibleSections>250</MaxVisibleSections>*
    *<JavaHostReadLimitInKB>40960</JavaHostReadLimitInKB>*
    *</Charts>*
    </Views>
    <Dashboard>
    keep in b/w <views> and </views> xml tag
    after that you need to restart bi presentation services. then test it out.
    FYI:
    Starting/Stoping by individual BI COmponents:(Via OPMN)
    =========================================================
    stesp to starting bi presentation services alone,
    D:\Oracle\Middleware\instances\instance1\bin>opmnctl stopproc ias-component=cor
    eapplication_obips1
    opmnctl stopproc: stopping opmn managed processes...
    D:\Oracle\Middleware\instances\instance1\bin>opmnctl startproc ias-component=co
    reapplication_obips1
    opmnctl startproc: starting opmn managed processes...
    Thanks
    Deva
    Edited by: Devarasu on Jun 19, 2012 4:54 PM
    Edited by: Devarasu on Jun 19, 2012 4:57 PM

  • Copy cell content in OBIEE 11g

    I am unable to copy the cell content from OBI dashboard.
    Is this OBIEE 11g bug? I am using OBIEE 11.1.1.6.0
    Any way to resolve this ??
    Thanks in Advance !!

    Hi,
    This workaround may not be the best but might serve the purpose.
    I selected a cell and created a group for the value. Then I selected that group and viewed it's definition. This showed me a single value (which I wanted to copy). I copied the value and pasted to another application.
    This worked in analysis as well as on dashboard. I could create a group of more than one cell and copy all the values of that new group to paste to another application.
    I then deleted the groups. While using dashboard, I simply clicked 'Back' or 'Return' to remove the groups automatically.
    Manoj.

  • ClassNotFoundException when deploying to WLS with new JDev 11g patch

    I installed WLS and patched WLS with the new ADF lib ,installed the new jdev 11g , everything went well
    but when I want to deploy an application to the WLS I got this error .
    java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:135)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    Truncated. see log file for complete stacktrace
    >
    I had to comment out listerner-class ientry n the weblogic-application.xml, then it works.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-application">
    <!-- <listener>
    <listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>
    </listener>
    -->
    <library-ref>
    <library-name>adf.oracle.domain</library-name>
    </library-ref>
    </weblogic-application>

    Hi,
    as read in this thread : Re: Always fail to deploy to server when (Create a Simple EJB Session Bean )
    >
    This is a known JDeveloper 11g bug. If you look into the packaged EAR file, JDeveloper inserts some entries into the weblogic-application.xml file to register some listeners to perform some internal tasks it needs to deal with.
    The issue is that these classes are part of the ADF runtime and installed as part of the provided ADF domain. They are not provided as part of a standard WLS installation. Thus when you deploy a JDeveloper 11g packaged application to a non ADF augmented WLS 10.3 instance, you get a Classloading error on deployment because the specific listener-classes are not available.
    The relevant bug # for this is:
    BUG#7487416
    EAR FILE PACKAGING SETS FIXED DEPENDENCY ON
    JPSAPPLICATIONLIFECYCLELISTENER
    I believe a fix for this will be provided in the first patchset for JDeveloper 11g.
    In the meantime, if you want to workaround it, extract the weblogic-application.xml file from the EAR file, manually remove the listener entries, put the modified file back into the EAR file and then deploy it.
    -steve-
    >
    It solved the problem for me.
    But you should now get another problem, like some of us on this forum : ADFLogger will be missing. If so, please report to this thread for helping us : Standalone WLS server instance deployment failure - missing ADFLogger
    Regards.
    Luc-

  • SLOW report performance with bind variable

    Environment: 11.1.0.7.2, Apex 4.01.
    I've got a simplified report page where the report runs slowly compared to running the same query in sqldeveloper. The report region is based on a pl/sql function returning a query. If I use a bind variable in the query inside apex it takes 13 seconds to run, and if I hard code a string it takes only a few hundredths of a second. The query returns one row from a table which has 1.6 million rows. Statistics are up-to-date and the columns in the joins and where clause are indexed.
    I've run traces using p_trace=YES from Apex for both the bind variable and hard coded strings. They are below.
    The sqldeveloper explain plan is identical to the bind variable plan from the trace, yet the query runs in 0.0x seconds in sqldeveloper.
    What is it about bind variable syntax in Apex that is causing the bad execution plan? Apex Bug? 11g bug? Ideas?
    tkprof output from Apex trace with bind variable is below...
    select p.master_id link, p.first_name||' '||p.middle_name||' '||p.last_name||' '||p.suffix personname,
    p.gender||' '||p.date_of_birth g_dob, p.master_id||'*****'||substr(p.ssn,-4) ssn, p.status status
    from persons p
    where
       p.person_id in (select ps.person_id from person_systems ps where ps.source_key  like  LTRIM(RTRIM(:P71_SEARCH_SOURCE1)))
    order by 1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.01          0          1         27           0
    Fetch        2     13.15      13.22      67694      72865          0           1
    total        4     13.15      13.23      67694      72866         27           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 62  (ODPS_PRIVACYVAULT)   (recursive depth: 1)
    Rows     Row Source Operation
          1  SORT ORDER BY (cr=72869 pr=67694 pw=0 time=0 us cost=29615 size=14255040 card=178188)
          1   FILTER  (cr=72869 pr=67694 pw=0 time=0 us)
          1    HASH JOIN RIGHT SEMI (cr=72865 pr=67694 pw=0 time=0 us cost=26308 size=14255040 card=178188)
          1     INDEX FAST FULL SCAN IDX$$_0A300001 (cr=18545 pr=13379 pw=0 time=0 us cost=4993 size=2937776 card=183611)(object id 68485)
    1696485     TABLE ACCESS FULL PERSONS (cr=54320 pr=54315 pw=0 time=21965 us cost=14958 size=108575040 card=1696485)
    Rows     Execution Plan
          0  SELECT STATEMENT   MODE: ALL_ROWS
          1   SORT (ORDER BY)
          1    FILTER
          1     HASH JOIN (RIGHT SEMI)
          1      INDEX   MODE: ANALYZED (FAST FULL SCAN) OF
                     'IDX$$_0A300001' (INDEX)
    1696485      TABLE ACCESS   MODE: ANALYZED (FULL) OF 'PERSONS' (TABLE)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file scattered read                       1276        0.00          0.16
      db file sequential read                       812        0.00          0.02
      direct path read                             1552        0.00          0.61
    ********************************************************************************Here's the tkprof output with a hard coded string:
    select p.master_id link, p.first_name||' '||p.middle_name||' '||p.last_name||' '||p.suffix personname,
    p.gender||' '||p.date_of_birth g_dob, p.master_id||'*****'||substr(p.ssn,-4) ssn, p.status status
    from persons p
    where
       p.person_id in (select ps.person_id from person_systems ps where ps.source_key  like  LTRIM(RTRIM('0b')))
    order by 1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.02       0.04          0          0          0           0
    Execute      1      0.00       0.00          0          0         13           0
    Fetch        2      0.00       0.00          0          8          0           1
    total        4      0.02       0.04          0          8         13           1
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 62  (ODPS_PRIVACYVAULT)   (recursive depth: 1)
    Rows     Row Source Operation
          1  SORT ORDER BY (cr=10 pr=0 pw=0 time=0 us cost=9 size=80 card=1)
          1   FILTER  (cr=10 pr=0 pw=0 time=0 us)
          1    NESTED LOOPS  (cr=8 pr=0 pw=0 time=0 us)
          1     NESTED LOOPS  (cr=7 pr=0 pw=0 time=0 us cost=8 size=80 card=1)
          1      SORT UNIQUE (cr=4 pr=0 pw=0 time=0 us cost=5 size=16 card=1)
          1       TABLE ACCESS BY INDEX ROWID PERSON_SYSTEMS (cr=4 pr=0 pw=0 time=0 us cost=5 size=16 card=1)
          1        INDEX RANGE SCAN IDX_PERSON_SYSTEMS_SOURCE_KEY (cr=3 pr=0 pw=0 time=0 us cost=3 size=0 card=1)(object id 68561)
          1      INDEX UNIQUE SCAN PK_PERSONS (cr=3 pr=0 pw=0 time=0 us cost=1 size=0 card=1)(object id 68506)
          1     TABLE ACCESS BY INDEX ROWID PERSONS (cr=1 pr=0 pw=0 time=0 us cost=2 size=64 card=1)
    Rows     Execution Plan
          0  SELECT STATEMENT   MODE: ALL_ROWS
          1   SORT (ORDER BY)
          1    FILTER
          1     NESTED LOOPS
          1      NESTED LOOPS
          1       SORT (UNIQUE)
          1        TABLE ACCESS   MODE: ANALYZED (BY INDEX ROWID) OF
                       'PERSON_SYSTEMS' (TABLE)
          1         INDEX   MODE: ANALYZED (RANGE SCAN) OF
                        'IDX_PERSON_SYSTEMS_SOURCE_KEY' (INDEX)
          1       INDEX   MODE: ANALYZED (UNIQUE SCAN) OF 'PK_PERSONS'
                      (INDEX (UNIQUE))
          1      TABLE ACCESS   MODE: ANALYZED (BY INDEX ROWID) OF
                     'PERSONS' (TABLE)

    Patrick, interesting insight. Thank you.
    The optimizer must be peeking at my bind variables with it's eyes closed. I'm the only one testing and I've never passed %anything as a bind value. :)
    Here's what I've learned since my last post:
    I don't think that sqldeveloper is actually using the explain plan it says it is. When I run explain plan in sqldeveloper (with a bind variable) it shows me the exact same plan as Apex with a bind variable. However, when I run autotrace in sqldeveloper, it takes a path that matches the hard coded values, and returns results in half a second. That autotrace run is consistent with actually running the query outside of autotrace. So, I think either sqldeveloper isn't really using bind variables, OR it is using them in some other way that Apex does not, or maybe optimizer peeking works in sqldeveloper?
    Using optimizer hints to tweak the plan helps. I've tried both /*+ FIRST_ROWS */ and /*+ index(ps pk_persons) */ and both drop the query to about a second. However, I'm loath to use hints because of the very dynamic nature of the query (and Tom Kyte doesn't like them either). The hints may end up hurting other variations on the query.
    I also tested the query by wrapping it in a select count(1) from ([long query]) and testing the performance in sqldeveloper and in Apex. The performance in that case is identical with both bind variables and hard coded variables for both Apex and SqlDeveloper. That to me was very interesting and I went so far as to set up two bind variable report regions on the same page. One region wrapped the long query with select count(1) from (...) and the other didn't. The wrapped query ran in 0.01 seconds, the unwrapped took 15ish seconds with no other optimizations. Very strange.
    To get performance up to acceptable levels I have changed my function returning query to:
    1) Set the equality operator to "=" for values without wildcards and "like" for user input with wildcards. This makes a HUGE difference IF no wildcard is used.
    2) Insert a /*+ FIRST_ROWS */ hint when users chose the column that requires the sub-query. This obviously changes the optimizer's plan and improves query speed from 15 seconds to 1.5 seconds even with wildcards.
    I will NOT be hard coding any user supplied values in the query string. As you can probably tell by the query, this is an application where sql injection would be very bad.
    Jeff, regarding your question about "like '%' || :P71_SEARCH_SOURCE1 || '%'". I've found that putting wildcards around values, particularly at the beginning will negate any indexing on the column in question and slows performance even more.
    I'm still left wondering if there isn't something in Apex that is breaking the optimizer "peeking" that Patrick describes. Perhaps something in the way it switches contexts from apex_public_user to the workspace schema?

  • Evaluate function not working in obiee 11.1.1.7

    Hi all,
    I have completed In-place upgrade from obiee 11.1.1.5 to 11.1.1.7.
    After this I am getting an error while running reports,which is created by using evaluate function.
    [nQSError: 43113] Message returned from OBIS. EVALUATE_SUPPORT_LEVEL inside NQSConfig.INI is not set to support EVALUATE
    In my NQSconfig.ini I coundnt find EVALUATE_SUPPORT_LEVEL. So I have added below content in NQSConfig.ini file
    # EVALUATE_SUPPORT_LEVEL:
    # 1: evaluate is supported for users with manageRepositories permssion
    # 2: evaluate is supported for any user.
    # other: evaluate is not supported if the value is anything else.
    EVALUATE_SUPPORT_LEVEL = 2;
    After that I restarted BI services. But still I am facing same error.
    Guide me regarding this.
    Thanks in advance.

    Are you using any parameter like % or / , If you are using,Then it is a bug in 11.1.1.7,Check the below URL for more info.
    http://obiee-blogs.blogspot.com/2013/04/obiee-11g-bugs-fixed-in-111170.html
    bug 13386728 - EVALUATE FORMULA FAILS IF PARAMETERS HAS % OR /
    Mark if helps.
    Thanks,

  • BPEL4WS 2.0 support

    Hello,
    I has a question to the version BPEL 2.0. With which version of the BPEL process of manager is BPEL 2.0 implemented? In the version 10.1.2.0.2 BPEL 1.1 is included at the moment. Is the version BPEL 2.0 support in the new version 10.1.3.1.0 in it? Or when should it be integrated in the Oracle BPEL process manager?
    Greeting Cathleen

    XDK 11g, which is included with JDeveloper 11g, supports XSLT 2.0. XDK 11g is also included with Oracle database 11g.
    http://oracle.su/appdev.111/b28394/adx_j_xslt.htm#CHDDAGGC
    Edited by: dvohra on Feb 26, 2009 7:02 AM

  • Internationalization ADF BC Control Hints Label

    Hi guys,
    In Control Hints Label of the ViewObject's Attribute, I declared a label. It's defined in ModelBundle.properties file. Then I created an localized version of the ModelBundle.properties file whose name is ModelBundle_tr.properties.
    On the JSPX page I included two ImageLink components, a CommandButton component and a InputText component. The source for the Links, the Button and the InputText are:
    &lt;af:commandButton text="#{res.LOGIN}"/&gt;
    bq. &lt;af:spacer width="10" height="10"/&gt;
    &lt;af:commandImageLink icon="/images/tr.png" actionListener="#{UserPreferences.localeChangeListener}" immediate="true"&gt;
    bq. &lt;af:setPropertyListener from="tr" type="action" to="#{UserPreferences.language}"/&gt;
    &lt;/af:commandImageLink&gt;
    &lt;af:spacer width="10" height="10"/&gt;
    &lt;af:commandImageLink icon="/images/us.png" actionListener="#{UserPreferences.localeChangeListener}" immediate="true"&gt;
    bq. &lt;af:setPropertyListener from="en" type="action" to="#{UserPreferences.language}"/&gt;
    &lt;/af:commandImageLink&gt;
    &lt;af:inputText value="#{bindings.FirstName.inputValue}"
    label="#{bindings.FirstName.hints.label}"
    required="#{bindings.FirstName.hints.mandatory}"
    columns="#{bindings.FirstName.hints.displayWidth}"
    maximumLength="#{bindings.FirstName.hints.precision}"
    shortDesc="#{bindings.FirstName.hints.tooltip}"&gt;
    &lt;f:validator binding="#{bindings.FirstName.validator}"/&gt; &lt;/af:inputText&gt;
    Within the UserPreferencesBean.java
    public class UserPreferences {
    private String language;
    public UserPreferences() {
    public void setLanguage(String language) {
    this.language = language;
    public String getLanguage() {
    return language;
    public void localeChangeListener(ActionEvent actionEvent) {
    FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale(getLanguage()));
    When I click on any of the ImageLink, the page is refreshes and the Text of the CommandButton changes. However the label of the InputText is not changes. What is strange is that when I click the same image link the label changes. That is, I should click twice the ImageLink to be able to have correct control hint label for the view object's attribute. The code in the localeChangeListener method is not enough to have the control hint of the view object to refreshed??

    Hi ,
    maybe you have the same problem as me.
    11G  bug, a Label on an ADF Datacontrol and Locale, adfbundle
    thanks edwin

Maybe you are looking for

  • Multiple r/3  status monitoring

    Hi Folks, We have the below situation: Ours is a Global/Local data set up. XI takes care of distribution of local data to various systems . During this distribution, is it possible to capture the status of the distribution in MDM [assuming  there is

  • [root@doc java]# java heu.class

    Sorry for trivial question. I compile and try to run simple application Hello World. Why I got this error? Exception in thread "main" java.lang.NoClassDefFoundError: heu/class [root@doc java]# echo $CLASSPATH /usr/java/j2sdk1.4.0/:/usr/java/j2sdk1.4.

  • Underscores not supported in screen name?

    We are trying to add users directly in Studio which their screen name needs to match their userid in another system, however when the screen name contains underscore Studio gives an invalid data error. This is odd as Studio supports LDAP which can ha

  • Photoshop CS_6 Mac Stopped Working

    Suddenly Photoshop CS_6 for Mac has stopped working. Not a trial copy but licensed. When I uninstall and reinstall I get a Configuration error 16.

  • Drop shadow in AE 12.1

    Hi everybody, Did anyone noticed ? Drop shadow behavior has changed recently, maybe between 12.0 and 12.1 update. Since ever, drop shadow has been applied before transforms, causing us to compensate shadow angle when rotating layer at the same time.