Using "enable-dynamic-queries"

Has any one used <enable-dynamic-queries>True</enable-dynamic-queries> in weblogic-ejb-jar.xml?
If yes, where exactly do you specify that? As per the DTD, you do it in "<entity-descriptor>"
element. I tried that but I can't deploy the application on wls 7.
Any ideas what might be wrong?
Also, does anyone know if I WLS 7 supports using WL extensions to EJB-QL for writing
dynamic queries?
Thanks for the help.

Here's the relevant section of my weblogic-ejb-jar.xml
<weblogic-enterprise-bean>
<ejb-name>ABC</ejb-name>
<entity-descriptor>
<entity-cache>
<concurrency-strategy>Exclusive</concurrency-strategy>
</entity-cache>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<db-is-shared>false</db-is-shared>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
<enable-dynamic-queries>True</enable-dynamic-queries>
</entity-descriptor>
<local-jndi-name>ABC</local-jndi-name>
</weblogic-enterprise-bean>
Here's the stack trace for the error.
####<Jun 6, 2002 12:11:39 PM EDT> <Info> <HTTP> <MKDW> <myserver> <main> <kernel
identity> <> <101202> <_appsdir_exploded_dir:web preparing>
####<Jun 6, 2002 12:11:40 PM EDT> <Error> <Deployer> <MKDW> <myserver> <main> <kernel
identity> <> <149205> <The Slave Deployer failed to initialize the application appsdirexploded_dir
due to error weblogic.management.ApplicationException: Prepare failed. Task Id =
null
Module Name: ejb, Error: The XML parser encountered an error in your deployment descriptor.
Please ensure that your deployment descriptor corresponds to the format in the DTD.
The error was:
org.xml.sax.SAXParseException: Element type "enable-dynamic-queries" must be declared.
     at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1273)
     at weblogic.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1889)
     at weblogic.apache.xerces.validators.common.XMLValidator.validateElementAndAttributes(XMLValidator.java:3714)
     at weblogic.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1242)
     at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1186)
     at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:396)
     at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:1119)
     at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:133)
     at weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjbJarLoader_WLS600.java:469)
     at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:252)
     at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:216)
     at weblogic.ejb20.dd.xml.DDUtils.processWLEjbJarXML(DDUtils.java:202)
     at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:100)
     at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:85)
     at weblogic.ejb20.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:491)
     at weblogic.ejb20.deployer.EJBModule.loadDescriptor(EJBModule.java:213)
     at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:628)
     at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:548)
     at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:437)
     at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:478)
     at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:252)
     at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
     at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
     at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:762)
     at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
     at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
     at weblogic.Server.main(Server.java:31)
--------------- nested within: ------------------
weblogic.xml.process.XMLParsingException: Element type "enable-dynamic-queries" must
be declared. - with nested exception:
[org.xml.sax.SAXParseException: Element type "enable-dynamic-queries" must be declared.]
File: META-INF/weblogic-ejb-jar.xml Line: 211 Column: 37
     at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:137)
     at weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjbJarLoader_WLS600.java:469)
     at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:252)
     at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:216)
     at weblogic.ejb20.dd.xml.DDUtils.processWLEjbJarXML(DDUtils.java:202)
     at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:100)
     at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:85)
     at weblogic.ejb20.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:491)
     at weblogic.ejb20.deployer.EJBModule.loadDescriptor(EJBModule.java:213)
     at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:628)
     at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:548)
     at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:437)
     at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:478)
     at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:252)
     at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
     at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
     at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:762)
     at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
     at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
     at weblogic.Server.main(Server.java:31)
}.>

