How to Rename or Move Oracle Tablespace Datafile to Another Location Kaip pervardyti ar perkelti Oracle Tablespace Datafile į kitą vietą

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 duomenų bazės nėra numatyta paprasta vartotojo sąsaja pervadinti į tablespace datafile, nei duomenų bazės administratorius gali lengvai judėti datafile arba persikelti į kitą vietą ar katalogą, skiriasi nuo originalo vietą duomenų bazės sukūrimas. The rename or move place task has to be performed via Oracle SQLPlus command line interface. Pervardyti ar perkelti vieta užduotis turi būti atliekamas naudojant Oracle SQLPlus komandų eilutės sąsaja. However, if the operation is performed when the tablespace which owns the datefile is online, error will occur. Tačiau, jei operacija atliekama, kai tablespace kuriai priklauso datefile yra internete, klaida įvyksta.

The error message may include the following: Klaidos pranešimas gali būti šie:

ORA-01511: error in renaming log/data files ORA-01511: error pervadinant Prisijungti / duomenų failus
ORA-01121: cannot rename database file <string> – file is in use or recovery ORA-01121: Nepavyksta pervardinti failo duomenų bazės <string> - failas yra naudojamas arba išieškojimo
ORA-01110: data file <string>: 'datafile.dbf' ORA-01110: duomenų failas <string>: "datafile.dbf"

To properly move the datafile around or rename the datafile, follow this guide: Tinkamai perkelti ar pervardyti aplink datafile datafile, atlikite šiame vadove:

  1. Login to SQLPlus. Prisijungti prie SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. Susisiekti su SYS DBA su CONNECT AS SYSDBA komandą.
  3. Shutdown the database instance with SHUTDOWN command. Shutdown bazės pavyzdžiui su komandą shutdown.
  4. Rename or/and move the datafiles at operating system level. Pervardyti arba / ir perkelti datafiles ne operacinės sistemos lygyje.
  5. Start Oracle database in mount state with STARTUP MOUNT command. Pradėti Oracle kalno valstybės su autostart MOUNT komandą.
  6. Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Keisti vardą ar vietos datafiles Oracle duomenų žodyną naudojant šią komandą sintaksė:

    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 pervardinti failo <W visiškai konkretų kelią į pradinių duomenų failas> "į" <new arba originalus visiškai konkretų kelią į naujas arba originalus duomenų failas> ";

  7. Open Oracle database instance completely with ALTER DATABASE OPEN command. Atidarykite duomenų bazę Oracle pavyzdžiui, visiškai su ALTER DATABASE OPEN komandą.

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. Jei datafiles, kurias reikia pakeisti arba perkelta nepriklauso prie sistemos lentelių, ir kurių sudėtyje nėra veikliosios Rollback segmentus arba laikinieji segmentų, yra dar vienas workaround, kad nereikalauja duomenų bazės, pavyzdžiui, kad būtų sustabdytas. Instead, only the particular tablespace that contains the date files is taken offline. Vietoj to, tik pirma tablespace, kuriame yra data failus imtasi neprisijungę.

  1. Login to SQLPlus. Prisijungti prie SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. Susisiekti su SYS DBA su CONNECT AS SYSDBA komandą.
  3. Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. Padaryti neprisijungęs įtakos tablespace su ALTER TABLESPACE <tablespace Name> OFFLINE; komandą.
  4. Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Keisti vardą ar vietos datafiles Oracle duomenų žodyną naudojant šią komandą sintaksė:

    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 <W visiškai konkretų kelią į pradinių duomenų failas> "į" <new arba originalus visiškai konkretų kelią į naujas arba originalus duomenų failas> ";

  5. Bring the tablespace online again with ALTER TABLESPACE alter tablespace <tablespace name> ONLINE; command. Pareikšti tablespace internete vėl su ALTER TABLESPACE pakeisti tablespace <tablespace Name> online; komandą.

IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.


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> Galite naudoti šiuos žodžius: <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. Subscribe to comments funkcija buvo išjungta. To receive notification of latest comments posted, subscribe to Norėdami gauti pranešimus apie naujausius komentarų, užsiprenumeruoti My Digital Life Comments RSS feed Mano skaitmeninis gyvenimas Komentarų RSS or arba register to receive Registruokitės gauti new comments in daily email digest. Nauji komentarai kasdien elektroniniu paštu.
Custom Search

New Articles Nauji straipsniai

Incoming Search Terms for the Article Gaunamus paieškos terminus straipsnis

oracle move datafile Oracle perkelti datafile - -- move datafile oracle perkelti datafile orakulas - -- oracle move tablespace Oracle perkelti tablespace - -- move datafile perkelti datafile - -- move tablespace oracle perkelti tablespace orakulas - -- rename datafile Pervadinti datafile - -- alter tablespace rename pakeisti tablespace pervardyti - -- mover datafile oracle mover datafile orakulas - -- all visi - -- move oracle datafile perkelti Oracle datafile - -- move tablespace in oracle perkelti tablespace Oracle - -- MOVE TABLESPACE JUDĖTI TABLESPACE - -- move oracle datafiles perkelti Oracle datafiles - -- oracle move datafiles Oracle perkelti datafiles - -- move datafile in oracle perkelti datafile Oracle - -- oracle move datafile online Oracle perkelti datafile internete - -- moving datafiles in oracle judančių datafiles Oracle - -- oracle rename datafile Oracle pervadinti datafile - -- rename tablespace Pervadinti tablespace - -- how to move a datafile in oracle kaip pereiti Oracle datafile - -- rename datafile oracle Pervadinti datafile orakulas - -- alter tablespace rename pakeisti tablespace pervardyti - -- how to move tablespace in oracle kaip pereiti tablespace Oracle - -- move datafile to another tablespace datafile perkelti į kitą tablespace - -- move datafiles perkelti datafiles - -- oracle change datafile location Oracle kaita datafile vieta - -- Oracle move tablespace to different location Oracle tablespace perkelti į kitą vietą - -- oracle move tablespaces Oracle perkelti lentelių - -- oracle moving datafiles Oracle juda datafiles - -- change datafile location pakeisti datafile vieta - -- move system tablespace oracle judėti sistema tablespace orakulas - -- oracle move datafile alter Oracle perkelti datafile pakeisti - -- how to move oracle datafiles kaip pereiti Oracle datafiles - -- oracle rename datafile online Oracle pervadinti datafile internete - -- oracle tablespace move Oracle tablespace pereiti - -- oracle change tablespace name Oracle kaita tablespace vardas - -- how to move datafile oracle kaip pereiti datafile orakulas - -- alter path datafile tablespace oracle pakeisti maršrutą datafile tablespace orakulas - -- alter datafile oracle pakeisti datafile orakulas - -- alter tablespace move datafile pakeisti tablespace perkelti datafile - -- alter database datafile rename keisti duomenų datafile pervardyti - -- ALTER DATABASE DATAFILE find path ALTER DATABASE DATAFILE rasti kelią - -- how to rename a datafile kaip pervardyti datafile - -- how to rename oracle datafile kaip pervardyti Oracle datafile - -- moving datafile in oracle 10g judančių datafile Oracle 10g - -- Oracle+move tablespace Oracle + judėti tablespace - -- oracle add datafile location Oracle Pridėti datafile vieta - -- oracle move temp datafile Oracle perkelti Temp datafile - -- oracle change datafile name Oracle kaita datafile vardas - -- oracle move tablespace online Oracle perkelti tablespace internete - --