useful temporary tablespace commands:
Resize a Temporary Tablespace:
alter tablespace temp resize 1000M;
alter database tempfile 'tempfile_name' resize 3000M;
alter database tempfile 'tempfile_name' autoextend on maxsize 30G;
Shrink a Temporary Tablespace:
alter tablespace temp shrink space;
alter tablespace temp shrink tempfile 'tempfile_name' keep 2000M;
Rename a Temporary Tablespace:
alter tablespace temp rename to temp_x;
To view information about Temporary Tablespace:
select * from dba_temp_files;
select * from v$tempfile;
select * from v$temp_space_header;
Monitor the tempoary tablspace usage:
select * from v$sort_usage;
select * from v$sort_segment;
No comments:
Post a Comment