RTFM("Read The Fucking Manual")的意思(zt)



今天在oracle-l看到一个贴子
-------------------quote begin------------------------------
日期:Mon, 5 Feb 2007 09:07:37 +0530
发件人:"Anand Rao"   
收件人:"Oracle-l"
主题:10053 Trace and OBJ$ (DBA_SEGMENTS)
   
Folks,

Has anyone come across this issue where,

you run a simple query on dba_segments (or user_segments) and produce a 10053 trace. The trace file does not contain the " BASE STATISTICAL INFORMATION" section. The table and index stats are completely missing. So, i don't see the  #Rows:, #Blks:, AvgRowLen:, AvgLen:, NDV:, Nulls:, Density: and so on...

Dictionary stats have been gathered, i haven't gathered System stats.

The query is,

SELECT NVL2(partition_name,
                            segment_name || ':' || partition_name,
                            segment_name)
                  FROM user_segments
                 WHERE segment_type IN ('TABLE', 'TABLE PARTITION') AND
                       segment_name NOT IN
                       (SELECT object_name
                          FROM recyclebin bin) AND
                       segment_name NOT IN (:p1,:p2,:p3,:p4,:p5)
                            ORDER BY bytes DESC


Now, if i run another query based on some other non-dictionary based tables ( EMP, DEPT), then everything is fine.

It seems to be an issue with some access rights to OBJ$ is what i can figure out but what permission needs to be granted is the question. The user is a OS authenticated user, OPS$DEV1 and has DBA privilege. Even if i execute the same query as user ' oracle', the owner of the database, it doesn't help.

Oracle version is 10.2.0.1.0 on Sun Solaris 9.

is there something fundamental i am missing here? RTFM...??? i did a bit of Meta-linking, searching the list and RTFMs but could not find anything in particular.

thanks,

anand

转载于:http://blog.itpub.net/94384/viewspace-600290/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值