Oracle Foundation 02 Temporary TABLESPACE Temp

Source: Internet
Author: User

--View the use/remaining space of temporary files

Sql> select * from V$temp_space_header;


--View the temporary tablespace to which the Scott user belongs

Sql> Select Username, temporary_tablespace from dba_users

where username= ' SCOTT ';
  

--See which temporary files are currently available

Sql> Select tablespace_name,file_name,bytes/1024/1024 total_m from Dba_temp_files;

--Re-establish a temporary table space

sql> Create temporary tablespace temp1
Tempfile '/u01/app/oracle/oradata/test10g/temp101.dbf ' size 100M;


--Add a temporary tablespace file

sql> Alter tablespace temp add tempfile '/u01/app/oracle/oradata/test10g/temp02.dbf ' size 100M;


--Set the built-in TEMP1 table space to the default temporary tablespace for the database

sql> ALTER DATABASE default temporary tablespace Temp1;


--drop out of the old temp table space

sql> Drop Tablespace temp including contents and datafiles;

Oracle Foundation 02 Temporary TABLESPACE Temp

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.