XSU doesn't support bind variables - how dumb is that?

I am using XSU to generate XML from a SQL statement using class OracleXMLQuery. Either I am blind or stupid or there is no support for bind variables in this class! I have used DBMS_xmlquery in PL/SQL before and this does support bind variables, I naturally assumed the Java equivalent would also have this. The lack of bind variable support means a huge performance hit as every single SQL statement will be treated as unique and will require hard parsing on the server!
Is there another Java XML utility I can use for generating XML from a SQL statement that does support bind variables? I have trawled through the Oracle documentation and I am getting very confused and lost.
Thanks,
Steve

makaidog,
Read get rid of community toolbar: Apple Support Communities.

Similar Messages

  • Some sites ask for adobe flash player. My IPad doesn't support it. How can I get over it?

    Some sites ask for adobe flash player. My IPad doesn't support it. How can I get over it?

    You could try a third-party browser app such as Skyfire, iSwifter, Puffin and Photon which 'work' on some sites, but judging by their reviews not all sites. Also some websites, especially news sites, have their own apps in the App Store.

  • Query with bind variable, how can use it in managed bean ?

    Hi
    I create query with bind variable (BindControlTextValue), this query return description of value that i set in BindControlTextValue variable, how can i use this query in managed bean? I need to set this value in String parameter in managed bean.
    Thanks

    Put the query in a VO and execute it the usual way.
    If you need to, you can write a parameterized method in VOImpl that executes the VO query with the parameter and then call that method from the UI (as a methodAction binding) either through the managed bean or via a direct button click on the page.

  • MAC OSX 10.4.11 I finally succumbed to the constant irritating messages telling me that I didn't have the latest version. My old version and all my bookmarks have been deleted my Mac says it doesn't support Firefox! How can I recuperate my old settings?

    MAC OSX 10.4.11 I succumbed to the constant messages telling me that I didn't have the latest version, despite being happy with the one I had. My old version and all my bookmarks have been deleted and now my Mac says it doesn't support Firefox!!!!! How can I recuperate my old settings? in English

    Firefox 4 versions and later '''do not run on a PowerPC Mac''' (like yours) and require '''at least OS X 10.5 and an Intel Mac'''.
    The latest supported version for your os is '''3.6.27''' , you can download it from:
    http://www.mozilla.org/en-US/firefox/all-older.html
    1. Download a 3.6.27 copy of the Firefox from the above link
    2. Trash the current Firefox application to do a clean (re-)install.
    3. Install the new version that you have downloaded(3.6.27)
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so probably you won't lose your bookmarks or other personal data, if you don't already ''totally'' uninstall firefox(user data and settings like bookmarks, extensions, etc. located here: ~Library/Application Support/Firefox so you must uninstall it separately, to totally uninstall firefox).
    see also : [https://support.mozilla.org/en-US/kb/Installing%20Firefox%20on%20Mac Installing Firefox on Mac]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • HT1386 How do I sync my iphone 5s with my imac because it is only 10.6.8 and doesn't support icloud.  Apple tell me that my beautiful imac is vintage and I should ditch it!!!!  Where is their eco conscience.  I have been using mac for years and years now

    Does anyone know how to sync my iphone 5S with my imac 10.6.8 - which doesn't support icloud and can't be updated to do so.
    Apple tell me that it is a vintage computer now and I must throw it away and buy a new one.  Where is their social/eco conscience ...
    we are living in hard times trying to survive and trying to keep our businesses healthy.  Now is not the time to buy a new computer.
    What is Apple playing at??????

    You plug the phone into your computer and go to the Info Tab for the device in iTunes. Select what you want to sync. You should not attempt to sync with both iCloud and the local contacts on the Mac.
    Are you having some kind of problem doing this?

  • High PPI Support Multiple Monitors: How it comes that Remote Desktop implements the hight PPI support very well and win 8.1 doesnt?

    http://skovalev.de/wp-content/uploads/2014/05/RemoteDesktop-HighPPI-Perfect.png
    Hello all: i am using an High PPI Monitors from Dell XPS15 (3600x1800) and a Normal FullHD above it. The FullHD monitor is an external device and is set up as the primary device. Scaling is set to per Monitor DPI.
    Now the Question: how it comes, that my RemoteDesktop on the secondary (internal) screen has almost perfect implementation for this????
    BUT i am am talking only about the RemoteDekstopManager, normal one does not works with high ppi in this way... Also ModernUI has no problems with scaling
    http://skovalev.de/wp-content/uploads/2014/05/Firfox-and-Resolution-RemoteDesktop.png
    NOTE that the resolution on the remote desktop is set to 1600x900 and there are NO scaling problems even on the 3200x1800 monitor!
    On both picutures you find the dell monitor on the bottom and the scaled original windows explorer/firefox on the bottom right. See how blurry it is? I really breaks my eyes :(
    I hope Microsoft can finally fix the high PPI Monitors issue, since the solutions seems to be already implemented

    No, i mean the Scaling Support.
    If you use multiple monitor, in windows 8.1 you can scale per monitor. If you use this option with a High PPI monitor, like ultra HD or 4K, the image on the monitors with other PPI than the main monitors appears fuzzy and blury.
    But there are also scaling problems even if you use only single monitor. This article blog describes it pretty good:
    http://www.hanselman.com/blog/LivingAHighDPIDesktopLifestyleCanBePainful.aspx
    By the way there are lot article like this describing the scaling problems, not only by users but also by professinals and IT magazines...
    BUT here it comes: watch @ my screenshots. If the remote desktops resolution is 1800x900 and the native resolution is 3600x1800, there are no scaling problems! HOW? So like you can see on my screenshots a native application on my monitor appears fuzzy while
    the same application runnin of the remote desktop has clear type!
    That means for me, that windows HAS the possibility to scale clearly, but somehow this feature is only supported by RDCM...

  • I upgraded to 4.0, but it doesn't support sxipper. How do I reload 3.6?

    There really isn't anything else to add. I want to be able to use sxipper and it has been disabled with the upgrade to Firefox 4.0.
    How can I go back to a version that supports Sxipper?

    http://www.mozilla.com/en-US/firefox/all-older.html

  • [10.1.2] Lov validate doesn't support bind params

    Hi forum,
    We were trying to use lov validate feature with a view object LOV that has parameteres in its query. Knowing that JHeadstart has the query bind field in Application Structure file, we've filled it.
    A strange behaviour occurs when the user puts a valid value in LOV field and change the field focus: the lov validate fires the LOV window, even if the value is valid. This behaviour occurs only in the first time; after that, validation seems to work fine.
    We've found that the problem is with onLovValidate method. This method uses the iterator from the LOV window, but at first time this window wasn't opened yet, so the applyIterBindParams was not executed for it. When the corresponding View Object has query parameters, it throwns an exception, which causes the lov window to be opened.
    We found a solution which consists of changing the ValidateCallBack javascript function: it should submit the bindParams expression that is in struts-config.xml as a form parameter. When we enter in onLovValidate method, this should execute the same steps that is done in applyIterBindParams, and only after that use the lov iterator to see if the value typed is valid or not.
    Thanks,
    Eduardo

    The details...
    In your UIX page:
              function ValidateCallBackTsacContratoPeriodicidadePagamento(params)
                params["searchAttribute"]= "Codigo";
                params["eventValue"]= "TsacPeriodicidadeLookup";
                params["lovValueBinding"] = "TsacPeriodicidadeLookupCodigo";
                params["baseValueBinding"] = "TsacContratoPeriodicidadePagamento";
                // added. The expression is the same that resides in struts-config.xml
                params["bindParams"] = "TsacPeriodicidadeLookupIterator=${sessionScope.CodigoEmpresaEscolhida}";
                return true;
              }In the first lines of JhsDataAction.onLovValidate, we've put this new lines:
         String bindParams = request.getParameter("bindParams");
         JhsDataActionMapping mapping = new JhsDataActionMapping();
         DataActionMapping oldMapping = daContext.getActionMapping();
         mapping.setBindParams(bindParams);In the middle of JhsDataAction.onLovValidate:
         // execute the onQuickSearch to validate the entered value
         daContext.setBindingContainer(lovContainer);
         daContext.setActionMapping(mapping); // new line
         this.applyIterBindParams(daContext); // new line
         daContext.setActionMapping(oldMapping); // new lineWe've created a fake ActionMapping just to call applyIterBindParams. Before, we save the original ActionMapping, and restores it when applyIterBindParams is done.
    Eduardo

  • How to select data into multiple bind variables

    Hi,
    I need to load data into multiple bind variable how to do that
    As of now i am using this
    select a , b into :a, :b from dual
    But i want even a to be loaded into both :a and :c also b to be loaded into :b and :d Please suggest
    Thanks
    Sudhir.

    Thanks much it worked
    Thanks
    Sudhir

  • How do I get my music from iTunes Match to my older ipod that doesn't support iTunes Match

    I have an old ipod ios 4.2 that doesn't support iTunes Match how do i get my music from the cloud to my computer library in order for me to put the music onto my older ipod for the car

    Setup iTunes Match on your computer. Download the songs to your iTunes libary and then sync to your old iPod.
    http://www.apple.com/itunes/itunes-match/

  • User defined report with bind variable

    How can I create an user defined report using a bind variable?

    We currently do not support bind variables in User Defined Reports. We are looking at adding that function before production but I can't promise.
    -- Sharon

  • Use of bind variables with the oracle db - to improve library cache perform

    Dear Friends,
    We are using oracle 9.0.1.1.1 db server - the performance of the db was pathetic and upon investigation it was revealed that the library cache was over loaded with sql hard parses generated by not using bind variables. We are using vb as a front end with oracle and our connection object in vb is created using ole db for oracle provided by oracle (installed from oracle client custom - programmer option).
    I would appreciate if any body can tell how can we use bind variables in vb to connect to oracle such that the hard parses can be changed into soft parses.
    Your effort to bring some peace in my life is worth comendable and I would be very obliged for your time and help.
    Thanks a lot.
    Bye
    Take care.
    qj

    Generally, you would use bind variables by changing statements that are written like this
    select * from emp where empno=6678 and ename='Jones'
    so that they're written like
    select * from emp where empno=? and ename=?
    How you then bind these question marks to the particular values you want depends on the API you're using (ADO? OLE DB directly?, etc). If you have a support contract, there are plenty of examples for any API on metalink.oracle.com
    Justin

  • Collection with bind variable

    Hello all,
    this might be more of a pl sql question but I am trying to create a collection in apex where the query uses a bind variable. I cannot get this query to work.
    This works
    p_query => 'select je_batch_id from gl_je_batches where default_period_name = ''MAY-10''',
    but I cannot get it to work with a bind variable.
    p_query => 'select je_batch_id from gl_je_batches where default_period_name = :P14_EPSB_ARGYLL_PERIODS ||',
    any assistance would be greatly appreciated.
    Thanks

    For the record, the APEX_COLLECTION package in Application Express 4.0 now does support bind variables in the query.
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B and APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERYB2 support an input array of bind variable names and bind variable values. This should be faster than referencing an item value via the v() function. However, prior to APEX 4.0, this is the only recourse.
    Joel

  • SLOW report performance with bind variable

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

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

  • ADFBC: LOV with bind variable inside Table

    Hi,
    I can't seem to find information on how to use bind variables on LOV's that are inside an af:table.
    Please help.
    Thank you.
    Links that didn't work :
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcquerying.htm#ADFFD345
    http://www.oracle.com/technology/products/jdev/tips/fnimphius/restrictlovlist/restrictlov.html
    http://groundside.com/blog/DuncanMills.php?title=executewithparams_my_new_best_buddy&more=1&c=1&tb=1&pb=1

    You are not really specific about the actual problem. What are you trying to do?
    Show some peaces of code. Got any errors?
    Timo

Maybe you are looking for

  • Need help setting up a mac to mac network (2 machines)

    First, I apologize for the cross posting, but this got no replies in the networking category. I have a new mac mini and I'm struggling to setup a network with the mini that shows my old G5 dual 1.8. The old computer has two internal hard drives. I've

  • AirPort Extreme no longer accepting password

    We have a Windows 7 PC, iPhone, iTouches (2) and Mac and WiFi printer. Until yesterday, everything was routing fine through the AirPort to our Comcast internet connection. Now the Airport won't accept anything but the Mac.  Password is correct, but i

  • Declining a meeting invitation

    I have raised this with several of RIM's partners and see that it keeps appearing in each OS update. When a user declines an eVite on Blackberry mail, his name is permanently removed from the host's list of invitees, and the user no longer receives a

  • What Film-formats are accepted by iTunes ???

    Next Question : what formats does the film section accept ??? Im trying some different tv-shows i have downloaded and not all seem to work ??? Quicktime and MPEG4 seem to work while Matroska Media File and AVI Video dont - is there no standard or is

  • HR TEMPLATES

    We are supposed to do templates creation. Pl. give some information about enhancement of HR module. And pl. give the direction how to work on templates or create it or how can we start? We are just reading the concepts what is VSDK, TUTOR etc.