How to Rename or Move Oracle Tablespace Datafile to Another Location Kā pārdēvēt vai pārvietot Oracle Tablespace datni uz citu vietu

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 datu bāze nenodrošina viegli lietotāja saskarni, lai pārdēvētu datni ar tablespace, kā arī datu bāzes administrators var viegli pārvietot vai pārvietot datni uz citu vietu vai direktoriju, kas atšķiras no sākotnējās atrašanās vietu radīšana datu bāzē. The rename or move place task has to be performed via Oracle SQLPlus command line interface. Pārdēvēt vai pārvietot vietu uzdevums ir jāveic, izmantojot Oracle SQLPlus komandrindas interfeisu. However, if the operation is performed when the tablespace which owns the datefile is online, error will occur. Tomēr, ja darbība tiek veikta, kad tablespace, kuram pieder datefile ir tiešsaistē, kļūdas nebūs.

The error message may include the following: Kļūdas ziņojums var būt šādi:

ORA-01511: error in renaming log/data files ORA-01511: error in pārdēvēšanu log / datu faili
ORA-01121: cannot rename database file <string> – file is in use or recovery ORA-01121: nevar pārdēvēt datubāzes failu <string> - fails tiek lietots vai atgūšana
ORA-01110: data file <string>: 'datafile.dbf' ORA-01.110: datu fails <string>: 'datafile.dbf "

To properly move the datafile around or rename the datafile, follow this guide: Pareizi pārvietot datni ap vai pārdēvētu datni, ievērojiet šīs vadlīnijas:

  1. Login to SQLPlus. Login to SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. Connect kā SYS DBA ar CONNECT / AS SYSDBA komandu.
  3. Shutdown the database instance with SHUTDOWN command. Shutdown datubāzē piemēram, ar shutdown komandu.
  4. Rename or/and move the datafiles at operating system level. Pārdēvēt vai / un pārvietoties datafiles ar operētājsistēmu līmenī.
  5. Start Oracle database in mount state with STARTUP MOUNT command. Start Oracle datu bāzē mount stāvoklī, Startup MOUNT komandu.
  6. Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Mainīt nosaukumu vai atrašanās vietu datafiles no Oracle datu vārdnīcu, izmantojot šādu komandu sintaksi:

    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 pārdēvēt failu "<fully kvalificētu ceļu uz sākotnējo datu faila nosaukums> 'TO' <new vai oriģinālu jāiekopē jauniem vai oriģināliem, datu faila nosaukums> ';

  7. Open Oracle database instance completely with ALTER DATABASE OPEN command. Open Oracle datu bāzi, piemēram, pilnīgi ar ALTER DATABASE OPEN komandu.

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. Ja datafiles, ko nepieciešams mainīt vai pārvietot nepieder SYSTEM tablespaces, un nesatur aktīvo Rollback segments vai pagaidu segmentiem, ir vēl cits risinājums, kas neprasa datubāzē mirklī izslēgšanu. Instead, only the particular tablespace that contains the date files is taken offline. Tā vietā, tikai īpaši tablespace, kurā datumā failus ir bezsaistē.

  1. Login to SQLPlus. Login to SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. Connect kā SYS DBA ar CONNECT / AS SYSDBA komandu.
  3. Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. Padarīt offline skarto tablespace ar ALTER TABLESPACE <tablespace nosaukums> OFFLINE; komandu.
  4. Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Mainīt nosaukumu vai atrašanās vietu datafiles no Oracle datu vārdnīcu, izmantojot šādu komandu sintaksi:

    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 nosaukums> RENAME datni '<fully kvalificētu ceļu uz sākotnējo datu faila nosaukums>' TO '<new vai oriģinālu jāiekopē jauniem vai oriģināliem, datu faila nosaukums>';

  5. Bring the tablespace online again with ALTER TABLESPACE alter tablespace <tablespace name> ONLINE; command. Bring tablespace online atkal ar ALTER TABLESPACE mainīt tablespace <tablespace nosaukums> online; komandu.

IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanas var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.


Leave a Reply Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Jūs varat izmantot šos tagus: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Parakstīties uz komentāriem iezīme ir atspējota. To receive notification of latest comments posted, subscribe to Saņemt informāciju par jaunāko komentārus, parakstīties uz My Digital Life Comments RSS feed Mana Digital Life Comments RSS feed or vai register to receive reģistrēties, lai saņemtu new comments in daily email digest. jauni komentāri ikdienas e-pasta sagremot.
Custom Search

New Articles Jauns pants

Incoming Search Terms for the Article Ienākošo Meklēt noteikumi pants

