ORA-01157: cannot identify/lock data file 201 - see DBWR trace file
ORA-01110: data file 201: '/u01/app/oracle/oradata/STLBAS/temp01.dbf'
1. Connect to sqlplus
SQL> select tablespace_name, file_name, bytes/1048576 "MB" from dba_temp_files;
select tablespace_name, file_name, bytes/1048576 "MB" from dba_temp_files
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 201 - see DBWR trace file
ORA-01110: data file 201: '/u01/app/oracle/oradata/STLBAS/temp01.dbf'
2. Check the status of datafile
SQL> select file#,status,name from v$tempfile;
FILE# STATUS
---------- -------
NAME
--------------------------------------------------------------------------------
1 ONLINE
/u01/app/oracle/oradata/STLBAS/temp01.dbf
3. Drop temporary datafile
SQL> alter database tempfile '/u01/app/oracle/oradata/STLBAS/temp01.dbf' drop;
Database altered.
SQL> select file#,status,name from v$tempfile;
no rows selected
SQL>
4. Create new temporary tablespace
SQL> CREATE TEMPORARY TABLESPACE TEMP2 TEMPFILE '/oracledb/oradata/stlbas/temp02.dbf' SIZE 10G;
Tablespace created.
SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2;
Database altered.
ORA-01110: data file 201: '/u01/app/oracle/oradata/STLBAS/temp01.dbf'
1. Connect to sqlplus
SQL> select tablespace_name, file_name, bytes/1048576 "MB" from dba_temp_files;
select tablespace_name, file_name, bytes/1048576 "MB" from dba_temp_files
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 201 - see DBWR trace file
ORA-01110: data file 201: '/u01/app/oracle/oradata/STLBAS/temp01.dbf'
2. Check the status of datafile
SQL> select file#,status,name from v$tempfile;
FILE# STATUS
---------- -------
NAME
--------------------------------------------------------------------------------
1 ONLINE
/u01/app/oracle/oradata/STLBAS/temp01.dbf
3. Drop temporary datafile
SQL> alter database tempfile '/u01/app/oracle/oradata/STLBAS/temp01.dbf' drop;
Database altered.
SQL> select file#,status,name from v$tempfile;
no rows selected
SQL>
4. Create new temporary tablespace
SQL> CREATE TEMPORARY TABLESPACE TEMP2 TEMPFILE '/oracledb/oradata/stlbas/temp02.dbf' SIZE 10G;
Tablespace created.
SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2;
Database altered.
Jadwal Daftar Sabung Ayam SV388 26 Februari 2019 - Selasa, 26 Februari 2019 – Pada Hari Tersebut Akan Di Laksanakan Berbagai Pertandingan Sabung Ayam Secara Live di Arena Sabung Ayam Thailand.
ReplyDeleteSitus Judi Sabung Ayam Online SV388 Merupakan Situs Judi Asal Thailand Yang Sangat Terkenal Dengan Permainan Sabung Ayam Yang Fair dan Menghibur Para Penonton Judi Sabung Ayam.
Untuk Info Lebih Lanjut Bisa Hub kami Di :
wechat : bolavita
line : cs_bolavita
whatsapp : +628122222995
BBM: BOLAVITA
Hello Everybody,
ReplyDeleteMy name is Mrs Sharon Sim. I live in Singapore and i am a happy woman today? and i told my self that any lender that rescue my family from our poor situation, i will refer any person that is looking for loan to him, he gave me happiness to me and my family, i was in need of a loan of $250,000.00 to start my life all over as i am a single mother with 3 kids I met this honest and GOD fearing man loan lender that help me with a loan of $250,000.00 SG. Dollar, he is a GOD fearing man, if you are in need of loan and you will pay back the loan please contact him tell him that is Mrs Sharon, that refer you to him. contact Dr Purva Pius, call/whats-App Contact Number +918929509036 via email:(urgentloan22@gmail.com) Thank you.