How to Rename or Move Oracle Tablespace Datafile to Another Location Ako premenovať alebo presunúť Oracle Tablespace datafile na iné miesto

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 databáze neposkytuje jednoduché užívateľské rozhranie na premenovanie datafile na Tablespace, ani správca databázy možno ľahko presunúť alebo datafile premiestni na iné miesto alebo adresár, ktorý sa odlišuje od pôvodného umiestnenia na vytvorenie databázy. The rename or move place task has to be performed via Oracle SQLPlus command line interface. V premenovať alebo presunúť miesto úlohy musí byť vykonané prostredníctvom Oracle SQLPlus rozhrania príkazového riadku. However, if the operation is performed when the tablespace which owns the datefile is online, error will occur. Avšak, ak bola operácia vykonaná, keď Tablespace, ktorá je vlastníkom datefile je on-line, dôjde k chybe.

The error message may include the following: Chybové správy môžu patriť tieto:

ORA-01511: error in renaming log/data files ORA-01511: chyba pri premenovaní log / dátových súborov
ORA-01121: cannot rename database file <string> – file is in use or recovery ORA-01121: Nedá sa premenovať súbor databázy <string> - súbor je v prevádzke, alebo využitie
ORA-01110: data file <string>: 'datafile.dbf' ORA-01110: Súbor <string>: 'datafile.dbf'

To properly move the datafile around or rename the datafile, follow this guide: Ak chcete správne pohybovať okolo datafile alebo premenovanie datafile, dodržujte tento návod:

  1. Login to SQLPlus. Prihlásenie do SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. Pripojiť ako SYS DBA s CONNECT / AS SYSDBA príkaz.
  3. Shutdown the database instance with SHUTDOWN command. Odstavenie databázy, napríklad s vypínáním príkaz.
  4. Rename or/and move the datafiles at operating system level. Premenovať a / alebo presunúť datafiles na úrovni operačného systému.
  5. Start Oracle database in mount state with STARTUP MOUNT command. Štart Oracle databáze na kopci stave s StartUp MOUNT príkaz.
  6. Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Zmeniť meno alebo umiestnenie datafiles Oracle v dátovom slovníku pomocou nasledujúcu syntax príkazu:

    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 '<fully cestu k pôvodnému súboru dát Name>' to 'alebo <nová pôvodnú úplnú cestu k novej alebo originálny dátový súbor Name>';

  7. Open Oracle database instance completely with ALTER DATABASE OPEN command. Otvorená databázy Oracle instance úplne s ALTER DATABASE OPEN príkaz.

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. Ak datafiles, že je potrebné zmeniť, alebo presunie nepatria SYSTÉM tablespaces a neobsahujú aktívne vrátenie časti alebo dočasné segmenty, existuje iné riešenie, ktoré nevyžaduje databázu inštancie k vypnutiu. Instead, only the particular tablespace that contains the date files is taken offline. Namiesto toho len konkrétne Tablespace obsahujú dáta súborov je prevzatý offline.

  1. Login to SQLPlus. Prihlásenie do SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. Pripojiť ako SYS DBA s CONNECT / AS SYSDBA príkaz.
  3. Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. Značka offline postihnutých Tablespace s ALTER Tablespace <tablespace Name> Offline; príkaz.
  4. Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Zmeniť meno alebo umiestnenie datafiles Oracle v dátovom slovníku pomocou nasledujúcu syntax príkazu:

    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> RENAME datafile '<fully cestu k pôvodnému súboru dát Name>' to 'alebo <nová pôvodnú úplnú cestu k novej alebo originálny dátový súbor Name>';

  5. Bring the tablespace online again with ALTER TABLESPACE alter tablespace <tablespace name> ONLINE; command. Zosúladiť Tablespace online akciu s ALTER Tablespace meniť Tablespace <tablespace Name> ONLINE; príkaz.

IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: Stránka je stroje preložené a poskytované "tak ako sú" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Obráťte sa prosím na original English article Anglický originál článku whenever possible. kedykoľvek je to možné.


Leave a Reply Nechaj Odpoveď

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> Môžete použiť tieto značky: <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. Vyberajte komentáre funkcia bola vypnutá. To receive notification of latest comments posted, subscribe to Ak chcete dostávať oznámenie o najnovšie komentáre posta, prihláste sa My Digital Life Comments RSS feed My Digital Life Komentáre RSS or alebo register to receive register pre príjem new comments in daily email digest. nové komentáre v dennom email Digest.
Custom Search

New Articles Nové články

