How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Come goccia tablespace e recuperare database Oracle quando accidentalmente eliminare archivio dei dati
Accident may happens, even though it’s costly one. Maggio incidente accade, anche se è costoso. This is especially the case in Oracle database, which stores the database objects physically in data files on hard disk. Questo vale in particolare per database Oracle, che memorizza la banca dati oggetti fisicamente nel file di dati sul disco rigido. Fast hand administrators may accidentally delete some of the datafiles, or the datafiles may get corrupted or unreadable on hard disk failure. Veloce mano amministratori possono eliminare accidentalmente alcuni dei datafiles, o il datafiles possibile ottenere danneggiato o illeggibile sul disco rigido fallimento. You may get also some missing datafiles after database recovery process. Si possono ottenere anche alcuni scomparsi dopo datafiles banca dati processo di recupero. In any case, missing a or a few datafiles will cause Oracle database to fail to startup, rendering the whole DB inaccessible. In ogni caso, manca uno o pochi datafiles farà database Oracle a non di avvio, rendendo l'intero PB inaccessibili.
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. La soluzione del datafiles mancante è quello di far cadere il colpiti tablespace dove ha datafiles incompleta, quindi ricreare il tablespace e importare i dati in tablespace dal backup. However, the steps are not so straight forward. Tuttavia, la procedura non è così semplice.
- Run SQL*Plus. Eseguire SQL * Plus.
- Connect to database as SYSDBA with this query: Collegarsi al database come SYSDBA con questa ricerca:
CONNECT / AS SYSDBA CONNECT / AS SYSDBA
- Mount the database instead of starting it up: Installare il database, invece di avviarlo:
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: Il seguente comando per portare il archivio dei dati mancanti in modalità non in linea in modo che Oracle non tenta di connettersi e accedere alle più archivio dei dati:
ALTER DATABASE DATAFILE ‘<datafile name with complete path>’ OFFLINE DROP; ALTER DATABASE archivio dei dati '<datafile nome completo con path>' OFFLINE DROP;
Repeat the command for every datafiles that unaccounted for. Ripetere il comando per ogni datafiles che inspiegato.
- Now start the database proper: Ora avviare la propria banca dati:
ALTER DATABASE OPEN; ALTER banca dati aperta;
- As the tablespace has damaged, drop it to recreate from fresh backup. Come tablespace ha danneggiato, goccia a ricreare da fresche di backup.
DROP TABLESPACE <tablespace name> INCLUDING CONTENTS; DROP tablespace <tablespace name> contenuto;
- Ensure the other datafiles for the tablespace has been deleted, if not, remove them manually from the operating system. Garantire l'altra datafiles per il tablespace è stato eliminato, se non, rimuovere manualmente dal sistema operativo.
Tip: Suggerimento: How to check datafiles that belong to tablespace Come controllare datafiles che appartengono al tablespace .
- Continue with the recovery process. Continuare con il processo di recupero.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Questa è una pagina tradotta macchina che è fornito "così com'è" senza alcuna garanzia. Machine translation may be difficult to understand. Traduzione automatica può essere difficile da capire. Please refer to Si prega di fare riferimento a original English article articolo originale in lingua inglese whenever possible. quando possibile.
Share and contribute or get technical support and help at Condividere e contribuire o ottenere supporto tecnico e assistenza in My Digital Life Forums La mia vita digitale Forum .
Related Articles Articoli correlati
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Come rimuovere e da Drop Datafiles Tablespace in Oracle Database
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error Oracle ORA-01658 Impossibile creare INIZIALE Estensione per il segmento in errore Tablespace
- How to Rename or Move Oracle Tablespace Datafile to Another Location Come rinominare o spostare Oracle tablespace archivio dei dati in un'altra posizione
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 temporanea Tablespace è Vuoto Errore in Oracle
- Delete, Remove or Drop Oracle Stored Packages with Drop Package Eliminare, rimuovere o goccia oracolo memorizzati i pacchetti a goccia pacchetto
- Oracle Database Link Oracle database di link
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle goccia tabella di errore
- Manual and Clean Uninstall Oracle for Windows Pulizia manuale e la disinstallazione di Oracle per Windows
- Oracle Database Import Error 3113/3114 Database Oracle errore di importazione 3113/3114
- Change Oracle Database User Password Cambia database Oracle Utente Password
















August 4th, 2007 02:57 Ago 4, 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. [...] Se uno o più datafiles è mancante dopo un processo di recupero o eliminazione accidentale, è possibile utilizzare ALTER DATABASE archivio dei dati <datafile name> OFFLINE DROP comando per rendere il archivio dei dati in modalità non in linea in modo tale che può banca dati si avvia al termine del quale l'travagliata può tablespace essere eliminato. (See instruction to recover from missing datafiles.) [...] (Vedi istruzioni per recuperare dal mancanti datafiles.) [...]
April 2nd, 2008 18:27 2 aprile 2008 18:27
These are only to drop the TS Questi sono solo di abbandonare il TS
but not to recover… ma non per recuperare…
hence the worst…. di conseguenza, la peggiore….
July 8th, 2008 19:31 8 luglio, 2008 19:31
This info helped us to a very great extent and hence we are able to proceed further smoothly. Queste informazioni ci ha aiutato a misura molto ampia e, di conseguenza, siamo in grado di procedere senza intoppi.