ORACLEデータベース によくあるエラ の解決策

プロのOracle Databaseの復旧サービスを提供 携帯番号: +86 13764045638 メール:service@parnassusdata.com

    適用範囲 Oracleデータベース – エンタプライズバーション – 11.2.0.3バーションあるいはより高いバーション このファイルはどのプラットフォームにも適用できる。 症状 alert.logファイルを確認して、以下のようなエラになる: Errors in file /u01/app/oracle/diag/rdbms/ps2jfmsm/ps2jfmsm1/trace/ps2jfmsm1_m000_27934.trc: ORA-01157: cannot identify/lock data file 76 – see DBWR trace file ORA-01110: data file 76: ‘/u01/app/oracle/product/11.2.0.3/db_1/dbs/glacloseindexdata’ 变化 データファイルがオペレーションシステムから移された。 原因 そのファイルがなくなった。 /u01/app/oracle/product/11.2.0.3/db_1/dbsのパスを確認して、そのファイルがここにいないことと示している。 解决 まずはそのファイルがこのテーブルスペースにある唯一なデータファイルか確認してください: SQL> select ts# from v$datafile where file# = 76; TS# ———- 33 SQL> select file# from v$datafile where ts# = 33; FILE# ———- 76 So only datafile 76 exists in tablespace 33 SQL> select name from v$tablespace where ts# = 33; NAME —————————— GLACLOSEINDEX そのテーブルスペースを削除してみる: SQL> drop tablespace glacloseindex; drop tablespace glacloseindex * ERROR at line 1: ORA-01157: cannot identify/lock data file 76 – see DBWR trace file ORA-01110: data file 76: ‘/u01/app/oracle/product/11.2.0.3/db_1/dbs/glacloseindexdata’ SQL> select * from v$recover_file; no rows selected So the datafile must still be online. SQL> alter database datafile 76 offline drop; Database altered. SQL> SQL> SQL> drop tablespace glacloseindex; Tablespace dropped.