How to determine if DBMS_STATS or ANALYZE TABLE used

Dear all,
Please please describe how to determine if DBMS_STATS or ANALYZE TABLE has been used on an Oracle 10 g 2 server.
Thank you!

Try looking at GLOBAL_STATS in user/all/dba_tables.
When I ANALYSIS it shows up under the No.
When I dbms_stats.gather_table_stats, it appears that YES.
You could probably invoke dbms_stats.gather_table_stats with good arguments to get a number in the overall stats, but this technique can be good enough for you.

Tags: Database

Similar Questions

  • How Oracle determines an as key preserved table or not?

    I tried to join employees and departments in the HR schema. Normally, the departments is not preserved key in the join operation. But I fixed in the view so that each service has exactly one employee, dept_no to become the key for the join. But still, he said, "cannot change the table not preserved key." Any tips? the type of join (left or right or inside or outside) does affect the mechanism on how Oracle determine which are preserved to key and which are not? Thank you.

    Hello

    I would say yes, maybe can depend on join to condition paritially between tables 99% of the time. Because if you see the documentation it says

    "It is not necessary the keys of a table to be selected to be key preserved. It is sufficient if the keys have been selected, then they would also be key (s) of the result of the join. "

    'A table is kept if all keys in the table can also be a key to the result of the join key' - to turn the key role of role by providing the unique character.

    -Pavan Kumar N

  • How to determine if a data type is used in the comic book?

    Background:
    I am currently planning to install GoldenGate proof of Concept and have questions about the data types supported by the capture mode (pg 1-5, 1-6 in the installation guide). Is not in itself a matter of GoldenGate.

    Our source and target databases are 11.2.0.2
    The GG server will be 11.2.0.3
    I'm new to the environment and want to confirm that we needn't upgrade the source and target the DBs to 11.2.0.3 in order to use the integrated capture mode. This forces me to know if 3 specific types of data are used in the comics. The problem is, Oracle docs aren't clear to me, when they refer to 3 specific data types.

    Here's the question:

    Does anyone know how I can confirm that the following 3 data types are used in the DB by querying the dictionary: "XML stored in binary form',"XML stored as object-relational","abstract data Type "?

    If I select the types of data separate from dba_tab_columns, I see no data enumerated type that indicates, for example, that an XML string is stored as a ' binary '.

    For me, when Oracle made reference to a "stored as binary XML" on page 1-6 on the installation guide, I guess that makes Oracle refers to a BLOB that contains an XML reference, but I can't be sure.

    Someone has an idea that they could share? I just want to confirm that we do not have to upgrade our source and target DBs at 11.2.0.3 by searching in the database is possible to confirm that the above 3 data types are not used by the application.

    Thanks in advance for any help.
    Tony G

    You should find XML columns stored in binary form or CLOB using the DBA_XML_TAB_COLS view referenced in http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb01int.htm#g644983.

    You should find XML tables using storage relational object in the view DBA_OBJECT_TABLES with:

    select
    owner,
    table_name,
    table_type
    from
    dba_object_tables
    where
    table_type='XMLTYPE';
    

    To abstract data type, you can query DBA_TAB_COLUMNS using ADT as literal for DATA_TYPE column:

    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Express 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 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    
    SQL> drop table t purge;
    
    Table dropped.
    
    SQL> drop type adt;
    
    Type dropped.
    
    SQL> --
    SQL> create type adt is object
      2  (
      3   c1 number,
      4   c2 varchar2(30)
      5  ) final
      6  /
    
    Type created.
    
    SQL> show errors
    No errors.
    SQL> create table t
      2  (
      3  c adt
      4  )
      5  /
    
    Table created.
    
    SQL> show errors
    No errors.
    SQL> --
    SQL> column table_name format a10
    SQL> column column_name format a10
    SQL> column data_type format a10
    SQL> select
      2  table_name,
      3  column_name,
      4  data_type
      5  from user_tab_columns
      6  where
      7  table_name='T';
    
    TABLE_NAME COLUMN_NAM DATA_TYPE
    ---------- ---------- ----------
    T          C          ADT
    

    Edited by: P. Forstmann on 8 Apr. 2013 20:28

    Edited by: P. Forstmann on 8 Apr. 2013 21:05

  • How to determine what security policy to be used in the HTTPClient.java?

    Hi team,

    I tried invoke Fusion Web Service, not always successful, got a few entries and still ongoing.

    The first question is to know how to identify the security poicy should be used in the resulting WSDL webService HTTPClient?

    Ex :
    
          //setup security feature with OWSM policy
          SecurityPolicyFeature[] securityFeature =        new SecurityPolicyFeature[] { new  SecurityPolicyFeature("oracle/wss_username_token_client_policy") };
    

    In the WSDL XML, how to identify, what strategy to use when calling webService

    < ExactlyOne >
    < wsp >

    Plese provide your inputs.

    Reg

    Sridhar

    What is the error that you are experiencing? Security policy is in the WSDL file and documentation for GOSA provides details on the assertion. Generally, I think that you would use "oracle/wss_username_token_over_ssl_client_policy", which is the easiest to use. Also usually the easiest way to set up a call must first make the call using SOAP UI for you ensure that your envelope is correct and then to implement in any client that you need. For more details on how to make a SOAP UI call refer to this blog post.

    --

    Jani Rautiainen

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • How to determine the size of a table partition

    Hello

    Can anyone share please sql code that can be used to list the size of a partition table? I would appreciate it a lot.

    Thank you

    Scott

    Version Oracle 11.2.0.1

    Select
    Sum(bytes/1024/1024)
    Of
    dba_segments
    where
    nom_segment = "MYTABLE";

    Select
    owner,
    nom_segment,
    nom_partition,
    segment_type,
    bytes / 1024/1024 "MB".
    Of
    dba_segments
    where
    nom_segment in ('SEG1', 'SEG2","SEG3");

    Select
    owner,
    nom_segment,
    nom_partition, segment_type, bytes/1024/1024 "MB"
    Of
    dba_segments
    where
    segment_type = "PARTITION TABLE";

  • How can I insert a n-dimensional table using Insert table subset?

    I am able to insert a row or a column in the table. But how do I insert a table 2D or 3D in an existing table?

    Kind regards

    Adel SR

    Just it wire in.  Here is a 2D chart inserted into a 3D (at the beginning of the 3D table)...

    BS

  • How to load multiple files into multiple tables using a Controlfile?

    Hello world

    I have four different tables with similar structures, get the data from four different data files. I would like to use one control file to load the data from four different files from four different tables.

    Here's the DOF of the tables:

    CREATE TABLE Product_Sales(  
        Year_of_Sale NUMBER,  
        Product_Type VARCHAR2(25 CHAR),  
        Product_Group VARCHAR2(25 CHAR),  
        Category_Type VARCHAR2(25 CHAR),  
        Category_Group VARCHAR2(10 CHAR),  
        Product_Count NUMBER,  
        Product_Amount NUMBER(19,2),  
        Category_Count NUMBER,  
        Category_Amount NUMBER(19,2)  
    )  
    
    

    CREATE TABLE Retail_Sales(  
        Year_of_Sale NUMBER,  
        Product_Type VARCHAR2(25 CHAR),  
        Product_Group VARCHAR2(25 CHAR),  
        Category_Type VARCHAR2(25 CHAR),  
        Category_Group VARCHAR2(10 CHAR),  
        Product_Count NUMBER,  
        Product_Amount NUMBER(19,2),  
        Category_Count NUMBER,  
        Category_Amount NUMBER(19,2)  
    )  
    
    

    You still have products_sales instead of product_sales in when your article, so it does not load anything in the product_sales table.  You have not reset the position for the first after subsequent field in the table and when clauses, then it starts looking for the first field to the position you left it in the previous section, instead of 1, so he can't find anything and does load all the data in the household_sales table.  You need to reset the position 1 for each combination of table and what clause after the first.  The first argument is optional.  Please see the corrected below control file.

    DOWNLOAD THE DATA

    INFILE 'output.txt '.

    IN THE PRODUCT_SALES TABLE TRUNCATE

    WHEN filename = "Product_Sales".

    FIELDS ENDED BY ',' POSSIBLY FRAMED BY ' '.

    TRAILING NULLCOLS

    (

    file name of FILLING,

    Year_of_Sale,

    Product_Type,

    Product_Group,

    Category_Type,

    Category_Group,

    Product_Count,

    EXTERNAL DECIMAL Product_Amount,

    Category_Count,

    EXTERNAL DECIMAL Category_Amount

    )

    IN THE HOUSEHOLD_SALES TABLE TRUNCATE

    WHEN filename = "Household_Sales".

    FIELDS ENDED BY ',' POSSIBLY FRAMED BY ' '.

    TRAILING NULLCOLS

    (

    filename FILLER POSITION (1),

    Year_of_Sale,

    Household_Type,

    Product_Group FILLING,

    Category_Type FILLING,

    Category_Group FILLING,

    Product_Count,

    EXTERNAL DECIMAL Product_Amount,

    Category_Count,

    EXTERNAL DECIMAL Category_Amount

    )

  • How to determine the size the virtual machine using the VI SDK files

    VirtualMachineFileLayout a lot of files like snapshots, configuration files, log files. I have not found any object determine the size of them, but the VI Client GUI shows the sizes of them.

    Is there a VI SDK objects that provide the size of every file?

    Thank you

    RAM

    The virtual machine, you can find warehouses of data associated with (ownership of the data store). Each data store, you can find the HostDatastoreBrowser corresponding (the property browser). HostDatastoreBrowser object, you can call SearchDatastore_Task() or SearchDatastoreSubFolders_Task.

    When you call one of the methods, a task object is returned. To the success of the task, check the property info.result of the task, the object of HostDatastoreBrowserSearchResults actual result is there. Discover the FileInfo objects - they include sizes and lately of the modified files.

    Good luck.

    Steve JIN, VMware engineering

    Creator of VI Java API: http://vijava.sf.net/

  • How to avoid the second NULL records table using the join

    I followed two tables:

    Name of the table: Emp
    EmpNo EmpName salary Dept DeptLocation
    1 Lar 1000 1
    2 Dai 2 2000
    3 mar 3 3000
    4 Apr 4000 4 NULL

    Name of the table: Dept
    DeptNo DeptName DeptLocation
    1 HR A
    2 Dev B
    2 Dev NULL
    3 test NULL
    NULL terminator 4


    I try to get following result:
    EmpNo EmpName salary DeptName DeptLocation
    LAR 1000 1 HR has
    2 Dai 2000 Dev B
    March 3 3000 Test C
    4 Apr 4000 end NULL


    Rules:
    -Get all matching records from Emp & the DeptNo from Dept
    -If the Dept table has more entries for the same DeptNo then consider records with DeptLocation is not NULL and avoid the record with DeptLocation with NULL value
    -Get all records matching Emp & Dept from the DeptNo where DeptLocation is NULL and exist only once in Dept


    Thanks in advance for your suggestions.

    Hello

    So when deptlocation is in the two tables, but not the same thing, you want to take the value of the table emp, not the dept table.

    In this case, reverse the NVL arguments:

    WITH     got_rnk          AS
    (
         SELECT     deptno, deptname, deptlocation
         ,     DENSE_RANK () OVER ( PARTITION BY  deptno
                                   ORDER BY          NVL2 ( deptlocation
                                                  , 1
                                       , 2
                                       )
                           )     AS rnk
         FROM    dept
    )
    SELECT     e.empno
    ,     e.empname
    ,     e.salary
    ,     r.deptno
    ,     r.deptname
    ,     NVL ( e.deptlocation          -- Changed
             , r.deptlocation          -- Changed
             )          AS deptlocation
    FROM     emp      e
    JOIN     got_rnk     r     ON     e.dept     = r.deptno
    WHERE     r.rnk     = 1
    ;
    

    Apart from the 2 marked lines "Changed", it's the same query I posted earlier.

  • How do you choose the data in tables using EBS web page?

    Hi friends,


    I'm in the URLs of the web pages EBS 11i > http://vision.abc.com:8000.
    using the SA account.

    Is there a counter part based on web module/menu to display the data in the table?

    As
    Select * from fnd_tables;
    or
    Select * from po_vendors;

    something like that which allow the display of data


    Thank you very much

    Yes, but I want a web tool that uses the URL, not the client server those. :), which are not allowed by the security check.

    As a development tools, I believe that developer SQL and TOAD (in addition to SQL * more) are what you need (although these are client/server tools).

    Oracle Enterprise Manager is a good tool tracking (but not for development), as a DBA you use EM, and access it via a URL.

    I might not necessarily use sqlplus command. but a program stored as programs simultaneous fnd.

    There is no standard concurrent requests that can help achieve this goal.

  • How to determine the strict reference to the table of waveform

    Hello

    I want to change the properties of a waveform by programming. I used to get all references maps of waveform a function of range in my script VI VI. Then I typecasted references to more specific class (strict-single track) after this trial I was able set properties such as data history. Everything works fine but if I add a graphic that is multiplot, that this approach does not work.

    The problem is that in the table of references, there is reference to a graph in multiplot waveform, and this reference is not possible typcast to the more specific category (strict-single parcel).

    My question is: how to determine if the reference in the table is matching the proper waveform (single or multiplot) charts.

    In the VI attached is a code that demonstrates my problem.

    Thanks a lot for the replies

    Jan

    Thank you for advice. VI point 2 from your answer, I created and it works. The solution is attached.

    If I understand it correctly. I need to know the type of chart to come.

    My first idea was to create a VI in Drop that initializes all the graphics of VI on chart type independently.

    But this solution is fine because I will only use graphics-single plot and multiplot(two elements).

    Thank you

    Jan

  • Difference between ANALYZE TABLE and DBMS_STATS. GATHER_TABLE_STATS?

    Hi DBAs,

    I'm in a learning phase and a newbie DBA. I got confused in the collection of statistics. Could someone explain the below? :

    ANALYZE TABLE employee COMPUTE STATISTICS;

    and

    DBMS_STATS. GATHER_TABLE_STATS ('hr', 'employees');

    The difference is that ANALYZE TABLE is obsolete for a long time and it's the wrong way of doing things.

  • [JS CS3] How to determine if a table is threaded

    I'm trying to find a way to determine if a selected table runs a block of text to another framework.

    Given a table "myTable", I know that myTable.parent is a textFrame.

    I know that myTable.parent.nextTextFrame and myTable.parent.previousTextFrame will give me the previous linked text frames, but how can I determine whether or not the table is thrown in the following picture?

    Thank you

    ~ Keith

    table. Cells [0] .insertionPoints [0] .parentTextFrames [0] gives you the

    text of the first cell block

    table. Cells [-1] .insertionPoints [0] .parentTextFrames [0] gives you the

    text of the last cell block

    If they are different, the table runs into another block of text...

    Substances

  • How to determine tables of tracking, data, processes and relationships of Table requirements

    I need to determine the 4 things from an existing of APEX application

    1. process flow

    2. necessary data

    3. the tables used

    4 all the relationships that exist between the tables

    Can someone help me plese. I worked on it for too long!

    # 3, you can use the utilities, the dependency ratio of object database to determine which tables and views are used by your application...

    # 4, you can get in SQL Developer and produce a data model that should show you the relationships between the tables (if they are enabled)

    The first two will involve actually evaluate the application itself...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • Analyze tables after creating indexes

    Hi all

    I created new clues on the production environment, we must analyze tables after creating indexes. Why and what analysis do?

    Thanks for the help.
    Select * from V$version;
    
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    "CORE     10.2.0.4.0     Production"
    TNS for HPUX: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production

    There are so many different options and you'll certainly want to tweak your stats based on your system.
    The best thing to do is to read about dbms_stats:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14211/stats.htm#PFGRF30102
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_stats.htm#CIHEHDFB

    Here are a few examples to give you an idea of what they look like and how to perform:

    BEGIN
      DBMS_STATS.GATHER_TABLE_STATS(OWNNAME          => 'schema_name',
                                    TABNAME          => 'table_name',
                                    ESTIMATE_PERCENT => DBMS_STATS.AUTO_SAMPLE_SIZE, --> For really big tables oracle can just do a specific percent
                                    METHOD_OPT       => 'for all columns size 1', --> Defines Histograms, size one disables histograms
                                    DEGREE           => 12, --> The degree of parallelism so you'll see 12 parallel threads gathering stats
                                    CASCADE          => TRUE); --> gather stats on the table's indexes also
    END; 
    
    BEGIN
      DBMS_STATS.GATHER_INDEX_STATS(OWNNAME          => 'schema_name',
                                    INDNAME          => 'index_name',
                                    ESTIMATE_PERCENT => 50,
                                    DEGREE           => 4);
    END; 
    

    You can also do

    DBMS_STATS.gather_schema_stats
    DBMS_STATS.gather_database_stats

    and much more...

    I really want to focus on the need to do your homework on them,
    read the docs I linked and adjust your statistical parameters to fit your db objects and how they are accessed/used.
    Having accurate and meaningful statistics are very important to the performance of the database.

Maybe you are looking for