بتاريخ: 22 أكتوبر 200718 سنة comment_113755 ممكن حد يشرحلي المعادلة دي undo_tablespace_size = UR * UPSعشان موش فاهمها خالصولكم مني جزيل الشكر والامتنان تقديم بلاغ
بتاريخ: 23 أكتوبر 200718 سنة comment_113864 UR is UNDO_RETENTION in seconds--------> take it as 500 secs(UPS) is Number of undo data blocks generated per second Which can be calculated by following querySELECT end_time,begin_time,undoblks FROM v$undostat;(DBS) is Overhead varies based on extent and file size (db_block_size)Sizing an UNDO TablespaceSizing an UNDO tablespace requires three pieces of data. Two can be obtained from theinitialization file: UNDO_RETENTION and DB_BLOCK_SIZE. The third piece of theformula requires a query against the database. The number of undo blocks generatedsecond can be acquired from V$UNDOSTAT. The following formula calculates the totalnumber of blocks generated and divides it by the amount of time monitored, in seconds:SELECT (SUM(undoblks) / SUM( ((end_time - begin_time) * 86400)FROM v$undostat;Column END_TIME and BEGIN_TIME are DATE data types. When DATE data typessubtracted, the result is in days. To convert days to seconds, you multiply by 86400, thenumber of seconds in a day.The result of the query returns the number of undo blocks per second. This value needsmultiplied by the size of an undo block, which is the same size as the database blockin DB_BLOCK_SIZE. The following query calculates the number of bytes needed:following quer calculates the undo segment sizeSELECT (UR * (UPS * DBS)) + (DBS * 24) AS "Bytes"FROM (SELECT value AS URFROM v$parameterWHERE name = 'undo_retention'),(SELECT (SUM(undoblks)/SUM(((end_time -begin_time)*86400))) AS UPSFROM v$undostat),(SELECT value AS DBSFROM v$parameterWHERE name = 'db_block_size'); هذا الرد مقتبس بالكامل تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.