Optimizer Dynamic Sampling doesn't work in our DB

Hi,
I'm trying to explore Optimizer Dynamic Sampling functionality,but it seems that database use this feature only if I use /*+ optimizer_dynamic_sampling */ hint.
There is optimizer_dynamic_sampling=2 set on system level (init.ora) and I also set this parameter on session level. But dynamic sampling is fired only with hint. I would like to use this feature transparently without any hints needed.
Could it be some kind of bug or I'm doing something wrong?
Thanks. Filip
See example below.
DB version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
OS version: AIX-Based Systems (64-bit)
/* Check parameter setting*/
select name,value,isdefault from v$parameter p
where p.NAME='optimizer_dynamic_sampling';
NAME VALUE ISDEFAULT
optimizer_dynamic_sampling 2 TRUE
/* Create table without STATS*/
create table test_sampling as select * from all_objects;
/* Create index */
create index ix_tstsam on test_sampling (object_name, owner);
/* Check if statistics exists*/
select table_name,num_rows,last_analyzed from all_tables a where a.table_name= 'TEST_SAMPLING';
TABLE_NAME NUM_ROWS LAST_ANALYZED
TEST_SAMPLING NULL NULL
/* Setting Dynamic sampling on session level* /
Alter session set optimizer_dynamic_sampling=2;
/************ Explain plan - Select without hint ************/
explain plan set statement_id='TST_NOHINT' for
select sa.object_name from test_sampling sa where sa.owner = 'X';
PLAN_TABLE_OUTPUT
Plan hash value: 2834243581
| Id | Operation | Name |
| 0 | SELECT STATEMENT | |
|* 1 | TABLE ACCESS FULL| TEST_SAMPLING |
Note
- rule based optimizer used (consider using cbo)
/************ Explain plan - Select WITH hint ************/
explain plan set statement_id='TST_HINT' for
select /*+ dynamic_sampling(2) */ sa.object_name from test_sampling sa where sa.owner = 'X';
PLAN_TABLE_OUTPUT
Plan hash value: 3916830885
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
| 0 | SELECT STATEMENT | | 8 | 272 | 86 (2)| 00:00:02
|* 1 | INDEX FAST FULL SCAN| IX_TSTSAM | 8 | 272 | 86 (2)| 00:00:02
Note
- dynamic sampling used for this statement (level=2)

Yes, this was the cause. Optimizer mode was set to CHOOSE. If I change it to ALL_ROWS, Optimizer Dynamic Sampling works.
Thank you !

