Solved

Having an issue with temp datafile

Posted on 2007-04-09
2
982 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
2 Comments
 
LVL 34

Accepted Solution

by:
johnsone earned 500 total points
Comment Utility
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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
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 shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now