由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - analyze 在oracle里怎么用?
相关主题
问一个转行到数据库方面的事,急求大家建议!很弱的Oracle问题
performance question各位老大,管理数据库的用户,这样行吗?
SQL combine two columns from two different tables no shared (转载)Oracle下如何能得到所有table的名字?
请教一个问题Table Merge (SQL Server)
mysql maximum columns <=1000?其实有个问题好久没有明白!
Basic oracle questions.问个external table field definition的问题
我的DBA在生成ORACLE table的时候需要一个一个column看问一个Oralce index的问题
Oracle,table有上千个columnwhat is optimizer statistics in Oracle?
相关话题的讨论汇总
话题: analyze话题: table话题: user话题: oracle话题: statistics
进入Database版参与讨论
1 (共1页)
t******n
发帖数: 239
1
在sql下输入,比如有个table 叫"country"
SQL> analyze table country compute statistics for table;
Table analyzed.
只显示出table analyzed,那结果在哪里? 如果compute exact statistics for all
relations in a certain query, 又该怎么弄.我GOOGLE了半天, 只知道analyze
command干吗用的,其他的一头雾水.有人可以解答下么?
s**o
发帖数: 584
2
should be User_Tables for this statement.

【在 t******n 的大作中提到】
: 在sql下输入,比如有个table 叫"country"
: SQL> analyze table country compute statistics for table;
: Table analyzed.
: 只显示出table analyzed,那结果在哪里? 如果compute exact statistics for all
: relations in a certain query, 又该怎么弄.我GOOGLE了半天, 只知道analyze
: command干吗用的,其他的一头雾水.有人可以解答下么?

t******n
发帖数: 239
3
终于搞懂了,analyze完,statistics要在user_tables user_tab_columns里找。谢谢
y********o
发帖数: 2565
4
I am using Oralce XE, but I cannot find this user_tab_columns field in user_
tables. I logged in as sysdba.

【在 t******n 的大作中提到】
: 终于搞懂了,analyze完,statistics要在user_tables user_tab_columns里找。谢谢
: 了

t******n
发帖数: 239
5
我用的ORACLE 10g
我找到statistics在user_tables, user_tab_columns, user_indexes这三个里有。
这个三个都是table的。
y********o
发帖数: 2565
6
Is the name of the field "statistics"?

【在 t******n 的大作中提到】
: 我用的ORACLE 10g
: 我找到statistics在user_tables, user_tab_columns, user_indexes这三个里有。
: 这个三个都是table的。

t******n
发帖数: 239
7

不是,statistic广泛地指analyze后的数据。比如你可以select avg_col_len from
user_tab_columns where column_name = ' '里找倒相应attribute的average length
of values. 还有一些有多少blocks之类的,看情形。

【在 y********o 的大作中提到】
: Is the name of the field "statistics"?
1 (共1页)
进入Database版参与讨论
相关主题
what is optimizer statistics in Oracle?mysql maximum columns <=1000?
初级问题Basic oracle questions.
如何分析Stored Procedure运行时间过长?我的DBA在生成ORACLE table的时候需要一个一个column看
如何only update the first occurrence in a tableOracle,table有上千个column
问一个转行到数据库方面的事,急求大家建议!很弱的Oracle问题
performance question各位老大,管理数据库的用户,这样行吗?
SQL combine two columns from two different tables no shared (转载)Oracle下如何能得到所有table的名字?
请教一个问题Table Merge (SQL Server)
相关话题的讨论汇总
话题: analyze话题: table话题: user话题: oracle话题: statistics