rename datafile pārdēvētu datni - -- oracle move datafile Oracle pārvietot datni - -- oracle move tablespace Oracle pārvietot tablespace - -- move tablespace pārvietot tablespace - -- oracle rename datafile Oracle pārdēvētu datni - -- oracle move datafiles Oracle pārvietot datafiles - -- rename datafile oracle pārdēvētu datni Oracle - -- move datafile pārvietot datni - -- change datafile location izmaiņu datni atrašanās vieta - -- oracle datafile rename Oracle datni pārdēvēt - -- rename oracle datafile pārdēvēt Oracle datni - -- oracle show tablespaces Oracle parādīt tablespaces - -- move oracle datafile pārvietot Oracle datni - -- oracle tablespace location Oracle tablespace atrašanās vieta - -- oracle tablespace path Oracle tablespace ceļš - -- all viss - -- move datafile oracle pārvietot datni Oracle - -- oracle show datafiles Oracle parādīt datafiles - -- move datafiles oracle pārvietot datafiles Oracle - -- rename data file pārdēvēt datu failu - -- oracle rename Oracle pārdēvēt - -- oracle show tablespace Oracle parādīt tablespace - -- move tablespace oracle pārvietot tablespace Oracle - -- Move Oracle Tablespace Pārvietot Oracle Tablespace - -- sqlplus show tablespaces sqlplus parādīt tablespaces - -- Oracle change datafile location Oracle izmaiņu datni atrašanās vieta - -- oracle tablespace Oracle tablespace - -- mover datafile mover datni - -- move oracle datafiles pārvietot Oracle datafiles - -- oracle datafile name Oracle datni nosaukums - -- sqlplus show tablespace sqlplus parādīt tablespace - -- change oracle datafile path mainīt Oracle datni ceļš - -- change tablespace name mainīt tablespace nosaukums - -- oracle move temp file Oracle pārvietot pagaidu failu - -- move datafiles pārvietot datafiles - -- How to Rename or Move Oracle Tablespace Datafile to Another Location Kā pārdēvēt vai pārvietot Oracle Tablespace datni uz citu vietu - -- ORA-01511: error in renaming log/data files ORA-01511: error in pārdēvēšanu log / datu faili - -- rename oracle tablespace pārdēvēt Oracle tablespace - -- datafile rename datni pārdēvēt - -- mover datafile oracle mover datni Oracle - -- move data file pārvietot datu failu - -- alter datafile rename izmainīt datni pārdēvēt - -- rename datafile in oracle pārdēvētu datni no Oracle - -- move tablespace datafile pārvietot tablespace datni - -- move datafile in oracle pārvietot datni no Oracle - -- alter datafile move izmainīt datni pārvietot - -- change datafile name izmaiņu datni nosaukums - -- Oracle tablespace filename Oracle tablespace filename - -- Oracle move tablespace file Oracle pārvietot tablespace failu - -- how to rename a datafile kā lai pārdēvētu datni - -- rename datafiles pārdēvēt datafiles - -- move datafiles in oracle pārvietot datafiles in Oracle - -- oracle tablespace rename Oracle tablespace pārdēvēt - -- ORACLE MOVE DATAFILE TO ANOTHER TABLESPACE ORACLE MOVE datni citai TABLESPACE - -- how to move oracle datafile kā pāriet Oracle datni - -- oracle move system datafile Oracle pārvietot sistēmas datni - -- oracle tablespace name Oracle tablespace nosaukums - -- mover datafiles mover datafiles - -- oracle alter move Oracle mainīt pārvietot - -- oracle tablespace files Oracle tablespace faili - -- move datafile online pārvietot datni online - -- oracle move temp datafile Oracle pārvietot temp datni - -- MOVE ORACLE DATA FILE MOVE ORACLE DATU FILE - -- renaming datafiles pārdēvējot datafiles - -- oracle tablespace move Oracle tablespace pārvietot - -- MOVE DATAFILE TO ANOTHER TABLESPACE MOVE datni citai TABLESPACE - -- RENAME ORACLE RENAME ORACLE - -- Oracle data file path Oracle datu faila ceļu - -- oracle change datafile path Oracle izmaiņu datni ceļš - -- renaming an oracle database pārsaucot Oracle datu bāzes - -- oracle Oracle - -- move oracle database pārvietot Oracle datu bāze - -- oracle move tablespace data file Oracle pārvietot tablespace datu failu - -- Moving Oracle Datafiles Moving Oracle Datafiles - -- rename a datafile in oracle pārdēvētu datni no Oracle - --