If you want to increase/resize the temporary tablespace TEMP which is having a temporary datafile temp01.dbf, then follow the steps below
1. Find out the tempfile name and size
SQL> select * from v$tempfile;
FILE# CREATION_CHANGE# CREATION_ TS# RFILE# STATUS ENABLED
---------- ---------------- --------- ---------- ---------- ------- ----------
BYTES BLOCKS CREATE_BYTES BLOCK_SIZE
---------- ---------- ------------ ----------
NAME
-------------------------------------------------------------------------------
1 550491 27-JUN-08 3 1 ONLINE READ WRITE
20971520 2560 20971520 8192
C:\ORACLE\PRODUCT\10.2.0\ORADATA\DELDB\TEMP01.DBF
The following info is available from the above command
Tempfile name is C:\ORACLE\PRODUCT\10.2.0\ORADATA\DELDB\TEMP01.DBF
size --> 2560 * 8192 = 20MB
2. So if you want to increase the tempfile size to 50MB use the following SQL
SQL> alter database tempfile 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\DELDB\TEMP01.DBF'
resize 50m;
Database altered.
SQL> select * from v$tempfile;
FILE# CREATION_CHANGE# CREATION_ TS# RFILE# STATUS ENABLED
---------- ---------------- --------- ---------- ---------- ------- ----------
BYTES BLOCKS CREATE_BYTES BLOCK_SIZE
---------- ---------- ------------ ----------
NAME
--------------------------------------------------------------------------------
1 550491 27-JUN-08 3 1 ONLINE READ WRITE
52428800 6400 20971520 8192
C:\ORACLE\PRODUCT\10.2.0\ORADATA\DELDB\TEMP01.DBF
Blog Archive
-
▼
2008
(9)
-
▼
July
(8)
- Monitoring DML ( Insert/Update/Delete) Operations ...
- Table Rename - What Happens to the Indexes,constra...
- Monitoring the Space Usage in TEMPORARY tablespace
- Resizing a temporary tablespace TEMP
- Monitoring the Oracle Database - "Processes" Initi...
- How to Enable / Disable Archive log Mode in 10g
- How to Increase the OC4J JVM heap size in Oracle A...
- How to Increase the JVMs for an OC4J Instance in R12
-
▼
July
(8)
Wednesday, July 9, 2008
Subscribe to:
Post Comments (Atom)
1 comment:
it sounds good but practically do not you think that it might corrupt the tempfile. In production one of our dba issued
alter database tempfile filename resize and we had to take a downtime to fix it by recreating another temp. What will happen to the already existing contents in the tempfile.
Post a Comment