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, בצע את המדריך הזה:

  1. Login to SQLPlus. התחבר SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. כמו להתחבר עם CONNECT SYS DBA / SYSDBA כפקודה.
  3. Shutdown the database instance with SHUTDOWN command. כיבוי למשל באתר עם הפקודה Shutdown.
  4. Rename or/and move the datafiles at operating system level. שינוי שם או / ו להעביר datafiles ברמת מערכת ההפעלה.
  5. Start Oracle database in mount state with STARTUP MOUNT command. הפעל את מסד הנתונים אורקל בהר המדינה STARTUP עם הפקודה MOUNT.
  6. 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> קובץ הנתונים ';

  7. 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 מסוימת המכילה קבצים התאריך הוא למצב לא מקוון.

  1. Login to SQLPlus. התחבר SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. כמו להתחבר עם CONNECT SYS DBA / SYSDBA כפקודה.
  3. Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. הפוך מחובר tablespace מושפע עם <tablespace ALTER TABLESPACE name> OFFLINE; פקודה.
  4. 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> קובץ הנתונים';

  5. 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. בכל הזדמנות אפשרית.


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> באפשרותך להשתמש בתגים אלה: <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. הירשם הערות תכונה הושבת. To receive notification of latest comments posted, subscribe to כדי לקבל הודעה על תגובות העדכנית, כדי להירשם My Digital Life Comments RSS feed החיים שלי דיגיטליות תגובות RSS Feed or או register to receive הרשמה לקבלת new comments in daily email digest. תגובות חדשות בדוא"ל תקציר יומי.
Custom Search

New Articles מאמרים חדשים

Incoming Search Terms for the Article תנאי נכנסות חפש מאמר

rename datafile שינוי שם datafile - -- oracle move datafile datafile להעביר Oracle - -- oracle move tablespace tablespace להעביר Oracle - -- move tablespace tablespace לזוז - -- oracle rename datafile Oracle לשנות שם datafile - -- oracle move datafiles datafiles להעביר Oracle - -- rename datafile oracle שינוי שם Oracle datafile - -- move datafile datafile לזוז - -- change datafile location שינוי מיקום datafile - -- oracle datafile rename datafile Oracle Rename - -- rename oracle datafile שינוי שם datafile Oracle - -- oracle show tablespaces Tablespaces להראות Oracle - -- move oracle datafile datafile Oracle לזוז - -- oracle tablespace location מיקום tablespace Oracle - -- oracle tablespace path נתיב tablespace Oracle - -- all הכל - -- move datafile oracle Oracle להעביר datafile - -- oracle show datafiles datafiles להראות Oracle - -- move datafiles oracle datafiles להעביר Oracle - -- rename data file לשנות את שם קובץ הנתונים - -- oracle rename Oracle Rename - -- oracle show tablespace tablespace להראות Oracle - -- move tablespace oracle Oracle tablespace לזוז - -- Move Oracle Tablespace העבר אורקל Tablespace - -- sqlplus show tablespaces Tablespaces להראות sqlplus - -- Oracle change datafile location שינוי מיקום אורקל datafile - -- oracle tablespace tablespace Oracle - -- mover datafile Mover datafile - -- move oracle datafiles datafiles Oracle לזוז - -- oracle datafile name שם datafile Oracle - -- sqlplus show tablespace tablespace להראות sqlplus - -- change oracle datafile path שינוי נתיב Oracle datafile - -- change tablespace name שינוי שם tablespace - -- oracle move temp file Oracle להעביר קובץ זמני - -- move datafiles datafiles לזוז - -- How to Rename or Move Oracle Tablespace Datafile to Another Location כיצד לשנות שם או להעביר אורקל Tablespace Datafile מיקום אחר - -- ORA-01511: error in renaming log/data files ORA-01511: שגיאה בשינוי שם יומן / קבצי נתונים - -- rename oracle tablespace שינוי שם tablespace Oracle - -- datafile rename שינוי שם datafile - -- mover datafile oracle Oracle datafile Mover - -- move data file להעביר קובץ נתונים - -- alter datafile rename לשנות לשנות את שם datafile - -- rename datafile in oracle שינוי שם ב-Oracle datafile - -- move tablespace datafile datafile tablespace לזוז - -- move datafile in oracle datafile לנוע Oracle - -- alter datafile move לשנות את מהלך datafile - -- change datafile name שינוי שם datafile - -- Oracle tablespace filename שם הקובץ אורקל tablespace - -- Oracle move tablespace file Tablespace אורקל להעביר את הקובץ - -- how to rename a datafile כיצד לשנות את שם datafile - -- rename datafiles שינוי שם datafiles - -- move datafiles in oracle datafiles לנוע Oracle - -- oracle tablespace rename tablespace Oracle Rename - -- ORACLE MOVE DATAFILE TO ANOTHER TABLESPACE ORACLE בתנועה DATAFILE אחר TABLESPACE - -- how to move oracle datafile כיצד להעביר datafile Oracle - -- oracle move system datafile מערכת Oracle להעביר datafile - -- oracle tablespace name שם tablespace Oracle - -- mover datafiles datafiles Mover - -- oracle alter move Oracle לשנות לזוז - -- oracle tablespace files קבצים tablespace Oracle - -- move datafile online Online להעביר datafile - -- oracle move temp datafile המהלך datafile Oracle Temp - -- MOVE ORACLE DATA FILE בתנועה קובץ נתונים של ORACLE - -- renaming datafiles שינוי שם datafiles - -- oracle tablespace move המהלך tablespace Oracle - -- MOVE DATAFILE TO ANOTHER TABLESPACE בתנועה DATAFILE אחר TABLESPACE - -- RENAME ORACLE RENAME ORACLE - -- Oracle data file path נתיב קובץ הנתונים של Oracle - -- oracle change datafile path Oracle לשנות נתיב datafile - -- renaming an oracle database שינוי שם מסד הנתונים Oracle - -- oracle Oracle - -- move oracle database מסד הנתונים Oracle לזוז - -- oracle move tablespace data file להעביר נתונים Oracle tablespace הקובץ - -- Moving Oracle Datafiles העברת אורקל Datafiles - -- rename a datafile in oracle שינוי שם ב-Oracle datafile - --