How to monitor the SQL perticuler using the INDEX or not?

I'm running on a long-term quary and the output is coming very late. So, I want to know that the quary sql uses the index or not? How do I know that?

Hello

You have not provided your db version?
You can check v $ object_usage in a simple way. Try to check the explanation of your query if you current sql is by using your existing index or not.
Check with dbms_xplan.display

Request to go through the links of Ask tom and jonathan lewis
http://jonathanlewis.WordPress.com/2007/02/15/index-not-used-10G/
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:736825544526

HTH

-Pounet N

Tags: Database

Similar Questions

  • How to monitor the use of the Hyperion applications

    Hi all
    We have developed a classical Planning Application in Hyperion 11.1.2
    The application is running in production mode, and now we want to monitor the use of this application, in this regard, I have following questions:
    (1) how to activate the newspapers?
    (2) how to monitor the time of connection and disconnection of each user
    (3) how to check the amount of data entered in a particular week
    (4) how to check that data are entered against how much the faculty members?

    I won't pretend to know what should I know about this subject, but I get this question of a large number of customers. So, here is my answer. There is no right way to monitor who logs and how many times they connect. If you enable the audit DATA, that you can do is to see when a user loads the data and how often they do. This does not match the connection, but planners usually don't connect to display data (which are normally made in EN or SmartView), they connect to load/update of data. With active audit DATA, you can query the HSP_AUDIT_RECORDS table, which is where the audit is stored, and see how many times the user load the data and the last load of data. Is not correct, but it is far more closely than any other method I've found.

    Example of the last connection (really last loaded data)
    SELECT USER_NAME AS 'User', time_posted as 'Last Login Time' OF HSP_AUDIT_RECORDS WHERE TYPE = "data";

    You can use a similar query to count the number of data loads.

    This would also show you what the user has launched it to business rules.

    Another option would be to enable SSAUDIT on the planning application in Essbase (this is done in the Essbase - google SSAUDIT server configuration file). This will create 2 files. The first is a file index or pointer. There will be a line for each record, via a web form or SmarView load. The second file contains all of the loaded data. The first file will tell you that loaded which lines in the second file and what time he did. The downside is that each connection between planning and Essbase uses the ID of the source of data for planning. So, it always shows the same loading data ID and will not be the real of the user who did it.

    Note that users do not have to connect through planning. They can directly connect to Essbase. All financial reports that would be misunderstood by looking only at the planning.

    If you really want the actual load, you really watch the Essbase and Essbase application log files. Would not show you users, but could show you the number of queries, the data loads, etc. You could analyze these logs in a relational table for quick access to the use of the query.

    That's a lot of things to take. Unfortunately, to answer your question, it is not a quick option, "click here."

    Utility to analyze the logs can be found at http://code.google.com/p/jrightlog.

    ------------
    Kyle Goodfriend
    http://www.in2hyperion.com

    Please be sure to assign the post as answered and answers as response or useful if others can benefit from your experience.

  • How to monitor the activities of internet users without using third-party software. We have some 60 windows domain user

    Hi all

    We have 60 knots which is connected with the windows domain. How to monitor the activities of internet users via the windows server

    without third-party software.

    Thanks in advance

    Alam

    Hello

    The business support, you can find forums on TechNet, please create a new post at the following link:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • How to monitor the CPU, memory and i/o on the system

    Hello..

    Some body help me?...

    1. how to manage the monitoring of the performance of the system and the database during execution of ODI?
    2. how to monitor the CPU, memory and i/o on the system?

    TQ
    balleur

    In an attempt to partially answer your questions:

    1. how to manage the monitoring of the performance of the system and the database during execution of ODI?

    Monitor the performance of the application from a commercial point of view. As transactions per minute, or response time or time elapsed for the key events of the company. Monitor the activity of the material such that the CPU usage is not necessarily linked to the performance of your application. Performance should be measured from top to bottom - business first, then the lower levels until you get finally to computer equipment. Only if you get a problem to the next level - response time is too large, for example - you can go through the lower levels to identify the cause and fix it.

    2. how to monitor the CPU, memory and i/o on the system?

    I personally use "sar" on UNIX-BASED or Linux, or rather "CFDCs" which is the system activity data collector. SADC will measure and collect data on activities on CPU, memory, disks, etc. and save them to a file in binary format. You can then extract these measures later for analysis using SAR (sar f sadc_file_name). The benefits of SADC are that it is light (these operating systems measure such things anyway, just CFDC records far), it records everything at once (with the exception of the network), it records the time stamp too for each measure, and you can analyze it later when you want to.

    There are commercial products out there too who do similar work, with additional features, such as the integration of Oracle and the relationship between several systems. TeamQuest is an example, but there are others also. (I do not work for TeamQuest, but I used their product in the past).

    John

  • How to monitor the TX and RX on PERFORMANCE for virtual network adapter BASP monitor?

    How to monitor the TX and RX on PERFORMANCE for virtual network adapter BASP monitor?

    I have a virtual network adapter that is created with Broadcom.

    This virtual interface named "BASP eCard" visible on the performance monitor in the category 'Rhythm Pipe' but not in the category "Network Interface".

    This is problematic because the Tx and Rx (bytes received/send in second) is available in "Network Interface" that show physical network cards only.

    Someone has an idea?

    Thank you

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • How we force a query to use transparently a hint, even if the index is not given in the query as a query rewriting.

    How we force a query to use transparently a hint, even if the index is not given in the query as a query rewriting.

    For example:

    If the user runs a query select deptno, avg (sal) from emp group by deptno;

    We want the optimizer to use a hint of result_cache with this request, and it should be transparent to the user.

    Query should be rewritten to seamlessly

    Select / * + result_cache * / deptno, avg (sal)

    WCP

    Group of deptno;

    How can this feature we make? Please advice.

    I checked the possibility of SPM and contours, but it is not clear if this rewrite is possible here.

    Thank you and best regards,

    Vikas Krishna

    Surely dbms_advanced_rewrite is designed for this situation?

  • How to determine the index of an item in a cluster?

    I have a small program that I put in place, as I'm just trying to get up to speed on Labview.  I have a boolean cluster buttons and for some reason the top button of the page is coming through as Index 3.  There are four buttons in the cluster, but for some reason, there has been a change.  The top must be Index 0.  How to do the things fixed?  I do not see how to determine the index of each button through properties.

    Thank you

    The order of items in a cluster is the same as the order that you added them. To change the order, just right click and select "rearrange controls in the group. If you use Unbundle by name, you don't care the order.

  • How to disable the index to the rows of the table updated

    Hello world

    I have a problem on a table with Oracle11g.

    I would update a table a lines opposite two in a table. This table has an index, and during the inversion, the index is duplicated.

    So, I turn off the index and then rebuild all indexes like this: How to disable the index in oracle

    However, I can't update a table when my index finger is rolled unusable.

    I create my table:

    CREATE  TABLE MY_TABLE(
      ID                         NUMBER(5) NOT NULL,
      TYPE                        NUMBER(1) NOT NULL,
      PRIO                       NUMBER(4) NOT NULL,
      CONSTRAINT PK_MY_TABLE
        PRIMARY KEY (ID, TYPE )
    );
    
    CREATE INDEX  PRIO_UK
        ON MY_TABLE(TYPE, PRIO);
    
    
    
    

    Then I selected all the elements and the results is:

    ID Type Prio
    1110
    2111

    Then, I tried to update this list with this script:

    UPDATE MY_TABLE set PRIO = 11 WHERE ID = 1 AND TYPE = 1;
    UPDATE MY_TABLE set PRIO = 10 WHERE ID = 2 AND TYPE = 1;
    
    
    
    

    I have an error on the first line, because the subscript for type 1 and 11 priority already exist.

    You have another solution to solve my problem?

    I thank you very much.

    Do not disable your index. Just perform your update with a single blow. Like this

    SQL> select *
      2    from my_table;
    
            ID       TYPE       PRIO
    ---------- ---------- ----------
             1          1         10
             2          1         11
    
    SQL> update my_table
      2     set prio = case when id = 1 and type = 1 then 11
      3                     when id = 2 and type = 1 then 10
      4                end
      5   where (id = 1 and type = 1)
      6      or (id = 2 and type = 1);
    
    2 rows updated.
    
    SQL> select *
      2    from my_table;
    
            ID       TYPE       PRIO
    ---------- ---------- ----------
             1          1         11
             2          1         10
    
    SQL>
    
  • How to create the index suitable for my xml...

    Hi all... I have an xml attachment saved in an XMLType column in a table that is stored in binary xml secure.
    I want to use XQuery to navigate the xml code and push the results in a normal table.

    All of this works, I have a question if all the xmlindex I want to create.
    I want to create a xmlindex so that the plan of the explain command would be cheaper.
    If I remove the where XQuery bit the explain command comes with a cost of 32, but if I use the where the bits of the cost are 223000!
    Removal of the index makes no difference if the index is not used here.

    What index to use here and especially how he specify?
    I read something on the structured and unstructured indexes, but I did not understand what and how to use them.

    If someone could help that would be great.

    A point, however: the xml used for the explain command is much longer; It contains 48385 lines instead of the rows listed here.
    Ad al of them would make the post a little longer...

    table and index:
     CREATE  TABLE XML_NAME_CLOB ( 
            OS_FILENAME varchar2(255),
            ORA_DIR varchar2(255),
            NLS_CHARSET_ID varchar2(255),
            XML_DATA XMLType,
            LOAD_DATE date,
            AUDIT_ID number)
        XMLTYPE xml_data STORE AS BINARY XML
        ;
    
     CREATE INDEX po_xmlindex_ix ON XML_NAME_CLOB (xml_data) INDEXTYPE IS XDB.XMLIndex;    
    Used XML short-circuited for brevity
    <?xml version="1.0"?>
    <?mso-application progid="Excel.Sheet"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
              xmlns:o="urn:schemas-microsoft-com:office:office"
              xmlns:x="urn:schemas-microsoft-com:office:excel"
              xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
              xmlns:html="http://www.w3.org/TR/REC-html40">
     <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
      <Author>def</Author>
      <LastAuthor>def</LastAuthor>
      <Created>2011-10-06T15:05:31Z</Created>
      <Company></Company>
      <Version>11.9999</Version>
     </DocumentProperties>
     <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
      <WindowHeight>12525</WindowHeight>
      <WindowWidth>24795</WindowWidth>
      <WindowTopX>120</WindowTopX>
      <WindowTopY>30</WindowTopY>
      <ProtectStructure>False</ProtectStructure>
      <ProtectWindows>False</ProtectWindows>
     </ExcelWorkbook>
     <Styles>
      <Style ss:ID="Default" ss:Name="Normal">
       <Alignment ss:Vertical="Bottom"/>
       <Borders/>
       <Font/>
       <Interior/>
       <NumberFormat/>
       <Protection/>
      </Style>
      <Style ss:ID="s21">
       <NumberFormat ss:Format="#,##0"/>
      </Style>
     </Styles>
     <Worksheet ss:Name="Sheet1">
      <Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="127" x:FullColumns="1"
             x:FullRows="1">
       <Column ss:Width="63.75"/>
       <Column ss:Width="58.5"/>
       <Row>
        <Cell ss:StyleID="s21"><Data ss:Type="String">budgethouder</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="String">documenten</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ABU</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">24</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ABJ</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">995</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ACC</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">2754</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ADD</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">224</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ALG</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">310</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">AMM</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">125</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">WEN</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">106</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">YAO</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">263</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ZAG</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">0</Data></Cell>
       </Row>
      </Table>
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <Selected/>
       <Panes>
        <Pane>
         <Number>3</Number>
         <ActiveRow>4</ActiveRow>
         <ActiveCol>3</ActiveCol>
        </Pane>
       </Panes>
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
     </Worksheet>
     <Worksheet ss:Name="Sheet2">
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
     </Worksheet>
     <Worksheet ss:Name="Sheet3">
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
     </Worksheet>
    </Workbook>
    Select with xquery
     select tabel.budgethouder, tabel.documenten
    from XML_NAME_CLOB,
          xmltable(
                  XmlNamespaces('urn:schemas-microsoft-com:office:spreadsheet' as "ss",
                  DEFAULT 'urn:schemas-microsoft-com:office:spreadsheet' ),
                   'for $i in /Workbook/Worksheet[1]/Table/Row[position()>1] 
                    where 
                      /Workbook/Worksheet[1]/Table/Row[1]/Cell[1]/Data/text()=''budgethouder'' and
                      /Workbook/Worksheet[1]/Table/Row[1]/Cell[2]/Data/text()=''documenten'' and
                      /Workbook/Worksheet[1]/@ss:Name=''Sheet1''
                    return $i '
                    PASSING xml_data 
                    columns budgethouder varchar2(100)  PATH 'Cell[1]/Data/text()',
                            documenten varchar2(100)    PATH 'Cell[2]/Data/text()'
                            
                  ) tabel
            where audit_id = 12;   
    Published by: MichaelR64 on 7-oct-2011 16:53

    Published by: MichaelR64 on 8-oct-2011 18:05

    You saw the answer on my blog? ;)

    begin
      dbms_xmlindex.registerparameter(
        'ext_smldata_xtb_param'
      , 'XMLTable ext_smldata_xtb ... big text content here ... '
      );
    end;
    /
    
    create index ext_smldata_sxi on ext_smldata (object_value)
    indextype is xdb.xmlindex parameters ('PARAM ext_smldata_xtb_param')
    ;
    
  • MULTI_COLUMN_DATASTORE, periodic synchronization, the index is not synchronized

    Hello!

    I implemented a MULTI_COLUMN_DATASTORE index with two columns A and B as

    ctx_ddl.create_preference ("idx_test", "MULTI_COLUMN_DATASTORE");
    ctx_ddl.set_attribute ('idx_test', 'columns', 'A, B');

    When you create an index of ctxsys.context with this data store, I can pick up as expected.

    Now, I change a value in column B and re - synchronize the index using CTXSYS. CTX_DDL.sync_index. I would expect that I could get the new value, but I can't. No row is returned. So, I did the same thing with column A, re-sync index, and now, the search for the new value returns the line.

    So, I think that even if I do a manual sync, the index will NOT sync even a row in column B is modified. The index is updated only if a line in A column is modified. What is the best solution to ensure that the index is synchronized, if one of the columns in the index is changed? Do I have to imitate a change in the trigger as:

    IF: NEW. B <>: OLD... B, THEN

    : NEW. A: =: NEW. A;

    END IF;

    The downside is that I have to keep the scene of two indexed columns (the script and relaxation).

    -Brgds, Paul Jørstad (Oracle Database 11g Release 11.2.0.4.0 - 64 bit Production)

    As you have discovered, synchronization applies only when the index is created on the column is changed.  So you can make the change from the part of the column of your update process or use a trigger to update automatically whenever another column in the data store is updated.  When you upgrade to 12 c, there is an additional change that needs to be done to relax at work; You will need to

    ALTER session set "_fix_control" = "14155722: OFF'"

    or

    change the whole system "_fix_control" = "14155722: OFF";

    pursuant to section that you can access via the link below.

    https://blogs.Oracle.com/searchtech/entry/datastore_triggers_in_12c?customTheme=OTN

  • How to monitor the parameters using the Protocol Modbus in LV

    Hello everyone

    I have a problem with my LabVIEW project. I have to watch my monitor settings MI4100 Power using LV 8.5 and I don't really know how. I use the modbus RTU Protocol and I am able to communicate with the instrument, but I can't understand how to monitor records.

    I have attached my comunication VI to see what I've done. Please help me if you can.

    Thanks in advance, Sylvia

    If you work with 32-bit numbers in need of two registers, then what you already do with numbers to reach work.   Read 2 registers from 256, contact numbers, and you'll have nonexercising total power.

    If you read only 1 register, then you will have a table of 1 item.  Decimate this table and joining the numbers don't make any sense.  You'd read comes directly from the registry.

    What is the description of the error for 6002?

    I don't see any reason why you wouldn't be able to read an address greater than 30.

  • How to monitor the use of the PXI UC?

    Does anyone know a way to control CPU utlization on a controller with LabVIEW PXI programmatically? I know that NEITHER had a VI owner to monitor the use of memory called rtgetmemorysummary.vi to monitor the memory usage, and I want to do the same for the CPU usage.

    If you mean a targer RT, then you can use

    RT get CPU loads.vi

    See here

    Marco

  • How to monitor the application connects to the journal on the unit or using slog2info w view

    I'm debugging on the device (purchased at Bell, runing 10.0.9.2372) production with the latest version of the SDK (SDK native 10.0.9.2372). I can't monitor connects using the View Log or slog2info w command described here: http://developer.blackberry.com/cascades/documentation/getting_started/tools/debugging.html

    I use QNX Momentics IDE. After you add the view "Journal of the unit", "All" is the only option in "BufferSet" and "Buffer" menu drop-down, and no newspaper appears after starting my application. The status shows "Listening target ' 169.254.0.1", pending the first event... ». Are there any additional installation required to monitor logs in this view?

    I have also tried running a SSH session and used the command 'slog2info w '. The command works on Simulator (Dev Alpha 10.0.10.263), but it returns immediately without any output on my device. The 'slog2info' command works, but it only dumps the log. I need to monitor the output log while I am debugging it. Do I have to activate what anyone on the device to make the command 'slog2info w' work, or I did something wrong here?

    Thank you

    You are following this with a devmode running app, right? In other words, not one signed?

    This has worked for you before, or is this the first attempt?

    Some few people have seen 'slog2info w' stop posting any output. A reboot or two (of the aircraft) usually "fixed."

  • How to monitor the use of the bandwidth with my RV 120W?

    We have a problem with access to our SharePoint Sites on the Web and Technicain Microsoft wants us to capture the band in use. I'm trying to findout if it is possible with the RV 120W. I looked at the documentation and cannot find any info on this kind of analysis.

    Hi Don,

    Thanks for posting. I don't remember a way to monitor the bandwidth with the other RV120W that him-> Port statistics.

  • How to monitor the update the user trigger sql table column

    Hello

    My database in the face of a problem that someone (or some jobs) always update the decimal points in a column. I want to trace who (what) update of the column, but the database do not have verification of activation.

    can anyone help. provide a trigger script to monitor the table if the column has been updated by commas, which returns records in a table.

    Thank you very much.

    Concerning

    Sean

    Why not, it's also so easy...! ! !

    SQL> CREATE TABLE audit_log (
      2  old_id VARCHAR2(15),
      3  new_id VARCHAR2(15),
      4  chng_by VARCHAR2(10),
      5  chng_when DATE,
      6  machine VARCHAR2(20),
      7  osuser VARCHAR2(20));
    
    Table created.
    
    SQL> CREATE OR REPLACE TRIGGER referencing_clause
      2  AFTER UPDATE
      3  ON report_heading
      4  REFERENCING NEW AS NEW OLD AS OLD
      5  FOR EACH ROW
      6  BEGIN
      7  IF INSTR(:NEW.ID,',') > 0
      8  THEN
      9  INSERT INTO audit_log
     10  (old_id, new_id, chng_by, chng_when, machine, osuser, ipadd)
     11  VALUES
     12  (:OLD.ID, :NEW.ID, USER, SYSDATE, SYS_CONTEXT('USERENV','HOST'), SYS_CONTEXT('USERENV','OS_USER'));
     13  END IF;
     14  END referencing_clause;
     15  /
    
    Trigger created.
    
    SQL> ALTER TABLE REPORT_HEADING ENABLE ALL TRIGGERS;
    
    Table altered.
    
    SQL> SELECT * FROM REPORT_HEADING;
    
    ID
    --------------------
    104001.1
    104002.1
    104002.1
    99.00
    246004.1
    88.00,
    
    6 rows selected.
    
    SQL> UPDATE REPORT_HEADING SET ID='99.11,' WHERE ID='99.00';
    
    1 row updated.
    
    SQL> SET LINE 200;
    SQL> select * from audit_log;
    
    OLD_ID          NEW_ID          CHNG_BY    CHNG_WHEN MACHINE              OSUSER
    --------------- --------------- ---------- --------- -------------------- -------------------- ---------------
    99.00           99.11,          SCOTT      05-MAR-10 BOSER\GIRISH         GIRISH\Girish Sharma
    

    BOSER here is my workgroup name and GIRISH is my machine name.

    HTH
    Girish Sharma

Maybe you are looking for