That is why I like to set a maxsize on my temp tablespaces to a reasonable limit. Then, if user's queries fail with ora-1652
, it's probably because they're running poorly written queries with unselective predicates, cartesian joins, etc. This helps me identify when they are running those and correct them rather than just letting them eat up system resources and grow the temp tablespace to a ridiculous size.
Sent: Thursday, January 19, 2006 9:15 AM
Subject: Re: [Q] way to shrink temporary tablespace ??
On 19/01/06, David Sharples <davidsharples@(protected):
> you have data beyond the 2Gb limit of the file, there is nothing to fix and
> it will stay like that as temporary tablespace segments just get reused.
I had the same problem, the temproary tablespace datafile had grown to
32Gb. This was worrying as the database contained less than 3Gb of
actual data. We eventually concluded (after looking at the sorts of
queries that were popping up in v$sql) that a lot of users were
running very unselective queries with sorts in them that meant that
virtually the entire database was being sorted repeatedly in many
Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.