Read the index for performance data

Hello.
Advice needed.
I have the table as
create table test (a varchar2 (20), ch. varchar2 (20), b varchar2 (20), d...)

I have indexes for the column "a".
Now when I'm data select 1st three columns (a, b, c) by 'a' of the criteria (select a, b, c fom test where a like '% aa') I'll have the execution of plan:

1 scan interval Index
2. access by rowid

Now, I want to choose without 2nd operation. So I'm adding complex index for a, b, c.
After that this select (select a, b, c fom test where a like '% aa') will read the index data.

The question: is it possible to win some perfomance win this way? I mean, it is possible that the research by complex index (a, b, c) will take longer than the search by simple index (a) + access by rowid?

Tags: Database

Similar Questions

  • How do I deselect the option "Submit-performance data" in XP, since none of these items under Options/preferences of Firefox?

    Having recently updated Firefox to 7.0.1 (x 86 en - GB), I was offered the opportunity to submit performance data. Before reading the "Other Info" bit, I clicked on the Yes"" button. When you read the bit of info 'Other Info', I was directed to:
    "
    (Also known as the telemetry) usage statistics. Starting with version 7, Firefox includes a feature that is disabled by default to send to non-personal use Mozilla, performance and statistical reactivity on the interface features user, memory and hardware configuration. The only potentially personal data to Mozilla when this feature has been activated is IP addresses. Usage statistics are transmitted using SSL (a method of protection of data in transit) and help us improve future versions of Firefox. Once sent to Mozilla, statistical usage are stored in form aggregated and made available to a wide range of developers, including Mozilla employees and public contributors. Once this feature is enabled, users can disable in Firefox Options/preferences. Simply uncheck the item "Submit-performance data.
    "
    However, I have no option under Tools/Options, on my XP, home edition, Service Pack 3, netbook.
    Thanks for all the help and all your efforts to make Mozilla exists.

    See tools > Options > advanced > general: system default: 'send performance data '.

  • How to read the two columns of data from the Port series

    Hello

    I'm reading two columns of data from the serial port.

    Example:

    52439 52430

    52440 52437

    52209 52214

    51065 51070

    52206 52390

    I use the serial of Visa service and I can read the first column of data from the serial port, but I can't understand how to read the second column.

    I want to both sets of chart data.

    I enclose my VI.

    Thank you for your help.

    The analysis of string function takes a "Format string" on top (with the right button of the function and choose Help, which explains all the entries).  In particular, you can say 'Give me two numbers separated by a tab' and the output will be two numbers (whole or floating, depending on the chosen format).  In particular, %d\t%d specifies a decimal integer, , whole decimal.

  • Active Services Web Directory has encountered an error when reading the parameters for the specified Active Directory Lightweight Directory Services instance

    VCenter Server 4.1, I installed it on a physical machine. This is the error message that appears whenever I try to follow what is happening every 1 min event viewer.

    Error:

    role for users: log name: Active Directory Web Services

    Source: ADWS

    Date: 2010-07-28 15:55:21

    Event ID: 1209

    Task category: Instance ADWS events

    Level: WARNING

    Keywords: Classic

    User: n/a

    Computer: wwubmw.williamwoods.local

    Description:

    Services Web Active Directory encountered an error when reading the parameters for the specified Active Directory Lightweight Directory Services instance.  Services Web Active Directory will try again this operation regularly.  At the same time, this body will be ignored.

    Instance name: ADAM_VMwareVCMSDS

    The event XML:

    The OS is Windows 2008 R2. What should I do to solve the problem.

    Thanks for the reference Troy

    If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '.

    Gregg Robertson, VCP3, 4, MCSE, MCSA, MCTS, MCITP

  • I have windows xp. The fix for microsoft data center could not scan my computer because it says that an error has occurred

    I just installed the fix for microsoft data center and I couldn't run a check on the various problems because they said and the error has occurred.

    Hi Carroll,

    If the problem is just related to the execution of the Microsoft Fixit tool, I suggest that you post your question on the Forums of Microsoft Fixit.

    Microsoft Fix it Center Forums

  • Error when you try to play audio files: Windows Media Player has encountered a problem reading the file. for further assistance, click web help

    8007007E tips

    There is also another number which is C00D11B1, but both have to do with the lock of the music in windows media player, the message said:-"Windows media player has encountered a problem reading the file; for help click web help. ""- and that of all, but when ' web help ' click on the show numbers that are 8007007E and C00D11B1 and average music, not Windows media player, y at - it someone with the same problem that has been able to solve? Thank you, let me know, if you don't mind, thank you again.

    I suggest re-download you WMP 11 from the following link and install it on top of the current installation:

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=1d224714-e238-4E45-8668-5166114010ca

    Who help me?

    If this isn't the case, please report the file type (extension) of the file you are trying to play. For instructions on how to make Windows Explorer shows the file types, see this link:

    http://www.windowsreference.com/Windows-XP/how-to-view-all-file-extensions-in-Windows-XP

  • I have a SSD C drive and a larger secondary drive. Where to install the products. What is the best for performance?

    I have a SSD C drive and a larger secondary drive. Where to install the products. What is the best for performance?

    installation on your SSD will give better performance, but can consume a lot of disk space.

  • My Mac does not read the Mac for the Adobe Photoshop elements 13 drive [was: Mac]

    My Mac does not read the Mac for the Adobe P:photoshop elements 13 drive, fresh have Costco. ???

    You can try to download instead and use the serial number, you make the acquisition of the disc...

    PES 10, 11, 12, 13 - https://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-downloads.html

    You can also download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Photoshop/Premiere Elements 13: http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html

  • query not using the index for some user

    Hello

    I have a query that is running in less than a second for sys, system, or schema owner. However, another user (test_user) take 30 seconds to run the same query.

    I certainly dba and privileges identical to test_user as schmea_user, but the result is the same.

    I checked

    Select * from V$ SYS_OPTIMIZER_ENV;

    Both are the same for both users.

    I have check the plan to explain to both users. I noticed that for sys/system/schema_owner, the query uses an index, but not the test_user.

    All have experience the issue where a user uses an index, but not the other?

    Thank you for any assistance.

    Thank you for the display of formatting output, this output is much easier to read.

    One of the first things you notice about the execution plans that is for the owner non-schema "SQL_ID, 0wcs85uywn72m, number of children 1" appears in the output of DBMS_XPLAN, while "SQL_ID 0wcs85uywn72m, child number 0" (the same SQL_ID but a different number of child) appears for the schema owner. "" Whereas the SQL_ID is the same, which indicates that the client requires exactly the same SQL statement, so it's a good start.

    Then, note that in the predicate for the nonschema owner information section the following appears (sometimes with the order of the two conditions switched in position) as a condition placed on each table that is available in the schema:

    filter(("SEAL_FLAG" IS NULL OR "SEAL_FLAG"'Y'))
    

    The above suggests the presence of the virtual private database (or a superset of private database virtual) generated the predicates. You should be able to confirm that this is the case by querying V$ VPD_POLICY using the SQL_ID which was displayed in the DBMS_XPLAN output:

    SELECT
      *
    FROM
      V$VPD_POLICY
    WHERE
      SQL_ID='0wcs85uywn72m';
    

    As a test, I made a few minor adjustments to the example on this page:
    http://Antognini.ch/2011/09/optimizer_secure_view_merging-and-VPD/
    I changed the name of T to T12 and TESTUSER table specified for the schema names. I then created the function S of this page as follows:

    CREATE OR REPLACE FUNCTION s (schema IN VARCHAR2, tab IN VARCHAR2) RETURN VARCHAR2 AS
    BEGIN
      RETURN 'ID < 10';
    END;
    /
    

    I then added a couple of lines in the T12 test table:

    INSERT INTO T12 VALUES (1,1,NULL);
    INSERT INTO T12 VALUES (4,1,NULL);
    INSERT INTO T12 VALUES (10,1,NULL);
    INSERT INTO T12 VALUES (12,1,NULL);
    
    COMMIT;
    

    With an active 10053 trace, I executed the following SQL statement:

    SELECT id, pad
      FROM t12
      WHERE
      spy(id, pad) = 1
    

    The SQL_ID (in my case, found in the 10053 trace file) was 6hqw5p9d8g8wf, so I checked V$ VPD_POLICY to this SQL_ID:

    SELECT
      *
    FROM
      V$VPD_POLICY
    WHERE
      SQL_ID='6hqw5p9d8g8wf';
    
    ADDRESS          PARADDR            SQL_HASH SQL_ID        CHILD_NUMBER OBJECT_OWNER OBJECT_NAME                    POLICY_GROUP                   POLICY                 POLICY_FUNCTION_OWNER          PREDICATE
    ---------------- ---------------- ---------- ------------- ------------ ------------ ------------------------------ ------------------------------ ---------------------- ------------------------------ ------------------------------------------------------------------------------------
    000007FFB7701608 000007FFB7743350 1518838670 6hqw5p9d8g8wf            0 TESTUSER     T12                            SYS_DEFAULT                    T_SEC                  TESTUSER                       ID < 10
    

    As noted above, the VPD test function named S added the predicate "ID".< 10"="" to="" the="" sql="">

    There are not many clues in the 10053 trace file in my test VPD generated additional predicates. Trace the following was found shortly after the beginning of the file (this is the SQL statement initially presented):

    ----- Current SQL Statement for this session (sql_id=6hqw5p9d8g8wf) -----
    SELECT id, pad
      FROM t12
      WHERE
      spy(id, pad) = 1
    

    I searched then down in the trace for final after changes query file (to be noted that this sentence could be slightly different in different versions of database Oracle). That's what I found:

    Final query after transformations: ******* UNPARSED QUERY IS *******
    SELECT "T12"."ID" "ID","T12"."PAD" "PAD" FROM "TESTUSER"."T12" "T12" WHERE "TESTUSER"."SPY"("T12"."ID","T12"."PAD")=1 AND "T12"."ID"<10
    kkoqbc: optimizing query block SEL$F5BB74E1 (#0)
    

    Note that the final query after transformation shows how the final version of the query that has been rewritten by the query optimizer before the SQL statement has been executed and this version of the query includes AND "T12". "" IDENTITY CARD ".<10. if="" i="" was="" attempting="" to="" determine="" how="" that=""><10 predicate="" was="" added="" to="" the="" sql="" statement,="" i="" would="" start="" at="" the="" "current="" sql="" statement="" for"="" line="" in="" the="" trace="" file="" and="" search="" down="" the="" trace="" file="" for=""><10* -="" in="" this="" case,="" the="" following="" is="" what="" i="" found="" as="" the="" first="" search="" result,="" very="" close="" to="" the="" "current="" sql="" statement="" for"="" line="" in="" the="" trace="">

    **************************
    Predicate Move-Around (PM)
    **************************
    PM:     PM bypassed: Outer query contains no views.
    PM:     PM bypassed: Outer query contains no views.
    query block SEL$F5BB74E1 (#0) unchanged
    FPD: Considering simple filter push in query block SEL$F5BB74E1 (#0)
    "TESTUSER"."SPY"("T12"."ID","T12"."PAD")=1 AND "T12"."ID"<10
    try to generate transitive predicate from check constraints for query block SEL$F5BB74E1 (#0)
    finally: "TESTUSER"."SPY"("T12"."ID","T12"."PAD")=1 AND "T12"."ID"<10
    

    As can be seen from the above (because the predicate again appeared before and after the line containing the word "Finally: '), the AND"T12 ". "" IDENTITY CARD ".<10 predicate="" was="" already="" added="" to="" the="" original="" sql="" statement="" by="" the="" time="" the="" predicate="" move-around="" section="" of="" the="" trace="" file="" was="" written,="" and="" that="" is="" the="" first="" mention="" of=""><10 in="" the="" trace="" file.="" in="" your="" case,="" you="" would="" search="" the="" 10053="" trace="" file="">

    "SEAL_FLAG" IS NULL
    

    If V$ VPD_POLICY revealed that there are virtual private database (VPD) generated predicates applied to the SQL statement, take a look at the following article in the Oracle documentation library:
    http://docs.Oracle.com/CD/B28359_01/network.111/B28531/VPD.htm

    This article lists the different points of view, who can be interviewed to learn more about the VPD rules which are in force in the schema. For example, with my SPV test:

    SELECT
      *
    FROM
      ALL_POLICIES;
    
    OBJECT_OWNER                   OBJECT_NAME                    POLICY_GROUP                  POLICY_NAME                    PF_OWNER                       PACKAGE                       FUNCTION                       SEL INS UPD DEL IDX CHK ENA STA POLICY_TYPE              LON
    ------------------------------ ------------------------------ ----------------------------- ------------------------------ ------------------------------ ----------------------------- ------------------------------ --- --- --- --- --- --- --- --- ------------------------ ---
    TESTUSER                       T12                            SYS_DEFAULT                   T_SEC                          TESTUSER                       S                                                            YES YES YES YES NO  NO  YES NO  DYNAMIC                  NO
    

    He knows performance issues related to the use of VPD, some of which are Oracle Database version-dependent, and some have been fixed in recent versions. Take a look at the following articles if you have access to My Oracle Support:
    MetaLink (MOS) Doc ID 728292.1 ' known performance problems when you use transparent encryption data and indexes on the encrypted columns.
    MetaLink (MOS) Doc ID 967042.1 "How to investigate Query Performance regressions Caused by VPD (FGAC) predicates?"

    You might find working through the second of the above that the problem is caused by a bug in database Oracle.

    On a side note. Execution plans you have published include the 0 value in the column starts many of the operations in the execution plan. 0 indicates that the operation never actually executed. A 0 is included in the column starts on the line that includes the FULL ACCESS of TABLE of PEOPLE_TRANSACTIONS at least to the OPC. Value 123, a full table of PEOPLE_TRANSACTIONS table scan PROPERTY_CONTAINER_ID was not actually performed.

    Charles Hooper
    http://hoopercharles.WordPress.com/
    IT Manager/Oracle DBA
    K & M-making Machine, Inc.

  • Using the index to extract data without filter predicate

    Hello

    does anyone have an explanation for the following scenario:

    I have a table T1 with an OID_IX index on column (object_id) - the table is a DEC dba_objects just to fill it with data.
    There are no other current index. The table and index are analysed.

    When I run the following query, the table is available in FULL (without using the index)

    SELECT OBJECT_ID FROM T1;

    SQL > select object_id from t1;

    485984 selected lines.

    Elapsed time: 00:00:01.76

    Execution plan
    ----------------------------------------------------------
    Hash value of plan: 3617692013

    --------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    --------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | 485K | 2372K | 1528 (1) | 00:00:19 |
    | 1. TABLE ACCESS FULL | T1 | 485K | 2372K | 1528 (1) | 00:00:19 |
    --------------------------------------------------------------------------


    Statistics
    ----------------------------------------------------------
    1 recursive calls
    0 db block Gets
    7396 gets coherent
    0 physical reads
    0 redo size
    2887158 bytes sent via SQL * Net to client
    5684 bytes received via SQL * Net from client
    487 SQL * Net back and forth to and from the client
    0 sorts (memory)
    0 sorts (disk)
    485984 rows processed



    But if I add a predicate (even if it is useless in this case) the index is taken and that the query runs faster:



    JDBC@toekb > select object_id from t1 where object_id. = - 999;

    485960 selected lines.

    Elapsed time: 00:00:01.40

    Execution plan
    ----------------------------------------------------------
    Hash value of plan: 3555700789

    -------------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    -------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | 485K | 2372K | 242 (3) | 00:00:03 |
    |* 1 | FULL RESTRICTED INDEX SCAN FAST | OID_IX | 485K | 2372K | 242 (3) | 00:00:03 |
    -------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    1 Filter ("OBJECT_ID" <>-(999))


    Statistics
    ----------------------------------------------------------
    1 recursive calls
    0 db block Gets
    1571 gets coherent
    0 physical reads
    0 redo size
    2766124 bytes sent via SQL * Net to client
    5684 bytes received via SQL * Net from client
    487 SQL * Net back and forth to and from the client
    0 sorts (memory)
    0 sorts (disk)
    485960 rows processed


    Here is my setup:

    SQLsql-
    drop table t1 purge;
    create table t1 tablespace users in select * from dba_objects;
    Insert into t1 (select * from t1);
    commit;
    Insert into t1 (select * from t1);
    commit;
    Insert into t1 (select * from t1);
    commit;
    create index oid_ix on t1 (object_id) tablespace users;
    exec dbms_stats.gather_table_stats (null, 't1', cascade = > true, estimate_percent = > 100);
    SQLsql-

    In my case, the Table and the Index looks like this way:

    JDBC@toekb > select table_name, NUM_ROWS, BLOCKS, AVG_SPACE from user_tables;

    TABLE_NAME, NUM_ROWS BLOCKS AVG_SPACE
    =======================================
    485984 6944 T1 0

    Elapsed time: 00:00:00.11
    JDBC@toekb > select INDEX_NAME, BLEVEL, LEAF_BLOCKS, DISTINCT_KEYS, NUM_ROWS user_indexes.

    INDEX_NAME BLEVEL LEAF_BLOCKS DISTINCT_KEYS NUM_ROWS
    ===================================================
    2 1074 60745 485960 OID_IX

    Elapsed time: 00:00:00.07

    The table contains 7 times more than the index blocks!


    any answer welcome

    Best regards

    Published by: guenterp on August 12, 2010 14:44

    The column is not defined as NOT NULL, then there may be values that are not in the index (because the index does not include null values). The useless predicate implies NOT NULL, then the index may be used.

  • How to read the worksheet for setpoint speed using the speed control (Closed Loop)

    My VI is able to go through a series of speed reference points that lie in a sort of constant matrix. I have to be able to go through a series of hundreds of game points, and fill in the constant table whenever I have a new profile to test don't will not work.

    I tried to use a reading of block of spreadsheet and table of Index to read values from a worksheet, but when I run the program, it does not seem to read the values in the file.

    The path must be correct, but I don't know if there may be a problem of formatting with file worksheet regarding the delimiter. Or maybe not all the parameters are filled with reading block of spreadsheet.

    Anyway, any help with my problem would be appreciated. I'll give the VI as an attachment to this post. Nine set points which worked with the VI are in the constant blue table, which was previously set to where the entire Long block is now fixed.

    Brandon

    Hi Brandon,.

    That's right, I withdraw my previous response. I apologize to this topic.

    I noticed that in your code, you select the line at index 0 instead of the first column. When you use the table to Index out of the loop block, make sure that you select the column at index 0 so you can enter the first column in the input file. This should get you 1 d table you're looking for.

  • How to read the two columns of data in a file of PDM.

    Hi all

    I am reading two data columns for the 2nd of a PDM file two sheets, as shown below.

    Two columns of data must then be shared so they can be displayed in a xy chart and also apply a linear adjustment VI. I implemented the graph xy and linear adjustment using a txt file (see below), therefore all the outputs work, however this application with a tdms file turns a little more tax.

    So, essentially, that I don't know how read the correct leaf and therefore the columns in the PDM file and then how to produce the graph xy and linear adjustment of the data types produce. Here's my current attempt, which produces several errors of the type of terminal, as well as not being able to select the exact data in the PDM.

    Any help/suggestions/example vi on this asap would be greatly appreciated.

    Thanks in advance,

    Pete

    Also the PDM file viewer. VI helps you easily understand the structure of data files.

  • How sync an Outlook Express blackBerry Smartphones gets impossible to read the error of application data

    I have a BB Flip 8220 and try to use Outlook Express as my Contacts Organizer.  I started Outlook express 'vanilla' and have only a folders in Outlook Express.  I have 34 files in my BB Contacts.  When I run synchronize (and again, I am doing this one way, the Express for BB) I get the error "Unable to read application data", "Treatment device address book", "Label 34 of 34 Records".

    I read a lot of threads.  I checked the RIM.log file and it said one-way synchronization.  Clues on how to solve this problem?  I'm on Desktop 4.6, I have to go to 4.7?

    Please notify.

    Thank you.

    Well, I solved the problem.  What I did was run a backup using the desktop mgr software, I then ran a restore, but I used the advanced option so that I could open the ipd backup file and select just the database of contacts and push than my computer to the device (using the copy button of right arrow in the middle of the Advanced window thingy).  I restarted and then sync and it WORKED!

    Do the backup and the restore must have fixed the file corrupted on my phone.  Wonderful.  I was nervous, but it worked well jst.

  • Create the form for selecting data in multiple tables

    Hello

    I'm getting APEX for the first time and I just read 2 days dev Application Express guide

    I tried to play and I can't create a report with the form that select data from several tables

    What I want to achieve is a report we'll say 'USERS' makes MANAGER_ID ID, NAME, with a form that allows me to create, delete, change users

    The problem is that, once the report with the form created, if I click on create (to create a user) it will ask me for id, name, and manager_id

    I need a water drop down which allows me to select managers in the table manager instead of manually insert Director id

    How do I do that?

    Thank you!

    HI Chris,

    LOV will use this magic.

    Search:

    Kind regards

    BEnjamin

  • Separate the VMkernel for pulse data store traffic?

    Hello.

    I was just reading Tech EqualLogic report 'Configuring iSCSI connectivity with VMware vSphere 5 and Dell EqualLogic PS Series storage' and saw something again on pages 3-4.

    Dell recommends to create a vmkernel port highly available on the subnet iSCSI serving as vmkernel default port for pulse data store traffic, so that the pulsation of data store traffic will then sit outside the iSCSI Software initiator and consumes any connection of additional iSCSI storage. He goes on to say that the traffic of pulsation of the data store will always use the lowest numbered VMkernel ports on the vSwitch.

    It makes sense, but this is the first I've heard of this. Everybody does that, with EQ or other iSCSI solutions?

    Thank you

    Brian


    Not sure that what talking about Dell, but the heartbeat "traffic" data store using the links normal iSCSI. Each host will have a file on one of the heartbeat data stores and open it which means there a lock on the file. The overhead is minimal and there is no need to worry at all.

Maybe you are looking for