الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

i need help in moving my data to another tablespac

Featured Replies

بتاريخ:

السلام عليكم اخواني الكرام

محتاجة مساعدتك في كيفية نقل data من one tablespace الى another tablespace

i need to move all our appplication tables from system tablespace to user tablespace

plz help me if some one had any idea how to do that

بتاريخ:
  • كاتب الموضوع

thanks bro Debug_b!bo

i always get help from you in dba

بتاريخ:

عفوا على المداخلة ... ولكن هناك طريقة أسرع إذا كان هناك عدد كبير من ال Tables

1- نقوم بعمل spool يحتوي على أوامر نقل ال tables

SPOOL mov.tmp
  SELECT 'ALTER TABLE '||table_name||' MOVE TABLESPACE '||'&&new_ts'||' ;'
    FROM user_tables; SPOOL off



2- إذا كان هناك Indexes ونريد نقلها إيضا نعمل التالي

SPOOL reb.tmp
  SELECT 'ALTER INDEX '||index_name||' REBUILD TABLESPACE '||'&&idx_ts'||' ;'
    FROM user_indexes; SPOOL off



3- نقوم بعمل RUN لل سبوول الذي نتج عندنا

@mov.tmp
@reb.tmp




,ولكن لكي نضمن الناتج في ال spool أن يكون بدون أخطاء سنكتب بالبدايه

SET HEADING off FEED off ECHO off VER off PAUSE on





ويمكن أن نريح أنفسنا وقوم بتنفيذ هذا ال script الذي سيسأل عن ال Tablespace الجديد لل tables
ثم عن ال tablespace الجديد لل indexes

وكان الله بالسر عليم

أخوكم ماهر عطيه

Move_Tables.zip

بتاريخ:

Thnax Maher Allah Yenaowar :rolleyes:

بتاريخ:

مشكورين اخواني على المعلومة المفيدة بارك الله فيكم

تم تعديل بواسطة عرفان

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.