创建和修改临时表空间
2013-12-24 15:57
190 查看
创建和修改临时表空间
创建临时表空间需要使用temporary,关键字为tempfile,一般用于执行排序等操作
SQL> create temporary tablespace mytemp
2 tempfile 'D:\oradata\mytemp.dbf'
3 size 5M autoextend on next 2M maxsize 20M;
SQL> select tablespace_name,status from dba_tablespaces;
增加临时文件,add tempfile,修改大小resize,也可修改状态为online或者offline
SQL> column name format A50
SQL> select file#,status,name from v$tempfile; 查看状态
SQL> alter tablespace mytemp
2 add tempfile 'D:\oradata\mytemp2.dbf'
3 size 5M;
SQL> select file#,status,name from v$tempfile;
临时表空间组
使用临时表空间组,可并发执行排序操作,避免空间不足问题
创建使用tablespace group在创建时指定一个组,查看临时表空间组信息,数据字典
dba_tablespace_groups,移动alter tablespace
SQL> create temporary tablespace tempgroup
2 tempfile 'D:\oradata\tempgroup01.dbf' size 5M
3 tablespace group group01;
SQL> select * from dba_tablespace_groups;
SQL> create temporary tablespace tempgroup02
2 tempfile 'D:\oradata\tempgroup02.dbf' size 5M
3 tablespace group group02;
SQL> select * from dba_tablespace_groups;
SQL> alter tablespace tempgroup tablespace group group02; //将tempgroup移动到group02
SQL> select * from dba_tablespace_groups;
创建临时表空间需要使用temporary,关键字为tempfile,一般用于执行排序等操作
SQL> create temporary tablespace mytemp
2 tempfile 'D:\oradata\mytemp.dbf'
3 size 5M autoextend on next 2M maxsize 20M;
SQL> select tablespace_name,status from dba_tablespaces;
增加临时文件,add tempfile,修改大小resize,也可修改状态为online或者offline
SQL> column name format A50
SQL> select file#,status,name from v$tempfile; 查看状态
SQL> alter tablespace mytemp
2 add tempfile 'D:\oradata\mytemp2.dbf'
3 size 5M;
SQL> select file#,status,name from v$tempfile;
临时表空间组
使用临时表空间组,可并发执行排序操作,避免空间不足问题
创建使用tablespace group在创建时指定一个组,查看临时表空间组信息,数据字典
dba_tablespace_groups,移动alter tablespace
SQL> create temporary tablespace tempgroup
2 tempfile 'D:\oradata\tempgroup01.dbf' size 5M
3 tablespace group group01;
SQL> select * from dba_tablespace_groups;
SQL> create temporary tablespace tempgroup02
2 tempfile 'D:\oradata\tempgroup02.dbf' size 5M
3 tablespace group group02;
SQL> select * from dba_tablespace_groups;
SQL> alter tablespace tempgroup tablespace group group02; //将tempgroup移动到group02
SQL> select * from dba_tablespace_groups;
相关文章推荐
- oralce临时表空间的创建与修改
- 临时表空间+创建临时表空间+查询表空间信息+查询临时文件+修改临时表空间
- oracle的约束的分类创建和修改
- (一)oracle创建用户、表空间、临时表空间、分配权限步骤详解
- DOM中修改内容和创建节点
- 设置文件属性里的时间,包括:创建时间、访问时间、修改时间
- oracle 11g 数据库, 创建表空间, 修改表空间, 创建用户,并将用户分配给表空间,将dmp
- 黄聪:C#“多线程线程间操作无效: 从不是创建控件的线程访问它。”,跨线程修改控件属性解决方案
- 在 Laravel 5 中集成 Intervention Image 实现对图片的创建、修改和压缩处理
- 创建、查询、修改带名称空间的 XML 文件的例子
- 在 Laravel 5 中集成 Intervention Image 实现对图片的创建、修改和压缩处理
- ubuntu非root用户创建网站时,修改apache2指定网站默认目录出现403
- mysql修改登录密码、创建新的登录用户、开启外部访问的端口
- IOS 之使用FMDB进行SQLite数据库操作——表的创建与修改,以及数据的增删改查和多线程操作数据库
- SQL2008 修改创建数据库的默认路径
- 我的XMLHelper----C# XML操作基类(修改,删除,新增,创建)
- linux创建用户、修改密码(自动修改密码)
- MySQL 5.7.6+创建新用户修改密码及分配权限
- VMware vSphere 通过模板创建虚拟机后修改MAC地址脚本
- 一步步学习SPD2010--第四章节--创建和修改网页(8)--插入Web部件区域