الانتقال إلى المحتوى
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.

Shared Information

Featured Replies

بتاريخ:

السلام عليكم

معلومه مفيده احببت مشاركتها معكم


********************************************************************************
************

To Know the real size of tables per Mega

select table_name,(num_rows*avg_row_len)/(1024*1024) MB
from user_tables
where table_name='T1

********************************************************************************
*************

To Know the schema size per miga

select owner,sum(bytes)/1024/1024 from dba_segments
where owner = 'Schema_name'
group by owner

********************************************************************************
*************
To Know which user own DBA role

SELECT grantee
FROM dba_role_privs
WHERE granted_role = 'DBA'
ORDER BY grantee;

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

script to move all tables from tablespace to another one on one shot

select 'ALTER TABLE ' || table_name || ' MOVE TABLESPACE NEW_TPS_NAME ;'
from dba_all_tables
where owner='Schema_owner'
and tablespace_name='OLD_TPS_NAME'

********************************************************************************
***

script to move indexes from tablespace to another one on one shot

select 'ALTER INDEX '|| INDEX_NAME ||' REBUILD TABLESPACE NEW_TPS_NAME;'
from DBA_INDEXES
where tablespace_name='OLD_TPS_NAME'
and TABLE_OWNER='Schema_owner'
order by table_name;

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

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

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

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

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

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.