Similar Messages

  • Enabling dynamic queries in wl7

    How do I enable dynamic queries in WL7. The info provide here is not very clear...like how/what to change in ejb-jar.xml http://e-docs.bea.com/wls/docs70/ejb/cmp.html#1089703

    Hi Minh,
    This is the second time I've answered this question in a week. I'll make sure the documentation gets clarified.
    You enable dynamic queries in your weblogic-ejb-jar.xml file with the following:
    <enable-dynamic-queries>True</enable-dynamic-queries>
    You can optionally set a method permission in ejb-jar.xml to control access to the feature. An example follows:
    <security-role>
    <role-name>Admin</role-name>
    </security-role>
    <method-permission>
    <role-name> Admin </role-name>
    <method>
    <ejb-name> EmployeeEJB </ejb-name>
    <method-name> createQuery </method-name>
    </method>
    </method-permission>
    - Matt
    Minh Cao wrote:
    How do I enable dynamic queries in WL7. The info provide here is not very clear...like how/what to change in ejb-jar.xml http://e-docs.bea.com/wls/docs70/ejb/cmp.html#1089703

  • How to enable dynamic query in weblogic 7.0?

     

    Hi,
    The documentation explains how to enable dynamic queries and set a
    method-permission to control access. If you find the information at the
    following link insufficient, let me know.
    http://e-docs.bea.com/wls/docs70/ejb/cmp.html#1089703
    You enable dynamic queries in your weblogic-ejb-jar.xml file with the following:
    <enable-dynamic-queries>True</enable-dynamic-queries>
    You can set a method permission as follows:
    <security-role>
    <role-name>Admin</role-name>
    </security-role>
    <method-permission>
    <role-name> Admin </role-name>
    <method>
    <ejb-name> EmployeeEJB </ejb-name>
    <method-name> createQuery </method-name>
    </method>
    </method-permission>
    - Matt
    Sanjeev Chopra wrote:
    also posting to EJB newsgroup
    "CottonXu" <[email protected]> wrote in message
    news:[email protected]..
    How to enable dynamic query in weblogic 7.0? The documentation accompanieswith
    Bea doesn't explain it in detail. How to set <method-permission> inejb-jar.xml?
    Thanks in advance.

  • Dynamic publishing not enabling the use of dynamic variables (flashvars)

    I'm have having issues with my website [url removed by moderator].  The Dynamic publishing is not enabling the use of dynamic variables.  Standard magento 1.8.1 install.

    Dear Yugandhar,
      It's work. Thanks. This is a work around way to avoid retrieve list of values Error. I was suspected 2 reasons to cause this issues: 1. prompt option. 2. LOV option.  So, the cause is not prompt option. The main cause could be LOV( list of values ).
    After disable LOV, Republish universe, reset query filter in report, re-query report, restart server(Core, Webi) from CMC.
    I restore LOV option back to universe and republish universe to server.
    Run Query again. The report not retrieve list of values.  The error not show up.
    I try delete the cause problem dimension(year dim), add others dimension and add  the cause problem dimension to query filter with prompt option back. The error not come up.
    Query will not retrieve list of values.
    Finally, the report come back normal status.
    But. I doubt why only year dim will cause LOV retrieve problem but others dim.
                                                                                                                                                  Sam Sheen

  • ASA 5505 -Can I use outside dynamic IP for webserver DMZ?

    SETUP
    ASA 5505
    ASA Version 9.1(2)
    ASDM Version 7.1(3)
    I have basic license, using only three vlans (outside, inside, DMZ).
    QUESTION:
    I want to find a way (if possible) to use the single DYNAMIC IP (dhcp'd from ISP) on the "outside" interface, as a means to setup a web-server on the DMZ? I just want to allow my WHS-2011 (server) to talk to microsoft's free DDNS service where my domain name is hosted (ports 80,443,4125).
    So far, every setup option I have tried does not make it past the implicit deny acl's (on the outside interface) to the web-server (DMZ).
    I understand that the VLAN1 (inside) had to be disabled. I understand that objects now replace some of the older NAT'd components.
    CONFIG:
    object network webserver-external-ip
    host <X.X.X.X>
    ! I had set this to match my ISP DHCP address
    object network webserver
    host 172.16.0.2
    nat (DMZ,outside) static webserver-external-ip service tcp www www
    nat (DMZ,outside) static webserver-external-ip service tcp 443 443
    nat (DMZ,outside) static webserver-external-ip service tcp 4125 4125
    access-list outside_acl extended permit tcp any object webserver eq www
    access-list outside_acl_https extended permit tcp any object webserver eq 443
    access-list outside_acl_rww extended permit tcp any object webserver eq 4125
    access-group outside_acl in interface outside
    access-group outside_acl_https in interface outside
    access-group outside_acl_rww in interface outside
    ! added the dns statements below because the cisco doc (below) says it's required or dmz traffic can't get out despite default rule allowing it to do so.
    ! (ctrl-F) ... "all traffic would be blocked from the dmz to hosts on the internet"
    ! http://www.cisco.com/en/US/products/ps6120/products_configuration_example09186a0080bf150c.shtml
    object network dns-server
    host 8.8.8.8
    exit
    access-list dmz_acl extended permit udp any object dns-server eq domain
    access-list dmz_acl extended permit ip any any
    access-group dmz_acl in interface DMZ
    SUMMARY:
    I just want to allow my WHS-2011 (server) to talk to microsoft's free DDNS service where my domain name is hosted (ports 80,443,4125).
    I want to find a way (if possible) to use the single DYNAMIC IP (dhcp'd from ISP) on the "outside" interface, as a means to setup a web-server on the DMZ?
    Other:
    As an interim alternative, I have been able to setup & connect to the ASA using clientless vpn (web-ssl), and from there getting over to my WHS2011 server...-but the problem is, I have no way of knowing, or updating my DDNS once that IP changes since the ASA keeps blocking the return traffic to theh outside interface. My only assumption is that becasue I am using a single dynamic IP (outside interface) that it has nothing to re-direct the traffic to....???
    Thank You for any help you can provide!!
    k/r

    Hi,
    I cant really help with the DDNS portion but I would imagine you already have that sorted out.
    The ASA configurations however seem a bit off to me.
    Here is what you should configure
    STATIC PAT TO HOST SERVICES
    There are some changes that need to be done to both ACL and NAT configurations. First of the NAT configurations for each port require their own "object network" to be configured.
    Also since you are using a DHCP address from the ISP to act as the NAT address then you can use the keyword/parameter "interface" in the actual "nat" command. This basically tells the ASA that it should use whatever IP address is currently on the "outside" interface of the ASA. So you wont have to configure any separate "object network" for the public IP address every time it changes.
    Also, with regards to the ACL configurations. You should only configure one ACL per interface in the "in" direction. So all the rules you need to configure for traffic inbound from the Internet need to be in the same ACL that you then attach to the "outside" interface with the command "access-group"
    object network WEBSERVER-TCP80
    host 172.16.0.2
    nat (DMZ,outside) static interface service tcp www www
    object network WEBSERVER-TCP443
    host 172.16.0.2
    nat (DMZ,outside) static interface service tcp 443 443
    object network WEBSERVER-TCP4125
    host 172.16.0.2
    nat (DMZ,outside) static interface service tcp 4125 4125
    access-list outside_acl extended permit tcp any object WEBSERVER-TCP80 eq www
    access-list outside_acl extended permit tcp any object WEBSERVER-TCP443 eq https
    access-list outside_acl extended permit tcp any object WEBSERVER-TCP4125 eq 4125
    access-group outside_acl in interface outside
    DYNAMIC PAT FOR LANs and DMZs
    The above NAT configurations only handles the NAT for situations where the remote hosts on the Internet contact your DMZ server.
    If you want to configure Dynamic PAT for all your LAN and DMZ users which basically enable them to use the "outside" interface public IP address for Internet traffic, then you could configure this single "nat" configuration
    nat (any,outside) after-auto source dynamic any interface
    This would enable Dynamic PAT for all users behind the ASA
    I am not sure if you will run into problems since you are using a single public IP address and trying to forward TCP/443. This port is both used for SSL VPN and ASDM management of the ASA.
    If you want to change the default port of the ASDM management you can use this command
    http server enable
    If you want to change the default port of SSL VPN you can use these commands
    webvpn
    port
    Naturally before doing either of the above changes, make sure that you are not relying to them for management purposes if something was to go wrong. If you have SSH management access to the ASA then it should naturally be ok.
    I am not sure if all of the above are enough to get your setup working but it should be the basics. Naturally if there is still problems after the above suggestions it might be helpfull to see the current ASA configurations. For example NAT might not work if the ordering of NAT rules is wrong even though the actual configurations are otherwise valid.
    Hope this helps
    Please do remember to mark a reply as the correct answer if it answered your question.
    Feel free to ask more if needed
    - Jouni

  • Content Presenter | Dynamic Queries at runtime ??

    Hello All,
    We have a use case where we need to build a dynamic query as part of our content presenter task flows. We have been able to achieve this for pages created at design time (in JDeveloper) using the CMIS queries and EL. The following excerpt from a page def file will tell you how we achieved this.
    <parameter id="datasourceType" value="${'dsTypeQueryExpression'}"/>
    <parameter id="datasource"
    value="${'SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = \'RD_TRAINING\' and ora:p:xLanguage=\''}${langBean.selectedLang}${'\''}"/>
    This works as expected.
    Now we are trying to achieve the same behavior for content presenter task flows added to pages at run time.
    We selected "Data Source" as "Result of a query", but we are not able to evaluate an EL under the "Additional Query Filters" section. We have to give hard coded strings for these filters to work.
    Any idea how we can create a "dynamic" content presenter at run time??
    Thanks,
    Prashant

    Hi Yannick,
    I think I wasn't clear with my problem statement. Let me try again.
    When I give the EL in the pageDef, the page works as expected at run time.....no issues here. Maybe if I encounter the bug that you mention, I will use the workaround ...thanks for this.
    The problem I am facing is when I add a content presenter task flow to a page at run time and try to configure it (using the 3 step wizard ...select content ....set content source as ‘Result of a query’ ...select template...preview)
    How do I give something dynamic here in my query? EL's are not getting evaluated here.
    Regards,
    Prashant

  • Dynamic queries in weblogic

    In case of dynamic queries, I found out that the finder method can not be defined
    in the Home class. I defined the finder
    method in the Bean.
    In my Bean, this is the code:
    public Collection findAllActivities(String filter, Object[] arguments) throws
    FinderException
         Properties myProp = new Properties();
         for(int i = 0; i < arguments.length; i++)
              myProp.setProperty(String.valueOf(i), String.valueOf((arguments)));
         try
              InitialContext ic = new InitialContext();                
              RolesHome rh = (RolesHome)ic.lookup("RolesHome");     
              QueryHome qh = (QueryHome)rh;
              String weblogicQL = "SELECT DISTINCT OBJECT(o) FROM roles AS o" + filter;
              Query query = qh.createQuery();
              return query.find(weblogicQL, myProp);
         catch (Exception e)
              e.printStackTrace();
              return null;
    I get a naming exception if I use :      RolesHome rh = (RolesHome)ic.lookup("RolesHome");
    javax.naming.NameNotFoundException: Unable to resolve 'RolesHome' Resolved: ''
    Unresolved:'RolesHome' ; remaining name
    'RolesHome'
    I get a casting exception if I use:      RolesHome rh = (RolesHome)ic.lookup("Roles");
    In my jsp file:
    I have this code
    InitialContext jndiContext = new InitialContext();
    Object obj = jndiContext.lookup("Roles");
    RolesHome rolesHome = (RolesHome) obj;
    list = (ArrayList) rolesHome.findAllActivities(filter, filterParams);          
    but the problem is that the home interface does not contain the findAllActivities
    function. I have already defined rolesHome
    earlier in the code which I want to use for findAllActivities also. I can not
    cast the bean e.g. RolesBean rolesBean = (
    RolesBean) rolesHome. I do not want to create a new bean as I am already using
    an old rolesHome. How do I solve this
    problem??? Please do let me know. I am really confused.
    Thanks
    Ronak Parekh

    This should be posted to the ejb newsgroups
    mbg
    "ronak" <[email protected]> wrote in message
    news:3e57faa9$[email protected]..
    >
    In case of dynamic queries, I found out that the finder method can not bedefined
    in the Home class. I defined the finder
    method in the Bean.
    In my Bean, this is the code:
    public Collection findAllActivities(String filter, Object[] arguments)throws
    FinderException
    Properties myProp = new Properties();
    for(int i = 0; i < arguments.length; i++)
    myProp.setProperty(String.valueOf(i), String.valueOf((arguments)));
    try
    InitialContext ic = new InitialContext();
    RolesHome rh = (RolesHome)ic.lookup("RolesHome");
    QueryHome qh = (QueryHome)rh;
    String weblogicQL = "SELECT DISTINCT OBJECT(o) FROM roles AS o" + filter;
    Query query = qh.createQuery();
    return query.find(weblogicQL, myProp);
    catch (Exception e)
    e.printStackTrace();
    return null;
    I get a naming exception if I use : RolesHome rh =
    (RolesHome)ic.lookup("RolesHome");
    >
    javax.naming.NameNotFoundException: Unable to resolve 'RolesHome'Resolved: ''
    Unresolved:'RolesHome' ; remaining name
    'RolesHome'
    I get a casting exception if I use: RolesHome rh =(RolesHome)ic.lookup("Roles");
    >
    >
    In my jsp file:
    I have this code
    InitialContext jndiContext = new InitialContext();
    Object obj = jndiContext.lookup("Roles");
    RolesHome rolesHome = (RolesHome) obj;
    list = (ArrayList) rolesHome.findAllActivities(filter, filterParams);
    but the problem is that the home interface does not contain thefindAllActivities
    function. I have already defined rolesHome
    earlier in the code which I want to use for findAllActivities also. I cannot
    cast the bean e.g. RolesBean rolesBean = (
    RolesBean) rolesHome. I do not want to create a new bean as I am alreadyusing
    an old rolesHome. How do I solve this
    problem??? Please do let me know. I am really confused.
    Thanks
    Ronak Parekh

  • Data series / dynamic queries

    Hi,
    I've got the following problem:
    I want to create a stacked bar chart based on dynamic queries. The query I use for the first series is:
    select null link, kw label, sum (volume) value from testview
    where id = to_number(:P18_ID)
    group by kw
    order by kw
    P18_ID is an input field.
    The query works fine and the chart is also ok.
    But if I use this same query for a second series I get an empty svg canvas as result. Even worse: no matter what kind of query I use for the second series I never get a result unless I take the variable P18_ID away from the first query.
    For info: the view testview is based on a table created by a pl/sql function (using pipelined output).
    Any ideas. I really would appreciate a quick answer very much because this is part of a project and we are running out of time because of this error.
    Thanks.

    Hi Andy,
    first of all: thank you very much for your efforts.
    I've tried something like you said before and yes, it works (at least most of the times). The problem is I want to have the option 'show all'. That's why I can't use a' where' clause (because I can't work with 'like ...%' for it would sometimes give wrong results because of ids with the same prefix -> or am I wrong?)
    What I mean is:
    where id like '1'% -> results for item 1 (and 10,11,12,...)
    where id like ' '% -> results for all items
    That's why I want to use a pl/sql function. The function is tested and works fine. But if I try to call it form ApEx it works only if use constants instead of variables or if I have only one series.
    Is there something like a time limit? Like ApEx stops processing if the database isn't answering as fast as expected (because a function is slower than querying a table). I don't really think that could be the answer because it's very little data and I'm using a pipelined function... but perhaps...

  • Dynamic Queries with JSP

    I am developing a search page which should first bring the results sorted by some particular field & then the user should have the option of sorting the results by other field names which are provided in a form list.
    For generating dynamic requests, ? is used in place of parameter. But for some reason it is not working with Order by. Other dynamic queries are working fine. Please let me know the right way to handle it.
    And also if someone can advise a good reference book for dynamic SQL statements in accordance with JSP.
    Thanks for your time.

    Never mind my previous solution. Some success was not perfect, therefore not acceptable. I used a scriplet and the problem is solved!
      <!-- Dynamically build the query -->
        <%
          String sql = "select * from issue_list_view";
          String where = null;
          String param = null;
          // Status
          param = (String)pageContext.getAttribute("status");
          if(param != null && param.compareTo("")!=0)
            where = "status='"+param+"'";
          else
            where = "status not in ('Closed','Duplicate')";
          // Assigned To
          param = (String)pageContext.getAttribute("assign");
          if(param != null && param.compareTo("")!=0)
            if(where.length()>0) {where += " and ";}
            where = "category='"+param+"'";
          // Category
          param = (String)pageContext.getAttribute("category");
          if(param != null && param.compareTo("")!=0)
            if(where.length()>0) {where += " and ";}
            where = "category='"+param+"'";
          // Type
          param = (String)pageContext.getAttribute("type");
          if(param != null && param.compareTo("")!=0)
            if(where.length()>0) {where += " and ";}
            where += "issue_type='"+param+"'";
          // Id
          param = (String)pageContext.getAttribute("id");
          if(param != null && param.compareTo("")!=0)
            if(where.length()>0) {where += " and ";}
            where += "issue_id="+param;
          // Add where clause if needed
          if(where != null) { sql += " where " + where; }
        %>
        <!-- Do the query -->
        <sql:query var="issues" sql="<%=sql%>"/>

  • How to enable Dynamic Time Series?

    Hi expert,
    I tried to enabled Dynamic Time Series for an application, by go to Dimension Library, right click, select "Dynamic Time Series", then selected both YTD and QTD for generation 2 and 3 respectively, then refresh database.
    But found seems the DTS is not enabled, tried to use in in Smartview, but cannot retrieve anything. Is there any further steps I need to take to enable DTS? Please help!
    My HP application is on 11.1.2.1 and we use EPMA. Thanks!

    You should really only have to do what is documented at - http://docs.oracle.com/cd/E17236_01/epm.1112/epma_admin/epma_dts_members.html
    This may be useful as well in Oracle Support - "Clarification on the Generation Level when Setting up Dynamic Time Series (DTS: YTD, QTD,..) for Hyperion Planning [ID 1334732.1]"
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Dynamic queries best practice

    Hello,
    I want to create a report that the user can use radio buttons to refine. As an example, referring to the apex sample application's Products page, add radio buttons for [>] All prices [>] under $500.
    I think the technique demonstrated for building dynamic query reports (this is a 1.6 tutorial,link to it is here) is the way to do this, but I'm not sure this is the best approach.
    I'm wondering about any design disadvantage. I'd appreciate comment. Also, if there is a working example with source view in the public apex workspaces you are aware of, post a link if there's value beyond the tutorial I mentioned.
    Thank you.
    Albert

    I am using dynamic queries from time to time. Here is a working example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    You may have a look.
    Denes Kubicek

  • How to escape apostrophe in Oracle PL/SQL  dynamic queries

    I have an script that receives an string as a parameter, for example:
    @C:/myScript.sql "AXEL";
    @C:/myScript.sql "AXEL DAVID";
    @C:/myScript.sql "o'neal";
    my scripts basically constructs a Parameterized query an execute it. That's all. It works most of the time, except when the parameter contains apostrophes
    DEFINE myparameter = &&1
    myquery := "Select * from myTable where x = :p1";
    EXECUTE IMMEDIATE myquery into results USING myparameter;
    ...When trying the following;
    @C:/myScript.sql "o'neal";
    I get the following error:
    Bind Variable "p1" is NOT DECLARED
    Of course if I change the parameter as "o''neal" It will work, but I will end up with other issues later on, so I would like to know how can I deal with apostrophe on dynamic queries.
    I also tried to use the following:
       myquery := "Select ....  where x = " || Q'#:p1#';
    ...but not working.
    any hint will be appreciated =)
    Edited by: user13679988 on Nov 22, 2012 3:12 PM
    Edited by: user13679988 on Nov 22, 2012 3:38 PM
    Edited by: user13679988 on Nov 22, 2012 3:45 PM

    DUPLICATE THREAD! and WRONG FORUM!
    This forum is for SQL Developer questions only and your question has nothing to do with sql developer. Please mark this question ANSWERED.
    You have already posted this question in the SQL and PL/SQL forum and should continue to use that thread.
    How to replace 2 single quotes to single quote

  • Dynamic queries

    I am trying to use "? parameter style" to execute dynamic queries at runtime on the view object. I was sucessful in using this for the rowsetInfo but i want to do this for a view object. I cant seem to call the new queries after i assign the new where clause to the VO using the whereClauseParams(). I am building an applet/application. Does anyone have any examples....( ie : oracle people)?

    I looked at the help-topics under creating and changing view object queries in the code....however how do i tie this into the view objects i already created using BC4J...Here is my code for example:
    ApplicationModule appmod = sessionInfo1.getApplicationModule();
    ViewObject vo = appmod.findViewObject("PARAMVIEW");
    vo.setWhereClause("MGR > 1000");
    vo.executeQuery();
    rowSetInfo1.executeQuery();
    ---this does not work!!!!
    this does however
    rowSetInfo1.setWhereClause("MGR > 1000");
    rowSetInfo1.executeQuery();
    i want to use the vo because i was told that the rowSetInfo.executeQuery runs on the client side (in Help- 'ABOUT Dynamic Clauses in Data Form'-->"...the addition of dynamic WHERE and ORDER BY clauses that execute on the data form *client*")while the vo.executeQuery on the server side...Does anyone know if this is true...and if this will improve performances in an applet or am i just waisting my time?
    thanks

  • Dates and dynamic queries

    Hi.
    I am retrieving Entity EJBs using dynamic queries.
    I had some troubles working with dates.
    This is an example about the kind of query I am talking about:
    SELECT OBJECT(a) FROM Payment AS a WHERE a.date <= '2/3/2005'
    It worked prefectly fine in development environment.
    So far so good, but finally it did not work properly in production.
    I think the reason is that date format configuration is different (after all, all other queries without any date parameter works fine).
    How can I set date format for Weblogic Server 8.1?
    Or maybe some other idea about what is going on?
    Thanks in advance
    Oscar

    I'd use a java.sql.PreparedStatement and let it worry about properly escaping that Date. I'd also be leery of returning a ResultSet. That's a database cursor, a scarce resource. Better to load the result of your query into a data structure and close the ResultSet right away.
    String sql = "SELECT * FROM purchasedTransaction "
                      + "WHERE "
                      + "transactionDate >= ? AND transactionDate <= ?";
    PreparedStatement statement = connection.prepareStatement(sql);
    statement.setDate(1, theDateFrom);
    statement.setDate(2, theDateTo);
    ResultSet result = statement.executeQuery();
    while (result.next())
    // load your query into a data structure of some kind and return that.
    result.close();
    statement.close();Returning a CachedRowSet would be better than a ResultSet:
    http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html
    MOD

  • Oracle Repors 3.2(using the Dynamic query)

    How can I create a report with dynamic queries?
    For example, I have a form with several check_boxes which represent the field_names.My user selecting the fields by checking the check_boxes in the form. After finishing the user's selection, i want to generate a query based on the fields chosen by the user and a report needs to be generated based on the dynamic query.
    Can anyone has any idea on this requirement? Quick response is appreciated. Thanks.

    hello,
    this sounds like the perfect oportunity for using the runtime customization feature of oracle reports 6i.
    using that you can either custimize an existing report using an XML file or -which fits more your requirement- encode a report-definition in XML and run the XML file.
    you could dynamically create that file according to the users selection and then run this file.
    you find more about runtime customization in the documentation of reports 6i.
    regards,
    the oracle reports team

Maybe you are looking for

  • Receive attachments with AS2 in Oracle B2B

    Is it possible to receive files (.doc, pdf etc..) as attachments when using the AS2 message protocol? If so, how to setup in Oracle B2B? Thanks for your help. Raja

  • Migrating Custom Reports 2.5 reports to 6i

    Is there a standard procedure documented for migration of custom Reports 2.5 reports built for Oracle Apps 10.7 to Reports 6i for Oracle Apps 11i ?

  • Changing CSS with Liquid

    I need to have an element not render if a WebApp text field is empty (no URL). This implementation is a bit tricky for me as the layout of the plugin gets rendered partially by JavaScript. I am using Fancybox as a lightbox type feature. It is set up

  • Issue with Capacity Levelling-CM25

    Hi Everyone, We use CM25 for capacity levelling. Issue: Total Capacity req. = 186.8 Hr Available Capacity on 01.01.2012 on the resource = 380.2 Hr Now when I try to dispatch the capacity req. for a planned order manually on 01.01.2012, system distrib

  • Problem using insert statement....?

    I am facing problem while using insert statement. It is not updating the database table though the same code is working very well on another server. Please tell what could be the problem.......?