How can i find statistics tables in my database?

code{
Upgrade Statistics Tables Created by the DBMS_STATS Package
If you created statistics tables using the DBMS_STATS.CREATE_STAT_TABLE procedure, then upgrade these tables by executing the following procedure:
EXECUTE DBMS_STATS.UPGRADE_STAT_TABLE('SYS','dictstattab');
In the example, 'SYS' is the owner of the statistics table and 'dictstattab' is the name of the statistics table. Execute this procedure for each statistics table.
the above is one of the post upgrade step for 11gR2. How can i find statistics tables in my database?

You need to read the complete context of this manual upgrade step:
Step 33
Upgrade Statistics Tables Created by the DBMS_STATS Package
If you created statistics tables using the DBMS_STATS.CREATE_STAT_TABLE procedure, then upgrade these tables by executing the following procedure:
EXECUTE DBMS_STATS.UPGRADE_STAT_TABLE('SYS','dictstattab');
In the example, 'SYS' is the owner of the statistics table and 'dictstattab' is the name of the statistics table. Execute this procedure for each statistics table.You need to do this step for any statistics table that you created manually with DBMS_STATS.CREATE_STAT_TABLE.
Marcus

Similar Messages

  • How can I find the table of

    How can I find the table of the structure fields?
    A structures table?
    for example the table of sap standard structure diaprd or diadrp, I do not remember now?
    Thanks.

    The hard way....
    Go to SE11
    Enter the structure
    Position the cursor on the field
    Press Where-Used List
    Check all related table to see which one fulfill your needs
    Greetings,
    Blag.

  • How can i find the tables which dont contain any data under my database ?

    Can you please suggest me a way to find the tables which dont contain any data under my database ?
    Regards,
    Renu

    Can you please suggest me a way to find the tables which dont contain any data under my database ?
    For the schema that you've logged in to, you could do something like this:
    test@XE>
    test@XE> @test
    test@XE> --
    test@XE> set serveroutput on size 1000000
    test@XE>
    test@XE> declare
      2    n_count  number;
      3  begin
      4    for rec in (select object_name from user_objects
      5                where object_type = 'TABLE')
      6    loop
      7      execute immediate 'select count(*) from '||rec.object_name
      8      into n_count;
      9      if (n_count = 0) then
    10        dbms_output.put_line(rec.object_name);
    11      end if;
    12    end loop;
    13  end;
    14  /
    BONUS
    RUN_STATS
    PL/SQL procedure successfully completed.
    test@XE>
    test@XE>For the other schemas, you could query from dba_objects and probably display the owner as well.
    HTH
    isotope

  • How can one find the table name of the Delta Que and setup table?

    Hi !
    Is there any method to find the table name of the delta que and Extraction que ?

    setup table = <extract structure>_setup
    example: setup table for MC11VA0ITM = MC11VA0ITM_SETUP
    Delta Queue is based on following 3 tables:
    ARFCSDATA
    ARFCSSTATE
    TRFCQOUT
    assign points if useful ***
    Thanks,
    Raj

  • How can we find tables for master data transactions

    hi
    could anybody tel.............
    when we create a customer the information is updated in structure RF02D
    some tables like kna1 are updated.
    how can we find these tables..?

    Hi Kalyan,
    This is how you can find any transparent table you want.
    1. Put your cursor in any of the  fields of the customer screen and hit <b>F1</b> on your keyboard. Next Click on the "<b>Technical Information</b>" icon. Under "<b>Field Data</b>", this would show you for example structure <b>RF02D</b> and field <b>KUNNR</b> (Customer Number), if your cursor was in the Customer Number field. Copy the field KUNNR.
    2. Next, open another session and execute transaction code <b>SE80</b>. On the Menu Bar, click "<b>Environment -> Repository Information System</b>". Open up the folder "<b>ABAP Dictionary -> Fields -> Double Click on Table Fields</b>". Paste your Customer Number field name (KUNNR) in the "<b>Field Name</b>" and Execute. This would show you all the transparent tables where the Customer number is stored.
    I hope the above helps.
    Do not forget to award the points please.
    Regards,
    Jacob

  • How do I find what table a field is in?

    Hi,
    If I know a field name, how would I search the Data Dictionary to find the table (or tables) that the field is found in?
    For example, I have a program spec that that says field AZSUB is in table MARM, but it is not.  How can I find what table this field is actualkly in?
    Thanks for your help!
    Andy

    Hi Andrew,
    Just goto se11, enter the data element of that field and clisk on the where used list on the application tool bar. You will get all the tables in which the field appears.
    You got find out which would be your appropriate table may be using by the description of the table or the contents or by the links..
    Regards,
    Vinod Kumar

  • How can we find the most usage and lowest usage of table in Sql Server by T-SQL

    how can we find the most usage and lowest usage of table in Sql Server by T-SQL
    The table has time stamp column
    StartedOn datetime
    EndedOn datetime

    The Below query has been used , but the textdata column doesnot include the name of the table ServiceLog.
    SELECT
    FROM
    databasename,
    duration
    fn_trace_gettable('F:\Program
    Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\log_148.trc',
    default)
    WHERE
    DATABASENAME='ZTCFUTURE'
    AND TEXTDATA
    IS
    NOT
    NULL
    --AND TEXTDATA LIKE 'SERVICE%'
    order
    by cpu
    desc; 

  • How can I find tables in a PDF document?

    When I fun a full accessibility check, it tells me that I have problems with some tables in the document. The current error that concerns me is this:
    "(g) 6 Table element(s) with no TH child elements."
    The document originally contained a number of tables. I examined them all for possible offenses, but couldn't find anything wrong.
    So I deleted the pages containing the tables, and I still get the error.
    There are no other tables in the document, at least that I'm able to see. And if I scan sub-ranges (e.g., 1-17, 18-33), the scan comes back clean for tables. So I'm forced to conclude that the tables aren't actually part of any page. 
    Hence the question: how can I find the offending tables and remove them?

    Tags are independent of PDF page content. Removing/deleting a page or page(s) does not remove anything in the PDF's structure tree.
    As Full Check is looking at the structure tree the report reflects what is present there.
    In the Tags panel walk the structure tree to locate the Table tags. Delete these.
    Be well...

  • How can I find that an URL link is tored in which transparent table in SAP?

    I have a requirment that, I have to display a MSDS( Material Safety Data Sheet ) for every material, that is a line item in any particular sales order.
    How can I find that in which table this URL link is getting stored, such that I can retrieve this URL for this particular material.

    is this document attached to sales order using GOS (generic object services)
    Regards
    Raja

  • How can i find out the table hierarchy

    Hi experts,
    I have one doubt. how can i find out the table hierarchy in the particular schema.
    Let me explain my requirement in detail.. In my Database i have nearly 250 table each table have it's own temporary table(for authorization purpose we are maintaining the temporary tables) for each day i have to clear the temporary table data.
    All temporary table connected with each other. i mean all the table having foreign key relationship.. while i attempt the delete the data from the temporary table it showed ORA-02292: integrity constraint  violated - child record found.
    So can any one please tell how can i delete the child table record first and then parent record table record.
    Thanks in advance
    Arun

    CREATE OR REPLACE FUNCTION get_child_tables (
    ptable VARCHAR2,
    powner VARCHAR2 DEFAULT 'SCOTT',
    plevel NUMBER DEFAULT 10
    RETURN stringarray
    -- -- create this ON SQL*PLUS "CREATE OR REPLACE TYPE STRINGARRAY AS TABLE OF VARCHAR2(50);"
    -- AUTHID CURRENT_USER
    PIPELINED
    AUTHOR DATE VERSION COMMENTS
    ======================================================================================
    [email protected] 26-OCT-2009 1.0 Developed to ease developers effort to find Nth level of Referential integrity
    ======================================================================================
    -- PURPOSE -> To find PARENT=> CHILD relational TABLE(S) in Oracle upto a depth max N Level.
    --SYNTAX TO USE
    SELECT * FROM TABLE( get_child_tables('DEPT','SCOTT',3)); Store this query in a file for your use
    SELECT * FROM TABLE( get_child_tables('EMPLOYEE')); Store this query in a file for your use
    -- RESULTS looks as below
    --1 => DEPT
    --2 => EMP
    --2 => EMP2
    --3 => EMP_CHILD
    --3 => EMP2_CHILD
    -- and so on
    --This can be leveraged to use in any oracle database REGION 10g having and above.
    --This FUNCTION gives formatted result of the Oracle 10g Hierarchical query result coded in the cursor
    --to find MASTER => CHILD relational TABLE(S) upto a depth max 10 Level.
    --The result of the PIPELINED function can be retrieved using Oracle new operator
    --TABLE(array name) in SQL query.
    --Due to the AUTHID CURRENT_USER compiler directive any user can use based on his/her access privileges on the database.
    --GRANT EXECUTE ON SCOTT.get_child_tables TO PUBLIC;
    --CREATE OR REPLACE PUBLIC SYNONYM get_child_tables FOR SCOTT.get_child_tables;
    IS
    atname stringarray := stringarray ();
    -- create this ON SQL*PLUS CREATE OR REPLACE TYPE STRINGARRAY AS TABLE OF VARCHAR2(50);
    vlevel NUMBER;
    vtname VARCHAR2 (50);
    nindex NUMBER := 0;
    bprocessed BOOLEAN := FALSE;
    CURSOR c1 (powner_in IN VARCHAR2, ptable_in VARCHAR2, plevel_in NUMBER)
    IS
    SELECT LEVEL, LPAD (' ', (LEVEL - 1) * 2, ' ') || pt AS "TNAME"
    FROM (SELECT a.owner w1, a.table_name pt, a.constraint_name c1,
    a.r_constraint_name r1, b.owner w2, b.table_name ct,
    b.constraint_name c2, b.r_constraint_name r2
    FROM all_constraints a, all_constraints b
    WHERE a.constraint_name = b.r_constraint_name(+)
    AND a.owner = b.owner(+)
    AND a.owner =
    UPPER (powner)
    -- Change Owner here while testing
    --AND A.r_constraint_name IS NULL
    AND a.constraint_type IN ('P', 'R')) v1
    START WITH pt =
    UPPER
    (ptable)
    -- Change your master table here while testing the QUERY
    CONNECT BY PRIOR ct = pt AND LEVEL <= plevel;
    -- Change lavel here while testing
    BEGIN
    atname.EXTEND;
    atname (1) := 'NOTHING';
    OPEN c1 (powner, ptable, plevel);
    LOOP
    bprocessed := FALSE;
    FETCH c1
    INTO vlevel, vtname;
    IF nindex > 1 AND atname (atname.LAST - 1) = vtname
    THEN
    --DBMS_OUTPUT.PUT_LINE('2 ==== vtname  ' ||vtname || '   '|| atname.count|| '   '||atname.last ||  '   '||atname( atname.last-1));
    bprocessed := TRUE;
    END IF;
    IF NOT bprocessed
    THEN
    nindex := nindex + 1;
    atname.EXTEND;
    atname (nindex) := vtname;
    PIPE ROW (vlevel || ' => ' || vtname);
    DBMS_OUTPUT.put_line ( ' **** nindex - atname( nindex) '
    || nindex
    || ' - '
    || atname (nindex)
    DLOG('ADDING ',vTname); A LOGGING ATONOMUS PROCEDURE FOR DEBUG PURPOSE
    END IF;
    EXIT WHEN c1%NOTFOUND;
    END LOOP;
    CLOSE c1;
    FOR i IN 1 .. atname.COUNT
    LOOP
    DBMS_OUTPUT.PUT_LINE('atname (i) ' ||atname (i));
    END LOOP;
    RETURN;
    EXCEPTION
    WHEN no_data_needed
    THEN -- THIS EXCEPTION HAS TO BE THERE TO GET THE FUCTION WORKABLE
    DBMS_OUTPUT.put_line (SQLERRM);
    RETURN;
    --SELECT * FROM TABLE( get_child_tables('TB_XOP_LETR_TEMPLATE','OPS$CMS',5));
    END get_child_tables;
    Edited by: user3066657 on Jul 21, 2011 8:42 AM
    Edited by: user3066657 on Jul 21, 2011 11:26 AM

  • How can I find the schemas used in a database?  Any system table contains?

    How can I find the schemas used in a database? 
    Any system table contains?
    I would like to know sql statement (dictionary object name) which tells the all schema s in a database like dba_users.

    Hello,
    this SQL should help:
    db2 "select schemaname from syscat.schemata"

  • How can I find out whitch table are used in whitch document?

    How can I find out whitch table are used in whitch document?
    In the table EUL5_DOCUMENTS are stored the Documents and in the table EUL5_OBJS are stored the tables. How can I query these tables together?
    Are there other possiblities?
    Thanks

    Hi Dierk
    Please take a look at this thread: Re: An EUL query to list out All the Columns  (Fileds) for each Workbook
    I think you may well find what you are looking for in the answer that I gave there.
    Best wishes
    Michael

  • How can I find a data base table containing a GUID, which is result of the macro's execution?

    Hello,
    please help me to understand how the macros work. I am facing database inconsistency. The CRM-system retrieves a GUID of an opportunity’s item and checks its existence. However, this GUID (here it is es_info-ref_object) does not exist. As result, an exception is triggered.
    I am trying to figure out which data base table is responsible for the inconsistent data. Instead of SELECT statement, I see in the debugger that a macro retrieves the “guilty” entry .
    macro_execute macro_msg_data_read_rea.
    My Question: How can I find a data base table containing a GUID, which is result of the macro’s execution?
    Thanks a lot
    Andrej

    When you save a PDF out of Distiller it doesn't just have different options, it's an entirely different program. It doesn't do things the same way, so it can't have the same options. Saving from Distiller is in many ways better, expecially in that transparency isn't flattened.
    What specific options are you looking for?

  • How can I find overlapping pivot tables?

    I am getting errors in my Excel workbook that contains around 50 reports that say "A pivot table cannot overlap another pivot table". I tried to insert rows inbetween tables on each worksheet but it did not solve the issue. How can I find
    which reports are overlapping, and is there a way to correct this without re-creating reports?

    Linda,
    Here is the full link to the page David linked:
    http://answers.microsoft.com/en-us/office/forum/office_2007-excel/finding-overlapping-pivot-tables/08ab3afa-a79e-4be5-a127-0760f0f9c633
    Hope this helps,
    David

  • How can I find the procedures where I use a table?

    How can I find the procedures where I use a table?
    I need to look for it in all the users.

    select name,owner from dba_dependencies where referenced_name='table_name'
    and referenced_owner = 'schema'
    and type = 'PROCEDURE'
    Aravind

Maybe you are looking for

  • ITunes 10.6 error 'Could not open key...."

    Hi there, so i was installing the new version of iTunes (10.6) and then in the middle of the process a box came up saying "Could not open key:UNKNOWN\Components\ ~~~~a lot of numbers and letters~~~~~\ ~~~~~~a lot of numbers and letters~~~~.Verify tha

  • How do I add images to a multipage photo gallery?

    I was thinking of using the following multi-page photo gallery, but can't figure out how to add photos to it. Is there a resource, link or explination someone can provide on how to do this? I'm quite new to this. Thanks! Template http://www.cssplay.c

  • HT201209 can I buy a gift card online and redeem it right away?

    can I buy a iTunes gift card online, and redeem it right away?

  • SQL Server 2000 and problems conecting to DBase

    Hello, I get this code: String url = "jdbc:microsoft:sqlserver://localhost:1433";     //jdbc:microsoft://server:port/database     String user = "wilson";     String password = "";But I get this stackTrace: java.sql.SQLException: [Microsoft][SQLServer

  • Running Aggregate Functions, Attribute or Measure?

    Hi Guys: I wonder if this is a bug in BIEE 11g? I am using 11.1.1.6. My requirement is quite simple, I have a measure, and I want to show this measure as a cumulative curve by month. For example, let's suppose there are three columns in Criteria: Mon