SQL Native Performance difference between coded hard and parameter value

Hello

I have a SQL query (Oracle) native (quite long and complex with many subqueries) which returns in less than a second in ODSI and using an external SQL tool. This query contains a hardcoded for a particular, namely column value, a date column.
When I change the function ODSI signature so that I have pass a parameter, and then replace the hardcoded value in the native SQL with the appropriate parameter binding notation (i.e. '?'), the query takes much longer (2-30 seconds). The duration of the query depends on how many records is returned, so he must execute a separate query for each of the outcomes (i.e. most returned results, longer the query takes to return).
What can I do to maintain the duration of my low ODSI request while allowing the setting?

Thank you. Try the oracle.jdbc.OracleDriver in WLS/ODSI, let know us.

Tags: Fusion Middleware

Similar Questions

  • Huge performance difference between stored proc and anonymous PL/SQL block.  Why?

    Hello!  I searched various online resources and have been unable to find those who have addressed this problem, so I hope that someone here may be able to offer advice.

    I have a stored procedure that is approximately 300 lines long, takes no parameters, and sets a record and a few types of internal tables.  When I run it on a particular data set, it takes about 50 seconds at the end of my environment.  Unfortunately, it will have to be performed as a block anonymous PL/SQL instead of a stored procedure, because of the policies that exist about the environment which I deployment.  However, when I converted it to an anonymous PL/SQL block, make no other code changes whatsoever and it connecting the same schema that belongs to the stored procedure, it takes about 6.5 minutes (nearly 8 times as long) to complete.  Aside from the burden of analysis and validation, which could add a fraction of a second, can someone please suggest some possible reasons for the large performance difference and offer advice on what I can do about it?  In which case it is important, the procedure uses in bulk binds (for example, in bulk collect, forall) where it makes sense and doesn't call other objects in PL/SQL.  Thanks in advance.

    Without seeing your code, it is difficult for me to contribute more.

    Note also that...

    1 roles are turned on in the anonymous blocks but not (at least not by default) in the stored procedures. This is why the anonymous block could have MORE rights (those granted through roles) probability that you can get more items through anonymous block.

    2. ensure that, in both cases, it does reference the same target tables.

    Debug by calculating the difference of time after certain steps in your code. Who should get an idea on this or activate the trace.

  • Openfiler as NAS for ESXi shows the performance difference between software RAID6 and RAID10.

    I had some performance issues with a new ESXi server with virtual machines hosted on a table of 6 software RAID (12 units of optical fiber). Here's what it looked like:

    12 multi-plate (RAID 6) -fiber channel- Openfiler.


    NFS - VMWare ESXi

    Since I had a spare CF array I decided to fix to the Openfiler box and try to RAID 10 in software. Different performances has been staggering. I did a lot of steps, but I test the startup time of a computer virtual stored on each table of FreeBSD.

    RAID 6 59 seconds

    RAID 10 45 seconds

    Now waiting for MBR of FreeBSD for 5 seconds and the boot loader expects 10, so there were at least 15 seconds of downtime in each case. The strange thing is that accessing directly the matrix RAID 6 via FTP provided good performance. I was able to saturate a 100Mbit link and the Openfiler Server showed almost no load. But with the VM on the RAID 6 array, the load on the Openfiler area would jump to 4 +. I hope it helps someone.

    Jason M.

    It's better.  What system and mount underlying file options are used?

    http://blog.peacon.co.UK

    Please give points for any helpful answer.

    Unofficial list of transfer USB devices work

  • Difference between external tables and sql * loader

    Hello

    Could you please tell me the difference between
    tables external and sql * loader

    I have serached on the net but did ' get correct idea

    Please help me

    1 SQL LOADER can be run on the network (from any client computer), external tables can't

    2. return to the Oracle 9, external Tables could not load CLOB/BLOB (Oracle10 changed it)

    3 oracle 11 external tables have preprocessor, which is pretty dam characteristic cool - running essentially any OS command e.g. decompress before external table run. What's even better is the fact that the result of the operating system command is the source of the outer table, which means that there are no required temporary file (unzip the tracks and the output is the source of the external table). There are several ways to great use this - look at my blog for samples rare http://jiri.wordpress.com/2010/01/19/no-more-unix-scripts-in-11-2/

    4. as long as the 009 stressed, filed external load anything, they show just. Think of it more as load on request - it's great if you have old files archived and one or two users what to see content once a while

    5. external tables require no user access to the operating system, it is oracle environment pure - this may seem minor but for me it's huge. The fact that the ETL needs no special unix, no control file command and uses the simple SQL and DDL is nice and important

    6. external tables can load more text files, Oracle export dump files can be loaded, perhaps in the future more formats will be supported (hopefully all right excel format?)

    now the same thing to kill the myth - the TWO are EXACTLY the same when it comes to speed, I would actually drive of the external tables before will be faster because sql loader is old technology oracle doesn't really develops more

  • Difference between the G20 and G25 models

    Hi people!

    I searched your laptop and I was amazed by the Qosmio.
    When I was going to order it, I noticed that there are many models of the G20 with different specifications. Also, I found G25 on internet research and found no difference between the G25 and G20 except receiver TV G25 is NTSC and G20 was released on March and G25 was in June. Instead, they have the same specifications for the hard drive.

    I live in the Portugal and the model Qosmio I can find that this is the G20-118. I was looking for the model that has 2 x 100 GB SATA HD, but cannot not thought about it.

    Internet research I found Qosmio G20-111 which has 2 x 100 GB SATA HD, but on the web page mentioned that it was a Pentium III processor (ridiculous, isn't?). I was looking for more reliable information.

    Already searched for toshiba pages and found no specifications for all models I found 490LS on the research on the web as the G20 - 102, 105, 106, 108, 109, 111, 118, 123,...

    Can someone help me with this? Are there any reliable web page where I can see the differences between the models? is there a .pdf or anyone who can please give me some advice?

    Money is not a problem at this time to acquire the laptop, I'm looking for only the laptop performance more!

    Best regards
    João Pereira

    Hello

    It of very difficult to say what camera is best, because there are many models with different parts.
    However, I found page with description of the G20 and G25.
    Take a look at this link.

    http://www.releasereview.com/Toshiba-Qosmio-G20-105-108-114.aspx?d=0101000580926052005

    Good bye

  • difference between the view and the procedure

    Hi Master,

    Today I received a request from my senior technical leader... !!

    Q > what is the difference between the view and the procedure?

    I got response like this...

    A view represents the logic of one or more tables/views. It won't take no place in db... It is a virtual table, query will only store in db... useful

    for safety... If the main table has obtained changes... automatically discovers also change... etc.

    Proecudure is a db object will be performs a perticular action... It may or may not return values. ?

    But somehow, he isn't happy... He expects more... .very close view of diff. b & w and procedure.

    Please explain it to me...!

    Concerning

    AR

    874273 wrote:

    Hi Blu,

    Thanks for your replies...! But we think if notice and procedure will be the same no matter what point of view? Both are the same? If Design view... We can create a stored procedure?

    How a view and procedure may do the same thing?  They are two different things with different objectives.  You use the correct one depending on what you want to achieve; they are not interchangeable.

    And another question...!

    (Q) how you will store Japan, characters of China in a database table? will there be a new feature in Oracle 11 g?

    (A) I use dbms_lob package? Japan/China characters are multi byte characters... so we can use the nclob data type?

    is this correct... ?

    No, it not there no novelty in Oracle 11 g for the storage of Japanese or Chinese characters, because there is already a feature for their storage in previous versions as well.  It is determined by the parameters characterset and nationality that you use when you create the database.

    Why would you choose to store them in a LOB using DBMS_LOB?  Yes, they have multibyte characters, but if you have configured your database for the correct character sets, for example using UTF - 8, then you can store the characters in VARCHAR2, like any other language.  The only difference is that the storage of 4000 bytes limit still applies, so you maybe isn't able to store 4000 multibyte characters in a varchar2 column 4000 single-byte, it can be as little as 1000 characters if they are all characters in 4 bytes.  (Note: 12 c limit in SQL can be increased up to 32,767 characters, to harmonize it with variable varchar2 PL)

  • What is the difference between the model and its clone in VMware?

    What is the difference between the model and its clone in VMware?

    Clone

    A clone is a copy of the virtual machine.

    You can't convert back the cloned Virtual Machine.

    A Clone of a Virtual Machine can be created when the Virtual Machine is running

    Cloning can be done in two ways: Clone full and linked Clone.

    A full clone is an independent copy of a virtual machine that shares nothing with the parent virtual machine after the cloning operation. Continuous operation of a full clone is entirely separate from the parent virtual machine.

    A linked clone is a copy of a virtual machine that shares virtual disks with the virtual machine of parent on a regular basis. This preserves disk space and allows multiple virtual machines to use the same software installation.

    Cloning of a virtual machine can save time if you are deploying several similar virtual machines. You can create, configure, install the software on a single VM and then clone several times, rather than the creation and configuration of each virtual machine individually.

    Model

    A model is an original copy or a reference image of a virtual machine that can be used to create many clones.

    Models can be turned on or edited and are harder to change than usual of virtual machine.

    You can convert the model to the Virtual Machine update model base with the latest released patches and updates and to install or upgrade any software and still convert to template to use for the future deployment of Virtual Machines with the latest patches.

    Convert virtual machine model cannot be performed, when the virtual machine is running.  Only the Clone to the model can be performed when the Virtual Machine is running.

    A model offers a safer way to preserve a virtual machine configuration that you want to deploy several times.

    When you clone a virtual machine or deploy a virtual machine from a template, the cloned virtual machine resulting is independent of the virtual machine or the original model.

  • 8.5.1 LabVIEW Student Edition - differences between the Mac and Windows versions?

    Hello

    I just bought the student of LabVIEW 8.5.1 version and I use Mac OS X 10.4.11. What are the biggest differences between the Mac and Windows versions, since the box came with a CD of installation of Mac and a Windows DVD Installer?

    See you soon

    Looks like you got the LabVIEW Student Edition Software Suite DVD.

    It comes with 6 boxes to tools, and the TME product, some (or all?) of those who are windows only (at least 8.5), for example:

    • Toolkit Digital Filter Design
    • Modulation Toolkit
    • SignalExpress
    • ...

    Since you have 8.5, you are missing also a few basic things that only recevied at the 8.6MAC support, like Mathscript, Control design and Simulation and native 3D graphics.

  • What is the exact difference between secure mode and diagnosis

    I am repairing a pc and have done everything I can do in terms of diagnosing the problem. The only thing she shrinks down is to start in safe mode but not in diagnosis or vga mode. It is the same even when you use another defective hard drive. It must be a hardware component on the motherboard. I deleted and all the other components. I disabled designed in bios and Device Manager. What is the difference between secure mode and diagnosis?

    Thanks in advance for any help

    It was the capacitors on the motherboard that needed to change. It works fine now.

  • BlackBerry 10 What's the difference between BB10 London and Liverpool?

    What is the difference between BlackBerry London and Liverpool BlackBerry? I have a hard time with this.

    Thank you!

    The only difference is the radio within each bands...

  • The difference between the ADR and ADF

    People,

    Hello.   I have implemented PeopleSoft Campus Solution 9.0 revision 5 for a University. I develop the application for Admission online for future student to apply for admission.

    I need to install Oracle ADF (Application Development Framework) or ADR (execution of Application Development) to run my application for Admission online web page for PeopleSoft Campus Solution 9.0, but I do not know the difference between the ADF and the ADR.

    My installations are below:

    Server machine: Oracle Linux 5.10 (64-bit)

    Client computer: Windows XP Professional (64 edition) with the Internet Explorer browser

    Architecture Internet Oracle Linux 5.10 Server:

    (1) database server: Oracle Database 11 g

    (2) the server application: Tuxedo 11 g

    (3) web Server: Web 11 g logic

    (4) browser: Firefox Mozila

    5) 8.53 PeopleTools and PeopleSoft Campus Solution 9.0 R5

    On the download page http://www.Oracle.com/technetwork/developer-tools/ADF/downloads/index.html , there are 2 packages to download:

    (1) execution of the 12.1.3.0 application development

    (2) oracle ADF essential 12.1.3.0

    My Architecture Internet of PeopleSoft as shown above has been working properly for a long time. Logical Web 11g works correctly. It seems that the first 'Application development performance' package also install logical Web server which is not necessary in my machine. In addition, ADR is not free, and we may need to purchase the license.

    Essential because ADF is free and without license fees, I chose Oracle ADF essential 12.1.3.0.0 to develop the application for admission online. I read his paper on http://www.oracle.com/technetwork/developer-tools/jdev/documentation/121300-cert-2164864.html

    9.0 Solution Campus system will be run by a University to do business formally.

    My questions are:

    First of all, what package is right for my application for Admission online Campus Solution 9.0? ADR or essential ADF?

    Second, if choose essential ADF, I have a few questions about the 12.1.3.0.0 ADF to match my installations as below:

    (1) as indicated in the document, ADF 12.1.3.0.0 can work with Oracle Linux 5 & 6 (64-bit) and other operating systems. ADF can also work with Windows XP? Can I install ADF with my Oracle Linux 5 server machine?

    (2) as indicated in the document, ADF 12.1.3.0.0 can work with Websphere Server Application. ADF can work with Tuxedo 11 g?

    (3) as indicated in the document, ADF 12.1.3.0.0 can work with the Firefox browser. ADF can work with Internet Explorer in Windows XP?

    Thanks in advance.

    If you want to use essentials, you must download the package from the essential. ADR is the complete stack where you must purchase a license.

    Timo

  • Difference between an application and a Folio and what is not taken in charge

    Hello

    I'm about to dive into work on my first app in InDesign.

    I have two questions that are more specific, while I understand the difference.

    1. What is the difference between an App and a Folio?

    2. I also understand that native animations and synchronization options are NOT supported in a Folio for a DPS, the same system go for something later to be used as an application?

    Just try to understand and start on the right foot

    Thank you!

    Babs

    Imagine a folio as content kind of as a book has pages.

    The app has a folio.

    That said, you may not aware that only edition apps are no longer included in Creative cloud without a full account of DPS, you cannot create an app.

  • What is the difference between safety HFM and HSS

    Hi gurus

    1. What is the difference between safety HFM and HSS?

    Concerning
    Hubin

    Shared Services allows to configure the users/groups of products such as Shared Services, HFM, workspace, FDM, etc., etc., etc..

    In addition to the roles to users/groups; However, you will still perform security management in individual products.

    For example, in Shared Services, I can grant user johndoe rights to access an application of FDM. FDM, you would manage locations, the user can access, etc.

    Shared Services also enables other features such as safety reports and copy security/commissioning of an entire application to another App (for example, to create a new HFM application and then use Services shared to copy all the safety operation of an existing application that him)

  • The difference between the groups and roles?

    Hi all

    What is the difference between the groups and roles?

    Thanks for your time and your help.

    Oracle doesn't have anything called a 'group '.

    A role is a named object that can contain a set of privileges. All members may be individual privileges or may be another role that contains its own set of privileges. Roles can then be granted to users (or other roles) so that the users (or roles) have the specified privileges.

    See the SQL language reference - http://docs.oracle.com/cd/B28359_01/server.111/b28286/toc.htm

    Read the topics for CREATE ROLE, GRANT and REVOKE

  • What is the difference between associative arrays and nested tables?

    Hello
    What is the difference between associative arrays and nested tables?

    nested tables cannot be indexed by other than pls_integer and unlike nested tables table associative cananot be declared at the schema level.

    is there any other difference set apart from the diff above 2?

    user13710379 wrote:
    What is the difference between associative arrays and nested tables?

    Name-value pairs (associative) against a list of values (table standard/nested table).

    nested tables cannot be indexed by other than pls_integer

    They are not "indexed" the way in which an associative array is indexed. A standard table is referenced by the position of the cell in the table. This position is essentially the offset of the memory of the cell from the start address of the table.

    Can not solve a cell in an associative array directly via a memory offset index. You place a cell reference value it by his 'name' (a search in the linked list/hash table).

    The following example shows the difference between the pairs of name / value and a list of core values.

    SQL> declare
      2          --// associative arrays are NAME-VALUE pairs
      3          type TArr1 is table of varchar2(10) index by pls_integer;
      4          type TArr2 is table of varchar2(10) index by varchar2(10);
      5
      6          arr1    TArr1;
      7          arr2    TArr2;
      8  begin
      9          arr1(100) := '1st entry';
     10          arr1(1) := '2nd entry';
     11          arr1(5) := '3rd entry';
     12
     13          arr2('john') := 'New York';
     14          arr2('jane') := 'Paris';
     15          arr2('jack') := 'London';
     16
     17  end;
     18  /
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL>
    SQL> declare
      2          --// standard arrays are lists
      3          type TArr3 is table of varchar2(10);
      4          type TArr4 is table of number;
      5
      6          arr3    TArr3;
      7          arr4    TArr4;
      8  begin
      9          arr3 := new TArr3( '1st entry', '2nd entry', '3rd entry' );
     10
     11          arr4 := new TArr4( 100, 1, 5 );
     12  end;
     13  /
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

Maybe you are looking for

  • You can duplicate a book in the phase of project?

    I do 2 separate books, but most of the pages will be the same.  I have already created the first book and now would like to do the 2nd book without having to remove the curtain in its form initially or start from scratch on the 2nd.

  • Yahoo Search can be deleted?

    I use Mac OS X 10.9.5 Mavericks.  Whenever I run Safari, also launches a Yahoo Search Page.  How can I prevent that to happen?  How to remove this Page of Yahoo Search?

  • HPE h8-1300z AMD (AG2) CTO: Question of BIOS

    I see this in the UEFI BIOS firmware updates but it's very vague on what it actually is about: -.

  • How do I print a playlist from Windows Media Player?

    I do dozens of playlists to share with family and friends.  Is there a software that will extract the playlist info (song, artists)?

  • E1200 Version?

    I just plugged my router e1200 and seeks to update the firmware.  I can't find my version number on the router which leads me to believe that it is version 1.o.  However, when I am advanced settings, I see my firmare to be 2.0.04, which leads me to b