Compute Statistics after create a index

Good night, I tryed it before and got no help.
So I'll try it again, because I didn't find it yet.
I have to create some indexes in a production database.
I have a doubt.
Do I need to Compute Statistics after creating indexes?
Or when I create they automatically are computed?
Thanks for any help.
The version I'm using is:
Oracle Database 10g Release 10.2.0.5.0 - 64bit Production
PL/SQL Release 10.2.0.5.0 - Production
CORE     10.2.0.5.0     Production
TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production

Petri BR wrote:
Good night, I tryed it before and got no help.
So I'll try it again, because I didn't find it yet.
I have to create some indexes in a production database.
I have a doubt.
Do I need to Compute Statistics after creating indexes?after CREATE INDEX what are the values for the index statistics?
Or when I create they automatically are computed?Just look at the statistics values after issuing CREATE INDEX & answer the question yourself!

Similar Messages

  • Compute Statistics after creating indexes

    Hi, I have to create some indexes in a production database.
    I have a doubt.
    Do I need to Compute Statistics after creating indexes?
    Or when I create they automatically are computed?
    Thanks for any help.
    Edited by: Petri BR on May 14, 2013 3:39 PM

    Petri BR wrote:
    Hi, I have to create some indexes in a production database.
    I have a doubt.
    Do I need to Compute Statistics after creating indexes?answer is version dependeent.
    Or when I create they automatically are computed?answer depends upon which version of Oracle.
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ
    you should ALWAYS provide Oracle version to FOUR decimal places.
    below is even better
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - ProductionHandle:     Petri BR
    Status Level:     Newbie
    Registered:     Dec 10, 2007
    Total Posts:     119
    Total Questions:     29 (18 unresolved)
    I extend to you my condolences; since you rarely get your questions answered here.

  • Part of imported image remain on computer screen after creating Page doc

    This is strange. I imported a cartoon picture to a Page document. I deleted the document but part of the image (six little dots) remains on my screen. At first I thought it was actually dirt on my screen but it is from the cartoon and it does not go away even after I restart my computer. It shows up whether I am on Page application or on the Internet. I have deleted the picture from my computer, deleted the document and emptied the Trash and restarted computer and the six little dots remain. Any thoughts? It as if I imported a portion of the image as a permanent mark. The dots do not print out and do not show up in a Screen shot picture. So not horrible but irritating. It was part of a Yogi Bear cartoon photo - so make fun of me all you want but I would love to get these dots gone.
    IMac Mac OS X (10.4.6)

    The picture has nothing to do with the little spots on your screen.
    Run a google search on stuck screen pixels.
    S.

  • After creating index query is taking more

    Hello all,
    I am trying the following..and not getting why the query is taking more time after creating the index
    SQL> SELECT distinct version_no
    2 FROM iefloa_data_anal
    3 WHERE datetime_inserted > to_date('17-02-2004','dd-mm-yyyy');
    VERSION_NO
    999
    Elapsed: 00:00:22.16
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=15 Card=1 Bytes=22)
    1 0 SORT (UNIQUE) (Cost=15 Card=1 Bytes=22)
    2 1 TABLE ACCESS (FULL) OF 'IEFLOA_DATA_ANAL' (Cost=2 Card=1
    Bytes=22)
    /*******************Here I am creating the Index************/
    SQL> create index t_ind_date on iefloa_data_anal(datetime_inserted);
    Index created.
    Elapsed: 00:07:427.38
    SQL> SELECT distinct version_no
    2 FROM iefloa_data_anal
    3 WHERE datetime_inserted > to_date('17-02-2004','dd-mm-yyyy');
    VERSION_NO
    999
    Elapsed: 00:00:40.10
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=14 Card=1 Bytes=22)
    1 0 SORT (UNIQUE) (Cost=14 Card=1 Bytes=22)
    2 1 TABLE ACCESS (BY INDEX ROWID) OF 'IEFLOA_DATA_ANAL' (Cos
    t=1 Card=1 Bytes=22)
    3 2 INDEX (RANGE SCAN) OF 'T_IND_DATE' (NON-UNIQUE) (Cost=
    1 Card=1)
    can anybody explains whats the reason...
    the table is having around 1.5 crore records
    regards

    The execution plan clearly shows that Oracle thinks only one row is going to match that condition on the index ("Card=1"). Is that a true statement? If not, you should make sure your stats are accurate. If the data is highly skewed, you may need to put a histogram on that column.
    Another possibility is that the index is on much slower disks than the table. Although, I can't imagine any range scan on an index that has only one matching value taking that long. How about doing a full trace (SET AUTOTRACE ON) and posting the logical and physical i/o information?

  • COMPUTE STATISTICS caluse for database 10g with compatible parameter 9.2.0

    Hello,
    We have to use COMPUTE STATISTICS clause for index in oracle 9i and eariler.
    But from oracle 10g we do not need to compute statistics after index creation.
    I am using databse of oracle 10g R2 but my compatible paramtere is 9.2.0 then should I use COMPUTE STATISTICS for my index?
    Can anyone explain?
    Edited by: user10540254 on Dec 23, 2011 12:44 AM

    use this :
    using analyze table <table_name> compute statistics;

  • Database slow after Index compute statistics

    Dear All,
    Since 2 days back after executing Analyze Index compute objects to increase the response time some programs from my application have become very slow.
    After seeing this behaviour I went ahead and did a Analyze table compute statistic again . Even after doing this the behaviour has remained the same . Some users have been complaining (becoz the slowness has effected only some tables and not the whole database).
    I checked sys.v_$session_longops and got this output
    OPNAME      TARGET     ELAPSED_SECONDS
    NULL     53     596792483
    NULL      53     596793670
    ¥Á     3248826740 596793669
    NULL     53     596793624
    NULL     NULL 596800369
    NULL     1     596796740
    NULL     1732526816     596472777
    Table Scan     PO8.ACC_LEDGER      9
    Table Scan     PO8.INVENTORY_LEDGER     26
    Sort Output     NULL      7
    Sort/Merge     NULL      15
    Sort/Merge     NULL     66
    Table Scan     PO8.INVENTORY_LEDGER     12
    Table Scan     PO8.ACC_LEDGER     9
    NULL     1725513472     0
    NULL     3361240696     0
    NULL     3361796632     0
    NULL 22     596792484
    NULL     1730819772     596800386
    NBIAAT56020010ä     (stale) obj# 3363169460     596800605
    ýÐ      3506279036     596799303
    NULL      NULL     596800634
    What could have happened.
    In the ini I have set
    optimizer mode = Choose
    db_file_multiblock_read_count=     8
    Sapna

    Took a statspack and got these values
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Buffer Nowait Ratio: 100.00
    Buffer Hit Ratio: 23.70
    Library Hit Ratio: 99.52
    Redo NoWait Ratio: 99.96
    In-memory Sort Ratio: 98.77
    Soft Parse Ratio: 98.74
    Latch Hit Ratio: 100.00
    Top 5 Wait Events
    ~~~~~~~~~~~~~~~~~ Wait % Total
    Event Waits Time (cs) Wt Time
    db file scattered read 120,661 0 .00
    db file sequential read 26,053 0 .00
    SQL*Net more data to client 3,421 0 .00
    control file parallel write 314 0 .00
    direct path read 244 0 .00
    And do you suggest that I do an Analyze table 'table_name' estimate statistics for all the tables.
    Sapna

  • DSO activation problem after creating the secondary indexes

    Hi,
        I am facing the problem with DSO activation after creating the secondary indexes.
    •  Compared with Info Cubes there is no functionality available which allows dropping and recreating a secondary index before/after the data activation.
    As a workaround I can write a simple report which drops and creates the indexes on database level.
    By using a process chain, we can simply insert the drop index report before data activation and the create index report after the data activation process.
    Can any body help me step by step procedure or Material to write the programs for delete index and create index reports on DSO object?..
    Thanks in advance for your help.
    Thanks & Regards,
    Bala

    hi,
    in BI if you are using the dso for reporting then you can simply chk the settings of dso for SID generation.
    no need to create the indexes or delete it.
    if the dso is not used for report then no need to use indexes.
    Ramesh

  • Problem:  While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off.  Video soundtrack is not in the right place.  HELP!

    Problem:  While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off.  Video soundtrack is not in the right place.  HELP!

    Have you checked out the topics at the right in the More Like This section?
    OT

  • What is COMPUTE STATISTICS in index

    Hi,
    I need the explanations of compute statistics in index.
    what is compute statistics?
    Regards,
    B.Prakash

    Hi,
    Compute statistics tells Oracle to collect statistics during the creation of the index. The statistics are then used by the optimizer to choose a "plan of execution" when SQL statements are executed.
    Thanks

  • Stop SAP BW to create primary index after transport

    Hi there,
    does anyone know how to stop SAP BW to create an index for transported cubes automatically?
    Thanks
    Oliver
    Edited by: Oliver Schropp on Aug 19, 2011 4:04 PM

    Hi,
    Primary Index is SAP provided.
    The primary index contains the key fields of the table and a pointer to the non-key fields of the table. The primary index is created automatically when the table is created in the database.
    There is no way to automated deletion of it.
    Thanks,

  • AVG_ROW_LEN not update , even I analyze the table in compute statistics

    I execute DBMS_STATS.GATHER_SCHEMA_STATS on my old table , but the statistics doesn't update the row length.
    After that , I give up the gather_schema_stats stored proc and use sql statement -> ANALYZE TABLE COMPUTE STATISTICS.
    The statistics still is stale .
    Is there anything I have missed ?

    San KTN wrote:
    Hi Banka,
    I suggest you to perform followings :-
    1. Delete the table statistics first.
    2. Create another table as select from this target table , in same schema and same tablespace.
    3. exec dbms_stat.gather_table_stats with METHOD_OPT parameter value as
    FOR ALL INDEXED COLUMNS SIZE n ( n is any number )
    or FOR COLUMNS (Column list ... even if all columns in the list)
    or NULL
    on new and old table respectively.
    4. Compare the results.
    You better paste the results here for investigation.It's strange. The new table could be updated. AVG_ROW_LEN and AVG_COL_LEN both make change.
    The old table only partial be updated. AVG_COL_LEN is ok but not AVG_ROW_LEN.

  • No tables after creating DWH tables

    Hi,
    After configering the DAC there are no tables created.
    The contents of the generate_clt log are as below.
    Schema will be created from the following containers:
    obiawarehouse
    Success!
    >>>>>>>>>>>>>>>>>>>
    and the content of the createwtables.log
    =====================================
    STD OUTPUT
    =====================================
    CREATING SIEBEL DATABASE OBJECTS
    E:\oracle\product\10.2.0\OracleDB\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u hr /p ******* /c obia /G "SSE_ROLE" /f E:\oracle\product\10.2.0\OracleDB\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b "" /K "" /X "" /W N
    The Siebel Database Objects were created successfully.
    =====================================
    ERROR OUTPUT
    =====================================
    Siebel Enterprise Applications ODBC DDL Import Utility, Version 7.7 [18030] ENU
    Copyright (c) 2001 Siebel Systems, Inc. All rights reserved.
    This software is the property of Siebel Systems, Inc., 2207 Bridgepointe Parkway,
    San Mateo, CA 94404.
    User agrees that any use of this software is governed by: (1) the applicable
    user limitations and other terms and conditions of the license agreement which
    has been entered into with Siebel Systems or its authorized distributors; and
    (2) the proprietary and restricted rights notices included in this software.
    WARNING: THIS COMPUTER PROGRAM IS PROTECTED BY U.S. AND INTERNATIONAL LAW.
    UNAUTHORIZED REPRODUCTION, DISTRIBUTION OR USE OF THIS PROGRAM, OR ANY PORTION
    OF IT, MAY RESULT IN SEVERE CIVIL AND CRIMINAL PENALTIES, AND WILL BE
    PROSECUTED TO THE MAXIMUM EXTENT POSSIBLE UNDER THE LAW.
    If you have received this software in error, please notify Siebel Systems
    immediately at (650) 295-5000.
    E:\oracle\product\10.2.0\OracleDB\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u hr /p ***** /c obia /G SSE_ROLE /f E:\oracle\product\10.2.0\OracleDB\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b /K /X /W N
    Connecting to the database...
    Connected.
    Reading tables and indexes from DDL file...
    Read 0 tables and 0 indexes from DDL file...
    Reading existing schema...
    Read 0 tablespaces, 0 tables and 0 indexes from existing schema...
    Running SQL statements against the database...
    TABLES CREATED : 0
    TABLES GRANTED : 0
    TABLES DELETED : 0
    TABLES MERGED : 0
    TABLES REBUILT : 0
    TABLES IGNORED : 0
    COLUMNS ADDED : 0
    COLUMNS DELETED : 0
    COLUMNS MODIFIED: 0
    INDEXES CREATED : 0
    INDEXES DELETED : 0
    INDEXES MODIFIED: 0
    TOTAL ERRORS : 0
    Disconnecting from the database.
    >>>>>>>>>>>>>>>>>>
    Thanks & Regards
    Raj
    Edited by: user10189442 on Aug 27, 2008 10:41 PM

    Every release of Apps comes with metadata, and DAC as well (atleast for now). You have to install DAC from the apps install, and restore data. Now if you happen to have a later version of DAC, then you can use it to upgrade the repository that was created with the DAC that came with apps install. For example, lets say the latest apps release is V1. The latest DAC that you can download is V2. You cannot restore the data using V2 DAC from the V1 Apps. Use V1 apps DAC to restore the data, and if necessary, use V2 to upgrade it.
    Please say which applications are you trying to install, and what version of DAC are u using to restore... DAC version can be obtained from DAC Client->Help->About DAC.

  • Numeric character problems when creating spatial index

    Hi,
    We have run into a problem when trying to create spatial indexes. The problem seems to be that an mdsys-procedure tries to use a number with a comma as decimal symbol in an update statement
    Error message:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Stmt-Execute Failure: begin mdsys.prvt_idx.execute_update(NULL,NULL,'set sdo_rtree_quality = 1,00000000 where UPPER(sdo_index_owner) = UPPER(''BK'') AND UPPER(sdo_index_name)=UPPER(''TEST_RTREE_IDX'') AND UPPER(sdo_index_table)=UPPER(''MDRT_8120$'')',NULL); end;
    ORA-29400: data cartridge error
    ORA-01747: invalid user.table.column, table.column, or column specification
    ORA-06512: at "MDSYS.PRVT_IDX", line 17
    ORA-06512: at line 1
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 7
    ORA-06512: at line 1
    Our problem seems to be identical to the one discussed in this thread: create RTREE falied on 9.2.0.4
    Regional settings, language versions etc:
    Client:
    OS: Windows 2000
    Regional options (OS): Swedish, Sweden
    Sqlplus (console and windows versions): v 9.2.0.1.0
    Registry: NLS_LANG =SWEDISH_SWEDEN.WE8MSWIN1252
    Server:
    OS: Windows Server 2003
    Regional options (OS): Swedish, Sweden
    Oracle: v 9.2.0.3.0
    Registry: NLS_LANG =SWEDISH_SWEDEN.WE8MSWIN1252
    We have also tried building the indexes after overriding these settings by setting the environment variables NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1 on both the client- and the server computer. This gives exactly the same error. We have tried setting NLS_NUMERIC_CHARACTERS to '.,' instead of ',.', but this does not help either.
    We haven't tried changing the NLS_LANG registry entry on the server, because this is a production server at a customer's site that hosts several other databases, so we would prefer not to have to restart it if we can avoid it. However, as we understand it, the environment variable NLS_LANG should override the registry setting anyway, right?
    We first experienced the problem when trying to build indexes on imported data. To verify that the problem was not with the data, we wrote a simple test script that:
    1)Creates a table
    2)Creates metadata
    3)Inserts a simple geometry
    4)Tries to create an index
    The error message above is from running this script. We have verified that the script
    works ok on another database server.
    Below are the values of some of the language parameters right before running the script
    (we have tried many other settings with the same result).
    parameter...........................db................................instance...............session
    NLS_CHARACTERSET.......WE8MSWIN1252..................................................
    NLS_LANGUAGE...............AMERICAN...................AMERICAN...........AMERICAN
    NLS_NCHAR_CH...............AL16UTF16 ..........................................................
    NLS_NCHAR_CONV... ......FALSE..........................FALSE..................FALSE..
    NLS_NUMERIC_CH...---------.,---------------------------------------------------------------.,
    NLS_TERRITORY..............AMERICA......................AMERICA..............AMERICA
    The guy who started the thread referenced above solved the problem, but we haven't been able to get it working by changing registry entries and session parameters.
    The question is: Which setting will make the number in 'set sdo_rtree_quality = 1,00000000...' be generated with a . instead of a , as decimal symbol?

    Ok, so here is my plan to solve this:
    1) Change the default user locale (the language under "standards and formats") to English for the account under which the Oracle server runs.
    2) Reboot (or is there an easier way to make Oracle reload the settings?)
    This should make the index creation work. It may break something else however, so to avoid this I can set the user locale back to Swedish afterwards .
    You can subsequently change the setting and update the sdo_rtree_quality in
    the metadata and it should work fine. Do you mean I have to update the sdo_rtree_quality in some way to make it work after I have changed the default user locale back to Swedish? How do I do this?
    Thanks a million both of you!

  • How to create an index in TREXADMIN

    Hi,
    Nowadays, we are trying to configure TREX from a SAP system (creating indexes, queues, so on).
    Into TREX Admin Tool in the SAP System (T-code TREXADMIN), where can we create an index? In Index Landscape and Index Admin tabs, we do not see this option.
    <REMOVED BY MODERATOR>
    Thanks in advance,
    Samantha.
    Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:06 PM

    boyishcovenant wrote:
    Currently, there is already an index on table A on column KEY. And there is already an index on table B on column KEY. So I won't be adding a new index per say, but modifying the way these 2 indexes are set up.
    I am using Oracle 9.2. Stats are up to date. It's not statistics issue. The execution plan I posted in the original post shows the Delete is already doing index range scans nested loop anti join.Yes, and i would expect it to be doing a hash anti join and not a nested loops anti join given the volume of data you say you are dealing with.
    boyishcovenant wrote:
    I think that it is spending too much time in doing the anti join with "NOT IN". I believe 95% of the data is "IN", if you know what I mean. Hence, if I had an index that already does the computation of what is "NOT IN" table B, then there won't be the need to do that anti join.That's really a design issue, and you're adamant you can't alter the design ... so ....
    Cheers,

  • Unable to create auto-indexing loop tunnel

    I am modifying a VI created by someone else, and in the block diagram there is a loop tunnel that is supposed to be auto-indexing. But when I open the file the loop tunnel is non auto-indexing and will not allow me to change it to auto-indexing (when I right click it says "Disable Indexing" but it is light gray and cannot be clicked on). When the same file is opened on another computer the tunnel is auto-indexing and the VI runs without any errors. How can I fix this problem?
    Using Labview 2013

    This normally happens when you install DAQmx before installing LabVIEW.  The DAQmx installer will autodetect what programming language support needs installed.  So you do not need to do anything special other than install the drivers after installing LabVIEW.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • What is the purpose of Destination Function on Submit Button?(Doesn't work)

    Hi Gurus, There is a property "Destination Function" on Submit buttons. What is the purpose of this field. I tried setting some values here expecting following behavior in order: 1. Process Form Request will get executed. 2. User will be navigated to

  • SQL Server 2000 Error Message

    I got the below error message: The description for Event ID ( 17055 ) in Source ( MSSQLSERVER ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display the messages from a remote computer. T

  • Need plugin updates for InDesign CS2

    I purchased CS2 back in 2011. I use Photoshop, Acrobat and iIllustrator, but have never cracked open InDesign. And never had the need to upgrade to newer versions. (Semi retired) So someone sends me a file actually created in InDesign CS2 to edit and

  • Error in Training & event management

    Hello All, This is an issue regarding Trainings & event management. When trying to book attendee through PSV1, i am receiving error " Attendee cannot be booked,  attendee is not available for business event" I checked the emp details regarding his: -

  • CSV file bigger then 65535 rows

    Hi I have a customer wanting to download a CSV file bigger than the limit imposed by earlier versions of Excel 65535 rows. Excel 2007 allows more rows. Anyone know if it is possible to generate a longer CSV file than this? Thanks Mike