ÔÚרÓÃÁ¬½Ó·½Ê½ÖУ¬Ã¿Ò»¸öÁ¬½Óµ½Êý¾Ý¿â·þÎñÆ÷µÄ¿Í»§¶ËÇëÇ󣬷þÎñÆ÷»áºÍ¿Í»§¶ËÖ®¼ä½¨Á¢ÆðÁ¬½Ó£¬Õâ¸öÁ¬½ÓÓÃÓÚרÃÅ´¦Àí¸Ã¿Í»§¶ËµÄËùÓÐÇëÇó£¬Ö±µ½Óû§Ö÷¶¯¶Ï¿ªÁ¬½Ó»òÍøÂç³öÏÖÖжϡ£ÔÚÁ¬½Ó´¦ÓÚ¿ÕÏÐʱ£¬ºǫ́½ø³ÌPMON»áÿ¸ôÒ»¶Îʱ¼ä£¬¾Í»á²âÊÔÓû§Á¬½Ó×´¿ö£¬Èç¹ûÁ¬½ÓÒѶϿª£¬PMON»áÇåÀíÏÖ³¡£¬ÊÍ·ÅÏà¹ØµÄ×ÊÔ´¡£ רÓÃÁ¬½ÓÏ൱ÓÚÒ»¶ÔÒ»µÄÁ¬½Ó£¬Äܹ»¿ìËÙµÄÏìÓ¦Óû§µÄÇëÇó¡£µ±È»£¬ÔÚÁ¬½ÓµÄʱºò£¬Ê×ÏÈÒª´´½¨PGA£¨Program global area£©£¬²ÎÊýpga_aggregate_target ¾ö¶¨¿ÉÒÔÓÉËùÓзþÎñÆ÷½ø³ÌʹÓõÄÄÚ´æµÄ×ÜÁ¿£¬²ÎÊý workarea_size_policy ¾ö¶¨ÊÇÓÃÊÖ¶¯¹ÜÀí»¹ÊÇ×Ô¶¯¹ÜÀí¡£È磺
SQL> show parameter pga_aggregate_target
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
pga_aggregate_target big integer 10485760
SQL> show parameter workarea_size_policy
NAME TYPE VALUE
------------------------------------ ----------- --------------
workarea_size_policy string AUTO
¶øPgaÓÉÈý²¿·Ö¹¹³É£¬ÆäÖÐÓпÉÒÔÅäÖÃµÄ sort_area_size£¬»¹ÓлỰÐÅÏ¢£¬¶ÑÕ»¿Õ¼ä¡£
sort_area_sizeÊÇÓû§ÓÃÀ´ÅÅÐòµÄÄÚ´æ¿Õ¼ä£º
SQL> show parameter sort_area_size
NAME TYPE VALUE
------------------------------------ ----------- ------------------
sort_area_size integer 524288
Èç¹ûÅÅÐòµÄÊý¾ÝÁ¿±È½Ï´ó£¬ÅÅÐò¿Õ¼ä²»¹»Óã¬ÕâʱOracleͨ¹ýרÓÃËã·¨£¬¶ÔÊý¾Ý½øÐзֶΣ¬·Ö¶ÎºóµÄÊý¾ÝתÒƵ½ÁÙʱ±í¿Õ¼äÖУ¬ÔÚÁÙʱ±í¿Õ¼äÖнøÐÐÅÅÐò£¬Íê³Éºó£¬ÔÙºÏÔÚÒ»Æ𣬷µ»Ø¸øÇëÇóµÄÓû§¡£ÕâÊÇ´óÅÅÐòΪʲôʹÓÃÁÙʱ±í¿Õ¼äµÄÔÒò¡£
ÔÚרÓÃÁ¬½ÓÖУ¬Á¬½ÓËùÐèÒªµÄ×ÊÔ´È«²¿ÔÚPGAÖзÖÅä¡£¸ÃÄÚ´æÇøΪָ¶¨Á¬½Ó˽ÓУ¬ÆäËü½ø³Ì²»ÄÜ·ÃÎÊ¡£
רÓÃÁ¬½Ó²ÉÓÃÒ»¶ÔÒ»µÄÁ¬½Ó·½Ê½£¬ÄܺܵÄÏìÓ¦Óû§µÄÇëÇ󣬵«ÊÇ£¬Èç¹ûÁ¬½ÓÓû§Ì«¶àʱ£¬ÓÉÓÚÒª¶Ôÿһ¸öÁ¬½Ó·ÖÅä×ÊÔ´£¬Òò´Ë£¬Á¬½ÓÊýÊÜÓ²¼þÏÞÖƱȽϴó¡£ÎªÁË¿Ë·þÕâÖÖÇé¿ö£¬Oracle Ìá³öÁ˹²ÏíÁ¬½ÓµÄÁ¬½Ó·½·¨£¬¼´ÓÃÒ»¸ö·þÎñÆ÷µÄ½ø³ÌÏìÓ¦¶à¸öÓû§Á¬½Ó£¬ÓëרÓÃÁ¬½Ó²»Í¬ÓÐÁ¬½Óʱ²Å´´½¨PGA²»Í¬£¬¹²ÏíÁ¬½ÓÔÚʵÀýÒ»Æô¶¯£¬¾Í·ÖÅäÖ¸¶¨ÊýÁ¿µÄ·þÎñÆ÷½ø³Ì£¬ËùÓû§µÄÁ¬½Ó£¬ÒÔÅŶӵķ½Ê½£¬ÓÉ·ÖÅäÆ÷Ö¸¶¨¸ø·þÎñÆ÷½ø³Ì£¬ÆäËüµÄ½ø³ÌÅŶӵȴý¡£Ö»ÒªÓû§µÄÇëÇóÒ»Ö´ÐÐÍ꣬¾Í»áÂíÉ϶ϿªÁ¬½Ó£¬·ÖÅäÆ÷»á°Ñ¿ÕÏеķþÎñÆ÷½ø³Ì·ÖÅä¸øÆäËüÅųýµÄ½ø³Ì¡£
²ÉÓù²ÏíÁ¬½Ó¿ÉÒÔÓÐЧµÄÌá¸ß·þÎñÆ÷×ÊÔ´µÄÀûÓÃÂÊ£¬µ«ÊǶÔÒ»¸ö·ÖÅäÆ÷£¬Ö»Ö§³ÖÒ»ÖÖÐÒ飬ÿ¸ö·ÖÅäÆ÷ÓÐ×ÔÒѵÄÅŶӶÓÁУ¬ÔÚÇëÇóµÄÈÎÎñÍê³Éºó£¬ÓÉ·ÖÅäÆ÷½«²Ù×÷½á¹û·µ»Ø¸øÏàÓ¦µÄÓû§½ø³Ì¡£µ«Êǹ²ÏíÁ¬½ÓµÄ½¨Á¢£¬ ÐèÒªOracleµÄ¼àÌý½ø³Ì¡¢·ÖÅäÆ÷¡¢¹²Ïí·þÎñÆ÷½ø³Ì²ÅÄܹ²Í¬Íê³ÉÒ»¸öÁ¬½ÓµÄ´´½¨£¬ËùÒÔÁ¬½ÓµÄ·ÖÅäÒ²ÐèÒªÒ»¶¨µÄʱ¼äºÍ×ÊÔ´¡£
ÔÚ¹²ÏíÁ¬½ÓÖУ¬sort_area_size ½«ÔÚ SGA µÄ Large_pool ÖзÖÅä¡£
ÉÏÃæËù˵µÄÊÇÁ½ÖÖÁ¬½ÓµÄ´´½¨·½·¨ºÍ¹ÜÀí·½·¨£¬ÔÚÀíÏëµÄÇé¿öÏ£¬¶ÔÓÚ³¤ÊÂÎñ»ò´óÊÂÎñ£¬Ê¹ÓÃרÓÃÁ¬½Ó£¬¿ÉÒÔÓÐЧµÄÌá¸ßϵͳµÄÐÔÄÜ£¬¼õÉÙÓû§µÈ´ýºÍÊÂÎñµÄÅŶӣ¬Ìá¸ßϵͳµÄÀûÓÃÂÊ¡£¶ÔÓÚ³¬¶ÌÊÂÎñºÍ¶ÌÊÂÎñ¡¢Ð¡ÊÂÎñ£¬Ê¹Óù²ÏíÁ¬½Ó·½Ê½£¬¿ÉÒÔÔÚ×ÊÔ´ÓëЧÂÊÖ®¼ä´ïµ½Ò»ÖÖƽϡ¡£±ÈÈç¶ÔÓÚOLTP ϵͳ£¬Ê¹ÓÃרÓÃÁ¬½Ó£¬¶ø¶ÔÓÚÍøÕ¾µÈ£¬¿ÉÒÔʹÓù²ÏíÁ¬½Ó¡£
ÄÇô£¬Äܲ»ÄÜÔÚOLTPϵͳÖÐʹÓù²ÏíÁ¬½ÓÄØ£¿Èç¹ûÄÜʹÓã¬ÄÇô£¬Äܲ»ÄÜÌá¸ßÐÔÄÜÄØ£¿
OLTPϵͳ£¬Ò»°ã¶øÑÔ£¬Óн϶àµÄ³¤ÊÂÎñºÍ´óÊÂÎñ£¬ÈçÓû§µÄij¼¸²½²Ù×÷£¬±ØÐë×÷Ϊһ¸öÊÂÎñ¡£¶ÔÓÚÕâÖÖÇé¿ö£¬ÎÒÃÇ·ÖÎöһϣ¬¿´¿´£¬»á·¢ÉúʲôÑùµÄÇé¿ö£º
·ÖÎöÊ×ÏÈÓÐÒ»¸öÇ°ÌᣬÄǾÍÊÇÓû§ÇëÇóÊýÒª´óÓÚ¹²Ïí·þÎñÆ÷½ø³ÌÊý£¬·ñÔò£¬¼õÈ¥·ÖÅäÆ÷¹ÜÀíÐÔÄÜÖ§³ö£¬¹²ÏíÁ¬½ÓµÄÐÔÄÜÒªµÍÓÚרÓÃÁ¬½Ó¡£
Èç¹ûÓû§ÇëÇóÊý´óÓÚ¹²Ïí·þÎñÆ÷½ø³ÌÊý£¬ÄÇô¿Ï¶¨ÓÐÇëÇóÊÇÔÚÅŶӣ¬¼Ù¶¨Ä¿Ç°Ò»¸ö¹²Ïí·þÎñÆ÷½ø³ÌÕýÔÚÖ´ÐÐÒ»¸ö³¤ÊÂÎñ£¬ÄÇôÇëÇó¶ÓÁоÍÒªÒ»Ö±µÈ£¬Ö±µ½µ±Ç°µÄÊÂÎñ½áÊø¡£´ÓÓû§ÇëÇóµÄ½Ç¶È¿´£¬ºÜÃ÷ÏÔ£¬ÏìÓ¦µÄʱ¼ä¼Ó³¤ÁË¡£´Ó·þÎñÆ÷½Ç¶È¿´£¬ÎÒÃÇÏÈ¿´Ò»ÏÂÓÉÍøÓÑ WESTLIFE_XU ÌṩµÄʵÀý£º
¹²ÏíÁ¬½ÓºÍ³¤ÊÂÎñÊDZ³µÀ¶ø³ÛµÄ£¬³¤ÊÂÎñµÄ¹²ÏíÁ¬½Ó»áÔì³Éshared ½ø³ÌµÄÑÏÖØÅŶӣ¬Ôì³ÉÐÔÄܵÄÑÏÖØϽµ
¸øÄã¿´Ò»¸ö¼«¶ËµÄÀý×Ó,ÒÔÇ°µÄͬʹ«Ë¾µÄ
´úÂë:--------------------------------------------------------------------------------top 6191 oracle 16 0 532m 410m 408m R 14.1 40.6 1969:23 oracle12599 oracle 15 0 533m 423m 419m S 13.2 41.8 4379:02 oracle 458 oracle 16 0 532m 411m 409m R 12.5 40.7 1808:48 oracle12602 oracle 16 0 532m 421m 419m R 9.7 41.7 4295:49 oracle 4007 oracle 16 0 533m 410m 408m R 9.7 40.6 1527:16 oracle13053 oracle 16 0 532m 370m 368m R 8.5 36.6 77:44.69 oracle13967 oracle 16 0 533m 421m 419m R 8.1 41.7 2384:56 oracle 6228 oracle 16 0 532m 408m 406m R 7.8 40.4 773:24.11 oracle30806 oracle 16 0 533m 415m 412m R 7.5 41.0 1139:41 oracle12595 oracle 15 0 533m 97m 96m S 4.4 9.7 1355:51 oracle12597 oracle 15 0 533m 98m 96m S 2.2 9.7 710:42.61 oracle12520 oracle 16 0 33388 3680 3000 S 0.3 0.4 4:21.43 tnslsnr12583 oracle 16 0 533m 308m 306m S 0.3 30.5 6:54.57 oraclevidb:~# ps -ef|grep 6191oracle 6191 1 13 Dec01 ? 1-08:49:28 ora_s002_SERVICEvidb:~# ps -ef|grep 12599 oracle 12599 1 13 Nov18 ? 3-00:59:09 ora_s000_SERVICEtop10µÄ½ø³ÌÈ«²¿¶¼ÊÇÀàËÆora_s000µÄ¹²Ïí·þÎñÆ÷½ø³Ì£¬·þÎñÆ÷¸ºÔØÔÚ10ÒÔÉÏ-----------------------------------------------------------------------------------------
¾Ù¸öÀý×Ó£¬200¸örequest¹²Ïí±È˵10¸ö¹²Ïí½ø³Ì£¬Ã¿¸öshared½ø³ÌÔÚÒ»¸öʱ¼äÄÚÖ»ÄÜ´¦ÀíÒ»¸örequest£¬Ò²¾ÍÊÇ˵10¸ö½ø³ÌÔÚͬһʱ¼äÄÚÖ»ÄÜ´¦Àí10¸örequest£¬Èç¹ûÒ»¸örequestÐèÒªºÜ³¤µÄ´¦Àí£¬»áÔì³ÉÆäËüÇëÇóµÄÑÏÖØÅŶӡ£
shared½ø³ÌÒªÇó¿Í»§¶ËµÄÿ¸örequestÒªÌرð¿ì£¬Èç¹û¿Í»§¶ËµÄÒ»¸örequest¾ÍÕ¼Á˺ܳ¤Ê±¼ä£¬ÄDZðµÄrequest¾ÍµÃÒ»Ö±µÈ×Å£¬¹²Ïí¾ÍûÓÐʲôÒâÒåÁË¡£
´ÓÉÏÃæ¿ÉÒÔ¿´³ö£¬Èç¹ûÔÚÓдóÊÂÎñºÍ³¤ÊÂÎñµÄOLTPϵͳÖУ¬ÏµÍ³»á±ÈÔÀ´¸üÂý£¡
×ÛºÏÀ´¿´£¬¹²ÏíÁ¬½ÓºÍרÓÃÁ¬½Ó¸÷ÓÐËù³¤£¬¹Ø¼üÊÇ¿´Ó¦Óã¬ÄÜÊÊÓÃÓÚ×ÔÒÑÓ¦ÓõÄÁ¬½Ó·½Ê½£¬¾ÍÊǺ÷½Ê½¡£