بتاريخ: 7 يونيو 200916 سنة comment_159548 السلام عليكم معلومه مفيده احببت مشاركتها معكم ********************************************************************************************To Know the real size of tables per Megaselect table_name,(num_rows*avg_row_len)/(1024*1024) MB from user_tables where table_name='T1*********************************************************************************************To Know the schema size per migaselect owner,sum(bytes)/1024/1024 from dba_segmentswhere owner = 'Schema_name'group by owner*********************************************************************************************To Know which user own DBA roleSELECT grantee FROM dba_role_privs WHERE granted_role = 'DBA'ORDER BY grantee; تقديم بلاغ
بتاريخ: 7 يونيو 200916 سنة comment_159552 السلام عليكمبصراحة معلومات حلوةياريت يكون في تاني زي كدهشكرا لك وبارك الله فيك تقديم بلاغ
بتاريخ: 7 يونيو 200916 سنة كاتب الموضوع comment_159561 script to move all tables from tablespace to another one on one shotselect 'ALTER TABLE ' || table_name || ' MOVE TABLESPACE NEW_TPS_NAME ;'from dba_all_tableswhere owner='Schema_owner'and tablespace_name='OLD_TPS_NAME'***********************************************************************************script to move indexes from tablespace to another one on one shotselect 'ALTER INDEX '|| INDEX_NAME ||' REBUILD TABLESPACE NEW_TPS_NAME;'from DBA_INDEXESwhere tablespace_name='OLD_TPS_NAME'and TABLE_OWNER='Schema_owner'order by table_name; تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.