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

افضل وضع للذاكره في الاوراكل

Featured Replies

بتاريخ:

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

اريد ان اعرف افضل ضبط للذاكره الخاصه بالاوراكل داتا بيز علي السيرفير من اجل الاستغلال الامثل لها
حيث اني اعاني من البط الشديد عند اشتغال معظم المستخدمين
مع العلم ان السيرفير يخدم حوالي (50) مستخدم وهو اوراكل 8 اي
وحجم الرام علي السيرفيرهي 1024 ميجا بايت وهو بينتيوم 4 سرعه2.4 جيجا هيرتز
اي حجم
shard pool buffer cash larg pool java pool max user
sort area

بتاريخ:

السلام عليكم

جرب السكريبت التالي، الذي سوف يعطيك معلومات عن وضع الذاكرة الحالي عندك
جربه وفيه الحل إن شاء الله

prompt ****************
PROMPT Hit Ratio for Library Cache must be less than < 1%
prompt if the results was larger than 1% we increase shared_pool in init.ora
PROMPT     Gets: number of times we found parsing for certain SQL statement
PROMPT  Reloads: number of times we make new parsing
PROMPT ----------------
select SUM(RELOADS)   / SUM(GETS) * 100 FROM V$LIBRARYCACHE /

prompt ****************
prompt Hit Ratio for Dictionary Cache must be less than < 15%
prompt if the results was larger than 1% we increase shared_pool in init.ora
prompt Gets: number of times we found parsing for certain SQL statement
prompt Getmisses: number of times we make new parsing
PROMPT ----------------
SELECT SUM(getmisses) / sum(gets) * 100 from V$ROWCACHE /

prompt ****************
prompt Data Chace LRV  must be more than 90%
PROMPT ----------------
select ( 1- (  (select value from V$SYSSTAT where name='physical reads')
            / (  (select value from V$SYSSTAT where name='db block gets')
	         +(select value from V$SYSSTAT where name='consistent gets')
    ))) * 100 "Data Cache LRV"
from dual /

prompt ****************
prompt hit ratio for Buffer Cache (Data Buffer) for KEEP and RECYCLE and DEFAULT
prompt sections in 9i only, in 8i we use v$buffer_pool
PROMPT ----------------
select name, physical_reads, consistent_gets, db_block_gets
from v$buffer_pool_statistics /

prompt ****************
prompt Size of log buffer 
prompt value must be near to zero, if it was more than 50 we increase slightly
prompt log_buffer size in init.ora
PROMPT ----------------
select statistic#, name, value from v$sysstat where name='redo log space requests'
/

prompt ****************
prompt Sort Buffer
prompt sort memory: number of sort operations in memory
prompt sort disk  : number of sort operations in disk (Swap file)
prompt sort rows  : number of sorted rows by memory/disk sort operations
prompt hit ratio must be more than 80%, if it was less we need to increase sort_area_size
prompt Oracle recommends that sort_area_retained_size = 10% of sort_area_size
PROMPT ----------------
select (select value from V$SYSSTAT where name='sorts (rows)') "Number Sorted Rows",
      ( 1- (  (select value from V$SYSSTAT where name='sorts (disk)')
            / (  (select value from V$SYSSTAT where name='sorts (memory)')
    ))) * 100 "%Sorts in Memory"
from dual /

prompt ****************
prompt RollBack Segment hit ratio must be > 99%
PROMPT ----------------
SELECT (1- SUM(waits) / sum(gets)) * 100 "RollBack Segment hit ratio"
from v$rollstat /

prompt ****************
prompt Tuning MTS
prompt Dispatcher hit ratio must be > 50%, if it was less we increase max_dispatcher
PROMPT ----------------
SELECT (1- SUM(busy) / (sum(busy)+sum(idle)) ) * 100
from v$dispatcher /

prompt ****************
prompt Shared Server hit ratio must be > 50%, if it was less we increase
PROMPT ----------------
SELECT (1- SUM(busy) / (sum(busy)+sum(idle)) ) * 100
from v$Shared_server /

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

اشكرك يا اخي
انا هجرب الاسكربت وان شاء الله يجيب نتيجه
وجزاك الله خيرا

بتاريخ:

الوضع الصحيح لضبط الذاكره فى اوراكل هو
PGA + SGA< total RAM - Other used by process
PGA = Program global area
SGA= system global area
حاصل جمع ال SGA و ال PGA اصغر من حاصل حجم الذاكره الكامل - المساحه المستخدمه من قبل التطبيقات الاخرى الخاصه بالنظام.

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


