
RecoverTablespace
FrontPage > OracleTips > RecoverTablespace
○表領域のdbfファイルを削除してしまったら
http://www.mars.dti.ne.jp/~o-shin/new/kowaza/body620.html
http://www.tujige.info/manage/oracle/delete_tablespace.html
データベースを停止する
startup mount でマウント状態にする。
V$DATAFILE で消してしまったデータファイル名とそのデータファイルで構成される表領域を確認する。
削除してしまったファイルを同じディレクトリに同じ名前の空のファイルを作成する。
alter database datafile 'データファイル(フルパス)' offline drop でデータファイルをオフラインにする。
alter database open でデータベースを open する。
drop tablespace 表領域名 including contents で表領域を削除。
作成した空のファイルを削除する。