How does whitespace or null values or characters set effect set in the query?

Hi all

I have a question about client side Oracle database tools. I have Oracle 11g installed on the server and I use PL/SQL developer tool to retrieve information from the server and then I copy paste this query in PL SQL Developer my company built in box of function of the application that executes the same query as client tools and the results.

When I write the request by spaces of the Tools client-side IE the PL/SQL developer tool and copy paste at my request of builtin company gives slow down me execution, but if I remove the white of the query space by copying the application of PL/SQL developer(client side tool) to Notepad first and then copy back at my request and gives me a faster execution.

For example:

Original Request: with whitespace

Select

*

Of

Double

Ask without spaces faster tracks:

Select * twice;

I want to the reason behind this slow execution and also if you could explain in detail would be great that I am no expert oracle.

Also, I wanted to know that character set parameters from the client side tools slow running query? As I copy the request of PL/SQL developer tool

Thank you

HP

HP, I have has been suggest you determine if the difference in performance is due to how the application prepares and processes SQL or if the difference is in Oracle.  If you can duplicate the issue in Oracle using SQLPLus then you can use the Oracle tools such as autotrace, SQL, trace etc... to determine how Oracle handles each request.  On the other hand if the time of execution in SQLPLus is the same then you know that the problem lies in the application.  Depending on whether you have access to the source you can or will not be able to track down the issue and resolve it.  Otherwise always paste the capture into the plan text and edit it to remove the unnecessary lines before copying them the text into your application tool.

- -

HTH - Mark D Powell.

Tags: Database

