SQL in Shuttle (DHTML_SHUTTLE) Seem to Ignore "order by" Substitution

Using a literal "order by" in Shuttle SQL works.
Using "order by :P1_My_OrderBy_Column" seems to happily ignore it. Using Debug does not reveal what happened.
Your thoughts?

Hi,
This is not an APEX specific issue. Try running the following query in SQL*Plus
SELECT *
FROM emp
ORDER BY :p_order_by_col
It doesn't order the column. I found a few hits on Google about this, all suggesting to use a substitution string for the order by column (see Re: oci_bind_by_name and 'order by' clause in select statement? for an example). If you do this approach you should be aware that SQL injection could occur so you'll need to take all the steps to ensure that doesn't happen.
Unfortunately I don't know why Oracle accepts the bind variable but doesn't process it (maybe you should post that question on the SQL forums.)
Martin
[http://apex-smb.blogspot.com/]

Similar Messages

  • HT2357 So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    Fantastic!  Didn't work at first so restarted App store and tried again.  This time it asked 'ignore update'.  All gone!

  • SQL Batch doesn't seem to work; How to eager-fetch related objects?

    Hi,
    I have two technical questions with Kodo.
    1. SQL Batch doesn't seem to work. I have tried batch size of -1, 0, 1, 25.
    But the performance from batch creating objects is not affected by batch
    size.
    kodo.jdbc.DBDictionary: BatchLimit=25
    2. How to use custom fetch groups to eagerly fetch related persistable
    objects? Example only showed attributes, not relationships.
    Enviroment:
    * Kodo 3.1.0 RC1
    * Oracle 9i release 1.
    Qingshan Luo
    Senior Software Engineer
    Open Harbor
    1123 Industrial Road
    San Carlos, CA 94070
    Phone: 650-413-4251
    Fax: 650-413-4298

    try poracle 10g driver. At least they fixed terrible CLOB bug may be batch
    to. BTW 9.2.x has problem with batching with deferred constraints so be
    careful
    "Greg Campbell" <[email protected]> wrote in message
    news:c3dmnu$rmj$[email protected]..
    >
    "Qingshan Luo" <[email protected]> wrote in message
    news:c3dg7q$mdl$[email protected]..
    Hi,
    I have two technical questions with Kodo.
    1. SQL Batch doesn't seem to work. I have tried batch size of -1, 0, 1,25.
    But the performance from batch creating objects is not affected by batch
    size.
    kodo.jdbc.DBDictionary: BatchLimit=25You may be running into a bug in the Oracle 9.2 driver. That driverdoesn't
    reliably give update counts when using batching and prepared statement
    caching. By default, Kodo will turn off batching. You can manuallyenable
    batching by setting the BatchLimit on your DBDictionary, as you've done.If
    you do this, though, you may want to turn off prepared statement cachingby
    setting MaxCachedStatements to 0 (see
    http://www.solarmetric.com/Software/Documentation/3.1.0RC1/docs/ref_guide_dbsetup.html#ref_guide_dbsetup_builtin).
    >
    2. How to use custom fetch groups to eagerly fetch related persistable
    objects? Example only showed attributes, not relationships.You can find information on setting up eager fetching of relations at
    http://www.solarmetric.com/Software/Documentation/3.0.3/docs/ref_guide_
    perfpack_eager.html
    Basically, you'll need to add the relations to your fetch group, and
    set the eager fetching mode.
    Enviroment:
    * Kodo 3.1.0 RC1
    * Oracle 9i release 1.
    Qingshan Luo
    Senior Software Engineer
    Open Harbor
    1123 Industrial Road
    San Carlos, CA 94070
    Phone: 650-413-4251
    Fax: 650-413-4298

  • I write both JPG and DNG files in the camera.   Camera is a Leica Monochrom.   Photo, unlike iPhoto, seems to ignore DNG files and only imports JPG files.   What am I missing here?

    I write both JPG and DNG files in the camera.   Camera is a Leica Monochrom.   Photo, unlike iPhoto, seems to ignore DNG files and only imports JPG files when both are present on the SD card.  JPGs are used for quick proofing on an iPad.    DNG RAW files are edited on a Mac Pro (2013).    Other than deleting the JPGs before importing images from the SD card,  is there any way to force Photo to select and import only the DNG images?

    Thanks Larry,
    I did see the J stacked in the lower left of the thumbnails but couldn't figure out how to get to whatever is below it.   How do you select R?  
    I use an iPad to do quick proofs of my images.   A JPG is good enough for a proof ( dust on the lens,  composition, blown out image, etc. ).   The iPad is JPG friendly and can load the images quickly.    Serious editing takes place on my Mac Pro with the DNG files.   I use the same workflow with the the Leica M 240.   iPhoto has been a quick and easy importer to the Mac capturing all of the metadata in the EXIF sidecar file ( location, date, time,  camera settings, lens type).  A quick scan in iPhoto for the "keepers" let's me export those worth editing to Lightroom/Bridge/Photoshop.  I typically shoot 50 images from three locations in a normal day.  If I'm lucky I'll get 1 worth real work to add to the portfolio.  

  • SQL LOADER and ORA-01861: Please ignore,,my mistake...its duplicate

    Hi,
    I've to load data through control_file(.ctl) into oracle table through sqlldr. Oracle 11g, win xp.
    as soon as I use - sqlldr dss/dss control=orders.ctl I get error or nothing.
    Text file that is generated after loading fails has the following error.
    Record 1: Rejected - Error on table ORDERS, column O_ORDERDATE.
    ORA-01861: literal does not match format string
    I have checked the format of data to be loaded into Orders table is like this : *1996-01-02.*
    I checked the format of data in my database by querying sysdate from dual i.e. 10-JAN-10
    I thought that changing its format might solve my problem so i tried this:
    SQL> alter session set nls_date_format='YYYY-MM-DD';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    2010-01-10but still i'm getting the same error. I've to load millions of data. how I can solve this issue.
    Please suggest.
    Thanks alot.
    Best Regads,
    Kam
    Edited by: kam555 on Jan 10, 2010 11:41 PM

    Please refrain from [posting duplicates|http://forums.oracle.com/forums/thread.jspa?threadID=1010735&tstart=0] and mark this post with IGNORE in the subject.

  • SELECT seems to ignore a space

    Hi:
    I'm hoping someone can shed some light on this strange case.
    A table is being loaded from a 3-party source. One column is a 5-digit identifier. For whatever reason a space is coming in as a 6th character. Let's ignore the fact that we can fix the problem on the in-coming load.
    I know the field has 6 chars: the LENGTH(identifier) returns 6. The ASCII(SUBSTR(identifier,6,1)) returns 32.
    The strange thing is, in TOAD if I SELECT from the table where identifier = '12345' (no space at the end), I receive records. It seems that there's an automatic TRIM being applied.
    I understand there are several ways around the problem of the extra space, but I'm curious about what I'm seeing.
    Any thoughts?
    Thanks.

    mchrist wrote:
    A table is being loaded from a 3-party source. One column is a 5-digit identifier. For whatever reason a space is coming in as a 6th character. Well, most likely column you use to store 5-digit identifier is declared as string. You did not explain how data is loaded, but most likely there is number to string conversion involved using TO_CHAR. By default, TO_CHAR number conversion to string result will have minus sign on the left for negative numbers or space for 0 and positive numbers. You need to use FM format modifier to remove that space:
    SQL> select '[' || to_char(12345,'99999') || ']' from dual
      2  /
    '['||TO_
    [ 12345]
    SQL> select '[' || to_char(12345,'FM99999') || ']' from dual
      2  /
    '['||TO_
    [12345]
    SQL>  Also, I assume you always want 5 character identifier string. Then you need to use 0 format element, not 9:
    SQL> select '[' || to_char(123,'FM99999') || ']' from dual
      2  /
    '['||TO_
    [123]
    SQL> select '[' || to_char(123,'FM00000') || ']' from dual
      2  /
    '['||TO_
    [00123]
    SQL> SY.
    P.S. Correct solution, IMHO, would be declaring column as NUMBER(5).

  • I can't get video to loop exporting an OAM file and importing into Muse. Seems to ignore all triggers.

    I've tried everything I can think of, but triggers are ignored. I've tested in Safari and Firefox so far. Tested in Muse Preview. Tested in An. Nothing is paying attention to the trigger I have set up.
    I've used a label to get it to loop back to the beginning. I've used zero to get it to loop back. I've searched the web, YouTube, and here looking for answer none will fix this. No errors in the error box BTW. Been back to Lynda.com re-re-viewing videos. All seems fine, but it isn't.
    Website is here: http://www.moviesandfx.com. The animation on the home page is what I want to loop. It plays okay in Safari, has mixed results in Firefox. Not sure yet about IE, I'm on a Mac.
    I'd love to hear ideas to fix this. The workflow is An—>OAM export—>Muse "place"—>Muse publish to ftp.
    Thank you,
    Dan

    I'm having the same problem. I inserted the oam in Dreamweaver, where it loops forever in split and live view. As soon as I view it in a browser (Safari and Chrome), the looping is disabled. There are no console errors.

  • EA1 - SQL Formatter issues (JOINs and GROUPs and ORDER BY oh my ;)

    Great job with improving the SQL Formatter, but it still has some bugs that need to be worked out.
    The key words JOIN and it's modifiers INNER, LEFT, RIGHT and FULL OUTER are not recognized as master key words. As such they end up flush against the left margin Also when GROUP BY and/or ORDER BY key words are present in an outer most select statement the other key words are not indented far enough to be right aligned with the end of the word BY and are indented too far to be right aligned with the word GROUP or ORDER. In sub queries, GROUP and ORDER BY are correctly right aligned with their respective SELECT statements.

    We're picking up and collating the Formatter issues. I'll add these.
    Specific bug for these #7013462
    Sue

  • J2EE Agent seems to ignore scenario parameters

    Hi all,
    I'd appreciate if anybody can give me some hints on how to diagnose/solve this problem. I am running a scenario for a package with interfaces, procedures, etc.
    When the scenario is run from the Linux command line, it works ok. If the same scenario is called via the OdiInvoke web service, it seems to be ignoring the parameters passed in the call. For example, when called like this:
    /oracle/app/product/midtier/OraODI/oracledi/agent/bin/startscen.sh "SENDDATATOTARGET" 006 TESTING 5 \
    -NAME="OracleDIAgent" \
    -SESSION_NAME="Inbound" \
    "AMRINBOUND1.TransferNoReads=F"
    ... it works correctly (The AMRINBOUND1.TransferNoReads=F parameter is interpreted correctly). But if the same scenario is called via a service call like:
    <InvokeODIScenario_invokeStartScen_InputVariable>
    <part name="part1">
    <ns0:OdiStartScenRequest>
    <Credentials>
    <OdiUser>supervisorusername</OdiUser>
    <OdiPassword>supervisorpwd</OdiPassword>
    <WorkRepository>WL_WORKREP1</WorkRepository>
    </Credentials>
    <Request>
    <ScenarioName>SENDDATATOTARGET</ScenarioName>
    <ScenarioVersion>006</ScenarioVersion>
    <Context>TESTING</Context>
    <Synchronous>true()</Synchronous>
    <SessionName>Inbound</SessionName>
    <Variables>
    <Name>AMRINBOUND1.TransferNoReads</Name>
    <Value>F</Value>
    </Variables>
    <LogLevel>5</LogLevel>
    </Request>
    </ns0:OdiStartScenRequest>
    </part>
    </InvokeODIScenario_invokeStartScen_InputVariable>
    ...the parameter AMRINBOUND1.TransferNoReads is ignored and its default value is used. Please note that it's the same scenario being executed by the same agent, the only change is in the way the scenario is started (command line vs. web service call); so the problem must be in the web service call.
    This is running on ODI 11.1.1.5.1 and Oracle Weblogic 11.1.1.5.0 for Linux x64.
    Thanks for your replies!
    Jose
    Edited by: JR on Jan 10, 2012 6:01 PM
    Edited by: JR on Jan 10, 2012 6:04 PM

    Here's a solution:
    Instead of assigning the ODI parameters individually through BPEL assign operations, put the whole input to the startSCenRequest service call in an XML fragment. Different values for the ODI input parameters would require different XML fragments. Assigning the <Variables><Name></Name><Value></Value></Variables> elements through assign operations does not work.
    for example:
    <switch name="Switch1">
    <case condition="bpws:getVariableData('inputVariable','payload','/client:process/client:input') = *'F'* ">
    <assign name="prepareInputParams">
    <copy>
    <from><ns0:OdiStartScenRequest xmlns:ns0="xmlns.oracle.com/odi/OdiInvoke/">
    <Credentials xmlns="">
    <OdiUser>SUPERVISOR</OdiUser>
    <OdiPassword>#####</OdiPassword>
    <WorkRepository>WL_WORKREP1</WorkRepository>
    </Credentials>
    <Request xmlns="">
    <ScenarioName>PARAMETERTEST</ScenarioName>
    <ScenarioVersion>001</ScenarioVersion>
    <Context>DEVELOPMENT</Context>
    <Synchronous>true</Synchronous>
    <SessionName>Parameter Test</SessionName>
    <Keywords>WebService</Keywords>
    <Variables>
    <Name>AMRINBOUND1.RunStatus</Name>
    <Value>0</Value>
    </Variables>
    <Variables>
    <Name>AMRINBOUND1.AMRInbound2TransferNoReads</Name>
    *<Value>F</Value>*
    </Variables>
    <LogLevel>5</LogLevel>
    </Request>
    </ns0:OdiStartScenRequest></from>
    <to variable="InvokeODIScenario_invokeStartScen_InputVariable"
    part="part1"/>
    </copy>
    </assign>
    </case>
    <otherwise>
    <assign name="prepareInput2">
    <copy>
    <from><ns0:OdiStartScenRequest xmlns:ns0="xmlns.oracle.com/odi/OdiInvoke/">
    <Credentials xmlns="">
    <OdiUser>SUPERVISOR</OdiUser>
    <OdiPassword>#####</OdiPassword>
    <WorkRepository>WL_WORKREP1</WorkRepository>
    </Credentials>
    <Request xmlns="">
    <ScenarioName>PARAMETERTEST</ScenarioName>
    <ScenarioVersion>001</ScenarioVersion>
    <Context>DEVELOPMENT</Context>
    <Synchronous>true</Synchronous>
    <SessionName>Parameter Test</SessionName>
    <Keywords>WebService</Keywords>
    <Variables>
    <Name>AMRINBOUND1.RunStatus</Name>
    <Value>0</Value>
    </Variables>
    <Variables>
    <Name>AMRINBOUND1.AMRInbound2TransferNoReads</Name>
    *<Value>T</Value>*
    </Variables>
    <LogLevel>5</LogLevel>
    </Request>
    </ns0:OdiStartScenRequest></from>
    <to variable="InvokeODIScenario_invokeStartScen_InputVariable"
    part="part1"/>
    </copy>
    </assign>
    </otherwise>
    </switch>

  • Pacman seems to ignore unstable

    The title says it all I think. Every time I pacman -Syu it's gives me the following output, which seems to be fine at first glance, but clearly misses the unstable repository getting synced.
    [root@Lohengrin /]# pacman -Syu
    :: Synchronizing package databases...
    current is up to date
    extra is up to date
    community is up to date
    :: Starting full system upgrade...
    local database is up to date
    My pacman.conf
    # /etc/pacman.conf
    # See the pacman manpage for option directives
    # GENERAL OPTIONS
    [options]
    LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    #[testing]
    #Include = /etc/pacman.d/testing
    [current]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/current
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/extra
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/community
    #[unstable]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/unstable
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    So, what's up ? Pacman 2 never exhibited this strange behaviour (FYI).

    yes, in the actual config, it adds the unstable mirrors in the [community] section.
    Fortunately, I guess it starts using the first mirrors, so it uses the community mirrors for the community repos, and not the unstable ones
    Maybe there should be some checks for that, if it's possible.

  • Aperture seems to ignore edge sharpening on export

    I like this edge sharpening tool in Aperture.
    However when I export a picture the export process seems to simply ignore my edge sharpening I made. This is even true when I use the "edit with ..." menu.
    Edge sharpening seems also be ignored while printing pictures.
    I must say that edge sharpening is quit useless if I can't see the effect in exported or printed versions

    jonesmc wrote:
    When you're exporting, are you choosing to export "Version"? Otherwise, you're just exporting the original.
    I export Versions of corse.
    I also think that this is a bug - and a very important one.

  • Discoverer ignoring Order By

    Hi all,
    I have defined an order by rownum in a database view but when I report off this in Discoverer Plus the order by is ignored. Instead it decides to do a default sort on the first column containing text.
    Is this expected behaviour and is there anyway I can get Discoverer to do the order by defined on the database?
    Thanks.

    I think I may have answered my own question.
    The second column in my query was doing a COUNT (*) yet Discoverer was defaulting this to a SUM aggregate type. I changed this to do no default aggregations in Discoverer Administrator and it looks to have worked.
    It is now sorting just fine.
    Edited by: Brian1982 on Sep 20, 2012 3:14 PM

  • AGO function seems to ignore filter

    I have a column that uses the ago function to calculate the value from a week ago for certain hours that are considered "high traffic". I'm trying to get the average of these high traffic hours this week and last week, but the ago function seems to be ignoring the ON/OFF Peak filter and is returning the average for all hours, see formula below:
    AGO(FILTER("- DA_LMP_prelim"."DA LMP" USING ("Time_dimension"."On off peak" = 'ON')) , "Time_dimension"."Time_dimensionDim"."Week", 1)
    Is it documented somewhere that AGO will "ignore" filter functions?

    Trouble shoot in this way:
    1.What level is your AGO? Is it YearAGO,Month AGO or weekAGO? -- Go to RPD - AGO Columns Check the fx..what is the level?
    2. You have Calendar prompt on date. which means you are looking for one day AGO value. in that case AGO function should be at daylevel.
    3. What are the columns in your report?

  • SQL Server JDBC Must read columns in order?

    Is this some kind of sick joke?
    If I use rs.getString() to retrieve columns by name from the data base, they must be retrieved exactly in the order that they appear in the actual database, or else an error will result.
    Someone please tell me that this is not the case.

    Some JDBC drivers make that restriction. Apparently the JDBC specification allows them to do so. So, it's possible that the SQL Server driver does that, and your post implies that it does.

  • Systemd services seem to ignore "After=network.target" with NM

    Hey, I've been having some trouble with services that require the network to be up running too early in the boot sequence. I'm running NetworkManager.
    Looking at the journal shows them running before networkmanager starts the interfaces, and failing since there's no interface available yet.
    For now I've discovered that running "systemctl enable NetworkManager-wait-online.service" seems to have solved it, but is this how it is supposed to work or is something going wrong?

    MisterAnderson wrote:The service isn't exiting, it's that other services are starting whilst NetworkManager is starting, so the interfaces are initialised and named yet. After=network.target appears to only make other services wait until NetworkManager starts, not until it's finished.
    OK. I guess the problem is that NM.service is Type=dbus. so systemd doesn't wait on it to finish but only for the dbus socket to appear (?). That's why you have to insert an additional ordering point NM-online.service which delays the start of network.target. I wonder though if you can avoid that by using type-forking and removing "--no-daemon" argument...

Maybe you are looking for

  • How To Add Text Outside Of The Spread Sheet Grid?

    The data in the SS has been entered and saved. I want to add text below the grid as there is room to do so.

  • Everything seems to be going wrong...

    OK: Here's what's up: I've owned my iPod 5-gen for about a year now, no problem, works just fine. This was until I started to have this pesky problem in which purchased songs wouldn't play, they'd just be skipped through. There's a helpful forum on i

  • How to NOT display header details in every page when printed with PLD

    Hi All I am printing a report of all related activities of a business partner using PLD.  in the printout the header details of business partner such as name, phone details are printing in every page along with contents.  how to avoid this situation

  • Transport mechanism?

    hi, can any one send me step-by-step method to transport mech in xi using file level and cms level

  • Client tools Installation vallidation

    Hi guys, In my company they newly installed BODS 3.2 SP3...Iam new to admin...Now they are asking to write a validation document to check all users are gud with all installation(I mean developers). we installed BODS designer, DB2, Oracle database and