oracle dba_segments 查询不出结果
来源:互联网 发布:魔兽世界怀旧服 知乎 编辑:程序博客网 时间:2024/04/24 07:00
前两天刚装了个11.2.0.4 AIX环境,建了一堆表空间,导入了2T数据。
结果执行下面命令的时候,死活不出结果。
select segment_type,sum(bytes)/1024/1024/1024 from dba_segments where owner ='USER1' group by segment_type;
cancel的时候报错
异常退出DBMS_SPACE_ADMIN
非常奇怪,为什么一个查询操作会用到这个包呢?
百度上搜了一下,发现eagle大师的文章提到了一点
http://www.dbafan.com/blog/?p=146
解决方法是运行procedure: TABLESPACE_FIX_SEGMENT_EXTBLKS
DBMS_SPACE_ADMIN.TABLESPACE_FIX_SEGMENT_EXTBLKS(‘tablespace_name’);
Issuing DBMS_SPACE_ADMIN.TABLESPACE_FIX_SEGMENT_EXTBLKS fixes the DBA_SEGMENTS values. The tablespace
must be kept online and read/write when this procedure is called. Runing this procedure requires COMPATIBLE parameter to be set to 10.0.0.0 or greater.
The procedure fixes extents, blocks and bytes in the segment headers to synchronize seg$ and
segment header entries.
It holds the allocation enqueue for the tablespace till the command is completed and this may delay some sort of operations in this tablespace (new extent allocation, deallocate extent, etc.). So it needs to be run during an idle period.
我猜想可能也是我这边的表空间有问题,于是对所有的业务表空间执行了一下DBMS_SPACE_ADMIN.TABLESPACE_FIX_SEGMENT_EXTBLKS
之后再查询就非常快的出结果了。
- oracle dba_segments 查询不出结果
- 查询oracle中的DBA_SEGMENTS试图
- plsql like 中文 ,查询不出结果
- oracle走错索引不出结果
- mybatis有符合条件的结果但是查询不出
- loopback find查询不出想要的结果
- oracle表关联方式错误导致不出结果
- oracle中查询中文字段查询不出的问题
- Oracle dba_data_files dba_segments dba_free_space
- 开发日志:HQL关联查询出现语句正确,但一直查询不出结果的问题
- hibernate+mysql中文查询不出结果,其他查询正常,SQL语句也正常
- 为什么运行不出结果?
- dba_segments
- DBA_SEGMENTS
- 都是分词模式惹的祸——庖丁解牛分词查询不出结果问题
- 解决:hibernate+mysql中文查询不出结果,SQL语句也正常
- 利用表单查询使结果在另一个表单上显示,为什么筛选不出记录?
- 如何解决:mysql中文查询不出结果(软件与SQL语句都正常)
- ssh防止挂死的小技巧
- Check MD5SUM in OS X
- 链表应用-- 一元多项式相加
- windows下配置hiredis
- CentOS 6.4编译安装LNMP+Discuz
- oracle dba_segments 查询不出结果
- 设计模式
- 杭电ACM 人见人爱A^B
- UNL图(七) 序列图和协作图
- poj2524--Ubiquitous Religions
- acm.2
- 用 logcat 命令来查看 android 系统日志缓冲区的内容
- go mysql 的坑
- startbbs数据库文档整理