How to find the tables which are the candidates for gathering stats in 10g

Hi,
In 10g how can we find the tables, partitions which are the candidates for gathering the stats.
I want to findo those tables, partitions and gather the stats on daily basis.
Thanks,
Mahi

The probem you describe has been posted about before. There are known issues with the default dbms_stats parameter settings for some environements.
What you can do is just go ahead an manually submit dbms_stats commands with appropriate parameters for tables that have not been analyzed or modify the maintenance window to give it more time.
I would rather just generate the missing statistics myself then the job can continue to run in the normal maintenance window. Since the job should be looking only for tables that meet the stale requirements then once everything is analyzed it is likely the job can keep the statistics updated in the default time allowed.
Be warned that the default parameter settings do not work well for some tables in some environments and if that proves true for your shop you can generate workable statistics on a table and then lock them so the nightly job ships regenerating the statistics for that table. You would then manually unlock, generate, and lock that statistics for that table as necessary.
HTH -- Mark D Powell --

Similar Messages

  • Need help to find the table which stores the infomation listed below

    Hi,
       I am working on Archiving work for archiving the data under the tcode SOST.I searching the table which stores the email document content but I am having difficulty to get the table..Could any one provide some input on this.
    Thanks.
    ~Donny

    I believe it is stored in table SOFFCONT1

  • What is the table which stores the SM04 currently active users data

    HI all,
    what is the table which stores the SM04 currently active users data in sap?
    plzzzzzzzzz help me..
    Thanks  all in advance ,
    Malti

    Hi,
    Pl. check in tables USR02/USR01 for the list of users & logon data.
    Regards,
    SDS

  • How to see the tables which are in the physical layer of SampleAppLite rpd

    Hi Everyone,
    I am new to OBIEE and I installed OBI Apps with Oracle 11g in my laptop. I tried to create reports using the OracleBIAnalyticsApps rpd. How can I know from which schema the tables are coming in the physical layer of the repository so that I can create a connection pool to the database. I got the default SampleAppLite rpd when I install the OBIEE but I am unable to see those tables in the database schema which are used in the SampleAppLite physical layer. Can anyone tell me how can I see the tables in the database which I see in the rpd. Actually my question may be wrong as I am new to this field, so please let me know if this is a wrong question. As I unable to express my question correctly. Thanks.

    For the OracleBIAnalyticsApps rpd - the tables are under "Catalog" then "dbo" in database "Oracle Data Warehouse" in the physical layer. The RPD comes out of the box with the required connection pools - you dont need to create any. The connection pools "Oracle Data Warehouse Repository Initblocks Connection Pool" and "Oracle Data Warehouse Connection Pool" in "Oracle Data Warehouse" read the data from the business analytics warehouse that you created in a schema name of your choosing with the DAC. All you need to do is edit the user name and password and the data source name with a connect string - which is the local net service name to your database for default call interface OCI 10g/11g assuming you used an Oracle database for your warehouse. One way to test the connection pool is to right click any table/alias then "Update Row Count".
    BTW Using the Admin Tool open the OracleBIAnalyticsApps rpd then do "Tools" then "Utilities" then "Repository Documentation" then "Execute". This will create a spreadsheet showing you all the mappings from the presentation to business to physical layers.

  • Dynamic SQL statement to select the tables which are updated today...

    Hi Guys,
    I need to find the names of all the tables which contain rows that are inserted/updated in a given time stamp...
    Below statement gives me the list of all the tables in the database...
    select t.table_name from all_tables t;All these tables in the database have a column called rowversion which gives the updated/inserted date of a record. I need to write a select statement (probably dynamic) which will give me the table names which contain the rowversion value 24-01-2013....
    Any help is very much appreciated...

    Napster wrote:
    Hi Karthick,
    Thanks for your reply...
    But when I execute your select statement I am getting an error saying table SYS.DBMS_XMLGEN does not exist.
    Probably something wrong in my environment?Yes you can, here is a quick untested code
    declare
      my_filter date := to_date('24-01-2013', 'dd-mm-yyyy');
      my_count integer;
    begin
      for i in (select table_name from user_tables)
      loop
         execute immediate q'[select count(*) from ]' || i.table_name || q'[ where rowversion = :1]'
         using my_filter
         into my_count;
         if my_count > 0 then
             dbms_output.put_line(i.table_name);
         end if;
      end loop;
    end; 
    /

  • How to find a program which modifies the variant of a standard program?

    Hi,
    I have an issue where the variant values of the standard program RKEVEXT3 (Transaction : KEFC), is getting changed by a background job.I need to find the program which modifies the values of the variant.
    Any input on this will be helpful.
    Regards,
    Raj

    hi Raj,
    you can change variants with FM RS_VARIANT_CHANGE. I would suggest to run a where used list for this variant in your system.
    hope this helps
    ec

  • Urgent-How to find the tables which are used in  DB02 transaction

    Hi,
    Can anybody help me in finding the tables  in Tablespaces tabstrip & Tables n Indexes tabstrip  in DB02 transaction??

    Hi,
    open the following link.
    http://books.google.co.in/books?id=jTTrZjucb_QC&pg=PA37&lpg=PA37&dq=dbo2%2Bsap&source=web&ots=FgA9pC3u24&sig=sOG3EJRm5HGW2aFpkVVH_oxBjjo&hl=en#PPP1,M1
    Master data load failure
    Reward if Helpful
    Jagadish

  • [Urgent] List the tables which are in a mapping using OMB ?

    Hello,
    Does anyone know how I can list the table names which are contained in a mapping by using the OMB language ?
    After with this list I'll retrieve the properties of the extraction and loading hints (by using the OMBRETRIEVE command).
    Thanks in advance for your help !
    Regards,
    Florent

    Hi Florent
    Something like the following will retrieve the table operators in a map:
    set table_ops [OMBRETRIEVE MAPPING '$mapname' GET TABLE OPERATORS]
    As an example of navigating the map using OMB the tcl below will traverse the map (change the mapname variable and run in the context of the module containing the map) - the results are written to a textfile in /tmp/map.txt. You can see how the operators are navigated and the connections queried, each operator is listed and the connected operators.
    Cheers
    David
    set mapname EXAMPLE_17_21
    set ops [OMBRETRIEVE MAPPING '$mapname' GET OPERATORS]
    set fid [open "/tmp/map.txt" "w"]
    foreach op $ops {
    puts $fid ""
    puts $fid "Operator: $op"
    puts $fid "------------------------------------------------"
    foreach top $ops {
    set connected [OMBRETRIEVE MAPPING '$mapname' HAS CONNECTION FROM OPERATOR '$op' TO OPERATOR '$top']
    if {$connected == 1} {
    puts $fid " $op -> $top"
    set grps [OMBRETRIEVE MAPPING '$mapname' OPERATOR '$op' GET GROUPS CONNECTED TO OPERATOR '$top']
    puts $fid " Attribute Mappings"
    puts $fid " ------------------"
    set tgrps [OMBRETRIEVE MAPPING '$mapname' OPERATOR '$top' GET GROUPS]
    foreach grp $grps {
    set atts [OMBRETRIEVE MAPPING '$mapname' OPERATOR '$op' GROUP '$grp' GET ATTRIBUTES]
    foreach att $atts {
    foreach tgrp $tgrps {
    set tatts [OMBRETRIEVE MAPPING '$mapname' OPERATOR '$top' GROUP '$tgrp' GET ATTRIBUTES CONNECTED FROM ATTRIBUTE '$att' OF GROUP '$grp' OF OPERATOR '$op']
    foreach tatt $tatts {
    puts $fid " $grp.$att -> $tgrp.$tatt"
    close $fid

  • How to find all tables that are associated with a given domain name.

    I want to find all table, excluding the structures, of a given domain name, say, waers.
    Some of the tables are directly contains the domains while others are related with a data element which is connected to that domain.
    I want to find tables for all two case -either tables connected directly to the domain or connected via data element- and exclude the structures.
    thanks in advance.

    Hi,
    The following thing may help you.
    in se11-> search for tables having names like 'DD*'.
    From this list of tables you can find the required table to get domain, data element nad table name.
    one way of doing it:
    SELECT rollname domname
      FROM dd04l
      INTO CORRESPONDING FIELDS OF TABLE it_tab.
    SELECT rollname tabname
      FROM dd03l
      INTO CORRESPONDING FIELDS OF TABLE it_tab1
      FOR ALL ENTRIES IN it_tab
      WHERE rollname = it_tab-rollname.
    SORT it_tab1.
    DELETE ADJACENT DUPLICATES FROM it_tab1.
    LOOP AT it_tab1 INTO wa_tab.
      MODIFY it_tab FROM wa_tab
      TRANSPORTING tabname
      WHERE rollname = wa_tab-rollname.
    ENDLOOP.
    LOOP AT it_tab INTO wa_tab.
      WRITE:/ wa_tab-domname,
              wa_tab-tabname.
    ENDLOOP.
    Regards,
    Manoj Kumar P

  • How to find out to which query the query-elements in a transport belong?

    Hi specialists,
    the topic should already say everything.
    I've got a changeable transport-request with several query-elements in it.
    But I haven't any idea to which query this elements belong. Where do I need to look-up that information?

    The excat table is not known to me..try finding in the following tables:
    RSZCALC                       
    RSZCEL                        
    RSZCHANGES                    
    RSZCOMPDIR                   
    RSZCOMPIC                     
    RSZCONTROLTEXTS               
    RSZELTATTR                    
    RSZELTDIR                     
    RSZELTPRIO                    
    RSZELTPROP                    
    RSZELTTXT                     
    RSZELTTXT_MULTI               
    RSZELTXREF                    
    RSZGLOBV                      
    RSZIELPICMON                 
    RSZOPRATOR                    
    RSZOPRATXT
    Thanks..
    Shambhu

  • My iTunes has multiple phones and computers with similar names associated with it. How do I know which are the right ones?

    I'm trying to clean up my iTunes account and I see several of the same phone or computer listed as authorized users. How do I figure out which are the correct phones/computers?

    Alvin777 wrote:
    Hi. I'd like to delete the Snow Leopard Snapshots in my Time Machine backup drive because it won't work with Lion
    I'm not sure what you mean . . . what won't work with Lion?  It sounds like it did do some backups.
    Is there a way or an app to know which are Lion snapshots? 
    There is a way, but it's rather cumbersome.  You have to start selecting a full system restore; there's a window showing all of the backups and the version of OSX. 
    Is there an app I could use to manage the snapshots if manually deleting them will cause problems and side effects later.
    It's best to use the Time Machine "Star Wars" display to delete backups, but you really shouldn't have to.  Let's figure out what's wrong first.

  • What is the name of the folders which are your backup of Itunes library? I am recovering from a virus, have no workable desktop in Win XP, but can search and find files and folders. I would like to move these backup files to a new computer

    what is the name of the folders which are the backup of Itunes library? I am recovering from a virus, have no workable desktop in Win XP, but can search and find files and folders. I would like to move these backup files to a new computer, authorize it and sync with Iphone 3Gs and Ipod 5th gen.
    I

    I second the whole iTunes folder approach.
    If for some reason you have split the media folder from the library files then the media folder needs to restored to the same path it used to have while the library files can be copied into the music folder of your new profile.
    If in dobut, backup up the entire Documents and Settings folder before wiping the infected drive, but be selective about what you restore as many viruses drop active components capable of reinfecting the compuer in the temp folders and internet caches. It is much easier to backup more than you need than to discover after the fact that you no longer have access to some vital project you'd been storing in a folder on the desktop.
    tt2

  • How to find out theTables used in  the program

    hi experts,
    can any one tell what are the ways to find out the tables used in the program
    thanks in advance.

    Hello,
    Below are some tips:
    1. If custom program- SEARCH for "TABLES" or "SELECT" stmt.
    2. The full-proof way will be to activate SQL Trace. Goto tcode ST05, check SQL Trace & then activate trace.
        Execute the program. After execution is complete, deactivate trace & then display trace. You will get all the tables which are being used.
    BR,
    Suhas

  • Need some help on CRM tables which have the details of the order created

    Hi,
    Can anyone help me in knowing the tables which stores the information of an order . I need to find the status, priority, category and the partner functions of a particular order. Is there any table which stores all these data.
    Thanks & Regards,
    Anuradha.P

    Hi Anuradha,
    basically you link  partner function of an order with view:
    CRMV_LINKPARTNER.
    In this view you can find :
    Guid of an order coming from CRMD_ORDERADM_H
    Guid of BP coming from BUT000,
    and <b>partner function</b> stored in field PARTNER_FCT.
    For sold-to-party you have to select 00000001.
    Concerning priority and category I suggest you investigating with "where used list", tool in which tables the data element is used.
    Then start from CRMD_ORDERADM_H or CRMD_ORDERADM_I , and with the guid go to CRMD_LINK.
    Extract the proper Guid set and try going into the table/s you select, previuosly.
    Regards,
    AndreA
    <b></b>

  • Join 2 tables which are not related with any primary-foriegn key constraint

    Hello,
    How to join 2 tables which are not related with any primary key foreign key constraint.
    Ex.Consider Table A has 5 columns->A_ID,A_Name,A_Address,A_City,A_Pin(Total 10 rows)
    Table B has 5 columns->B_ID,B_Name,B_Adress,B_City,B_City(Total 30 rows)
    From both the table i want the data,which i need to use in curosr to display finally as "Address Label".
    Both the table are entirely different,but there can be some names of Table A which may come in Table B also,if the name,address and city is also same.That means same person in both the table.
    So finally i want total number of distinct records(distinct data of Table A which is not in B+all the data of table B) to come under Address Label.
    How can i write the select query for this condition?
    Thanks
    Swapna

    Hi, Swapna,
    user11018268 wrote:
    Hello,
    How to join 2 tables which are not related with any primary key foreign key constraint.
    Ex.Consider Table A has 5 columns->A_ID,A_Name,A_Address,A_City,A_Pin(Total 10 rows)
    Table B has 5 columns->B_ID,B_Name,B_Adress,B_City,B_City(Total 30 rows)
    Both the table are entirely different,but there can be some names of Table A which may come in Table B also,if the name,address and city is also same.That means same person in both the table.I think you want a UNION, not a join.
    If you have 10 rows in table_a, and 30 rows in table_b, then
    SELECT       A_ID,          A_Name,     A_Address,     A_City,     A_Pin
    FROM      table_a
    UNION
    SELECT       B_ID,          B_Name,     B_Adress,     B_City,     B_City
    FROM      table_b
    ORDER BY            2,               4          
    ;will produce up to 40 rows; 40 if there are no duplicates. (UNION implies DISTINCT.)
    The corresponding column types should be similar, if not exactly the same.
    There's no problem if A_Name is VARCHAR2 (50) and B_Name is CHAR (30).
    However, there will be a problem if A_ID is a NUMBER and B_ID is a TIMESTAMP.
    You must have the same number of columns in all branches of the UNION.
    If you want an ORDER BY clause, put it at the very end, after the last branch of the UNION.
    You can use positional notation (where 2 means the 2nd column) like I did, or you can use names from the first prong of the UNION (such as A_Name).
    From both the table i want the data,which i need to use in curosr to display finally as "Address Label".
    So finally i want total number of distinct records(distinct data of Table A which is not in B+all the data of table B) to come under Address Label.I'm not sure what your mean about "Address Label".
    Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables, and the exact results (formatted) that you want from that data.
    You can concatenate all 5 columns into one VARCHAR2 column, if you want to.
    You'll probably want to use RPAD (or simillar functions) to make the output line up nicely.
    If any of the columns are not strings, use TO_CHAR to make string versions of them.
    For example:
    SELECT  TO_CHAR (A_ID, '9999999')
         || '   '          -- leave a little space between the left-justified a_id and the right-justified a_name
         || RPAD (A_Name, 25)
         || RPAD (A_Address, 50)
         ...Edited by: Frank Kulash on Nov 14, 2009 10:11 AM

Maybe you are looking for

  • Linking invoice reference (REBZG) with incoming payment F-28

    Dear All:                 I have a query, while receiving collection from customers through F-28 we want to link Number of the Invoice  the Transaction Belongs. The field is enabled but it doesnt populate the invoice reference for partial payments ag

  • What to do?!?!?!?!?!HELP

    ok i found this fairly looking new Creative Zen Micro at a hotel by a computer, and i took it to the front desk and said that they would hold it and if no one came looking for they would give it to me, so i ended up with a (to me) brand new Zen Micro

  • [ ORA-03113 ]  DB Link issue between 11gR2  to 8.0.4

    Hi, We have created a DB link from *11gR2* (+64-bit Windows 2008R2+) to *8.0.4* (+32-bit Windows NT+), but when we try to fetch data from the 8.0.4 db using the created dbLink we getting this following Error. Error: ORA-03113 end-of-file on communica

  • Airport extreme g upgrade to N

    Hi, I bought my macbook black 2 years ago and it comes with airport g. I will like to upgrade to Airport N as i heard it is quicker and moreover virgin will be offering 50mb soon but they say it wont work with g. How can i upgrade to airport n? is is

  • Premiere Elements 10 hangs up/crashes

    I have downloaded the trial version of PrE 10 and it won't start up. I'm using it on Windows 7 and have gone through a lot of computer clean up tips in other support messages on the forum and it still won't start. Downloaded Photoshop Elements 10 at