How to Rename or Move Oracle Tablespace Datafile to Another Location כיצד לשנות שם או להעביר אורקל Tablespace Datafile מיקום אחר
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. מסד הנתונים אורקל אינה מספקת ממשק משתמש קל לשנות את שמו של tablespace datafile, וגם מנהל מסד הנתונים יכול בקלות להעביר או להעביר datafile למיקום אחר או ספרייה זו שונה מהמיקום המקורי על יצירת מסד נתונים. The rename or move place task has to be performed via Oracle SQLPlus command line interface. לשנות שם או להעביר משימה מקום צריך להתבצע באמצעות Oracle SQLPlus ממשק שורת פקודה. However, if the operation is performed when the tablespace which owns the datefile is online, error will occur. עם זאת, אם הניתוח מבוצע כאשר tablespace שבבעלותה datefile מקוון, תתרחש שגיאה.
The error message may include the following: הודעת השגיאה הבאה עשויה לכלול:
ORA-01511: error in renaming log/data files ORA-01511: שגיאה בשינוי שם יומן / קבצי נתונים
ORA-01121: cannot rename database file <string> – file is in use or recovery ORA-01121: לא ניתן לשנות את שם הקובץ <string> באתר - הקובץ נמצא בשימוש או התאוששות
ORA-01110: data file <string>: 'datafile.dbf' ORA-01110: קובץ נתונים <string>: 'datafile.dbf'
To properly move the datafile around or rename the datafile, follow this guide: כראוי כדי לעבור ממקום למקום או לשנות את שם datafile datafile, בצע את המדריך הזה:
- Login to SQLPlus. התחבר SQLPlus.
- Connect as SYS DBA with CONNECT / AS SYSDBA command. כמו להתחבר עם CONNECT SYS DBA / SYSDBA כפקודה.
- Shutdown the database instance with SHUTDOWN command. כיבוי למשל באתר עם הפקודה Shutdown.
- Rename or/and move the datafiles at operating system level. שינוי שם או / ו להעביר datafiles ברמת מערכת ההפעלה.
- Start Oracle database in mount state with STARTUP MOUNT command. הפעל את מסד הנתונים אורקל בהר המדינה STARTUP עם הפקודה MOUNT.
- Modify the name or location of datafiles in Oracle data dictionary using following command syntax: שינוי שם או מיקום של datafiles מילון נתונים אורקל באמצעות תחביר הפקודה הבאה:
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 לשנות את שם הקובץ "נתיב <fully מוסמך קובץ הנתונים המקוריים name> 'ל' או <new המקורי המלא נתיב חדש או מקורי name> קובץ הנתונים ';
- Open Oracle database instance completely with ALTER DATABASE OPEN command. פתח למשל מסד הנתונים של Oracle לחלוטין פקודה ALTER עם מסד נתונים פתוח.
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. אם datafiles שצריכים להשתנות או עבר לא שייכים Tablespaces SYSTEM, ואינם מכילים חלקים או קטעים החזרה פעיל זמנית, יש פתרון אחר שאינו מחייב להיות למשל באתר הכיבוי. Instead, only the particular tablespace that contains the date files is taken offline. במקום זאת, רק tablespace מסוימת המכילה קבצים התאריך הוא למצב לא מקוון.
- Login to SQLPlus. התחבר SQLPlus.
- Connect as SYS DBA with CONNECT / AS SYSDBA command. כמו להתחבר עם CONNECT SYS DBA / SYSDBA כפקודה.
- Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. הפוך מחובר tablespace מושפע עם <tablespace ALTER TABLESPACE name> OFFLINE; פקודה.
- Modify the name or location of datafiles in Oracle data dictionary using following command syntax: שינוי שם או מיקום של datafiles מילון נתונים אורקל באמצעות תחביר הפקודה הבאה:
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 מוסמך קובץ הנתונים המקוריים name>' ל 'או <new המקורי המלא נתיב חדש או מקורי name> קובץ הנתונים';
- Bring the tablespace online again with ALTER TABLESPACE alter tablespace <tablespace name> ONLINE; command. תביאו מקוון tablespace שוב עם ALTER TABLESPACE לשנות <tablespace tablespace name> online; פקודה.
IMPORTANT : The page is machine translated and provided "as is" without warranty. חשוב: הדף מכונת תירגם מתפרסם "כמות שהוא" ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to נא עיין original English article המאמר המקורי באנגלית whenever possible. בכל הזדמנות אפשרית.
Related Articles מאמרים קשורים
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile איך זרוק Tablespace ולשחזר Oracle Database כאשר מחק בטעות Datafile
- How to Remove and Drop Datafiles from Tablespace in Oracle Database כיצד להסיר Datafiles ושחרר מ Tablespace ב-Oracle Database
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error ORA-Oracle 01,658 ניתן ליצור INITIAL היקף עבור קטע ב Tablespace שגיאה
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25,153 זמניים Tablespace הוא ריק שגיאה של Oracle
- Fix Vista Unable to Rename or Move Files and Folders Issues After Applying KB938979 Patch אין אפשרות לתקן Vista לשנות שם או להעביר קבצים או תיקיות נושאים KB938979 לאחר החלת תיקון
- How to Move WordPress Blog to New Domain or Location כיצד להעביר בלוג וורדפרס חדש תחום או מיקום
- Download Bulk Rename Utility To Rename Files Easily הורדה גורפת שנה Utility לשנות שמות קבצים בקלות
- Change Oracle Database User Password שינוי Oracle Database משתמש סיסמא
- Oracle Database Link קישור מסד נתונים אורקל
- Oracle Database Import Error 3113/3114 Oracle Database ייבוא שגיאה 3113/3114









































