Situation
The user runs into multiple ORA-01555 errors stating that the TEMP tablespace is unable to extend the temp segment by a particular size.
If the database template was used in the creation of the database, this ought to be a very rare occurrence. The DBT establish the temp tablespace with autoextend on and the ability to grow to a max of "unlimited", which is to say 32G for a single file.
Solution
To determine if the autoextend option has been set for a temp tablespace, log into SQL Plus as SYS / as SYSDBA, and run the following script:
column file_name format a30
SELECT file_name, tablespace_name, autoextensible
FROM dba_temp_files;
SELECT file_name, tablespace_name, autoextensible
FROM dba_temp_files;
To turn autoextend on, modify the following script to include your temp datafile and path, and run from SQL Plus as SYS / as SYSDBA:
SQL> alter database tempfile '<Your path>\<Your_TEMP01>.DBF' autoextend on;
Here's an example:
SQL> alter database tempfile 'C:\APP\ADMINISTRATOR\ORADATA\PROTECT\TEMP01.DBF' autoextend on;
No comments:
Post a Comment