What is the SL syntax to view Statistics on a table? (I.e. what columns that stats are collected on and the last ime collected). I am coming from the Teradata world and do not know the Oracle syntax.
The data dictionary views that show table statistics are the "..._tables" views. (The reason I say "..._tables" views is because there are USER_TABLES (tables that the querying schema owns), ALL_TABLES (tables to which the querying schema has access), and DBA_TABLES (all tables in the database regardless of ownership).
These views show all of the currently gathered statistics. One of the columns is "LAST_ANALYZED", which shows the date and time of last statistics gathering for each table. The other statistical columns are too numerous to list here, so you can see them by issuing a "describe user_tables" (for example).
For future reference, it will help focus answers (as well as reduce clutter and storage requirements - not to mention people burning time responding to questions that have already been answered) if you just post the question once, in the appropriate forum (i.e., the version of Oracle that matches what you are using).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.