Similar Questions

  • full outer join: how to get without null values?

    full outer join: how to get without null values?

    Hello

    Please go well this url

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:999478429860455:P11_QUESTION_ID:6585774577187

    Thank you
    Prakash P

  • TMS implemented at level 14.1.1 to 'Get SNMP community name' column does not allow NULL values.

    Hello!

    I had a TMS12.2 (via 12.6 and 13.2) to TMS14.1.1 upgrade.

    When I go to: systems > overview of the system and select all systems and all the settings, I get an error message.

    An order referred before you have a problem with the values of ip box.

    Is it possible that 14.1 upgrade does not correctly check if the empty database fields?

    How I'll fix it, did an upgrade using 14.2, or is it a sql command that must be executed

    (or some values to be defined)?

    Error details:

    Server Error in '/tms' Application.

    --------------------------------------------------------------------------------

    Column 'SNMP Get Community Name' does not allow nulls.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Data.NoNullAllowedException: Column 'SNMP Get Community Name' does not allow nulls.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [NoNullAllowedException: Column 'SNMP Get Community Name' does not allow nulls.]

    System.Data.DataColumn.CheckNullable(DataRow row) +2131738

    System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent) +5073836

    System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean suppressEnsurePropertyChanged, Int32 position, Boolean fireEvent, Exception& deferredException) +195

    System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID, Int32 pos, Boolean fireEvent) +344

    Tandberg.TMS.UI.SystemOverview.ViewSystemOverviewGrid.CreateDataSource(EmbedLinksSetting embedLinks) +6856

    Tandberg.TMS.UI.SystemOverview.ViewSystemOverviewGrid.DataBindToTMSGrid(EmbedLinksSetting embedLinksSetting) +171

    Tandberg.TMS.UI.SystemOverview.SystemOverviewView.SystemOverviewViewDataBind(EmbedLinksSetting embedLinksSetting) +196

    Tandberg.TMS.UI.SystemOverview.SystemOverviewHost.ShowModule(ModuleActions moduleAction) +115

    Tandberg.TMS.UI.SystemOverview.SystemOverviewHost.systemOverviewFilter_ModuleAction(Object sender, ModuleControlEventArgs e) +43

    Tandberg.TMS.Service.Navigation.TMSModuleBase.FireModuleEvent(ModuleControlEventArgs e) +22

    Tandberg.TMS.Service.Navigation.TMSModuleBase.FireViewAction() +34

    Tandberg.TMS.UI.SystemOverview.SystemOverviewFilter.viewButton_Click(Object sender, EventArgs e) +65

    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118

    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112

    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10

    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36

    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

    Hi Martin,

    You see flaws CSCue22625. A fix was published in TMS 14.2.

    Kind regards

    Kjetil

  • How to replace a. null value in obiee report

    Hi gurus,

    In a single column, we get. as the data, how to replace. with the null value

    Please provide your inputs

    Thank you for your time in advance

    Try it out below mentioned formula.

    REPLACE ('service request'. "RS #"(, '.', '') "

  • return type is not specified... return type so how you return a null value

    My problem seems to be when no results are returned, I would return the same type of object, but as a null value, or almost, I think that's what I would do. If someone could please throw some light on how I should return a null object I would be very grateful.

    I should note I've already tried to return entityNew ("someObj") and which resulted also in failure.

    <!--get some object-->

    < cffunction name = "getSomeObject" returntype = "someObj" = "remote access" >

    < name cfargument = "client_key" required = "true" type = "string" >

    < name cfargument = "customer_id" type = "string" required = "true" / >

    < cfscript >

    value = [];

    value = entityload ("une_table", {client_key = "#client_key #", customer_id = "#customer_id #"});

    If (ArrayLen (value) == 1)

    {

    Returns the value [1];

    }

    return;

    < / cfscript >

    < / cffunction >

    < / cfproperty >

    Thank you in advance!

    You do something like ?

    If so, then again CF has no concept of null so you cannot assign to a variable CF.  If you return null, first change your attribute of the returntype to "any" and return it directly,

  • How to return a NULL value in LOV and insert into a field of allowingNULL number 4?

    Hello

    I have the following LOV and the return_value is PeopleId which is number 4, allowing NULL. And the LOV options are as follows:

    LOV named--> select named LOV-
    Show Extra values-> no
    Dynamic translation-> - untranslated-
    The number of columns - > 1
    Display Null-> Yes
    Null-> - Select value-
    Return NULL,-> NULL value
    ^^^^^^^^^^^^^^^

    ----------------

    List of values definition:
    Select Lname | ', ' || Fname | ' ' || Mname as display_value, PeopleId as return_value
    of PEOPLETB
    where PEOPLETYPE ('i', 'HERE', 'IF')
    order by 1
    --------------

    Given that PoepleId is a number 4, allowing NULL. I want a NULL value will be inserted, if the user does not select anything in the drop-down list. It seems that I would get "ORA-01722: invalid number" error when the PeopleId msg is null (ie: user doesn't have a selection). What is the good 'return Null value' I need to put it in? I tried "NULL" (see above) or nothing, it still does not work.

    Any suggestions?

    Thank you very much
    Helen

    Hello Helen,.

    You have found one of the many sources of my frustration with APEX. Here's what I do:

    In the definition of the element in your page, go to the LOV part and implemented like this:

    Display Extra values: Yes a dynamic conversion (I ignore this)
    Number of columns: 1 display Null: No.
    Display null value: (leave blank) return Null value: (leave blank)

    An empty row is displayed when the user comes first to the screen. If they do NOT select the drop-down list, the value is left empty (null).

    If anyone has a better way, I will definitely experiment with it.

    Don.

  • How to deal with NULL values in regexp_substr?

    DECLARE
       TYPE t_rec IS TABLE OF VARCHAR2(200);
    
    /* case 1 */
       l_input    varchar2(100) := '28/09/2009 00:00:00|AFRISB|FC|773|7|17|512|76|60|U|';
    /* case 2 */
    --   l_input    VARCHAR2(100) := '06/10/2009 00:00:00|PDIERR|PS|999|0|1|0|0||U|';
       l_bars     PLS_INTEGER;
       l_fields   PLS_INTEGER;
       l_rec      t_rec := t_rec();
    BEGIN
       l_bars     := regexp_count(l_input, '\|', 1, 'i');
       l_fields   := l_bars + 1;
    
       FOR fld IN 1 .. l_fields
       LOOP
          l_rec.EXTEND();
    
          l_rec(fld)   := REGEXP_SUBSTR(l_input, '[^|]+', 1, fld);
          dbms_output.put_line('Fld ' || fld || ': ' || l_rec(fld));
       END LOOP;
    END;
    

    The above code is that I break a string of pipe delimited into individual elements.

    Looking at the case 1 in the code, the output displays each field correctly. However in case 2, the 9th field is null (nothing between the two tubes) so the regexp_substr 19 online is assigning the 'U' in the box 10 as a field 9.

    What should I do to get the line 19 to correctly assign a NULL value to field 9?

    Information about the version of the database are:

    BANNER

    --------------------------------------------------------------------------------

    12 c Oracle database Release 12.1.0.1.0 - 64 bit Production
    PL/SQL Release 12.1.0.1.0 - Production
    CORE Production 12.1.0.1.0
    AMT for 64-bit Windows: Version 12.1.0.1.0 - Production

    NLSRTL Version 12.1.0.1.0 - Production

    Thank you

    Steve

    Hello

    If you want to use regexes, so instead of

    REGEXP_SUBSTR (l_input, "[^ |]") +', 1, fld);

    use

    REGEXP_SUBSTR (l_input

    , '([^|] *)(\|| $)'

    -P

    fld

    NULL

    -P

    );

    . The 6th argument to REGEXP_SUBSTR is a new feature of Oracle 11.1.  It's kind of a back reference. Normally, REGEXP_SUBSTR returns the substring that matches the pattern in the 2nd argument.  If the 6th argument is 1, however, REGEXP_SUBSTR returns only the part of the pattern between the 1st on the left '(' et sa correspondance)."

  • SQL query takes too long to run (1 h 25 min)... pls help how to set up the query.

    Hello

    Could someone please help how to tune the query as its takes a long time to retrieve the results.

    Select

    col1,

    col2,

    col3,

    COL4,

    col5,

    col6,

    col7,

    COL8,

    col9,

    col10,

    Col11,

    col12,

    Sum (volume1),

    Sum (volume2),

    Sum (volume3),

    Sum (volume4),

    Sum (volume5),

    Sum (volume6),

    Sum (volume7),

    Sum (volume8),

    Sum (volume9),

    Sum (volume10),

    Sum (volume11),

    Sum (volume12),

    Sum (volume13),

    Sum (volume14),

    Sum (volume15),

    Sum (volume16),

    Sum (volume17),

    Sum (Volume18),

    Sum (volume19),

    Sum (volume20),

    Sum (rate1),

    Sum (rate2),

    Sum (rate3),

    Sum (rate4),

    Sum (rate5),

    Sum (rate6),

    Sum (rate7),

    Sum (rate8),

    Sum (rate9),

    Sum (rate10),

    Sum (rate11),

    Sum (rate12),

    Sum (rate13),

    Sum (rate14),

    Sum (rate15),

    Sum (rate16),

    Sum (rate17),

    Sum (rate18)

    Sum (rate19),

    Sum (rate20)

    Of

    Table 1 - 13, 25, 99, 400 records

    Table2 - 13, 45, 1000 records

    Table 3 - 4, 50, 000 records

    Table 4 - 1,00,000 records

    table5 - 30 000 records

    where tabl1.col1 = table2.col2,

    Table1.Col1 = table3.col1.

    table2.col2 = table3.col2...

    Group

    Sum (volume1),

    Sum (volume2),

    Sum (volume3),

    Sum (volume4),

    Sum (volume5),

    Sum (volume6),

    Sum (volume7),

    Sum (volume8),

    Sum (volume9),

    Sum (volume10),

    Sum (volume11),

    Sum (volume12),

    Sum (volume13),

    Sum (volume14),

    Sum (volume15),

    Sum (volume16),

    Sum (volume17),

    Sum (Volume18),

    Sum (volume19),

    Sum (volume20),

    Sum (rate1),

    Sum (rate2),

    Sum (rate3),

    Sum (rate4),

    Sum (rate5),

    Sum (rate6),

    Sum (rate7),

    Sum (rate8),

    Sum (rate9),

    Sum (rate10),

    Sum (rate11),

    Sum (rate12),

    Sum (rate13),

    Sum (rate14),

    Sum (rate15),

    Sum (rate16),

    Sum (rate17),

    Sum (rate18)

    Sum (rate19),

    Sum (rate20)

    Thank you

    Prasad.

    > Could someone please help how to tune the query as its takes a long time to retrieve the results.

    The query you posted is obviously fake.

    If you ask to give us a request that you do not post and we cannot see.

    For real?

  • How to search by null value for the numeric values in the filter of the fable in adf 11g?

    Method of substitution of applyViewCriteria?
    But what to put as the value for ViewCriteriaRow?

    Hello

    You can add following code to your actionListener or any method call when you want to perform this operation:

    ViewObject view = getViewObject();
    ViewCriteria criteria = view.createViewCriteria();
    
    ViewCriteriaRow row = criteria.createViewCriteriaRow();
    row.setAttribute(attrName, "IS NULL");
    
    criteria.addElement(row);
    view.applyViewCriteria(criteria);
    

    ~ Ahmed

  • How can I pass a value to a variable binding in a report query?

    I did a query of report to print a PDF report, with a dinamyc source query that has a connection variable, like this:

    SELECT EMPNO, EMPNAME, EMPDEPT

    FROM EMP

    WHERE EMPNO =: PARAMETER;

    I want to call the report print directly from a page, by using the url print showed by apex:

    f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = MYREPORT

    How can I pass the value of the variable binding: PARAMETER using this URL?

    I don't think you can use the url parameter passes in a report query.

    the binding variable: PARAMETER must be a page element or an element of the application.

    use the "include session information and application" in the defination of report query to bind the value when the report is run

  • How does windows determine when "disable acceleration in games" for control of the mouse?

    I have been using a program called Evernote.  I was faced with a problem with the mouse while using this program on several computers.  The problem is that the window of Evernote is active the mouse acceleration seems to stop working.  When I uncheck the box that says "disable acceleration in games" and then the mouse works normally with the acceleration settings that I chose.  It is as if Windows recognizes Evernote as a game and it is to disable acceleration as it is supposed to do... EverNote is not a game.

    The mouse that I use is a Logitech MX 500 and a MX510 and both use the Logitech mouseware... not the setpoint drivers.  Others with the setpoint drivers have noticed the same problem.

    My belief is that windows is disabling acceleration because I have the box ticked to turn off in games and for some reason any he applies this setting in Evernote.  I want to use acceleration outside the games then unchecking the box is NOT an option.  What determines when the parameter to "disable acceleration in games" is applied to the control of the mouse?

    It is a Windows problem, a Logitech problem or a problem of Evernote.  These more to Evernote sees no problem at their end, assuming that is correct that leaves Windows and Logitech.

    Once again, where to find?  What determines when the parameter to "disable acceleration in games" is applied to the control of the mouse?

    I have a post on the forum of Evernote, which is here:

    http://discussion.EverNote.com/topic/16513-Logitech-mouse-slows-down-with-active-EverNote-window/

    Hello

    You can uninstall the Logitech mouse software and let Windows install the drivers for the device and check if the problem still persists.

    To uninstall the Logitech software, you can see the article in the Microsoft Knowledge Base:

    How to change or remove a program in Windows XP

    http://support.Microsoft.com/kb/307895

    I hope this helps.

  • How ins or upd multiple values in a record of diff of the fields by using the cursor

    Hai All

    I need to insert or update or multiple values in a single diff of one field records to another table.

    Table 1 has 3 fields

    Bartime bardate barcode

    02/01/10 0011, 0815

    02/01/10 0022, 0820

    02/01/10 0011, 1130

    02/01/10 0022, 1145

    02/01/10 0011, 1230

    02/01/10 0022, 1235

    02/01/10 0011, 1645

    02/01/10 0022, 1650


    These are the times that arrives at 0815 and pauses at 1130 and arrives at 12: 30 a.m. and coming home at 4:45 pm
    These table I have to insert into another table called table2
    and the fields are bar codes, date, intrinsically timein, introut, tiomout

    And the output you want to like this

    barcode timein intrinsically introut timeout date
    0011 0815 1130 1230 1645 02/01/10

    0022 0820 1145 1235 1650 02/01/10

    If all give some good answer that it will be help full...

    Thanks and greetings

    Srikkanth.M

    Hi Srikanth,

    1. first create a datablock (better do instead of the table because its only for querying details of table 1 for the period) with table1 as table base and better use order by clause in form as "order to barcode, date, bartime.

    2. create a second datablock with table2 and get this rank on the two table (second block as base table, because here, you should insert/update)

    now on the screen you can see all the data in 2 tables.

    3. fix the button of some process.

    a time-but-press

    Loop

    1 block of travel and take a line

    Find the same block 2

    If code in bars-avail so
    -you want to update
    on the other
    -you want to insert

    end if;

    end of loop

    and 2nd block will be updated / inserted as u desire, and finally, you can save the second block.

    Iqbal

  • HOW DOES A CONTACT ADOBE... SERIOUSLY... THE CUSTOMER SUPPORT IS TERRIBLE...

    ALTHOUGH THIS HAS BEEN A TASK...

    Hey Bauer,

    You can reach the Service Adobe customer (http://helpx.adobe.com/contact.html )

    Phone numbers are listed here: http://www.adobe.com/uk/elicensing/licensemanagement/alm/contact.html

    You can even join our chat support at http://adobe.ly/yxj0t6

  • Using the values of default setting with the functions or procedures?

    If you have a procedure or a function that has DEFAULT values reported for some parameters How do you call this function or procedure when you want to use some of the default values? I tried...

    myProcedure(202,,);
    myProcedure (202, ",");
    myProcedure(202,null,null);
    myProcedure (job_id = 202);
    myProcedure (job_id = > 202);

    None of the above worked.

    PROCEDURE add_job (job_id IN jobs.job_id%TYPE
    job_loc IN jobs.job_location%TYPE DEFAULT 145
    mgr_id IN DEFAULT jobs.mgr_id%TYPE 30
    );

    Thank you.

    EDIT: I will say that it is a simplified example. Imagine you please a parameter list much more great and perhaps half having DEFAULT values. Thank you.

    PROCEDURE myProcedure (job_id IN jobs.job_id%TYPE
    job_loc IN jobs.job_location%TYPE DEFAULT 145
    mgr_id IN DEFAULT jobs.mgr_id%TYPE 30
    init_id IN jobs.init_id%TYPE
    sal_id IN jobs.sal_id%TYPE 100 by DEFAULT
    , clock_id IN DEFAULT jobs.clock_id%TYPE "A".
    shift_id IN jobs.shift_id%TYPE
    , lot_id IN DEFAULT jobs.lot_id%TYPE «BACK»
    );

    Published by: davejjj on March 20, 2013 16:47

    Hi davejjj,

    Here is an example of calling your myprocedure. This example uses default values for sal_id, clock_id, lot_id

    declare
      procedure myprocedure (
        job_id     in jobs.job_id%type,
        job_loc    in jobs.job_location%type default 145,
        mgr_id     in jobs.mgr_id%type default 30,
        init_id    in jobs.init_id%type,
        sal_id     in jobs.sal_id%type default 100,
        clock_id   in jobs.clock_id%type default 'A',
        shift_id   in jobs.shift_id%type,
        lot_id     in jobs.lot_id%type default 'BACK'
      );
    begin
      myprocedure (job_id     => your_job_id,
                   job_loc    => your_job_loc,
                   mgr_id     => your_mgr_id,
                   init_id    => null,
                   shift_id   => your_shift_id
                  );
    end;
    /
    

    This, however, will NOT WORK, because myprocedure doesn't have a default value declared for init_id

    begin
      myprocedure (job_id     => your_job_id,
                   job_loc    => your_job_loc,
                   mgr_id     => your_mgr_id,
                   shift_id   => your_shift_id
                  );
    end;
    /
    

    Concerning
    Peter

  • How to animate keyframes, which I copied into After Effects to mirror the same movement as another series of keyframes?

    Screen Shot 2015-12-12 at 3.39.03 PM.pngLayer of biker to right leg. Screen Shot 2015-12-12 at 4.14.56 PM.png Biker body layer.

    You add an expression to the property that you want to order by selecting the property and then by holding down the Alt/Option key. Here are the basics: Adobe - search: the expressions. Learn more by typing key words such as expressions in the field search for help in the upper right corner of the AE.

    If you want keyframes in a single layer to match the keyframes in another, then you can link the properties with a simple expression that is created by dragging the pickwhip to layer property from the slave to copy the master layer that you want to track. This example would bind the rotation of a layer to another rotation. The second expression would offset values and is an example of how you define in your animation cycle to the top of the opposite leg. You just know how many images there are in the cycle. Just go to the last image and read the number of frame. It's easier if you have the calendar set up to read in frames. Change the display time by holding down the Ctrl/Cmnd key by clicking on the time indicator.

    If you want to have the slave shift layer in time, then you add an argument valueAtTime expression as in this example using the rotation property of the main layer:

    r = thisComp.layer("Master").transform.rotation;

    offset = r.valueAtTime (time +. 5)

    This assumes that your cycle of keyframes is 1/2 second.

    If you are more comfortable working with frames in seconds and then you change the expression like this assuming that the number of images in your game to keyframe is 15:

    TF = 15; Number of the frame in the last keyframe in the cycle

    r = thisComp.layer("Master").transform.rotation;

    TTF = tf/(1/thisComp.frameDuration);

    offset = r.valueAtTime (time + ttf)

    Here is an example of pin simple puppet:. Dropbox - Expression leads to foot Cycle CC 12 aep (If your browser adds a .txt extension, simply remove it and you should be able to load the project 2012 CC and later). I arranged the workspace so that it was easy to see what I had done. Given that I've created a loop instead of a ping-pong of the keyframe in the middle of the cycle was used as at the beginning. Have fun...

Maybe you are looking for

  • My iPod Classic 160 GB is not connecting to my PC.

    I reformatted and restored but he barely stayed in long enough to do these things.Help is appreciated.Kind regards.

  • Card PCMCIA Satellite S1800 CAP is missing

    Help, please!After the purchase of a used Satellite S1800-314 (it works well), I wanted to connect into my card PCMCIA network RJ 45. But this was not possible. On the outside, it looks OK, but there is no cap on the inside.So please, what should I d

  • internal synchronization 4072

    Does anyone know what that all internal synchronization aspects that must be taken into consideration for a PXI-4072 and what are the values?  I found a white paper (measurement of the multimeter digital Cycle) which tells the various stages in this

  • SBS2008 - need to access old emails

    Hello I installed a SBS2008 several years ago. Before that, we were using an external e-mail server and access our mail through pop. All mail was stored locally in outlook, which worked very well. Emails back 10 years can have access. Now, the back f

  • HP Pavilion n031se-15 Notebook PC - can I replace the optical drive on my own?

    I would be well capable of replacing the existing with a new dvd rw drive?