Oracle临时表空间和回滚段被占满了,该怎么办?
如题:
使用dba_data_file和dba_free_space 联合查询,看不到临时表空间temp了!
看不到?没有遇到过,是你查询语句不对吧.....攒经验,学习中,期待解决...
SQL code:
select t1."Tablespace" "Tablespace",
t1."Total (G)" "Total (G)",
nvl(t2."Used (G)", 0) "Used(G)",
t1."Total (G)" - nvl(t2."Used (G)", 0) "Free (G)"
from
(
select tablespace_name "Tablespace", to_char((sum(bytes/1024/1024/1024)),'99,999,990.900') "Total (G)"
from dba_temp_files
group by tablespace_name
union
select tablespace_name "Tablespace", to_char((sum(bytes/1024/1024/1024)),'99,999,990.900') "Total (G)"
from dba_data_files
where tablespace_name like'TEMP%'
group by tablespace_name
) t1,
(
select tablespace, round(sum(blocks)*8/1024) "Used (G)" from v$sort_usage
group by tablespace
) t2
where t1."Tablespace"=t2.tablespace(+)
结果:
Tablespace Total (G) Used(G) Free (G)
TEMP 0.039 0 0.039
能把查询语法贴出来看看吗?如果temp空间如果不够,有可能你的磁盘空间就不够了.这时候可能要检查硬盘空间是不是被占满了.
或者新建一个临时表空间,分配2G的空间,如果可以建立,就是你的临时表空间被占满了.
检查表空
相关问答:
请问这个缓冲池是怎么回事啊?可以连接缓冲池利用其中的数据吧?怎么用?
这个是oracle自动做的,一般应用程序是操作不了的。
不能直接连接吗?
引用
不能直接连接吗?
不能
那缓冲池里的数据也不能查询 ......
各位oracle高手,请教一下为什么oracle 10g在安装到百分之八十五的时候就报错不能继续安装?
内存多大? 重新下个数据库安装试试..
引用
各位oracle高手,请教一下为什么oracle 10g在安装到百分之八十五的时 ......
各位大哥,帮个忙。
下个Oracle for vista 版本的安装试试
10G和11G的
http://www.oracle.com/technology/software/products/database/index.html
------------------------------------------- ......
我在开发的这个应用并发性比较高,oracle更新数据时候如何处理并发处理呢?各位大侠发表好的观点啊,在线等待!
oracle数据更新时,会自动默认行锁定,楼主不要操心,Oracle对并行处理已经很成熟了
引用
oracle ......
oracle 11g 安装 01092 错误,
日志信息:
[oracle@linux trace]$ vi alert_orcl.log
MMON started with pid=14, OS id=9089
RESETLOGS after incomplete recovery UNTIL CHANGE 522752
Errors in file / ......