How to Rename or Move Oracle Tablespace Datafile to Another Locationどのように名前を変更したり、別の場所にOracleの表領域データファイルの移動
Oracle database does not provide an easy user interface to rename a datafile of tablespace, nor database administrator can easily move or relocate the datafile to another location or directory that different from original location on creation of database. Oracleデータベースの表領域のデータファイルの名前を変更したり、データベース管理者は簡単に移動するか、または別の場所またはディレクトリは、データベースの作成時に元の場所から別のデータファイルへの移転は簡単なユーザーインターフェイスを提供していません。 The rename or move place task has to be performed via Oracle SQLPlus command line interface.タスクの名前を変更したり場所を移動OracleのSQLPlusコマンドラインインターフェイスを介して実行されていない。 However, if the operation is performed when the tablespace which owns the datefile is online, error will occur.ただし、操作を実行する場合は、表領域がオンラインであるdatefileを所有していると、エラーが発生します。
The error message may include the following:このエラーメッセージは次のものがあります:
ORA-01511: error in renaming log/data filesログの名前を変更でのORA - 01511 :エラー/データファイル
ORA-01121: cannot rename database file <string> - file is in use or recoveryのORA - 01121 :データベースファイル<string> -ファイルの名前を変更することはできません使用や回復している
ORA-01110: data file <string>: ‘datafile.dbf’のORA - 01110 :データ<string>ファイル: ' datafile.dbf '
To properly move the datafile around or rename the datafile, follow this guide:正しくは、周りデータファイルまたはデータファイルの名前を変更すると、このガイドに従って移動するには:
- Login to SQLPlus. SQLPlusログインしてください。
- Connect as SYS DBA with CONNECT / AS SYSDBA command. DBAのSYSとして接続すると接続/ SYSDBA権限コマンドです。
- Shutdown the database instance with SHUTDOWN command. SHUTDOWNコマンドでシャットダウンは、 データベースインスタンスを生成します。
- Rename or/and move the datafiles at operating system level.または名前の変更/およびオペレーティングシステムレベルでのデータファイルを移動します。
- Start Oracle database in mount state with STARTUP MOUNT command. Oracleデータベースでスタートスタートアップ山のコマンドで状態をマウントしてください。
- Modify the name or location of datafiles in Oracle data dictionary using following command syntax:の名前またはOracleデータのデータファイルの場所の辞書を使用して以下のコマンドの構文を変更:
ALTER DATABASE RENAME FILE ‘<fully qualified path to original data file name>’ TO ‘<new or original fully qualified path to new or original data file name>’;元のデータへのALTER DATABASEをファイル名の変更' <fully修飾パスファイル名'に<newまたは元の完全新規または元のデータファイルへのパスを修飾名' ;
- Open Oracle database instance completely with ALTER DATABASE OPEN command.オープンなALTER DATABASEコマンドでOracle データベースのインスタンスを完全にオープン。
If the datafiles that need to be changed or moved do not belong to SYSTEM tablespaces, and do not contain active rollback segments or temporary segments, there is another workaround that does not require database instance to be shutdown.変更される場合は、データファイルが必要とするか、システムテーブルスペースに属していない移動し、積極的なロールバックセグメントまたは一時的なセグメントが含まれていないが、別のデータベースインスタンスをシャットダウンする必要はありません回避策はありません。 Instead, only the particular tablespace that contains the date files is taken offline.オフラインには代わりに、特定の表領域は、日のみのファイルが含まれている。
- Login to SQLPlus. SQLPlusログインしてください。
- Connect as SYS DBA with CONNECT / AS SYSDBA command. DBAのSYSとして接続すると接続/ SYSDBA権限コマンドです。
- Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. <tablespaceと、 影響を受けるのALTER TABLESPACE 表領域名オフラインオフラインにする;コマンドです。
- Modify the name or location of datafiles in Oracle data dictionary using following command syntax:の名前またはOracleデータのデータファイルの場所の辞書を使用して以下のコマンドの構文を変更:
ALTER TABLESPACE <tablespace name> RENAME DATAFILE ‘<fully qualified path to original data file name>’ TO ‘<new or original fully qualified path to new or original data file name>’; <tablespaceのALTER TABLESPACE名RENAMEデータファイル' <fully修飾パス元のデータファイル名'に<newまたは元の完全新規または元のデータファイルへのパスを修飾名' ;
- Bring the tablespace online again with ALTER TABLESPACE alter tablespace <tablespace name> ONLINE; command.再度のALTER TABLESPACE名オンライン; <tablespaceコマンド表領域を変更するには、表領域をオンラインにします。
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 Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafileドロップ表領域とOracleデータベースを回復する方法が誤って削除データファイル
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace ErrorオラクルのORA - 01658セグメントのテーブルスペースのエラーでは、最初に範囲を作成することはできません
- How to Remove and Drop Datafiles from Tablespace in Oracle Databaseどのようにデータファイルを削除してドロップするOracleのデータベーステーブルから
- ORA-25153 Temporary Tablespace is Empty Error in Oracle表領域のORA - 25153一時的にOracleの空のエラーです
- Manual and Clean Uninstall Oracle for Windows Oracleのマニュアルで清潔なアンインストールWindows用
- ORA-01502 Oracle Index in Unusable StateのORA - 01502 Oracleのインデックス使用できない状態に
- Oracle Database Import Error 3113/3114 Oracleデータベースのインポートエラー3114分の3113
- Change Oracle Database User Password Oracleデータベースユーザーのパスワードを変更
- Check Oracle Version Oracleのバージョンを確認する
- Oracle Database Link Oracleデータベースリンク

































September 17th, 2008 08:39 9月17日、 2008年08:39
sftugp jlnu rpwhl lutho sftugp jlnu rpwhl lutho