Home  >  Article  >  Database  >  Oracle数据库临时表空间问题

Oracle数据库临时表空间问题

WBOY
WBOYOriginal
2016-06-07 17:33:18858browse

笔者在日常系统检查时,通过oracle Enterprise Manager Console检查数据库表空间使用情况,发现系统表空间使用率100% ,而且每个

Linux公社

首页 → 数据库技术

背景:

阅读新闻

Oracle数据库临时表空间问题

[日期:2013-11-11] 来源:Linux社区  作者:Linux [字体:]

create temporary tablespace oastemp tempfile ‘/dev/vgoracle/rdboastemp.dbf’ size 1024M;
create temporary tablespace eletemp tempfile ‘/dev/vgoracle/rdbeletemp.dbf’ size 500M;
create temporary tablespace tcmtemp tempfile ‘/dev/vgoracle/rdbtcmtemp.dbf’ size 500M;
并且指定对应的用户。
3、创建系统默认表空间
//建立一个中转临时表空间:
(1)>create temporary tablespace temp2
tempfile 'D:\oracle\oradata\test\temp2.dbf' size 512M
reuse autoextend on next 100M maxsize 2048M;
(2) >alter database default temporary tablespace temp2;
(3) >drop tablespace temp including contents and datafiles;

//重新建立一个新的临时表空间:
(1)>create temporary tablespace temp
tempfile 'D:\oracle\oradata\test\temp01.dbf' size 512M
reuse autoextend on next 100M maxsize 1024M;
(2) >alter database default temporary tablespace temp;//修改用户对应的表空间
(3) >drop tablespace temp2 including contents and datafiles;

对以上操作最好做下控制文件备份方法如下:

1、将控制文件备份为二进制文件

SQL>alter database backup controlfile to 'i:\oracle\backup\control.bkp';

2、将控制文件备份为文本文件(备份到oracle\base\admin\sid\udump目录下的跟踪文件中,将在跟踪文件中生成一个SQL脚本)

SQL>alter database backup controlfile to trace;

3、通过spfile生成pfile文件备份控制文件

SQL>create pfile='/pfile_backup.ora' from spfile='/home/oracle/product/10.2.0/db_1/dbs/spfileSID.ora';

相关阅读:

Oracle 临时表空间的管理与受损恢复

Oracle 临时表空间过大问题解决 

解决ORA-14450:试图访问已经在使用的事务处理临时表 

Oracle创建基于事务和基于会话的临时表及临时表建索引的实验

Oracle 临时表之临时表空间组(TTG) 

linux

  • 0
  • 使用select语句查看Oracle的各种命中率和性能统计数据

    重命名Oracle数据库服务器

    相关资讯       Oracle临时表  Oracle临时表空间 

    图片资讯      

    本文评论   查看全部评论 (0)

    评论声明

    最新资讯

    本周热门

    Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
    本站(LinuxIDC)所刊载文章不代表同意其说法或描述,仅为提供更多信息,,也不构成任何建议。


    Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号

    Statement:
    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