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. قاعدة بيانات أوراكل لا توفر واجهة مستخدم سهلة لإعادة تسمية أحد datafile من tablespace ، مدير قاعدة البيانات ولا يمكن التحرك بسهولة أو datafile نقل إلى موقع آخر أو دليل على أن مختلف من الموقع الأصلي على إنشاء قاعدة بيانات. The rename or move place task has to be performed via Oracle SQLPlus command line interface. فإن إعادة تسمية أو نقل مكان المهمة التي يتعين أداؤها عن طريق أوراكل 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. كما ربط SYS التسوية المتصلة بعبء الديون مع ربط وكما SYSDBA القيادة.
- Shutdown the database instance with SHUTDOWN command. إغلاق قاعدة البيانات على سبيل المثال مع إغلاق القيادة.
- Rename or/and move the datafiles at operating system level. إعادة تسمية أو / ونقل ملفات البيانات على مستوى نظام التشغيل.
- Start Oracle database in mount state with STARTUP MOUNT command. بدء قاعدة البيانات أوراكل في جبل الدولة مع بدء التشغيل جبل القيادة.
- Modify the name or location of datafiles in Oracle data dictionary using following command syntax: تعديل اسم أو موقع من ملفات البيانات أوراكل في قاموس البيانات باستخدام بناء الجملة التالي :
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>’; تغيير إعادة تسمية ملف قاعدة البيانات '<fullyالمؤهلين الطريق إلى البيانات الأصلية اسم الملف' إلى '<newالأصلي أو مؤهلة تماما لمسار جديد أو اسم ملف البيانات الأصلية' ؛
- Open Oracle database instance completely with ALTER DATABASE OPEN command. فتح قاعدة البيانات أوراكل على سبيل المثال تماما مع تغيير قيادة فتح قاعدة البيانات.
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. وإذا كانت ملفات البيانات التي تحتاج إلى تغيير أو انتقل لا تنتمي إلى نظام tablespaces ، ولا تتضمن نشاطا تراجع قطاعات أو شرائح مؤقتة ، وهناك آخر workaround أن لا يتطلب قاعدة بيانات على سبيل المثال إلى أن يكون الإغلاق. 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. كما ربط SYS التسوية المتصلة بعبء الديون مع ربط وكما SYSDBA القيادة.
- Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. جعل غير متصل المتضررة tablespace مع تغيير اسم TABLESPACE <tablespaceغير متصل ؛ القيادة.
- Modify the name or location of datafiles in Oracle data dictionary using following command syntax: تعديل اسم أو موقع من ملفات البيانات أوراكل في قاموس البيانات باستخدام بناء الجملة التالي :
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>’; تغيير اسم TABLESPACE <tablespaceإعادة تسمية DATAFILE '<fullyالمؤهلين الطريق إلى البيانات الأصلية اسم الملف' إلى '<newالأصلي أو مؤهلة تماما لمسار جديد أو اسم ملف البيانات الأصلية' ؛
- Bring the tablespace online again with ALTER TABLESPACE alter tablespace <tablespace name> ONLINE; command. جعل tablespace على الانترنت مرة أخرى مع تغيير TABLESPACE تغيير اسم tablespace <tablespaceعلى شبكة الإنترنت ؛ القيادة.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. هام : هذه هي آلة الصفحة المترجمة التي تقدم "كما هي" دون ضمان. Machine translation may be difficult to understand. الترجمة الآلية قد يكون من الصعب فهم. Please refer to يرجى الرجوع إلى original English article المادة الانكليزية الأصلية whenever possible. كلما كان ذلك ممكنا.
Share and contribute or get technical support and help at وحصة المساهمة أو الحصول على الدعم التقني والمساعدة في My Digital Life Forums بلادي الرقمي الحياة المنتديات .
Related Articles المواد ذات الصلة
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile انخفاض Tablespace كيفية استعادة قاعدة بيانات أوراكل وعندما قصد حذف Datafile
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error أوراكل ORA - 01658 تعذر إنشاء أولي لمدى في الجزء Tablespace خطأ
- How to Remove and Drop Datafiles from Tablespace in Oracle Database كيفية إزالة ملفات البيانات وقطرة من Tablespace في قاعدة بيانات أوراكل
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA - 25153 المؤقتة Tablespace فارغ خطأ في أوراكل
- Manual and Clean Uninstall Oracle for Windows دليل نظيفة وأوراكل لازالة تثبيت ويندوز
- Oracle Database Import Error 3113/3114 استيراد قاعدة البيانات أوراكل خطأ 3113/3114
- ORA-01502 Oracle Index in Unusable State ORA - 01502 أوراكل مؤشر غير صالح للإستعمال في الدولة
- Oracle JDeveloper Reviews أوراكل JDeveloper الاستعراضات
- Change Oracle Database User Password تغيير قاعدة البيانات أوراكل المستخدم كلمة السر
- Check Oracle Version التحقق من النسخة أوراكل
