السلام عليكم ورحمة الله وبركاته،،
اخي العزيز لقد جربت الاسكريبت ولكني لم افهم ماذا يمكنني ان افعل فارجو منك المساعده جزاك الله عنا كل الخير

واليك ناتج التنفيذ لكل خطوه

1* select SUM(RELOADS) / SUM(GETS) * 100 FROM V$LIBRARYCACHE
SQL>
SQL> /

SUM(RELOADS)/SUM(GETS)*100
--------------------------
0.17739483
==================================================

SQL> SELECT SUM(getmisses) / sum(gets) * 100 from V$ROWCACHE
2 /

SUM(GETMISSES)/SUM(GETS)*100
----------------------------
19.291448
==================================================
SQL> select ( 1- ( (select value from V$SYSSTAT where name='physical reads')
2 / ( (select value from V$SYSSTAT where name='db block gets')
3 +(select value from V$SYSSTAT where name='consistent gets')
4 ))) * 100 "Data Cache LRV"
5 from dual
6
SQL> /

Data Cache LRV
--------------
96.374502
==================================================
SQL> select ( 1- ( (select value from V$SYSSTAT where name='physical reads')
2 / ( (select value from V$SYSSTAT where name='db block gets')
3 +(select value from V$SYSSTAT where name='consistent gets')
4 ))) * 100 "Data Cache LRV"
5 from dual
6
SQL> /

Data Cache LRV
--------------
96.374502
==================================================
SQL> select statistic#, name, value from v$sysstat where name='redo log space requests'
2
SQL>
SQL> /

STATISTIC# NAME VALUE
---------- ------------------------------------------------ ---------
0 108
==================================================
SQL> select (select value from V$SYSSTAT where name='sorts (rows)') "Number Sorted Rows",
2 ( 1- ( (select value from V$SYSSTAT where name='sorts (disk)')
3 / ( (select value from V$SYSSTAT where name='sorts (memory)')
4 ))) * 100 "%Sorts in Memory"
5 from dual
6
SQL> /

Number Sorted Rows %Sorts in Memory
------------------ ----------------
18437 100
=================================================
SQL> SELECT (1- SUM(waits) / sum(gets)) * 100 "RollBack Segment hit ratio"
2 from v$rollstat
3 /

RollBack Segment hit ratio
--------------------------
100
==================================================
SQL> SELECT (1- SUM(busy) / (sum(busy)+sum(idle)) ) * 100
2 from v$dispatcher
3 /

(1-SUM(BUSY)/(SUM(BUSY)+SUM(IDLE)))*100
---------------------------------------
100
==================================================
SQL> SELECT (1- SUM(busy) / (sum(busy)+sum(idle)) ) * 100
2 from v$Shared_server
3 /

(1-SUM(BUSY)/(SUM(BUSY)+SUM(IDLE)))*100
---------------------------------------
100

بتاريخ:

السلام عليكم

لو نظرت داخل السكريبت يوجد PROMPT قبل كل مجموعة من الأوامر
فيها يوجد الحل إن شاء الله لما تبحث عنه
قارن النتائج التي حصلت عليها مع ما مكتوب فيها
وبالتالي يجب أن تعدل بعض الباراميترز في init.ora وتطفي الداتابيس وتعيد تشغيلها

لا تنسى أن تحتفظ ب init.ora الأصلي
ولا تنسى أن تأخذ باكب سليم من داتابيس

SQL> SELECT SUM(getmisses) / sum(gets) * 100 from V$ROWCACHE
2 /

SUM(GETMISSES)/SUM(GETS)*100
----------------------------
19.291448


بعد مراجعة output الصادر عندك

أعتقد أن جزء من المشكلة هي أن Hit Ratio for Dictionary Cache = 19.2 بينما يجب أن تكون قيمته أقل من 15%، وبالتالي يجب أن تزيد shared_pool in init.ora
وكن حذر في التعامل مع هذه الباراميترز

إذا كان عندك Oracle Support يفضل حضور مختص منهم لمكان عملك ليعمل لك تيوننج للداتابيس

تم تعديل بواسطة Naji_Ali

  • بعد 8 سنة...
بتاريخ:

الاسكربت رائع رائع رائع

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

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

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

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

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

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.