How Drop Tablespace and Recover Oracle Database When Accidentally Delete DatafileどのようドロップOracleデータベースのテーブルスペースを回復DATAFILEのときに誤って削除
Accident may happens, even though it’s costly one.事故が起こる年5月にもかかわらず、高価なことの1つです。 This is especially the case in Oracle database, which stores the database objects physically in data files on hard disk.これは特に、 Oracleデータベースの場合は、データベースオブジェクトを格納する物理的には、ハードディスク上にデータファイルです。 Fast hand administrators may accidentally delete some of the datafiles, or the datafiles may get corrupted or unreadable on hard disk failure.高速手の管理者が誤って削除いくつかのデータファイル、または破損しているかのデータファイルがあります。読み取れない、ハードディスク上にエラーが発生します。 You may get also some missing datafiles after database recovery process.ことがあります取得した後にもいくつかのデータファイル、データベースの回復プロセス行方不明です。 In any case, missing a or a few datafiles will cause Oracle database to fail to startup, rendering the whole DB inaccessible.いずれにせよ、行方不明、またはごく少数のデータファイルは、 Oracleデータベースが失敗する原因のスタートアップに、全体にレンダリングするdBのアクセスできません。
The solution to the missing datafiles is to drop the affected tablespace where has incomplete datafiles, and then recreate the tablespace and import the data into the tablespace from backup.行方不明のデータファイルへの解決策をテーブルスペースをドロップするだけで影響を受けるには不完全なデータファイル]をクリックしてテーブルスペースに再現すると、テーブルからデータをインポートしてバックアップを実行します。 However, the steps are not so straight forward.しかし、まっすぐ進むの手順を実行されないようです。
- Run SQL*Plus. SQL * Plusで実行します。
- Connect to database as SYSDBA with this query: SYSDBAとしてデータベースに接続して、このクエリ:
CONNECT / AS SYSDBA接続/ SYSDBAとして
- Mount the database instead of starting it up:データベースの代わりにマウントして起動する:
STARTUP MOUNT;スタートアップのマウント;
- Issue the following command to bring the missing datafile offline so that Oracle won’t trying to connect and access the datafile anymore:次のコマンドを発行して行方不明DATAFILEをもたらすようにオフラインのOracleはないDATAFILEをしようとしてアクセスして接続し、もう:
ALTER DATABASE DATAFILE ‘<datafile name with complete path>’ OFFLINE DROP;データベースDATAFILEを変える' <datafile名と完全なパス'オフラインドロップ;
Repeat the command for every datafiles that unaccounted for.すべてのデータファイルのコマンドを繰り返しますが行方不明です。
- Now start the database proper:今すぐ起動してデータベースに適切:
ALTER DATABASE OPEN;変更データベースを開いて;
- As the tablespace has damaged, drop it to recreate from fresh backup.テーブルスペースとしては、破損した場合、それを再現するドロップより新鮮なバックアップを実行します。
DROP TABLESPACE <tablespace name> INCLUDING CONTENTS;ドロップ<tablespace名を含むテーブルの内容;
- Ensure the other datafiles for the tablespace has been deleted, if not, remove them manually from the operating system.テーブルスペースを確保するための他のデータファイルが削除されて、そうでない場合は、手動で削除してから、オペレーティングシステムのです。
Tip:ヒント: How to check datafiles that belong to tablespaceデータファイルをどのように属してテーブルをチェックする .です。
- Continue with the recovery process.回復プロセスを続行する。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これは、機械翻訳ページで提供"現状有姿"を保証します。 Machine translation may be difficult to understand.機械翻訳を理解するのは難しいかもしれません。 Please refer toを参照してください original English articleオリジナルの英語記事索引 whenever possible.いつ可能です。
Share and contribute or get technical support and help atを共有して貢献や技術サポートとヘルプを得る My Digital Life Forums 私のデジタルライフフォーラム .です。
Related Articles関連記事
- How to Remove and Drop Datafiles from Tablespace in Oracle Databaseデータファイルを削除してからドロップする方法をOracleデータベースのテーブルスペースで
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace ErrorオラクルのOra - 01658の範囲の最初のセグメントを作成できない場合は、テーブルスペースのエラーが発生
- How to Rename or Move Oracle Tablespace Datafile to Another Location Oracleのテーブルスペースの名前を変更する方法についてまたはDATAFILEのを別の場所に移動する
- ORA-25153 Temporary Tablespace is Empty Error in OracleメールORA - 25153テンポラリテーブルスペースが空にエラーが発生オラクル
- Delete, Remove or Drop Oracle Stored Packages with Drop Package削除、 Oracleのストアドパッケージを削除したり、ドロップドロップパッケージ
- Oracle Database Link Oracleデータベースのリンク
- ORA-02449 Oracle Drop Table Errorエラーが発生OracleのドロップテーブルのOra - 02449
- Manual and Clean Uninstall Oracle for Windowsオラクル、 Windowsのマニュアルおよび清潔度をアンインストール
- Oracle Database Import Error 3113/3114 Oracleデータベースにインポートエラーが発生3114分の3113
- Change Oracle Database User Password Oracleデータベースのユーザのパスワードを変更















August 4th, 2007 02:57 2007年8月4日02:57
[...] If one or more datafiles is missing after a recovery process or accidental deletion, you can use ALTER DATABASE DATAFILE <datafile name> OFFLINE DROP command to make the datafile offline so that database can starts up after which the troubled tablespace can be dropped. [...] 1つまたは複数のデータファイルが存在しない場合、回復プロセスまたは誤って削除した後、 <datafile DATAFILEを使用することができますデータベース名を変更コマンドをオフラインでドロップDATAFILEをオフラインにしてデータベースを作ることは、経営難のテーブルスペースの後に起動することに下落した。 (See instruction to recover from missing datafiles.) [...] (参照命令を回復するデータファイルから行方不明です。 ) [...]
April 2nd, 2008 18:27 2008年4月2日18:27
These are only to drop the TSこれらは0のみをドロップする
but not to recover…しかし、回復しないように…
hence the worst….それゆえ、最悪の… 。
July 8th, 2008 19:31 2008年7月8日19:31
This info helped us to a very great extent and hence we are able to proceed further smoothly.この情報は助け問い合わせは、非常に大きな範囲やそれゆえ我々はより詳細なスムーズに続行できるようにします。