How to Rename or Move Oracle Tablespace Datafile to Another Location Wie umbenennen oder verschieben Oracle Tablespace Datafile an einen anderen Speicherort
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-Datenbank bietet keine einfache Benutzeroberfläche auf Umbenennen einer Datei von Tablespace, noch Datenbank-Administrator kann einfach verschieben oder verlagern die Datei an einen anderen Ort oder das Verzeichnis aus, dass die verschiedenen ursprünglichen Standort auf der Schaffung von Datenbank. The rename or move place task has to be performed via Oracle SQLPlus command line interface. Die umbenennen oder verschieben Ort Aufgabe durchgeführt werden soll über Oracle SQLPlus Befehlszeilen-Schnittstelle. However, if the operation is performed when the tablespace which owns the datefile is online, error will occur. Allerdings, wenn die Operation wird ausgeführt, wenn der Tabellenplatz der Eigentümer der datefile online ist, werden Fehler auftreten.
The error message may include the following: Die Fehlermeldung kann sich auf folgende Bereiche:
ORA-01511: error in renaming log/data files ORA-01511: Fehler beim Umbenennen des log / Daten-Dateien
ORA-01121: cannot rename database file <string> - file is in use or recovery ORA-01121: cannot umbenennen Datenbankdatei <string> - in der Datei verwendet wird oder das Wiederaufleben
ORA-01110: data file <string>: ‘datafile.dbf’ ORA-01110: Datendatei <string>: "datafile.dbf"
To properly move the datafile around or rename the datafile, follow this guide: Um es korrekt zu bewegen Sie die Datei um oder benennen Sie die Datei, folgen Sie dieser Anleitung:
- Login to SQLPlus. Melden Sie sich SQLPlus.
- Connect as SYS DBA with CONNECT / AS SYSDBA command. Verbinden Sie als SYS DBA mit CONNECT / AS SYSDBA-Befehl.
- Shutdown the database instance with SHUTDOWN command. Herunterfahren der Datenbank-Instanz mit SHUTDOWN-Kommando.
- Rename or/and move the datafiles at operating system level. Umbenennen und / oder verschieben Sie die Dateien auf Betriebssystem-Ebene.
- Start Oracle database in mount state with STARTUP MOUNT command. Start Oracle-Datenbank in Mount Staat mit Start-up-mount Kommando.
- Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Ändern Sie den Namen oder Speicherort der Datendateien in einem Oracle Data Dictionary mit folgenden Befehl Syntax:
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 RENAME Datei '<fully qualifizierten Pfad zur Original-Datei name>' auf '<Neues Original oder vollständig qualifizierten Pfad zu neuen oder Original-Datendatei name>';
- Open Oracle database instance completely with ALTER DATABASE OPEN command. Offene Oracle-Datenbank-Instanz vollständig mit ALTER DATABASE-Befehl Öffnen.
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. Wenn die Datendateien werden müssen verändert oder verschoben gehören nicht in die System-Tablespaces, und enthalten keine aktiven Rollback-Segmente oder temporären Segmenten gibt es einen weiteren Workaround das ist es nicht erforderlich, Datenbank-Instanz zu shutdown. Instead, only the particular tablespace that contains the date files is taken offline. Stattdessen wird nur die besondere Tablespace, enthält das Datum von Dateien ist offline.
- Login to SQLPlus. Melden Sie sich SQLPlus.
- Connect as SYS DBA with CONNECT / AS SYSDBA command. Verbinden Sie als SYS DBA mit CONNECT / AS SYSDBA-Befehl.
- Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. Machen Sie offline den betroffenen Tablespace mit ALTER TABLESPACE <tablespace name> OFFLINE; Befehl.
- Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Ändern Sie den Namen oder Speicherort der Datendateien in einem Oracle Data Dictionary mit folgenden Befehl Syntax:
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>’; ALTER TABLESPACE <tablespace name> RENAME datafile '<fully qualifizierten Pfad zur Original-Datei name>' auf '<Neues Original oder vollständig qualifizierten Pfad zu neuen oder Original-Datendatei name>';
- Bring the tablespace online again with ALTER TABLESPACE alter tablespace <tablespace name> ONLINE; command. Bringen Sie den Tablespace wieder online mit ALTER TABLESPACE ALTER TABLESPACE <tablespace name> online; Befehl.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. WICHTIG: Es handelt sich um eine Maschine der Seite übersetzt wird "as is" ohne Garantie. Machine translation may be difficult to understand. Maschinelle Übersetzung ist vielleicht schwierig zu verstehen. Please refer to Bitte wenden Sie sich an original English article Original Englisch Artikel whenever possible. wann immer dies möglich ist.
Share and contribute or get technical support and help at Aktie und einen Beitrag oder erhalten technische Unterstützung und Hilfe an My Digital Life Forums Meine digitalen Lebens Foren .
Related Articles Verwandte Artikel
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Wie Drop Tablespace und erholen Oracle-Datenbank, wenn versehentlich löschen Datafile
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error Oracle ORA-01658 Unable to Create URSPRÜNGLICHER Umfang für Segment im Tablespace Fehler
- How to Remove and Drop Datafiles from Tablespace in Oracle Database How to Remove and Drop Datafiles von Tablespace auf Oracle-Datenbank
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Temporary Tablespace ist leer Fehler in Oracle
- Manual and Clean Uninstall Oracle for Windows Handbuch und sauber deinstallieren Oracle für Windows
- ORA-01502 Oracle Index in Unusable State ORA-01502 Oracle-Index in Unusable Staat
- Oracle Database Import Error 3113/3114 Oracle-Datenbank importieren Fehler 3113/3114
- Change Oracle Database User Password Ändern Oracle-Datenbank Benutzer-Passwort
- Check Oracle Version Check Oracle-Version
- Oracle Database Link Oracle Database Link

































September 5th, 2008 12:51 5. September 2008 12:51
lmavk dqgljn zpqb lcrbngf lmavk dqgljn zpqb lcrbngf