Home > Database > Mysql Tutorial > body text

Oracle临时表空间问题解决一例

WBOY
Release: 2016-06-07 17:40:50
Original
1267 people have browsed it

今天一哥们讲OA里面的某些模块失效了,一查系统日志,原来是Oracle数据库的临时表空间满了,中午吃饭的时候就把数据库重启一下(这种方式最简便也不容易出错),

 今天一哥们讲OA里面的某些模块失效了,香港服务器,一查系统日志,原来是Oracle数据库的临时表空间满了,中午吃饭的时候就把数据库重启一下(这种方式最简便也不容易出错),没想到临时表空间还是有问题,后面进行如下处理得到恢复:

1、查看临时表空间大小:

select name,to_char(bytes/1024/1024)||'M' from v$tempfile;

结果显示临时表大小为0M,如下显示:

NAMETO_CHAR(BYTES/1024/1024)||'M'

/app/oracle/oradata/metenoa/temp01.dbf0M

 

2、然后再看了一下数据库文件的挂载状态:

select file#,name,status,enabled from v$tempfile;

显示STATUS为offline

利用以下语句进行处理:

alter database tempfile '/app/oracle/oradata/metenoa/temp01.dbf' online;

然后再查看一下临时表状态,如下显示(ONLINE正常啦):

FILE#NAMESTATUSENABLED

1/app/oracle/oradata/metenoa/temp01.dbfONLINEREAD WRITE

再查看一下空间大小,有数值显示了,如下:

NAMETO_CHAR(BYTES/1024/1024)||'M'

/app/oracle/oradata/metenoa/temp01.dbf351M

 

本文出自 “生命不止,战斗不息!” 博客,香港服务器租用,请务必保留此出处

,网站空间
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template