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:
- Login to SQLPlus. Prisijungti prie SQLPlus.
- Connect as SYS DBA with CONNECT / AS SYSDBA command. Susisiekti su SYS DBA su CONNECT AS SYSDBA komandą.
- Shutdown the database instance with SHUTDOWN command. Shutdown bazės pavyzdžiui su komandą shutdown.
- Rename or/and move the datafiles at operating system level. Pervardyti arba / ir perkelti datafiles ne operacinės sistemos lygyje.
- Start Oracle database in mount state with STARTUP MOUNT command. Pradėti Oracle kalno valstybės su autostart MOUNT komandą.
- 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> ";
- 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ę.
- Login to SQLPlus. Prisijungti prie SQLPlus.
- Connect as SYS DBA with CONNECT / AS SYSDBA command. Susisiekti su SYS DBA su CONNECT AS SYSDBA komandą.
- Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. Padaryti neprisijungęs įtakos tablespace su ALTER TABLESPACE <tablespace Name> OFFLINE; komandą.
- 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> ";
- 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.
Related Articles Susiję straipsniai
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Kaip Drop Tablespace ir susigrąžinti Oracle "duomenų bazę, kai netyčia ištrynėte Datafile
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Kaip pašalinti ir Drop Datafiles iš Tablespace Oracle duomenų bazė
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error "Oracle" ORA-01658 Nepavyko sukurti PRADINĖ laipsniu segmente Tablespace Klaida
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Laikinosios Tablespace yra tuščias Klaida Oracle
- How to Move WordPress Blog to New Domain or Location Kaip perkelti WordPress blog Naujas Domenas arba URL
- Fix Vista Unable to Rename or Move Files and Folders Issues After Applying KB938979 Patch Fix Vista "Nepavyko pervadinti ar perkelti failus ir aplankus Klausimai Po taikymas KB938979 pataisa
- Change Oracle Database User Password Keisti Oracle Vartotojas Slaptažodis
- Oracle Database Link Oracle Database Nuoroda
- Download Bulk Rename Utility To Rename Files Easily Parsisiųsti Bulk Rename Utility Norėdami pervardyti failus Geras
- Oracle Database Import Error 3113/3114 Oracle Database Importo Klaida 3113/3114









































