oracle´¥·¢redoдµÄËĸöÌõ¼þ
µ±LGWR´¦ÓÚ¿ÕÏÐ״̬ʱ£¬ËüÒÀÀµÓÚrdbms rpc messageµÈ´ýʼþ£¬´¦ÓÚÐÝÃß״̬£¬Ö±µ½ÈýÃëʱ¼äµ½£¬Èç¹ûÕâ¸öʱºòLGWR·¢ÏÖÓÐRedoÐÅÏ¢ÐèҪд³öµÄ»°£¬ÄÇôLGWR½«Ö´ÐÐдµÄ²Ù×÷£¬log file parallel writeµÈ´ýʼþ½«»á³öÏÖ¡£
¡¡¡¡×ܽáÒ»ÏÂRedoдµÄ´¥·¢Ìõ¼þ£º
¡¡¡¡1£¬Ã¿ÈýÃëÖÓ³¬Ê±(timeout)£º
µ±LGWR´¦ÓÚ¿ÕÏÐ״̬ʱ£¬ËüÒÀÀµÓÚrdbms rpc messageµÈ´ýʼþ£¬´¦ÓÚÐÝÃß״̬£¬Ö±µ½ÈýÃëʱ¼äµ½£¬Èç¹ûÕâ¸öʱºòLGWR·¢ÏÖÓÐRedoÐÅÏ¢ÐèҪд³öµÄ»°£¬ÄÇôLGWR½«Ö´ÐÐдµÄ²Ù×÷£¬log file parallel writeµÈ´ýʼþ½«»á³öÏÖ¡£
¡¡¡¡2.·§ÖµµÄ´ïµ½£º
¡¡¡¡Redo log buffer 1/3 Âú;
¡¡¡¡Redo log buffer ÓµÓÐ 1MB µÄÔàÊý¾Ý;
²ÎÊý_log_io_sizeµÄÉèÖúÜÖØÒª£¬Ò»°ãΪlog_bufferµÄ1/3´óС
¡¡¡¡3.Óû§Ìá½»£º
µ±Ò»¸ötransactionÌá½»µÄʱºò£¬ÔÚRedo streamÖн«¼Ç¼һ¸öÌá½»±êÖ¾¡£ÔÚÕâЩRedo±»Ð´µ½´ÅÅÌÉÏ֮ǰ£¬Õâ¸ötransactionÊDz»Äָܻ´µÄ¡£ËùÒÔ£¬ÔÚtransaction·µ»Ø³É¹¦±ê־֮ǰ£¬±ØÐëµÈ´ýLGWRдµÄÍê³É¡£½ø³Ì֪ͨLGWRд£¬²¢ÇÒÒÔlog file syncʼþ¿ªÊ¼ÐÝÃß¡£³¬Ê±Îª1Ãë
¡¡¡¡4.ÔÚDBWnд֮ǰ£º
¡¡¡¡Èç¹ûDBWR½«ÒªÐ´³öµÄÊý¾ÝµÄ¸ßRBA³¬¹ýLGWRµÄon-disk RBA£¬ÔòDBWR½«Í¨ÖªLGWRÖ´ÐÐдµÄ²Ù×÷£¬ÔÚOracle8i֮ǰ£¬´ËʱDBWR½«µÈ´ýLog file syncʼþ¡£´ÓOracle8i¿ªÊ¼£¬DBWR°ÑÕâЩblock(½«ÒªÐ´³öµÄblock£¬ÕâÖÖblockµÄ¸ßRBA³¬¹ýÁËLGWRµÄon-disk RBA)·ÅÈëdefer¶ÓÁÐÖУ¬Í¬Ê±Í¨ÖªLGWRÖ´ÐÐRedoд³ö¡£
¡¡¡¡×¢£ºlog buffer spaceµÈ´ýʼþ˵Ã÷log buffer¿Õ¼ä²»¹»ÓÃÁË¡£
Ïà¹ØÎĵµ£º
oracleÊý¾Ý¿âͬ²½
ÔÚÁ½Ì¨oracleÊý¾Ý¿âÖ®¼ä²âÊԳɹ¦£¬ÏÂÃæ¾Í×ܽáһϰɣº
ÐèÇó£º
ÏÖÓÐÁ½Ì¨oracleÊý¾Ý¿â·þÎñÆ÷AºÍB(A,B¿ÉÒÔÊÇÔÚͬһÄÚÍø£¬Ò²¿ÉÒÔÊÇÔÚ»¥ÁªÍøÉϵÄÁ½Ì¨¶ÀÁ¢»úÆ÷)¡£AºÍBÀïÓж¼ÓÐtestable±í£¬½á¹¹Ò»Ñù£¬ÏÖÐèÒªµ±A¿âÖеÄtestable±í±ä»¯Ê±£¬B¿âÀïµÄtestableÒ²ÏàÓ¦±ä»¯Êý¾Ý
ÎҵĽâ¾ö·½°¸£º
ÔÚAÖн¨Á¢µ½B¿âµÄ ......
ÔÎĵØÖ·oracle lock
1ÓÃPerl TKÄ£¿é ²éѯDBÖеÄLOCK
use DBI;
use Tkx;
use DBD::Oracle qw(:ora_session_modes);
$mw = Tkx::widget->new(”.”);
$mw->g_wm_title(”Oracle Lock”);
$content = $mw->new_ttk__frame(-padding => “5 5 12 0″);
$content->g_grid ......
ÀûÓÃosÉóºË
µÇ¼oracleʱÔÚWinÖÐʵÏÖ¶ÔosµÄÉóºËÓÐÈçϼ¸²½£º
1¡¢ create os user id
2¡¢ create os group ora_dba(Õâ¸ö×éÖÐÓû§¾ßÓйÜÀíËùÓÐoracle database µÄȨÏÞ),
ora_sid_dba£¨Ö»ÄܶÔÓ¦µ½ÏàÓ¦sidµ ......
ÔÚµ±½ñÍøÂçʱ´ú£¬ÎÒÃǶÔÊý¾ÝµÄ´æ´¢ÊÇÔ½À´Ô½¸ß£¬½ö½ö´æ´¢Ð¡ÐÍÎı¾Êý¾ÝÒѾԶԶ²»¹»ÁË£¬ÏÖÔÚÊý¾Ý¿âÐèÒª´æ´¢Í¼Æ¬¡¢ÊÓƵµÈµÈһЩ¶àýÌåµÄÄÚÈÝ£¬Òò´Ëoracle¸øÎÒÃÇÌṩÁËÒ»ÖÖ´óÀàÐÍÊý¾Ý¿â¶ÔÏóLOB(Large Object),¿ÉÒÔÓÃÓÚ´æ´¢´óÐÍÊý¾Ý¡£
Ò»¡¢´ó¶ÔÏóµÄ4ÖÐÊý¾ÝÀàÐÍ
CLOB ×Ö·ûLOBÊý¾ÝÀàÐÍ£¬ÓÃÓ ......
Êý¾Ý·ÖÇøÊÇÕë¶Ô±íµÄ¡£
ΪʲôҪ½«±í·ÖÇø£¿
·ÖÇø±íͨ³£´æ´¢ÔÚ½ÏСµÄÎļþ£¨<2GB£©ÖУ¬Ò×ÓÚ±¸·Ý¡£
Ó²¼þ¹ÊÕÏʱ£¬Ö»ÓÐÊý¾Ý¿âµÄһС²¿·Ö»áÊܵ½Ó°Ïì¡£
Ò×ÓÚÊý¾Ý·ÖÎö¡£
¿ÉÒÔÔÚÆäËû·ÖÇø¼ÌÐøÌṩ·þÎñµÄͬʱά»¤ÐèÒª½øÐÐά»¤µÄ±íµÄ·ÖÇø¡£alter table sale drop partition q1_1999;
»ùÓÚÁ¿³ÌµÄ·ÖÇø
¹Ø¼üÊÇÑ¡Ôñ·ÖÇø¼ü£¬ËüÓ¦¸Ã¿ ......