Jdeveloper query

hi all,
im built a query, which is running in 3 seconds in sql plus. But when i used the same query in jdeveloper ittakes 5 minutes to execute. Im using string buffer. What may be the problem.

Do you (or your DBA) have access to some sort of session browser tool? If so, 5 minutes should be plenty of time to grab the explain plan of the actual query as executed through JDeveloper. If you compare that to the explain plan you get from SQLPlus, you might be able to see what it's doing differently - and whether it's even exactly the same query.

Similar Messages

  • Which Oracle Version to D/L?

    I am so frustrated.
    I don't know which oracle version to download.
    I have oracle enterprise 9i, but it doesn't have formsbuilder, jdeveloper, query builder etc...
    a frienf of mine recently d/l oracle9i, I don't know which ver, but he said it came with
    all of the above.
    My problem is this, I could go and download all of the above seperately..but do you how much
    Gigs, that's gigabytes of HDD space this will take up?
    Right now oracle is consuming a whopping 2 gigs+ of HDD space.
    If I download the collaboration suite, it's another Gig for d/l and who knows how big after decompression.
    I feel strongly about now wasting another full 2 gigs of space...
    my aquantence, rather, not really a friend, his oracle installation is only taking up 1.8+ gigs of space.
    Why the drastic Difference?
    I am wondering if anyone here knows of a decent d/l that contains all of the oracle software:
    SQl*Plus, Form Builder, Query Builder, Jdeveloper etc... in one single package?
    thank you for your time.

    This is not a FAQ. Please do not use the FAQ type unless you are posting the answer to a commonly asked question.
    Forms, Reports, etc comes in the Oracle 9i Developer Suite. This is available for download from OTN. Follow Downloads > Developer Suite. They are separate downloads because they are aimed at different communities. Many people who want the database - DBAs, PL/SQL app programmers - have no interest in Forms, etc. Conversely many pople who want the development tools don't want to install a database on their desktop.
    I don't know how big the 9iDS zip is, but the total installation eats up about 1.9 gigabytes. This is a corollary of Parkinson's Law: software expands to fill the hard disk storage available.
    Cheers, APC

  • Query in jdeveloper using  distinct clause

    hello
    I am a user of oracle10G jdeveloper using jclient/swing
    in my product.
    I had written a query in my default view object as
    Select distinct(Name) from emp then i test it.
    Then message get displayed Query is valid.
    But when i bind this view object with my form ie with combobox using model property and finally run the form then it throw an error message .
    Please do help me to sort out this problem .
    thanks

    Please post the error message and the exception stack.
    My guess is that the error is: your VO's SQL statement did not include the primary key attribute (say Empno).
    Thanks.
    Sung

  • How to build table join query in Jdeveloper

    Hi,
    Can someone tell me how to build table join query in Jdeveloper's Expression Builder UI?

    [Is it possible to create a table of contents in Crystal Reports?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333133303330%7D.do]

  • Nested query in BPEL JDeveloper

    Hi,
    Can anyone help me with nested query writing in BPEL (JDeveloper)
    the query is :
    SELECT LENGTH, WIDTH, HEIGHT, WEIGHT,
    LENGTH*WIDTH* HEIGHT AS ITEM_CUBE
    FROM ITEM_SUPP_COUNTRY_DIM
    WHERE ITEM= <Level1 item>
    AND DIM_OBJECT= (SELECT CASE_NAME FROM ITEM_SUPPLIER WHERE ITEM=<Item> AND PRIMARY_SUPP_IND = ‘Y')
    Please help me with the steps.
    Many thanks

    Hi,
    For the following query:
    SELECT S.STORE, S.STORE_NAME, A.ADD_1, A.ADD_2, A.ADD_3, A.CITY,A.STATE, A.POST, A.COUNTRY_ID, A.CONTACT_PHONE, A.CONTACT_NAME,S.STORE_OPEN_DATE, S.STORE_CLOSE_DATE, S.REMODEL_DATE, S.TRANSFER_ZONE,S.DISTRICT,S.STORE_TYPE
    FROM STORE S, ADDR A
    WHERE S.STORE= #store
    AND to_char(S.STORE) = #keyValue1
    AND A.MODULE = #module
    AND A.ADDR_TYPE = #type
    AND A.PRIMARY_ADDR_IND=#addrType
    the DB adapter shows this xml:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/WMSStoreDataLookUp" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/WMSStoreDataLookUp" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="WMSStoreDataLookUpInput" type="WMSStoreDataLookUpInput"/>
    <xs:complexType name="WMSStoreDataLookUpInput">
    <xs:sequence>
    &lt;xs:element name="store" type="/&gt;<br /><br /> &lt;xs:element name="keyValue1" type="/&gt;
    &lt;xs:element name="module" type="/&gt;<br /><br /> &lt;xs:element name="type" type="/&gt;
    &lt;xs:element name="addrType" type="/&gt;<br /><br /> &lt;/xs:sequence&gt;<br /><br />&lt;/xs:complexType&gt;<br /><br />&lt;xs:element name="WMSStoreDataLookUpOutputCollection" type="WMSStoreDataLookUpOutputCollection" nillable="true"/&gt;<br /><br />&lt;xs:complexType name="WMSStoreDataLookUpOutputCollection"&gt;<br /><br />&lt;xs:sequence&gt;<br /><br />&lt;xs:element name="WMSStoreDataLookUpOutput" type="WMSStoreDataLookUpOutput" minOccurs="0" maxOccurs="unbounded"/&gt;<br /><br />&lt;/xs:sequence&gt;<br /><br />&lt;/xs:complexType&gt;<br /><br />&lt;xs:complexType name="WMSStoreDataLookUpOutput"&gt;<br /><br />&lt;xs:sequence&gt;<br /><br />&lt;xs:element name="S_STORE" type="xs:decimal" nillable="true"/&gt;<br /><br />&lt;xs:element name="S_STORE_NAME" type="xs:string" nillable="true"/&gt;<br /><br />&lt;xs:element name="A_ADD_1" type="xs:string" nillable="true"/&gt;<br /><br />&lt;xs:element name="A_ADD_2" type="xs:string" nillable="true"/&gt;<br /><br />&lt;xs:element name="A_ADD_3" type="xs:string" nillable="true"/&gt;<br /><br />&lt;xs:element name="A_CITY" type="xs:string" nillable="true"/&gt;<br /><br />&lt;xs:element name="A_STATE" type="xs:string" nillable="true"/&gt;<br /><br />&lt;xs:element name="A_POST" type="xs:string" nillable="true"/&gt;<br /><br />&lt;xs:element name="A_COUNTRY_ID" type="xs:string" nillable="true"/&gt;<br /><br />&lt;xs:element name="A_CONTACT_PHONE" type="xs:string" nillable="true"/&gt;<br /><br />&lt;xs:element name="A_CONTACT_NAME" type="xs:string" nillable="true"/&gt;<br /><br />&lt;xs:element name="S_STORE_OPEN_DATE" type="xs:dateTime" nillable="true"/&gt;<br /><br />&lt;xs:element name="S_STORE_CLOSE_DATE" type="xs:dateTime" nillable="true"/&gt;<br /><br />&lt;xs:element name="S_REMODEL_DATE" type="xs:dateTime" nillable="true"/&gt;<br /><br />&lt;xs:element name="S_TRANSFER_ZONE" type="xs:decimal" nillable="true"/&gt;<br /><br />&lt;xs:element name="S_DISTRICT" type="xs:decimal" nillable="true"/&gt;<br /><br />&lt;xs:element name="S" type="xs:string" nillable="true"/&gt;<br /><br />&lt;xs:element name="A_PRIMARY_ADDR_IND__addrType" type="xs:string" nillable="true"/&gt;<br /><br />&lt;/xs:sequence&gt;<br /><br />&lt;/xs:complexType&gt;<br /><br />&lt;/xs:schema&gt;<br /><br /><br /><br />Please, look at the last few lines of XML and let me know if this is correct..

  • Query problem in jdeveloper alpha version.

    Hi,
    We are using the JDeveloper 11g relese 1 with ADF and EJB3.0.
    If we write a query in SessionManager bean like
    atcAsmtTstInstrList = em.createQuery("select e from AtcAsmtTst e where lower(trim(e.aatAsmtTstName)) like :assessmentTestName").setParameter("assessmentTestName",
    assessmentTestName).getResultList();
    i am getting the following error.
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager
         at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:742)
    if i remove the trim it is working properly.
    Can any one tell me the why that query is not working. This query is working fine in JDeveloper11g preview1
    Regards,
    NIRANJAN REDDY.

    Could you include the complete exception stack trace, and include the version of TopLink/EclipseLink you are using in both (the version is printed when you login).
    James : http://www.eclipselink.org

  • Query using SDO in JDeveloper - NullPointer

    I have this java lines for query:
    DocsOddcModuleServiceImpl docs = new DocsOddcModuleServiceImpl();
    FindCriteria findCriteria = new FindCriteriaImpl();
    FindControl findControl = new FindControlImpl();
    DocsOddcVOSDOResult result = docs.findDocsOddcVO1buscarDocsOddcPorIdInstancia(findCriteria, 1L, findControl);
    List resultList = result.getValue();
    int total = resultList.size();
    System.out.println("total eh " + total);
    Problem: at this line "DocsOddcVOSDOResult result = docs.findDocsOddcVO1buscarDocsOddcPorIdInstancia(findCriteria, 1L, findControl);" i get a nullpointer exception.
    <Apr 28, 2011 5:06:54 PM BRT> <Error> <solicitarcadastamentodeveiculosui.dataservices.server.serviceinterface.DocsOddcModuleServiceImpl> <BEA-000000> <
    java.lang.NullPointerException
         at oracle.jbo.server.svc.ServiceImpl.acquireResources(ServiceImpl.java:377)
         at oracle.jbo.server.svc.ServiceImpl.find(ServiceImpl.java:2288)
         at solicitarcadastamentodeveiculosui.dataservices.server.serviceinterface.DocsOddcModuleServiceImpl.findDocsOddcVO1buscarDocsOddcPorIdInstancia(DocsOddcModuleServiceImpl.java:117)
         at solicitarcadastamentodeveiculosui.bean.OddcBean.popularTabela(OddcBean.java:47)
         at solicitarcadastamentodeveiculosui.bean.OddcBean.init(OddcBean.java:39)
    I have a simple table at oracle database, i use the jdeveloper to generate a View Object / View Criteria and Service Interface (SDO), and i want to make a simple query:
    Select * from table where idInstancia = "idInstancia" (Bind Variable - Type - Long)
    I am feeling that my problem is at findCriteria and findControl. I instantiate these variables, but i'm not populating.
    Should i use the setter method ? What ?
    Thanks
    Victor Jabur

    Yeah, you are right on, if you haven't guessed it in the last couple of months ;-)
    fecthStart, fetchSize, and excludeAttribute are all required property for FindCriteria.
    retrieveAllTranslations is a required property for FindControl.

  • Query in jdeveloper

    hello
    i am a user of oracle10G jdeveloper using jclient/swing
    in my product.
    please do tell me how to write query in my jdeveloper. i mean select clause .
    i do know that using viewobject we can run query but is their any other way to run the query like(select distinct name from usermaster).
    how to use the distinct clause.
    thank you
    Aparna

    Here is what I did.
    I created a new "Default" application.
    In the model project I created a new View object based on the HR schema. stepped through the wizard and in the query field I entered "select distinct (last_name) from employees"
    And clicked test and finish.
    Then I added an application module with the view object and tested it.
    It works great.
    Don't change a view that is alreadt there from the wizards and is connected to an entity object. Create a new view that is not connected to an entity.

  • Execute a query in Jdeveloper using DB adpater

    Hi All ,
    In jdeveloper, using DB adapter i want to execute the following query ,
    select segment1,eng_item_flag from table_name where segment1 in ('itemnumber1',’itemnumber2’);
    In the query the operation IN got used so could you please help me to proceed further

    DB adpater wraps the parameter by ' (apostrophe), so using IN clause it becomes '1,2,3,4,5.........n' and the query returns nothing.
    You need to use below query in DB Adpater
    select attributes,attributes2 from table name where partnumber in (WITH VALUE_LIST AS
    (SELECT ? val FROM dual)
    SELECT SUBSTR(val, (decode(LEVEL, 1, 0, instr(val, ',', 1, LEVEL -1)) + 1), (decode(instr(val, ',', 1, LEVEL) -1, -1, LENGTH(val), instr(val, ',', 1, LEVEL) -1)) -(decode(LEVEL, 1, 0, instr(val, ',', 1, LEVEL -1)) + 1) + 1) a
    FROM VALUE_LIST CONNECT BY LEVEL <=
    (SELECT(LENGTH(val) -LENGTH(REPLACE(val, ',', NULL)))
    FROM VALUE_LIST) + 1)
    Value of <partnumber> tag can be mapped to DB Adapter Inputvariable.
    If you create a very big value list for IN query (greater than 4000 characters) you will get ORA-01704: string literal too long error. In that case you need to break value list and invoke this query multiple times.
    Thanks
    Ravdeep

  • BUG IN JDEVELOPER !!! SQL QUERY

    Hi JDev Forumers ;o)
    I was wondering how I could accomplish to set my attribute labels and display the customized ones in a JSP page.
    I would like to display employee numer instead of empno, how did you do this?
    When i try to set the databse columns on entity level he's building the query wrongly in the view object it's a BIG BUG in JDeveloper!
    He's building the SQL Query statement wrong:
    This is my query statement of the employee view after i've set the database columns:
    SELECT Emp.Employee Number AS EMPNO,
    Emp.Employee Name AS ENAME,
    Emp.JOB,
    Emp.Manager AS MGR,
    Emp.HIREDATE,
    Emp.Salary AS SAL,
    Emp.Commission AS COMM,
    Emp.Department Number AS DEPTNO
    FROM EMP Emp
    it has to be the other way around!!
    Nathalie Roman

    Nathalie:
    I didn't realize JDeveloper was a 'he'! I was able to change the attribute name from empno to Employee_Name in the attribute settings for the app module. I then built a BC4J application and when I run the JSP, the column is showing as 'Employee_Name'. Additionally, I was able to create a data tag in a JSP that refers to the attribute as such:
    <jbo:ShowValue datasource="dsemp" dataitem="Employee_Number" ></jbo:ShowValue>
    In both cases, the query is built correctly. Is this what you were trying to do? If so, please reply with your steps and I'll see if I can help further.
    Thanks,
    Lynn
    null

  • JDeveloper, JPA named query String parameter with length of 1

    Hi,
    I use JDeveloper 11.1.1.2.0. and have the following table:
    CREATE SEQUENCE COUNTRY_SEQ;
    CREATE TABLE COUNTRY (
    COUNTRY_ID NUMBER NOT NULL,
    COUNTRY_NAME VARCHAR2(40),
    COUNTRY_CODE CHAR(2) NOT NULL,
    CONSTRAINT COUNTRY_ID_PK PRIMARY KEY (COUNTRY_ID)
    INSERT INTO COUNTRY VALUES (COUNTRY_SEQ.NEXTVAL, 'Belgium', 'B');
    INSERT INTO COUNTRY VALUES (COUNTRY_SEQ.NEXTVAL, 'Netherlands', 'NL');
    COMMIT;
    I made a JPA Entity with two queries:
    @NamedQueries({
    @NamedQuery(name = "Country.findAll", query = "select o from Country o"),
    @NamedQuery(name = "Country.findByCountryCode", query = "select o from Country o where o.countryCode = 'B' or o.countryCode ='NL'")
    The first works fine, gives back both B and NL. But the second gives back only NL. I have no clue why.
    If I change 'B' to 'BE' both in the DB and the code, it works. If I change to 'b', it doesn't. So it seems that the problem comes with 1 char long Strings.
    Is it an EclipseLink bug?
    I use Oracle Database 11g Enterprise Edition Release 11.1.0.7.0. But
    SELECT COUNTRY_ID, COUNTRY_NAME, COUNTRY_CODE FROM COUNTRY WHERE COUNTRY_CODE = 'B' OR COUNTRY_CODE = 'NL';
    works in SQL*Plus.
    Thx, Donat

    Hi,
    That's true, it uses value bindings while the values are hard coded. I use the default EclipseLink embedded into JDeveloper 11.1.1.2, with the default settings. The JPA bean runs in the default embedded WebLogic of JDeveloper. This might be a default setting of EclipseLink to use bindings for hard coded values.
    Here is a fragment of Country.java:
    @Entity
    @NamedQueries({
    //@NamedQuery(name = "Country.findAll", query = "select o from Country o")
    @NamedQuery(name = "Country.findAll", query = "select o from Country o where o.countryCode ='B' or o.countryCode ='NL'")
    public class Country implements Serializable {
    @Id
    @Column(name="COUNTRY_ID", nullable = false)
    private Long countryId;
    @Column(name="COUNTRY_CODE", nullable = false)
    private String countryCode;
    @Column(name="COUNTRY_NAME", length = 40)
    private String countryName;
    And I have a JavaServiceFacade.java:
    public class JavaServiceFacade {
    private EntityManagerFactory emf = Persistence.createEntityManagerFactory("EjbModel-1-Outside");
    public JavaServiceFacade() {
    public static void main(String [] args) {
    final JavaServiceFacade javaServiceFacade = new JavaServiceFacade();
    List<Country> countries;
    countries = javaServiceFacade.getCountryFindAll();
    for (Country country : countries) {
    System.out.println(country.getCountryCode());
    private EntityManager getEntityManager() {
    return emf.createEntityManager();
    /** <code>select o from Country o</code> */
    public List<Country> getCountryFindAll() {
    return getEntityManager().createNamedQuery("Country.findAll").getResultList();
    BR, Donat

  • How to use Query Builder in JDeveloper?

    I am not able to use Query Builder with JDeveloper version 11g 2.
    The online documentation about Query Builder:
    http://docs.oracle.com/cd/E35521_01/user.111230/e17455/db_tools.htm#OJDUG2380
    "To use Query Builder:
    Open the SQL Worksheet.
    Right-click and choose Query Builder."
    But when I right-click on the SQL Worksheet, there is no menu item "Query Builder".
    Does the documentation belong to a different version of JDeveloper?
    Edited by: Ralf_user4689599 on 06.05.2013 15:40

    all features of 11.1.2.3.0 are installed.
    It makes no difference wether I start studio developer or database developer role.
    There's no query builder in the context menu of the sql worksheet.

  • How to use Query in JDeveloper

    Dear all,
    I use Oracle JDeveloper 10g,
    In the DesignerModel we can define Graph,Crosstab,Query,etc.
    In JSP page I can use the Presentation by drag&drop it.
    But I do not know how to use the Query that we have created by GUI through bibeans API.
    Any help is appreciated!
    thanks

    It seems that there is nobody meeting the same problem.
    I solved it by myself.
    An thanks.

  • Query about licensing Jdeveloper

    Dear Friends,
    I have a query about licensing of Jdeveloper development tool. I understand that Jdeveloper is Free tool.That is we do not require license to use Jdeveloper for development as well as production.
    Recent I heard that Jdeveloper is free only if we purchase Oracle Application Server. Is it correct ? Does one need to purchase Jdeveloper license if it is being deployed on any other App. server eg. Jboss etc ?
    Can anyone throw light on the same ?
    Many thanks,
    Vaij

    Hi,
    JDeveloper is free! Oracle ADF - the binding layer - ADF BC, and ADF Faces need an OracleAs licence
    Frank

  • Mysql w/ JDeveloper EJB Named Query Error

    I have the following named query:
    @NamedQuery(name = "Node.topParent", query = "select o from Node o where o.node is null")
    However, when converted to a SQL query (connected to MySQL) it shows:
    select * from "node" where (parentId IS NULL)
    The "node" causes MySQL to error however if I manually remove them then it works. Why is the query using "" and how can I configure it to by MySQL compliant?
    Thanks in advance,
    Kris

    Appears that by default JDeveloper uses \" in the annotations for table name.

Maybe you are looking for

  • How can I change selection texts of standard report (S_P99_41000192)?

    Hi: I want to change selection texts of  tcode s_P99_41000192. ( Our SAP verison is SAP 4.7 version, non unicode) Because we can see only Deutch. It looks standard sap query so we can not add it into package. How can we change it? Please help me.

  • IChat Port Blocked?

    Just yesterday, iChat started refusing to connect to AIM for some reason. The connection continually timed out. Neither iChat, AIM proper, nor any other instant messaging client will connect to the AIM network. I tried changing both the AIM server, a

  • Cross-referencing keywords in Bridge

    Can you cross reference keywords?  I have an album with photos tagged as 'sweden' but then there are a few in that folder with the tag 'sweden' AND 'airport'... When I select filter by keywords I'd like to click 'sweden' and 'airport' and have it onl

  • Trade Confirmations

    Hi Treasury Experts, We are currently creating FX Forward Transactions in Transaction Management via FTR_CREATE. The trades will first be concluded with the banking partner and then created in SAP. Currently our trades are setup to have a Transaction

  • Relation between object US and object S

    Hi, when i affect a User (US object) to a Position (S object) i have the following line in HRP1001 (in brief) : OTYPE    RELATION     SCLAS S                A008             US Nice but i need also the following line : OTYPE    RELATION     SCLAS US