ORA-01157: cannot identify/lock data file 9 - see DBWR trace file [message #52809] |
Wed, 14 August 2002 23:47 |
Aji
Messages: 1 Registered: August 2002
|
Junior Member |
|
|
ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
This was the message shown when i opened the database.
file 9 was a temporary tablespace named "datatemp".
the file was present in the specified location.
then i did after mounting the database
svrmgrl>2) alter database datafile '....' offline;
but it shows the message "media recovery not enabled".
Now i want the data back. i have no backup or
database was not in Archieve mode.all i have is control
files and other tablespaces. i tried a lot of options
but all of them failed. after sometime i was even able to mount the database. when i start the database it
shows the message "database already started shutdown first". then i give the shutdown command then it shows
"not connected".
any body now what is the problem.anyhow i want then data back. we are using windows NT as oracle server(8.1.6). it has 255 MB RAM . and plenty of disk space.pls replay.
|
|
|
|
Re: ORA-01157: cannot identify/lock data file 9 - see DBWR trace file [message #52846 is a reply to message #52809] |
Fri, 16 August 2002 06:46 |
ÄjiRóck
Messages: 1 Registered: August 2002
|
Junior Member |
|
|
Recovery-Temporary TablespaceÀÇ À¯½Ç
1. Database¸¦ ±âµ¿
$svrmgrl
SVRMGR> connect / as sysdba
SVRMGR> startup
SVRMGR> select tablespace_name, file_name from dba_datafiles ;
--> Temporary TablespaceÀÇ Data File °æ·Î¸íÀ» È®ÀÎ
SVRMGR> !ls -la $HOME/DATA/DISK3/temp01.dbf
--> Å©±â È®ÀÎ
2. Failure¸¦ ¸¸µç´Ù.
SVRMGR> shutdown abort
--> Failure¸¦ »ó»ó
SVRMGR> ! mv $HOME/DATA/DISK3/temp01.dbf $HOME/DATA/DISK3/temp01.org
SVRMGR> startup
ORA-01157: cannot identify data file 4 - file not found
ORA-01110: data file 4:'/home/disk1/userDBA205/DATA/DISK3/temp01.dbf'
3. Recovery ¼öÇà
--> Temporary Tablespace À̹ǷΠDropÇÏ°í »õ·Î ¸¸µé¸é µÊ
SVRMGR> alter database datafile '$HOME/DATA/DISk3/temp01.dbf' offline drop ;
SVRMGR> alter database open ;
Statement processed.
SVRMGR> select * from dba_tablespaces ;
--> "Temp_data" Tablespace´Â ±×·¡µµ Á¸ÀçÇÔ
--> "Temp_data" TablespaceÀÇ ±¸¼º File Áß Çϳª¸¦ Drop ÇÑ °Í »ÓÀ̴ϱî.(¿©±â¼± ¿ì¿¬È÷ Çϳª¿´´Ù.)
SVRMGR> drop tablespace temp_data including contents ;
SVRMGR> create tablespace temp_data
2 datafile '$HOME/DATA/DISK3/temp01.dbf' size 1M ;
--> ¾Õ¿¡¼ È®ÀÎÇÑ Å©±â·Î ´Ù½Ã »ý¼º
SVRMGR> shutdown immediate
--> Shutdown °ú StartupÀ» ÇغÁ¼ Àß µÇ´ÂÁö È®ÀÎ
SVRMGR> startup
SVRMGR> shutdown immediate
SVRMGR> !rm $HOME/DATA/DISK3/temp01.org
--> ÇÊ¿ä ¾ø´Â fileÀ» »èÁ¦
SVRMGR> exit
|
|
|