RE: ORA-25153: Temporary Tablespace is Empty

From: Dunbar, Norman <norman.dunbar_at_environment-agency.gov.uk>
Date: Fri, 5 Feb 2010 10:58:45 -0000
Message-ID: <919FC80F27E0C6428106496EDF92A7520B424AAE_at_EXCCLUS05.PRODDS.NTNL>



Morning Alessandro,

>> I need help about tha am error ORA-25153: Temporary
>> Tablespace is Empty.
>>
>> I create a new view (using create like by OEM). My
>> programmere run sql for such view and this error returned.

You have a TEMP tablespace but it has no files 'attached'.

>> I checked the tbs and tha TEMP tbs had no datafile
>> associated. I'm sure before it was.

TEMP tablespaces should have TEMPFILES attached, not DATAFILES. Look in DBA_TEMP_FILES rather than DBA_DATA_FILES. (Oracle version dependent though - what version are you running?)

>> To solve I just want add one datafile, but why it can happen?

alter tablespace temp add tempfile 'blah' size ? reuse;

How it can happen?

Someone could have dropped the tempfile(s) from the tablespace. An RMAN backup doesn't copy the tempfiles, so a restore or duplicate doesn't add them back in.
An other problem?

Cheers,
Norman.

Norman Dunbar
Dunbar IT Consultants Ltd
Tel: 0779 3292 984
Tel: 0773 4531 439

Registered address:
Thorpe House
61 Richardshaw Lane
Pudsey
West Yorkshire
United Kingdom
LS28 7EL

Company Number: 05132767

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else. We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes. If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Feb 05 2010 - 04:58:45 CST

Original text of this message