ITPub博客

首页 > 数据库 > Oracle > 查看 临时表空间

查看 临时表空间

原创 Oracle 作者:笑平风 时间:2014-10-14 15:31:28 0 删除 编辑


    select owner,table_name,duration from dba_tables where temporary='Y';    查看临时表
     select * from v$sort_usage;              查看临时表空间的使用情况

修改默认临时表空间
 create temporary tablespace temp tempfile '/oracledb/app/oracle/oradata/sealdb/temp.dbf' size 100m autoextend on;
 alter database default temporary tablespace temp; 
 drop tablespace temp02 including contents and datafiles;
 alter user someone temporary tablespace temp;
select * from database_properties where property_name='DEFAULT_TEMP_TABLESPACE';   查看系统默认临时个空间
 select username,temporary_tablespace from dba_users where username='TEST';   查看用户所用的临时个空间

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29798713/viewspace-1298496/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 临时表空间学习
请登录后发表评论 登录
全部评论

注册时间:2014-08-09

  • 博文量
    75
  • 访问量
    194551