How to Rename or Move Oracle Tablespace Datafile to Another Location Wie umbenennen oder verschieben Oracle Tablespace Datafile auf eine andere Lage
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. Nicht Oracle-Datenbank bieten eine einfache Benutzeroberfläche, um eine Datendatei des Tablespace umbenennen, oder Datenbank-Administrator kann leicht zu verschieben oder die Datendatei einen anderen Standort verlegen oder das Verzeichnis, dass verschiedene von den ursprünglichen Standort auf der Schaffung einer Datenbank. The rename or move place task has to be performed via Oracle SQLPlus command line interface. Das Umbenennen oder Verschieben Ort Aufgabe ist über Oracle SQLPlus Kommandozeilen-Schnittstelle ausgeführt werden. 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 Tablespace die DATEI besitzt online ist, dann tritt der Fehler.
The error message may include the following: Die Fehlermeldung kann Folgendes umfassen:
ORA-01511: error in renaming log/data files ORA-01511: Fehler beim Umbenennen des Log-Dateien
ORA-01121: cannot rename database file <string> – file is in use or recovery ORA-01121: kann nicht umbenannt werden <string> Datenbank-Datei - Datei in Verwendung oder Verwertung
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 um die Datendatei oder benennen Sie die Datendatei, folgen Sie dieser Anleitung:
- Login to SQLPlus. Melden Sie sich SQLPlus.
- Connect as SYS DBA with CONNECT / AS SYSDBA command. Verbinden als SYS DBA mit CONNECT / AS SYSDBA Befehl.
- Shutdown the database instance with SHUTDOWN command. Herunterfahren der Datenbank-Instanz mit SHUTDOWN-Befehl.
- Rename or/and move the datafiles at operating system level. Umbenennen oder / und verschieben Sie die Datendateien auf Betriebssystemebene.
- Start Oracle database in mount state with STARTUP MOUNT command. Start Oracle-Datenbank in Mount-Zustand mit STARTUP MOUNT 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 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 FILE '<vollqualifizierter Weg zum ursprünglichen Daten Dateiname>' TO '<new oder original vollständig qualifizierten Pfad zu neuen oder ursprüngliche Datendatei name>';
- Open Oracle database instance completely with ALTER DATABASE OPEN command. Open Oracle-Datenbank-Instanz komplett mit ALTER DATABASE OPEN-Befehl.
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, die geändert oder verschoben werden nicht auf SYSTEM Tablespaces gehören, und enthalten keine aktiven Rollback-Segmente oder temporäre Segmente gibt es eine andere Abhilfe, die nicht verlangt Datenbankinstanz heruntergefahren werden. Instead, only the particular tablespace that contains the date files is taken offline. Stattdessen kann nur das Tablespace, dass das Datum Dateien enthält, offline geschaltet wird.
- Login to SQLPlus. Melden Sie sich SQLPlus.
- Connect as SYS DBA with CONNECT / AS SYSDBA command. Verbinden als SYS DBA mit CONNECT / AS SYSDBA Befehl.
- Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. Stellen 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 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> <vollqualifizierter RENAME DATAFILE 'Pfad für die ursprüngliche Datendatei name>' TO '<new oder original vollständig qualifizierten Pfad zu neuen oder ursprüngliche 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 : The page is machine translated and provided "as is" without warranty. WICHTIG: Die Seite ist Maschine übersetzt und "as is" ohne Garantie. Machine translation may be difficult to understand. Maschinelle Übersetzung kann schwierig zu verstehen. Please refer to Bitte beachten Sie original English article Original Englisch Artikel whenever possible. wann immer möglich.
Related Articles In Verbindung stehende Artikel
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Wie Drop Tablespace and Recover Oracle Database, wenn versehentlich löschen Datafile
- How to Remove and Drop Datafiles from Tablespace in Oracle Database How to Remove and Drop Datafiles von Tablespace in Oracle Database
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error Oracle ORA-01658 Unable to INITIAL Umfang für Segment im Tablespace Fehler erstellen
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Temporary Tablespace ist leer Fehler in Oracle
- Fix Vista Unable to Rename or Move Files and Folders Issues After Applying KB938979 Patch Fix Vista kann nicht umbenennen oder Dateien und Ordner verschieben Probleme nach dem Anwenden von Patch KB938979
- How to Move WordPress Blog to New Domain or Location Wie sich zu bewegen WordPress Blog zu neuen Domain oder Ort
- Download Bulk Rename Utility To Rename Files Easily Bulk Rename Utility Umbenennen von Dateien leicht
- Change Oracle Database User Password Change Oracle Database User Password
- Oracle Database Link Oracle Database Link
- Move or Change Vista Documents, Pictures, Music, Videos, Games and Other Personal Folders Location Verschieben oder Ändern Vista Dokumente, Bilder, Musik, Videos, Spiele und andere Persönliche Ordner Lage









































