Oracle中如何重建与切换临时表空间
2013-06-14 18:08
417 查看
Oracle9i中如何重建与切换临时表空间
0
作者:eygle |English【转载时请以超链接形式标明文章出处和作者信息及本声明】
链接:http://www.eygle.com/archives/2006/04/oracle9i_default_temporary_tablespace.html
站内相关文章|Related Articles
10gR2使用RMAN恢复临时表空间的增强
临时文件file#和db_files的关系
v$tempfile与v$sort_usage之关系解析
LOB对象与临时段
Sparse File And Oracle temporary tablespaces
Oracle9i引入了全局缺省临时表空间,缺省的如果不指定用户临时表空间,Oracle会为用户指定这个缺省临时表空间.
首先查询用户的缺省临时表空间:
[oracle@jumper oracle]$ sqlplus "/ as sysdba" SQL*Plus: Release 9.2.0.4.0 - Production on Wed Apr 12 11:11:43 2006 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production With the Partitioning option JServer Release 9.2.0.4.0 - Production SQL> select username,temporary_tablespace from dba_users; USERNAME TEMPORARY_TABLESPACE ------------------------------ ------------------------------ SYS TEMP2 SYSTEM TEMP2 OUTLN TEMP2 EYGLE TEMP2 CSMIG TEMP2 TEST TEMP2 REPADMIN TEMP2 ...... 13 rows selected. SQL> select name from v$tempfile; NAME --------------------------------------------------------------------- /opt/oracle/oradata/conner/temp02.dbf /opt/oracle/oradata/conner/temp03.dbf |
SQL> create temporary tablespace temp tempfile '/opt/oracle/oradata/conner/temp1.dbf' size 10M; Tablespace created. SQL> alter tablespace temp add tempfile '/opt/oracle/oradata/conner/temp2.dbf' size 20M; Tablespace altered. SQL> alter database default temporary tablespace temp; Database altered. SQL> select username,temporary_tablespace from dba_users; USERNAME TEMPORARY_TABLESPACE ------------------------------ ------------------------------ SYS TEMP SYSTEM TEMP OUTLN TEMP EYGLE TEMP CSMIG TEMP TEST TEMP REPADMIN TEMP ....... 13 rows selected. |
SQL> drop tablespace temp2;
Tablespace dropped.
SQL>
SQL> select name from v$tempfile;
NAME
---------------------------------------------------------------
/opt/oracle/oradata/conner/temp1.dbf
/opt/oracle/oradata/conner/temp2.dbf
SQL> select file_name,tablespace_name,bytes/1024/1024 MB,autoextensible
2 from dba_temp_files
3 /
FILE_NAME TABLESPACE_NAME MB AUTOEXTENSIBLE
-------------------------------------- -------------------- ---------- --------------
/opt/oracle/oradata/conner/temp2.dbf TEMP 20 NO
/opt/oracle/oradata/conner/temp1.dbf TEMP 10 NO
相关文章推荐
- Oracle10G如何重建及切换临时表空间
- oracle 专用模式和共享模式之我见 如何切换
- oracle如何实现全角和半角的切换
- ORACLE 在线重建临时表空间
- Oracle如何释放临时表空间
- Oracle 11g重建控制文件——如何获取创建控制文件脚本
- Oracle DataGuard主库丢失archivelog,如何不重建备库完成同步?
- Oracle9i重建与切换临时表空间
- 重建oracle临时表空间
- 如何判断Oracle DB是归档还是非归档模式,如何切换
- 如何切换ORACLE的主目录
- 如何配置和重建Oracle 10G的em服务--dbcontrol
- Oracle中Inventory目录作用以及如何重建此目录
- Oracle如何批量重建数据库索引
- 在oracle中如何从一个用户切换到另一个用户
- 同时安装java for OS X 和Oracle java 7,如何自由切换JDK版本
- 如何找出Oracle中需要或值得重建的索引
- 如何重建oracle dataguard
- Oracle 重建控制文件(在丢失控制文件的情况下,如何恢复数据库)
- 如何找出Oracle中需要或值得重建的索引