OracleµÄÄÚ´æ¹ÜÀí
oracleÊý¾Ý¿âʵÀýÆô¶¯Ê±£¬ÐèÒª·ÖÅä¹²ÏíÄڴ棬Æô¶¯ºǫ́½ø³Ì¡£
oracleÊý¾Ý¿âʹÓõÄÄÚ´æÖ÷ÒªÉæ¼°µ½£ºPGAºÍSGA¡£
Ò»¡¢ PGA
Program Global Area£¬¹ËÃû˼ÒåÊdzÌÐòÈ«¾ÖÇø£¬ÊÇ·þÎñÆ÷½ø³Ì£¨Server Process£©Ê¹ÓõÄÒ»¿é°üº¬Êý¾ÝºÍ¿ØÖÆÐÅÏ¢µÄÄÚ´æÇøÓò£¬PGAÊǷǹ²ÏíµÄÄڴ棬ÔÚ·þÎñÆ÷½ø³ÌÆô¶¯»ò´´½¨Ê±·ÖÅ䣬²¢ÎªServer ProcessÅÅËû·ÃÎÊ¡£
½ø³ÌµÄ´´½¨ÓÐÁ½·½Ê½£º×¨Ó÷þÎñÆ÷ģʽ£¨Dedicated Server£©ºÍ¹²Ïí·þÎñÆ÷ģʽ£¨Shared
Server£©¡£×¨Ó÷þÎñÆ÷ģʽÏ£¬OracleΪÿ¸ö»á»°Æô¶¯Ò»¸öOracle½ø³Ì£»ÔÚ¹²Ïí·þÎñÆ÷ģʽÏ£¬Í¨³£ÔÚ·þÎñÆ÷¶ËÆô¶¯Ò»¶¨ÊýÁ¿µÄ·þÎñÆ÷½ø³Ì£¬È»
ºóÓɶà¸ö¿Í»§¶ËÇëÇó¹²Ïíͬһ¸öOracle·þÎñ½ø³Ì¡£Í¨³£·þÎñÆ÷ÔËÐÐÔÚרÓ÷þÎñÆ÷ģʽÏ¡£
PGAµÄ´´½¨¹ý³Ì
oracleµÄ½á¹¹Í¼
PGA´´½¨¹ý³Ì£ºµ±¿Í»§¶ËÏò·þÎñÆ÷·¢ËÍÁ¬½ÓÇëÇ󣬷þÎñÆ÷¼àÌýµ½¿Í»§¶ËÒªÇó£¬ÔÚרÓ÷þÎñÆ÷ģʽÏ£¬ÔÚ·þÎñÆ÷¶ËÉú³ÉÒ»¸öSerlver
ProcessÀ´´úÀíÓû§µÄÇëÇ󣬷þÎñÆ÷½ø³Ì½ø¶øÏòʵÀý·¢ÆðÁ¬½Ó£¬´´½¨»á»°£¨Create Session£©£¬¶øPGA¾ÍΪΪServler
ProcessËù·ÖÅäºÍʹÓá£
ͨ³££¬PGA°üÀ¨Ë½ÓÐSQLÇø¡¢SessionÐÅÏ¢µÈÄÚÈÝ¡£
»á»°ÄÚ´æ(Session Memory)£ºÓÃÓÚ´æ·Å»á»°µÄµÇ¼ÐÅÏ¢ÒÔ¼°ÆäËûÏà¹ØÐÅÏ¢£¬¶ÔÓÚ¹²Ïí·þÎñÆ÷ģʽ£¬Õⲿ·ÖÊǹ²ÏíµÄ¡£
˽ÓÐSQLÇø(Private SQL Area):°üº¬°ó¶¨±äÁ¿ÐÅÏ¢£¬²éѯִÐÐ״̬ÐÅÏ¢ÒÔ¼°²éѯ¹¤×÷ÇøµÈ¡£Ã¿¸ö·¢³ö²éѯµÄ»á»°¶¼ÓÐÒ»¿é˽ÓÐSQLÇø£¬¶ÔÓÚרÓ÷þÎñÆ÷ģʽ£¬Õⲿ·ÖÄÚ´æÔÚPGAÖзÖÅ䣬¶ÔÓÚ¹²Ïí·þÎñÆ÷ģʽ£¬Õⲿ·ÖÄÚ´æÔÚSGAÖзÖÅä¡£
˽ÓÐSQLÇøÓÖÓÉÁ½²¿·Ö×é³É£º ÓÀ¾ÃÇøÓò£¨Persistent
Area£©:°üº¬°ó¶¨±äÁ¿µÈÐÅÏ¢£¬Õⲿ·ÖÄÚ´æÖ»ÓÐÔÚÓαê¹Ø±Õʱ²Å»á±»ÊÍ·Å£»ÔËÐÐʱÇøÓò(Runtime
Area)£¬´æ·ÅÁËSQLÓï¾äÔËÐÐʱËùÐèÒªµÄÐÅÏ¢£¬ÔÚÖ´ÐÐÇëÇóʱÊ×ÏÈ´´½¨£¬ÆäÖаüº¬Á˲éѯִÐеÄ״̬ÐÅÏ¢¡¢SQL Work Areas¡£
¶þ¡¢ UGA£¨User Global
Area£©:Óû§È«¾ÖÇø¡£ÓÉÓû§»á»°Êý¾Ý¡¢Óαê״̬ºÍË÷ÒýÇø×é³É¡£ÔÚ¹²Ïí·þÎñÆ÷ģʽÏ£¬Ò»¸ö¹²Ïí·þÎñ½ø³Ì±»¶à¸öÓû§½ø³Ì¹²Ïí£¬´ËʱUGAÊÇShared
Pool»òLarge PoolµÄÒ»²¿·Ö£¬¶øÔÚרÓ÷þÎñÆ÷Ï£¬UGAÔòÊÇPGAµÄÒ»²¿·Ö¡£
ÔÚDedicatredģʽÏ£¬PGAÓëUGAµÄ¹Øϵ£¬¾ÍÈçͬProcessºÍSessionµÄ¹Øϵ£¬PGAÊÇ·þÎñÓÚ½ø³ÌµÄÄÚ´æ½á¹¹£¬°üº¬½ø³ÌÐÅÏ¢£»¶øUGAÊÇ·þÎñÓڻỰµÄ£¬°üº¬µÄÊǻỰµÄÐÅÏ¢¡£
¹Ì¶¨UGA°üÀ¨´óÔ¼70¸öÔ×Ó±äÁ¿£¬Ð¡µÄÊý¾Ý½á¹¹ÒÔ¼°Ö¸ÏòUGA¶ÑµÄÖ¸Õë¡£
»¹ÓÐÒ»¿éÄÚ´æÇøÓòÊÇCGA£¨Call Glabal Area,µ÷ÓÃÈ«¾ÖÇø£©£¬´æÔÚÊÇ˲¼äµ
Ïà¹ØÎĵµ£º
ÎÒÃÇ¿ÉÄÜÔÚOracle DB10g Öлᾳ£Óöµ½OEM²»ÄÜÕý³£Ê¹ÓõÄÎÊÌâ,µ¼ÖÂÎÊÌâµÄÔÒò²»¾¡Ïàͬ,
µ«×îºó¾ø´ó¶àÊýÎÊÌâ¿ÉÒÔͨ¹ýemca Õâ¸öÃüÁîÀ´½â¾ö,ÏêϸµÄ˵Ã÷¿ÉÒԲ鿴Á¬»ú°ïÖú,
ÏÂÃæ¸ø³öһЩ³£ÓõÄÃüÁî,¼°ÊµÀý²½Öè.
´´½¨Ò»¸öEM×ÊÁÏ¿â
emca -repos create
Öؽ¨Ò»¸öEM×ÊÁÏ¿â
emca -repos r ......
¶þ¡¢Ê¹ÓÃPrograms
¡¡¡¡ÔÚÂÛ̳ÖÐż¶û¼û¹ýÓÐÈËÌÖÂÛÈçºÎÔÚORACLEÖÐÖ´ÐвÙ×÷ϵͳÃüÁ»òÊÇORACLEÊý¾Ý¿âÍâµÄÓ¦Óá£Ó¦¸Ã˵ÔÚ9i¼°Ö®Ç°µÄ°æ±¾ÖУ¬ËäȻ˵²¢·ÇÍêÈ«ÎÞ·¨ÊµÏÖ£¨Æäʵ»¹ÊÇÓжàÖÖ·½Ê½Äܹ»±äÏàʵÏֵģ©£¬²»¹ý¸´ÔÓµÄʵÏÖ·½Ê½ÈÃDBAʹ¾¢ÁËÁ¦£¬ÉË͸ÁËÐÄ£¬·Ñ¾¢ÁËʶù¡£
¡¡¡¡½øÈë10g°æ±¾Ö®ºó£¬¾ÍÍêÈ«²»±ØÈç´Ë·ÑÉñ£¬ÒòΪÓÐÁËDBMS ......
Ëùν³öÓÚjob¶øʤÓÚjob£¬ËµµÄ¾ÍÊÇOracle 10gºóµÄÐÂÌØÐÔSchedulerÀ²¡£ÔÚ10g»·¾³ÖУ¬ORACLE½¨ÒéʹÓÃSchedulerÌæ»»ÆÕͨµÄjob£¬À´¹ÜÀíÈÎÎñµÄÖ´ÐС£Æäʵ£¬½«SchedulerÃèÊö³É¹ÜÀíjobµÄ¹¤¾ßÒѾ̫¹ýƬÃæÁË£¬10G°æ±¾ÖÐÐÂÔöµÄScheduler¾ø²»½ö½öÊÇ´´½¨ÈÎÎñÕâô¼òµ¥¡£¡£¡£¡£
Ìáʾ£ºORACLEÖйÜÀíSchedulerÊÇͨ¹ýDBMS_SCHEDULER°ü£¬ ......
Õâ¸öÖ÷ÌâÓë²¢·¢¿ØÖƵĹØϵ·Ç³£½ôÃÜ£¬ÒòΪÕâÕýÊÇOracle²¢·¢¿ØÖÆ»úÖƵĻù´¡£¬Oracle²ÉÓÃÁËÒ»ÖÖ¶à°æ±¾¡¢¶ÁÒ»Ö£¨read-consistent£©µÄ²¢·¢Ä£ÐÍ¡£ÔÙ´Î˵Ã÷£¬ÎÒÃǽ«ÔÚµÚ7Õ¸üÏêϸµØ½éÉÜÓйصļ¼Êõ¡£²»¹ý£¬ÊµÖÊÉϽ²£¬OracleÀûÓÃÕâÖÖ»úÖÆÌṩÁËÒÔÏÂÌØÐÔ£º
q ¶ÁÒ»Ö²éѯ£º¶ÔÓÚÒ»¸öʱ¼äµã£¨point in time£©£¬²éѯ»á²úÉúÒ»ÖµĽ ......