How to Rename or Move Oracle Tablespace Datafile to Another Location Come rinominare o spostare Oracle tablespace archivio dei dati in un'altra posizione
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. Database Oracle non fornisce un facile interfaccia utente a rinominare un archivio dei dati di tablespace, né amministratore del database può facilmente spostare o riposizionare l'archivio dei dati in un'altra posizione o directory diversa da posizione originale sulla creazione di database. The rename or move place task has to be performed via Oracle SQLPlus command line interface. La rinominare o spostare luogo compito dovrà essere eseguito tramite Oracle SQLPlus linea di comando. However, if the operation is performed when the tablespace which owns the datefile is online, error will occur. Tuttavia, se l'operazione viene eseguita quando il tablespace che possiede il datefile è on-line, errore si verifica.
The error message may include the following: Il messaggio di errore possono includere la seguente:
ORA-01511: error in renaming log/data files ORA-01511: Errore durante la ridenominazione log / file di dati
ORA-01121: cannot rename database file <string> - file is in use or recovery ORA-01121: non può rinominare file di database <string> - il file è in uso o di recupero
ORA-01110: data file <string>: ‘datafile.dbf’ ORA-01110: file di dati <string>: 'datafile.dbf'
To properly move the datafile around or rename the datafile, follow this guide: Per spostare il corretto nei pressi di archivio dei dati o rinominare il archivio dei dati, seguire questa guida:
- Login to SQLPlus. Login per SQLPlus.
- Connect as SYS DBA with CONNECT / AS SYSDBA command. Collegarsi come SYS DBA con CONNECT / AS SYSDBA comando.
- Shutdown the database instance with SHUTDOWN command. Shutdown esempio la banca dati con comando SHUTDOWN.
- Rename or/and move the datafiles at operating system level. Rinominare e / o spostare il datafiles a livello del sistema operativo.
- Start Oracle database in mount state with STARTUP MOUNT command. Inizio database Oracle in stato di montaggio con STARTUP comando mount.
- Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Modificare il nome o il luogo di datafiles nel dizionario dei dati Oracle utilizzando comando seguente sintassi:
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 rinominare il file '<fully percorso originale di file di dati name>' a 'o <new originale percorso completo nuovi o originali file di dati name>';
- Open Oracle database instance completely with ALTER DATABASE OPEN command. Aprire database Oracle esempio completamente con ALTER database aperto comando.
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. Se il datafiles che hanno bisogno di essere cambiato o spostato non appartengono a SYSTEM tablespaces, e non contengono segmenti di rollback attivo o temporanea segmenti, vi è un'altra soluzione che non necessita di database di esempio per essere chiuso. Instead, only the particular tablespace that contains the date files is taken offline. Invece, solo il tablespace particolare che contiene la data file è presa non in linea.
- Login to SQLPlus. Login per SQLPlus.
- Connect as SYS DBA with CONNECT / AS SYSDBA command. Collegarsi come SYS DBA con CONNECT / AS SYSDBA comando.
- Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. Rendere offline colpite tablespace con ALTER tablespace <tablespace name> offline; comando.
- Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Modificare il nome o il luogo di datafiles nel dizionario dei dati Oracle utilizzando comando seguente sintassi:
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> RINOMINA archivio dei dati '<fully percorso originale di file di dati name>' a 'o <new originale percorso completo nuovi o originali file di dati name>';
- Bring the tablespace online again with ALTER TABLESPACE alter tablespace <tablespace name> ONLINE; command. Tablespace mettono on-line di nuovo con ALTER tablespace alter tablespace <tablespace name> online; comando.
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 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 Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Come goccia tablespace e recuperare database Oracle quando accidentalmente eliminare archivio dei dati
- 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 Remove and Drop Datafiles from Tablespace in Oracle Database Come rimuovere e da Drop Datafiles Tablespace in Oracle Database
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 temporanea Tablespace è Vuoto Errore in Oracle
- Manual and Clean Uninstall Oracle for Windows Pulizia manuale e la disinstallazione di Oracle per Windows
- ORA-01502 Oracle Index in Unusable State ORA-01502 Indice di Oracle in Unusable Stato
- Oracle Database Import Error 3113/3114 Database Oracle errore di importazione 3113/3114
- Change Oracle Database User Password Cambia database Oracle Utente Password
- Check Oracle Version Verificare la versione di Oracle
- Oracle Database Link Oracle database di link

































September 17th, 2008 08:39 17 settembre 2008 08:39
sftugp jlnu rpwhl lutho sftugp jlnu rpwhl lutho