Oracle Temp Table Space

Source: Internet
Author: User

Environment:

OS:

Oracle Linux Server Release 5.7

Db:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0-64bit Production

1. View Temporal tablespace Information:

Select tablespace_name,file_name,bytes/1024/1024 file_size,autoextensible from Dba_temp_files;

tablespace file_name file_size Autoexten
---------- ---------------------------------------- ---------- ---------
TEMP/U01/ORACLE/ORADATA/YOON/TEMP01.DBF YES

2, add data file, Tempfile,not datafile

sql> Alter tablespace temp add tempfile '/u01/oracle/oradata/yoon/temp02.dbf ' size 100m;

3. Create a temporary table space

sql> Create temporary tablespace temp2 tempfile '/u01/oracle/oradata/yoon/temp2_01.dbf ' size 100m autoextend on next 50 M

4. Delete temporary table space

Sql> drop tablespace temp2 including contents and datafiles;

5. Modify the default temp table space

sql> ALTER DATABASE default temporary tablespace temp2;

6. Modify the User default temp table space

sql> alter user Scott temporary tablespace temp;

Oracle Temp Table Space

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.