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

Table Space

Featured Replies

بتاريخ:

السلام عليكم ورحمة الله وبركاته


ممكن أحد من الاخوة يشرح لنا كيف اعرف انه tablespace تبعي في خطر عن طريق الcomman

لان الانتربرايز مش شالغة عندي


شكرا وهل استطيع زيادة سعة الtablespace متى شئت ؟

شكرا لكم


منى مبتدئة dba

بتاريخ:

الأخت الفاضلة مني

أدعوك لطرق باب البحث قبل عمل السؤال لعدم تكرار الاسئة واجابتها وبالتالي سوف نجر المنتدي لمواضيع مكررة ومملة

كذلك لا مانع من البحث في مصادر البحث مثل google للوصول للمعلومة متمنين أن نجد لكم مشاراكات بناءة


تحياتي

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

ياعزيزي يا محترف dba

علشان ما عندنا خبرة تقول ها الكلام يا الله معليش

اسمع اخوي انا بحثت وبحثت وبحثت وجدت الناس تعرف حجم ال tablespace عن طريق الانتربرايز منجر

بس انا عندي الانتر برايز منجر مش شغال على ال production server
ولازم اعمل مونتر لل tablespace عن طريق sql صح

طيب انا قلت لك سابقا انه مشكلة الانتر برايز هي عدم اتصال agent , instance down

لكن lisiner up ولم اجد لها حلا .

الخوف اني ما ودي العب با production server

فان شاء الله اسئلتنا ما تكون مكررة ومملة

واذا ما تبي تجاوب انت حر بس لا تقول ل مبتدئة وفي مجال dba و عمل ومديري يقول لي اريد تقرير على tablspace انه سؤالي ممل

هو بالنسبة لي مهم

شكرا لك

منى
مبتدئة dba

بتاريخ:

-- to determine database size

select sum(bytes)/1024/1024/1024 "Gigabyte" from dba_data_files;


-- To Determine How Much Free Space a Tablespace

  
 select tablespace_name, to_char(sum(bytes)/1048576, '99,999,990.99') 
   as MB_FREE, count(*) as FRAGMENTS, to_char(max(bytes)/1048576, 
   '99,999,990.99') as BIGGEST_BIT from dba_free_space
   group by tablespace_name;





-- to determine if an ORACLE Tablespace has less than 10% free or the max extents exceed the max free space

SELECT
tspace.tablespace_name,
tspace.total_space,
free.total_free, 
ROUND(free.total_free/tspace.total_space*100) as pct_free,
ROUND((tspace.total_space-free.total_free),2) as total_used,
ROUND((tspace.total_space-free.total_free)/tspace.total_space*100) as pct_used,
free.max_free,
nextext.max_next_extent
FROM
(SELECT
tablespace_name,
SUM(bytes)/1024/1024 total_space
FROM dba_data_files
GROUP BY tablespace_name) tspace,
(SELECT
tablespace_name,
ROUND(SUM(bytes)/1024/1024,2) total_free,
ROUND(MAX(bytes)/1024/1024,2) max_free
FROM dba_free_space
GROUP BY tablespace_name) free,
(SELECT
tablespace_name,
ROUND(MAX(next_extent)/1024/1024,2) max_next_extent 
FROM dba_segments
GROUP BY tablespace_name) NEXTEXT
WHERE
tspace.tablespace_name = free.tablespace_name (+)
AND tspace.tablespace_name = nextext.tablespace_name (+)
AND ((ROUND(free.total_free/tspace.total_space*100)) < 10
OR nextext.max_next_extent > free.max_free);

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

شكرا لك


الحل ممتاز


جزاك الله خيرااااا

منى

مبتدئة dba

بتاريخ:

If you fond of using graphical tools to monitor Oracle Database
you can use


Insider for Oracle

post-115946-036027100 1294309049_thumb.jpg

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

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

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

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

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

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.