Similar Messages

  • Inserting dynamic image doesn't work for range of records

    Hi,
    I'm using BI Publisher 5.6.3 and E-business Suite 12.1.3.
    I have set up my RTF template so that it brings in a logo image dynamically onto an invoice.
    The code in the "alt text" field behind my dummy image is: url:{concat('${OA_MEDIA}/',//CF_LOGO)} 
    The image is within a repeating loop that loops around the invoices chosen.
    It works fine if I run the concurrent request for a single invoice - the correct logo image is shown.
    However if I run the concurrent request for a range of invoices which should contain a mixture of both logos it doesn't work and prints the same logo for each invoice regardless of what it should be displaying.
    For testing purposes I also output the name of the image, field CF_LOGO (which is calculated in a formula in the RDF file) just before the actual image, and this always displays the correct value even for a range of invoices. As you can see above this is the field that I include in the code to obtain the image.
    Does anyone have any idea why a range of invoices will only display one logo image?
    Many thanks for any suggestions.
    Regards,
    Hazel

    It's a bug in MDM 5.5 SP04.  The fix is in MDM 5.5 SP05.

  • Bug? chained jQuery Selector in Dynamic Action doesn't work

    Just found out, that this jQuery Selector jQuery("#ABOTYPE_REPORT").find("#f01_0001") doesn't work as triggering Element of type "jQuery Selector" in a Dynamic Action.
    But this one jQuery("#ABOTYPE_REPORT").find("#f01_0001")[0] worked with type "DOM Element" as triggering Element in a Dynamic Action.
    To my knowledge even the first one is a real and valid jQuery Selector and should work.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

    Hi Patrick,
    It would be really nice if you could support a less strict definition of the jQuery Selector (as i understand DOM Object and jQuery Selector to be the advanced and more powerful options).
    In my example i could directly use #f01_0001 if my page wouldn't have more than one TabForm on it (and therefore multiple elements with id f01_0001) ;-)
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Dynamic menu doesn't work with f:verbatim and jsp:directive.include

    Is it not possible to include fragment part in a panel page containing some dynamic menus ?
    This work fine:
    <af:panelPage title="Application home">
    <f:facet name="menu1">
    <af:menuTabs var="menuTab" value="#{menuModel.model}">
    <f:facet name="nodeStamp">
    <af:commandMenuItem text="#{menuTab.label}"
    action="#{menuTab.getOutcome}"/>
    </f:facet>
    </af:menuTabs>
    </f:facet>
    But replacing these entry by a fragment doesn't work, as this:
    <af:panelPage title="Application home">
    <f:facet name="menu1">
    <f:verbatim>
    <jsp:directive.include file="/menuTab.jspf"/>
    </f:verbatim>
    </f:facet>
    the fragment code:
    <f:subview id="menuTab">
    <af:menuTabs var="menuTab" value="#{menuModel.model}">
    <f:facet name="nodeStamp">
    <af:commandMenuItem text="#{menuTab.label}"
    action="#{menuTab.getOutcome}"/>
    </f:facet>
    </af:menuTabs>
    </f:subview>

    Oh, God, why not tell me earlier!!!!!! I do use tomcat 3.1 and it just support servlet. I have no way out but modify all my jsp:include to encoding into a servlet page. I almost re-do all my work. But anyway, thank you! Next time I will know.

  • Optimizer dynamic sampling issues

    hi gurus,
    emp_cur had 100K rows, i deleted many.
    experimenting the dynamic sampling feature...
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> select name,value from v$parameter where name like 'optimizer_dynamic%';
    NAME
    VALUE
    optimizer_dynamic_sampling
    2
    SQL> select count(*) from emp_par;
      COUNT(*)
          4999
    SQL> set autotrace traceonly explain
    SQL> select * from emp_par;
    Execution Plan
    Plan hash value: 3159588169
    | Id  | Operation         | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |         |   100K|   878K|    63   (2)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| EMP_PAR |   100K|   878K|    63   (2)| 00:00:01 |
    -----------------------------------------------------------------------------since dynamic sampling in enabled, i expected the rows value close to 4999.
    i tried to force dynamic sampling with a hint
    SQL> select /*+ dynamic_sampling(t 2) */ * from emp_par t;
    Execution Plan
    Plan hash value: 3159588169
    | Id  | Operation         | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |         |   100K|   878K|    63   (2)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| EMP_PAR |   100K|   878K|    63   (2)| 00:00:01 |
    -----------------------------------------------------------------------------though, dynamic sampling is enabled, optimizer plan is still showing the row count as 100K.
    am i missing something?
    thanks,
    charles
    Edited by: user570138 on Feb 23, 2010 9:43 PM

    user570138 wrote:
    hi gurus,
    SQL> select /*+ dynamic_sampling(t 2) */ * from emp_par t;
    Execution Plan
    Plan hash value: 3159588169
    | Id  | Operation         | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |         |   100K|   878K|    63   (2)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| EMP_PAR |   100K|   878K|    63   (2)| 00:00:01 |
    -----------------------------------------------------------------------------though, dynamic sampling is enabled, optimizer plan is still showing the row count as 100K.
    Check the 10053 trace - the hint would have made the optimizer take a dynamic sample, but it has then rejected the sample as irrelevant.
    If you want to change your test, try this:
    <ul>
    Create your table with 100,000 rows
    Create the stats
    Insert another 10%
    Do the massive delete
    </ul>
    Then see if you get a difference between hinted and unhinted query plans.
    (NB See also: http://jonathanlewis.wordpress.com/2010/02/23/dynamic-sampling/ )
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    There is a +"Preview"+ tab at the top of the text entry panel. Use this to check what your message will look like before you post the message. If it looks a complete mess you're unlikely to get a response. (Click on the +"Plain text"+ tab if you want to edit the text to tidy it up.)
    +"I believe in evidence. I believe in observation, measurement, and reasoning, confirmed by independent observers. I'll believe anything, no matter how wild and ridiculous, if there is evidence for it. The wilder and more ridiculous something is, however, the firmer and more solid the evidence will have to be."+
    Isaac Asimov                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • We just got the Bose TV system.  It is great, but the Bose remote doesn't work with our Apple TV unit.  We have to still use the Apple TV remote.  Any suggestions?

    The Bose TV remote doesn't work on the Apple TV.  I have to use the Apple TV remote.  Is it a system problem with the Apple TV?

    My appletv works with its remote
    Ios devices using the remote app
    2 logitech programable remotes harmony ones

  • Weblogic sample doesn't work properly ( failed to serialize ) ?

    Dear all,
    I am running the sample dom.zip which doesn't run properly from http://dev2dev.bea.com/direct/webservice/index.html.
    Server
    =======================================================
    package examples.dom;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    public final class EchoDom {
    public Document echoDom(Document doc) {
    System.out.println("The dom on the server is[");
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) doc);
    System.out.println("]");
    return doc;
    Client
    =======================================================
    package examples.dom;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.jar.JarFile;
    import java.util.zip.ZipEntry;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.handler.HandlerInfo;
    import javax.xml.rpc.handler.HandlerRegistry;
    import javax.xml.soap.SOAPConstants;
    import weblogic.xml.stream.XMLInputStream;
    import weblogic.xml.stream.XMLInputStreamFactory;
    import weblogic.xml.schema.binding.TypeMapping;
    import weblogic.xml.schema.binding.TypeMappingFactory;
    import weblogic.utils.Debug;
    import weblogic.apache.xerces.parsers.DOMParser;
    import java.util.ArrayList;
    import org.w3c.dom.Node;
    import org.w3c.dom.Document;
    import org.w3c.dom.Comment;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.ProcessingInstruction;
    import org.w3c.dom.NamedNodeMap;
    import org.xml.sax.InputSource;
    * @author Copyright (c) 2002 by BEA Systems. All Rights Reserved.
    public final class Client {
    public static Document getDocument(String filename)
    throws Exception
    DOMParser parser = new DOMParser();
    parser.setFeature( "http://apache.org/xml/features/dom/defer-node-expansion",
    false );
    parser.setFeature( "http://xml.org/sax/features/validation",
    false);
    parser.setFeature( "http://xml.org/sax/features/namespaces",
    true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema",
    true);
    parser.parse(weblogic.xml.babel.baseparser.SAXElementFactory.createInputSource(filename));
    Document doc =parser.getDocument();
    return doc;
    public static void main( String[] args ) throws Exception{
    Dom d = new Dom_Impl("http://localhost:7001/dom/EchoDomService?WSDL");
    DomPort port = d.getdomPort();
    Document request = getDocument(args[0]);
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) request);
    try {
    Document newDoc = port.echoDom(request);
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) newDoc);
    } catch (javax.xml.rpc.JAXRPCException e) {
    System.out.println(e.getLinkedCause());
    e.getLinkedCause().printStackTrace();
    Run-time Exception
    =========================================================
    C:\JDEV903\jdk\bin\javaw.exe -ojvm -classpath C:\MyStudy\java\WS3\classes;D:\bea\weblogic700\server\lib\webserviceclient+ssl.jar;D:\bea\weblogic700\server\lib\weblogic.jar;C:\JDEV903\jdev\lib\jdev-rt.jar;C:\JDEV903\soap\lib\soap.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\jlib\javax-ssl-1_2.jar;C:\JDEV903\jlib\jssl-1_2.jar;C:\JDEV903\j2ee\home\lib\activation.jar;C:\JDEV903\j2ee\home\lib\mail.jar;C:\JDEV903\j2ee\home\lib\http_client.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\lib\xmlcomp.jar;C:\MyStudy\java\1\dom\client.jar
    -Dweblogic.webservice.verbose=true wl.client.wsServletClient
    java.rmi.RemoteException: web service invoke failed; nested exception is:
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
    type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
    TypeMapping=TYPEMAPPING SIZE=0
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
    type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
    TypeMapping=TYPEMAPPING SIZE=0
         void weblogic.webservice.core.DefaultPart.toXML(javax.xml.soap.SOAPElement, java.lang.Object,
    weblogic.xml.schema.binding.SerializationContext, boolean, javax.xml.rpc.encoding.TypeMapping)
              DefaultPart.java:260
         void weblogic.webservice.core.DefaultMessage.toXML(javax.xml.soap.SOAPMessage,
    java.lang.Object[])
              DefaultMessage.java:455
         java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
    java.lang.Object[], java.io.PrintStream)
              DefaultOperation.java:403
         java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
    java.lang.Object[])
              DefaultOperation.java:359
         java.lang.Object weblogic.webservice.core.rpc.StubImpl._invoke(java.lang.String,
    java.util.Map)
              StubImpl.java:225
         java.lang.Object examples.dom.EchoDomServicePort_Stub.echoDom(java.lang.Object)
              EchoDomServicePort_Stub.java:33
         void wl.client.wsServletClient.main(java.lang.String[])
              wsServletClient.java:78
    Process exited with exit code 0.
    Please help.
    mindterm

    Hello,
    I just save the dom example a spin and it worked OK for me. RU using the latest service pack? Does the dom.ear build correctly and deploy on the server without errors? Can U see the webservice test page from http://localhost:7001/dom/EchoDomService ?
    Thanks,
    Bruce
    mindterm wrote:
    Dear all,
    I am running the sample dom.zip which doesn't run properly from http://dev2dev.bea.com/direct/webservice/index.html.
    Server
    =======================================================
    package examples.dom;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    public final class EchoDom {
    public Document echoDom(Document doc) {
    System.out.println("The dom on the server is[");
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) doc);
    System.out.println("]");
    return doc;
    Client
    =======================================================
    package examples.dom;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.jar.JarFile;
    import java.util.zip.ZipEntry;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.handler.HandlerInfo;
    import javax.xml.rpc.handler.HandlerRegistry;
    import javax.xml.soap.SOAPConstants;
    import weblogic.xml.stream.XMLInputStream;
    import weblogic.xml.stream.XMLInputStreamFactory;
    import weblogic.xml.schema.binding.TypeMapping;
    import weblogic.xml.schema.binding.TypeMappingFactory;
    import weblogic.utils.Debug;
    import weblogic.apache.xerces.parsers.DOMParser;
    import java.util.ArrayList;
    import org.w3c.dom.Node;
    import org.w3c.dom.Document;
    import org.w3c.dom.Comment;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.ProcessingInstruction;
    import org.w3c.dom.NamedNodeMap;
    import org.xml.sax.InputSource;
    * @author Copyright (c) 2002 by BEA Systems. All Rights Reserved.
    public final class Client {
    public static Document getDocument(String filename)
    throws Exception
    DOMParser parser = new DOMParser();
    parser.setFeature( "http://apache.org/xml/features/dom/defer-node-expansion",
    false );
    parser.setFeature( "http://xml.org/sax/features/validation",
    false);
    parser.setFeature( "http://xml.org/sax/features/namespaces",
    true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema",
    true);
    parser.parse(weblogic.xml.babel.baseparser.SAXElementFactory.createInputSource(filename));
    Document doc =parser.getDocument();
    return doc;
    public static void main( String[] args ) throws Exception{
    Dom d = new Dom_Impl("http://localhost:7001/dom/EchoDomService?WSDL");
    DomPort port = d.getdomPort();
    Document request = getDocument(args[0]);
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) request);
    try {
    Document newDoc = port.echoDom(request);
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) newDoc);
    } catch (javax.xml.rpc.JAXRPCException e) {
    System.out.println(e.getLinkedCause());
    e.getLinkedCause().printStackTrace();
    Run-time Exception
    =========================================================
    C:\JDEV903\jdk\bin\javaw.exe -ojvm -classpath C:\MyStudy\java\WS3\classes;D:\bea\weblogic700\server\lib\webserviceclient+ssl.jar;D:\bea\weblogic700\server\lib\weblogic.jar;C:\JDEV903\jdev\lib\jdev-rt.jar;C:\JDEV903\soap\lib\soap.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\jlib\javax-ssl-1_2.jar;C:\JDEV903\jlib\jssl-1_2.jar;C:\JDEV903\j2ee\home\lib\activation.jar;C:\JDEV903\j2ee\home\lib\mail.jar;C:\JDEV903\j2ee\home\lib\http_client.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\lib\xmlcomp.jar;C:\MyStudy\java\1\dom\client.jar
    -Dweblogic.webservice.verbose=true wl.client.wsServletClient
    java.rmi.RemoteException: web service invoke failed; nested exception is:
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
    type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
    TypeMapping=TYPEMAPPING SIZE=0
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
    type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
    TypeMapping=TYPEMAPPING SIZE=0
    void weblogic.webservice.core.DefaultPart.toXML(javax.xml.soap.SOAPElement, java.lang.Object,
    weblogic.xml.schema.binding.SerializationContext, boolean, javax.xml.rpc.encoding.TypeMapping)
    DefaultPart.java:260
    void weblogic.webservice.core.DefaultMessage.toXML(javax.xml.soap.SOAPMessage,
    java.lang.Object[])
    DefaultMessage.java:455
    java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
    java.lang.Object[], java.io.PrintStream)
    DefaultOperation.java:403
    java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
    java.lang.Object[])
    DefaultOperation.java:359
    java.lang.Object weblogic.webservice.core.rpc.StubImpl._invoke(java.lang.String,
    java.util.Map)
    StubImpl.java:225
    java.lang.Object examples.dom.EchoDomServicePort_Stub.echoDom(java.lang.Object)
    EchoDomServicePort_Stub.java:33
    void wl.client.wsServletClient.main(java.lang.String[])
    wsServletClient.java:78
    Process exited with exit code 0.
    Please help.
    mindterm

  • Dynamic deployment doesn't work

    when I redeploy my app.war file...I would get a "Error 404 Not Found" when
    accessing
    anything within the war file.
    why doesn't dynamic deployment work?
    anytime I make a change to my jsp...and redeploy...I end up having to
    shutdown and restart the WLS6.0
    before I can get access to the jsp again.
    please help...thanks.

    could you please specify the following:
    are you deploying the war file through the applications directory or do you
    configure the web Application through the console ?
    also, what are the steps you follow for reploying the war file ?
    - Mihir
    Kenneth Chin wrote:
    when I redeploy my app.war file...I would get a "Error 404 Not Found" when
    accessing
    anything within the war file.
    why doesn't dynamic deployment work?
    anytime I make a change to my jsp...and redeploy...I end up having to
    shutdown and restart the WLS6.0
    before I can get access to the jsp again.
    please help...thanks.

  • Auto Query in Master Detail Form using dynamic page doesn't work

    I created a Master-Detail form, and implement AutoQuery using a dynamic page
    with the following code :
    <HTML>
    <BODY>
    <ORACLE>DECLARE
    nre_ VARCHAR2(100);
    BEGIN
    nre_ := emp_nre;
    if nre_ is not null then
    net_portal.Popula_Agregados(nre_);
    net_portal.Popula_Docs_Agregados (nre_);
    htp.p('<iframe id=myFrame name="myFrame" frameborder=0 width="250%"
    height="300"
    src="/pls/portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=
    3
    388118140&p_arg_names=_show_header&p_arg_values=NO&p_arg_names=_cad_nre_cond&p_a
    rg_values=%3D&p_arg_names=cad_nre&p_arg_values='||nre_||'">
    </iframe>');
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    htp.p(SQLERRM);
    END;
    </ORACLE>
    </BODY>
    </HTML>
    It works fine when we access the first time to the page, but if i press the
    save button after inserting or updating a detail record, the header record is
    lost. How can i avoid this situation ?

    I changed query:
    select
    Replace(
    '<img src="#IMAGE_PREFIX#ed-item.gif" border="0" alt="EditMap" usemap="#editmap***id***"></img>
    <map name="editmap***id***">
    <area shape="rect" coords="0,0,16,16" href="http://apex.oracle.com/pls/otn/f?p=&APP_ID.:'
    || decode ( type, 'FOLDER', '33', '22' )
    || ':&APP_SESSION.::&DEBUG.::P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_ID,P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_CALLING_PAGE:' || id || ',&APP_PAGE_ID." ></area></map>' ,
    '***id***', id
    ) Edit,
    id,
    type,
    name,
    decode ( type, 'FOLDER', 33, 22 ) target
    from tThe idea is - each img uses its own map.
    It works now.
    Check:
    http://apex.oracle.com/pls/otn/f?p=20980:13
    Lev
    Edited by: le on Nov 3, 2010 11:11 AM

  • "Providing interactive database lookup from forms" sample doesn't work with Acrobat Reader 7

    I have downloaded and tested the Adobe sample "Adobe LiveCycle Designer 7.0, Providing interactive database lookup from forms". Everything works great in Acrobat Professional Full version, however, when I tested it in Acrobat Reader 7.0.5, it generated a "script failed..." message.
    Did anybody have the same problem? You can download the sample from here:
    http://partners.adobe.com/public/developer/en/livecycle/lc_designer_db_lookup_tip.pdf
    Thanks a lot in advance!
    Jie

    Hi Jie,
    Database connectivity is a feature supported in Acrobat only , not Reader--unless the PDF has been extended with Adobe LiveCycle Reader Extensions.
    http://www.adobe.com/products/server/readerextensions/main.html
    See "Table 3: Form capability support for Adobe Acrobat and Adobe Reader" at:
    http://partners.adobe.com/public/developer/en/tips/lc_combine_server_tip.pdf
    Evangelos

  • Dynamic spellcheck doesn't work, autocorrect and normal spellcheck do work.

    Hi,
    my dynamic spelling doesnt work, i use windows 7 and indesign cs6.
    My normal spellcheck (the word per word one) does work, my dictionary works, everything works exept dynamic spelling, pls help.
    I have chosen the correct disctionary and my text is set in the right disctionary also (at the characters tap).

    Just to be sure: You know that dynamic spell check works only by underlining word with different colours? And that those underlines can only be seen in preview mode?

  • Call a dynamical VI doesn't work

    Hi,
    i just decided to change the call to a capacious vi from static to
    dynamical. I had made some same things with LabVIEW 5.x some time ago.
    But with 6i i run in trouble. I opened a vi reference and wanted to wire
    it to the dynamic function call. In that case i always get a dotted
    line. I also tried to specify the typ for open vi, but nothing helped.
    Where is the mistake and how could i resolve the problem?
    Regards
    Henrik

    Ok, after advice i found an example which uses this function. I missed
    the entry to browse for the vi control to the open vi.
    Now it runs perfect...
    Henrik
    Henrik Skupin schrieb:
    >
    > Hi,
    >
    > i just decided to change the call to a capacious vi from static to
    > dynamical. I had made some same things with LabVIEW 5.x some time ago.
    > But with 6i i run in trouble. I opened a vi reference and wanted to wire
    > it to the dynamic function call. In that case i always get a dotted
    > line. I also tried to specify the typ for open vi, but nothing helped.
    >
    > Where is the mistake and how could i resolve the problem?
    >
    > Regards
    > Henrik

  • WL 5.1 Service Pack 4 doesn't work on our WebLogic servers

    I have installed the WebLogic 5.1 service pack 4 and I get an exception
    on a non existing method.
    This occurs when I put in the weblogic classpath the weblogic510sp4.jar
    I have even tried to unjar it in the /weblogic/classes directory but I
    get the exact same problem.
    Here is a stack trace of the exception when starting the WebLogic
    server:
    We need some help on this since a bug we have is being fixed by it.
    Thanks
    Thu Aug 03 09:08:26 PDT 2000:<I> <RMI> Registry started
    Thu Aug 03 09:08:26 PDT 2000:<I> <EJB> 0 EJB jar files loaded,
    containing 0 EJBs
    Thu Aug 03 09:08:26 PDT 2000:<I> <EJB> 0 deployed, 0 failed to deploy.
    The WebLogic Server did not start up properly.
    Exception raised: java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException:
    java.lang.NoSuchMethodError: weblogic.boot.ServerClassLoader: method
    getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.java:141)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.java:112)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.java:104)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(RecursiveReloadOnModifyClassLoader.java:53)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<init>(RecursiveReloadOnModifyClassLoader.java:149)
    at
    weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextImpl.java:1392)
    at
    weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:516)
    at weblogic.t3.srvr.HttpServer.initServletContexts(Compiled Code)
    at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
    at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    java.lang.NoSuchMethodError: weblogic.boot.ServerClassLoader: method
    getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.java:141)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.java:112)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.java:104)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(RecursiveReloadOnModifyClassLoader.java:53)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<init>(RecursiveReloadOnModifyClassLoader.java:149)
    at
    weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextImpl.java:1392)
    at
    weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:516)
    at weblogic.t3.srvr.HttpServer.initServletContexts(Compiled Code)
    at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
    at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    [olivier.vcf]

    Works
    Wei Guan wrote:
    Put weblogic510sp4boot.jar as the first package in your JAVA_CLASSPATH
    and
    Put weblogic510sp4.jar as the first package in your WEBLOGIC_CLASSPATH
    Cheers - Wei
    Olivier Brand <[email protected]> wrote in message
    news:[email protected]...
    I have installed the WebLogic 5.1 service pack 4 and I get an exception
    on a non existing method.
    This occurs when I put in the weblogic classpath the weblogic510sp4.jar
    I have even tried to unjar it in the /weblogic/classes directory but I
    get the exact same problem.
    Here is a stack trace of the exception when starting the WebLogic
    server:
    We need some help on this since a bug we have is being fixed by it.
    Thanks
    Thu Aug 03 09:08:26 PDT 2000:<I> <RMI> Registry started
    Thu Aug 03 09:08:26 PDT 2000:<I> <EJB> 0 EJB jar files loaded,
    containing 0 EJBs
    Thu Aug 03 09:08:26 PDT 2000:<I> <EJB> 0 deployed, 0 failed to deploy.
    The WebLogic Server did not start up properly.
    Exception raised: java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException:
    java.lang.NoSuchMethodError: weblogic.boot.ServerClassLoader: method
    getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:141)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:112)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:104)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(Recurs
    iveReloadOnModifyClassLoader.java:53)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<
    init>(RecursiveReloadOnModifyClassLoader.java:149)
    at
    weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextIm
    pl.java:1392)
    at
    weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:
    516)
    at weblogic.t3.srvr.HttpServer.initServletContexts(Compiled Code)
    at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
    at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    java.lang.NoSuchMethodError: weblogic.boot.ServerClassLoader: method
    getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:141)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:112)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:104)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(Recurs
    iveReloadOnModifyClassLoader.java:53)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<
    init>(RecursiveReloadOnModifyClassLoader.java:149)
    at
    weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextIm
    pl.java:1392)
    at
    weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:
    516)
    at weblogic.t3.srvr.HttpServer.initServletContexts(Compiled Code)
    at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
    at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    [olivier.vcf]

  • HP Deskjet 5940, Properties, "give print sample'' doesn't work right.

    When I want to see a print sample before the real print will be started - I did define this- then I see an old print sample. When I ignore this and make the real print, it is the print that I really wanted. When I repeat this action then I get the real print sample. Only after a restart of the computer the problem is there again: I see the same old print sample, only the first time. So that old print sample sticks in the memory and I see it always and only when I order the first print after the startup of the computer. The real print will be given anyway. 
    This question was solved.
    View Solution.

    What OS are you using?
    What program are you trying to print from?
    HP designed a quick and easy tool that diagnoses and resolves many printing, scanning, and connectivity problems: The HP Print and Scan Doctor. HP recommends that you download and install the Print and Scan Doctor any time you need to troubleshoot a problem with your HP printer from the link below.
    Let me know what errors you receive?
    HP Print Utilities Page
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Adobe Dynamic Link doesn't work !

    I'm using Adobe Encore DVD 2 and After Effect 7 . My problem is i can not use the Adobe Dynamic Link . It's always invisible , and i can not use it to import After Effect Composition to my DVD project or Create New After Effect Composition . Please show me how to make it possible to be used . Do i need to do something more !

    Answered