Incoming Search Terms for the Article Incoming Vyhľadávanie Podmienky pre článok

rename datafile premenovať datafile - -- oracle move datafile Oracle pohybovať datafile - -- oracle move tablespace Oracle pohybovať Tablespace - -- move tablespace posunúť Tablespace - -- oracle rename datafile Oracle premenovať datafile - -- oracle move datafiles Oracle pohybovať datafiles - -- rename datafile oracle premenovať datafile veštbami - -- move datafile posunúť datafile - -- change datafile location zmeniť datafile umiestnenie - -- oracle datafile rename Oracle datafile premenovať - -- rename oracle datafile premenovať Oracle datafile - -- oracle show tablespaces Oracle show tablespaces - -- move oracle datafile posunúť Oracle datafile - -- oracle tablespace location Oracle Tablespace umiestnenie - -- oracle tablespace path Oracle Tablespace cesta - -- all všetko - -- move datafile oracle posunúť datafile veštbami - -- oracle show datafiles Oracle show datafiles - -- move datafiles oracle posunúť datafiles veštbami - -- rename data file premenovanie súboru dát - -- oracle rename Oracle premenovať - -- oracle show tablespace Oracle show Tablespace - -- move tablespace oracle posunúť Tablespace veštbami - -- Move Oracle Tablespace Přesun Oracle Tablespace - -- sqlplus show tablespaces sqlplus show tablespaces - -- Oracle change datafile location Oracle datafile zmena umiestnenia - -- oracle tablespace Oracle Tablespace - -- mover datafile stěhovák datafile - -- move oracle datafiles posunúť Oracle datafiles - -- oracle datafile name Oracle datafile meno - -- sqlplus show tablespace sqlplus show Tablespace - -- change oracle datafile path zmeniť Oracle datafile cesta - -- change tablespace name Tablespace zmeniť meno - -- oracle move temp file Oracle pohybovať temp file - -- move datafiles posunúť datafiles - -- How to Rename or Move Oracle Tablespace Datafile to Another Location Ako premenovať alebo presunúť Oracle Tablespace datafile na iné miesto - -- ORA-01511: error in renaming log/data files ORA-01511: chyba pri premenovaní log / dátových súborov - -- rename oracle tablespace premenovať Oracle Tablespace - -- datafile rename datafile premenovať - -- mover datafile oracle stěhovák datafile veštbami - -- move data file přesunout data file - -- alter datafile rename zmeniť datafile premenovať - -- rename datafile in oracle premenovať datafile v Oracle - -- move tablespace datafile posunúť Tablespace datafile - -- move datafile in oracle posunúť datafile v Oracle - -- alter datafile move zmeniť datafile posunúť - -- change datafile name datafile zmeniť meno - -- Oracle tablespace filename Oracle Tablespace filename - -- Oracle move tablespace file Oracle pohybovať Tablespace obrázok - -- how to rename a datafile ako premenovať datafile - -- rename datafiles premenovať datafiles - -- move datafiles in oracle posunúť datafiles v Oracle - -- oracle tablespace rename Oracle Tablespace premenovať - -- ORACLE MOVE DATAFILE TO ANOTHER TABLESPACE ORACLE MOVE datafile DO INÉHO Tablespace - -- how to move oracle datafile ako sa pohybovať veštbami datafile - -- oracle move system datafile Oracle presunúť systém datafile - -- oracle tablespace name Oracle Tablespace meno - -- mover datafiles stěhovák datafiles - -- oracle alter move Oracle meniť ťah - -- oracle tablespace files Oracle Tablespace súbory - -- move datafile online posunúť datafile online - -- oracle move temp datafile Oracle pohybovať teplota datafile - -- MOVE ORACLE DATA FILE MOVE ORACLE ÚDAJOV SÚBORU - -- renaming datafiles premenovanie datafiles - -- oracle tablespace move Oracle Tablespace posunúť - -- MOVE DATAFILE TO ANOTHER TABLESPACE MOVE datafile DO INÉHO Tablespace - -- RENAME ORACLE RENAME ORACLE - -- Oracle data file path Oracle data cesta k súboru - -- oracle change datafile path Oracle zmeniť datafile cesta - -- renaming an oracle database premenovanie jeden Oracle Database - -- oracle Oracle - -- move oracle database posunúť Oracle Database - -- oracle move tablespace data file Oracle pohybovať Tablespace dátového súboru - -- Moving Oracle Datafiles Presťahovanie Oracle Datafiles - -- rename a datafile in oracle premenovať datafile v Oracle - --