How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Wie Drop Tablespace und erholen Oracle-Datenbank, wenn versehentlich löschen Datafile
Accident may happens, even though it’s costly one. Mai Unfall passiert, obwohl es teuer ein. This is especially the case in Oracle database, which stores the database objects physically in data files on hard disk. Dies ist insbesondere der Fall in einem Oracle-Datenbank, die Datenbank speichert die Objekte physisch in Dateien auf der Festplatte. Fast hand administrators may accidentally delete some of the datafiles, or the datafiles may get corrupted or unreadable on hard disk failure. Fast Hand Administratoren, könnten versehentlich löschen Sie einige der Datendateien, oder die Dateien kann es beschädigt oder nicht lesbar auf der Festplatte Misserfolg. You may get also some missing datafiles after database recovery process. Sie können auch einige fehlende Datendateien nach Datenbank-Recovery-Prozess. In any case, missing a or a few datafiles will cause Oracle database to fail to startup, rendering the whole DB inaccessible. Auf jeden Fall fehlt ein oder einige Datendateien wird dazu führen, dass Oracle-Datenbank zu scheitern bis zur Inbetriebnahme, so dass die ganze DB nicht erreichbar ist.
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. Die Lösung für die fehlenden Datendateien ist, um die betroffenen Tablespace, wo hat unvollständig Datendateien, und dann neu den Tablespace und Import der Daten in das Backup-Tablespace aus. However, the steps are not so straight forward. Allerdings sind die Schritte sind nicht so einfach.
- Run SQL*Plus. Ausführen von SQL * Plus.
- Connect to database as SYSDBA with this query: Verbindung zur Datenbank als SYSDBA mit dieser Abfrage:
CONNECT / AS SYSDBA CONNECT / AS SYSDBA
- Mount the database instead of starting it up: Mount der Datenbank ab, anstatt ihn:
STARTUP MOUNT; 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: Ausgabe den folgenden Befehl ein, um die fehlende Datei offline, so dass Oracle nicht versucht zu verbinden und Zugriff auf die Datei mehr:
ALTER DATABASE DATAFILE ‘<datafile name with complete path>’ OFFLINE DROP; ALTER DATABASE datafile '<datafile mit vollständigem Namen path>' Offline DROP;
Repeat the command for every datafiles that unaccounted for. Wiederholen Sie den Befehl für alle Dateien, aufzuklären.
- Now start the database proper: Starten Sie nun die richtige Datenbank:
ALTER DATABASE OPEN; ALTER Datenbank geöffnet;
- As the tablespace has damaged, drop it to recreate from fresh backup. Da die Tablespace beschädigt hat, legen Sie ihn auf neu aus frischen Backup.
DROP TABLESPACE <tablespace name> INCLUDING CONTENTS; DROP TABLESPACE <tablespace name> einschließlich Inhalt;
- Ensure the other datafiles for the tablespace has been deleted, if not, remove them manually from the operating system. Stellen Sie sicher, die anderen Datendateien für die Tablespace wurde gestrichen, wenn nicht, löschen Sie diese manuell aus dem Betriebssystem.
Tip: Tipp: How to check datafiles that belong to tablespace Wie Sie Dateien, die in Tablespace . Werden.
- Continue with the recovery process. Fahren Sie mit der Recovery-Prozess.
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 . Werden.
Related Articles Verwandte Artikel
- How to Remove and Drop Datafiles from Tablespace in Oracle Database How to Remove and Drop Datafiles von Tablespace auf Oracle-Datenbank
- 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 Rename or Move Oracle Tablespace Datafile to Another Location Wie umbenennen oder verschieben Oracle Tablespace Datafile an einen anderen Speicherort
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Temporary Tablespace ist leer Fehler in Oracle
- Delete, Remove or Drop Oracle Stored Packages with Drop Package Löschen, Entfernen oder Drop Oracle gespeichert Pakete mit Drop-Paket
- Oracle Database Link Oracle Database Link
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle DROP TABLE-Fehler
- Manual and Clean Uninstall Oracle for Windows Handbuch und sauber deinstallieren Oracle für Windows
- Oracle Database Import Error 3113/3114 Oracle-Datenbank importieren Fehler 3113/3114
- Change Oracle Database User Password Ändern Oracle-Datenbank Benutzer-Passwort



















August 4th, 2007 02:57 4. August 2007 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. [...] Wenn ein oder mehrere Dateien fehlen nach einem Recovery-Prozess oder die versehentliche Löschung, können Sie ALTER DATABASE Datafile <datafile name> OFFLINE DROP Befehl, um die Datei, so dass Offline-Datenbank kann startet nach der der unruhigen Tablespace kann fallen zu lassen. (See instruction to recover from missing datafiles.) [...] (Die Anweisung zur Wiederherstellung von Dateien fehlen.) [...]
April 2nd, 2008 18:27 2. April 2008 18:27
These are only to drop the TS Dies sind nur Tropfen auf den TS
but not to recover… aber nicht zu erholen…
hence the worst…. damit das Schlimmste….
July 8th, 2008 19:31 8. Juli, 2008 19:31
This info helped us to a very great extent and hence we are able to proceed further smoothly. Diese Infos dazu beigetragen, uns zu einem sehr großen Umfang und damit auch wir in der Lage sind, weiter zu verfahren ist reibungslos.