Resize Tablespace Hangs

Posted on 2012-09-19
Medium Priority
Last Modified: 2012-09-29
About five hours ago i went through OEM to resize a datafile in the TEMP tablespace which had zero data.  TEMP is not the default temporary tablespace.  Looking at OEM all i see is that pink 'other'  blocked sessions 1 root blockers 1.  What needs to be done to have Oracle actually complete the resize this century?
Question by:xoxomos
  • 3
LVL 16

Assisted Solution

by:Richard Olutola
Richard Olutola earned 600 total points
ID: 38417152
Have you checked the alert log?

What version Oracle?
What O/S
Is the database actively used?
Are you in archivelog mode? Is there room there?
What is the size of the datafile? Is there available space on the target drive/partition?


Author Comment

ID: 38418665
Yes, the alert log just shows the  ALTER statement.
At this time not highly active, but yes it's active.
Yes it's archivelog mode.   Plenty room in archive_dest_nn.
Datafile currently 20G.  I am trying to resize DOWN to 2G.

Accepted Solution

xoxomos earned 0 total points
ID: 38420150
This blog looks like what may be happening


I issued a drop tablespace temp and it hang. If you are in the same situation check the above:

select username,session_num,session_addr from v$sort_usage
where tablespace='[Name of the temp tablespace you want to drop]';

if this query return rows use the session_num to find the sid from the v$session.

select sid,serial#,status from v$session where serial#=[session_num];

Alternatively use the session_addr.

select sid,serial#,status from v$session where saddr='[session_addr]';

and then kill the session at will.

alter system kill session '[sid],[serial#]' immediate;

Author Closing Comment

ID: 38446909
Found 43 inactive sessions still hanging on to TEMP.  Policy dictated I could not kill them as recommended in the blog so I just waited for the application to be shut down for weekly cold backup.  As soon as application shut down, tablespace resize completed.

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question