Maybe you are looking for

  • How do I set up iCloud if I can't acces it in my system preferences?

    All I want to do is turn on 'Find My Mac' in iCloud.  Unfortunately I never moved my mobileme account over to icloud before mobileme was shut down (because it wasn't actually my account. My mom and I shared it but it was hers so I didn't want to mess

  • WRT54G2 - can no longer access router webpage after changing setting

    hello i've started gaming again so i ended up configuring a static IP using the network and sharing centre in the control panel and i'm online with the fixed IP, and i had some ports forwarded in my router web page and everything has been working gre

  • Hi Frnds, Content on this page requires a newer version of Adobe Flash Player.

    I am making my own website an d i have inserted fla videos but i receive " Content on this page requires a newer version of Adobe Flash Player" Is there any way that i can make it. pls help me thnx......

  • Installing CLOB remotely

    Hi, I have a SQL scripts inserting data into a table contains CLOB. In this scripts, I am using DBMS_LOB package. But the problem is that I can only exec this scripts locally, because it use DIRECTORY and it restricts in local mache only. Is there an

  • BEx Analyzeru2019s API via VBA

    Hello All, I'm using BI 7.0. For my workbook, I need to set 5 filters,  getting values from 5 Excell cells and then refresh it. Could you suggest me how to solve this issue and/or an example of  VBA code. Thanks in advance