?
Solved

Having an issue with temp datafile

Posted on 2007-04-09
2
Medium Priority
?
992 Views
Last Modified: 2008-01-09
SQL> select * from dba_temp_files;
ERROR:
ORA-01157: cannot identify/lock data file 202 - see DBWR trace file
ORA-01110: data file 202: 'F:\ORACLE\ORADATA\IWDBT\TEMP01.DBF'

I just ran this query against my database. The path f:\oracle\oradata\iwdbt\ doesn't exist in my environment. How can I get this fixed? The correct path is f:\oracle\oradata\iwdb
0
Comment
Question by:ACSDBA
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
johnsone earned 2000 total points
ID: 18877797
These 2 steps should work:

alter database tempfile 'F:\ORACLE\ORADATA\IWDBT\TEMP01.DBF' drop;
alter tablespace <temp_ts> add tempfile 'F:\ORACLE\ORADATA\IWDBF\TEMP01.DBF' size <size>;

You need to substitiute in the tablespace_name for <temp_ts> and the size of the temp file for <size>.
0
 
LVL 7

Expert Comment

by:Fayyaz
ID: 18880554
Hope below steps will help

1). Create another temporary tablespace
2). Make this newly created tablespace as default temporary tablespace
3). drop the old temporary tablespace including temp files.

0

Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
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.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

649 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