Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ORACLEÆô¶¯Ô­Àí

Checkpoint
        ºÜ¶àÈ˶¼°ÑcheckpointµÄ¸ÅÄî¸ø¸´ÔÓ»¯ÁË£¬ÆäʵcheckpointÕâ¸öÊý¾Ý¿â¸ÅÄîÒýÈëµÄÕæÕýÒâÒå¾ÍÊÇÓÃÀ´¼õÉÙÔÚÊý¾Ý¿â
»Ö¸´¹ý³ÌÖÐËù»¨µÄʱ¼ä(instance recovery),ÄÇôcheckpointÊÇÓÉË­À´×öµÄÄØ?ÎÒÃǶ¼ÖªµÀÊý¾Ý¿âÖÐÓиöCKPT½ø³Ì£¬ÕâÊǸö
¿ÉÑ¡½ø³Ì£¬µ«ÊÇÕæÕýÖ´Ðмì²éµãµÄÈÎÎñ²¢²»ÊÇÓÉckptÀ´Íê³ÉµÄ£¬¶øÊÇckptÔÚ¸üпØÖÆÎļþºÍÊý¾ÝÎļþÍ·µÄÓйØÐÅÏ¢ºó£¬Í¨Öª
DBWn½ø³Ì£¬²úÉúÒ»¸ö¼ì²éµã£¬ÔÚ²úÉú¼ì²éµãµÄʱºò£¬DBWn½ø³Ì»á½«buffer cacheÖеÄÔàÊý¾Ý(µ±Ç°online redo log¶ÔÓ¦µÄÔà
Êý¾Ý)£¬Ð´ÈëÎÒÃǵÄÊý¾ÝÎļþµ±ÖС£Õâ¸öʱºòÈç¹ûÊý¾Ý¿â´Ëʱ±ÀÀ£(±ÈÈçÎÒÃÇ×ö¸öshutdown abort)£¬ÄÇôÔÚ½øÐÐʵÀý»Ö¸´µÄ
ʱºò¾Í¿ÉÒÔ²»ÐèÒªµ±Ç°online redo logµÄÄÚÈÝÁË£¬»áºÜ¿ì¾Í×öÍê¡£Òò´Ëckpt½ø³ÌÖ»ÊǸö¸¨Öú½ø³Ì£¬ËûµÄÈÎÎñ¸ü¶àµÄÊÇÓÃÀ´
ÔÚϵͳ×öcheckpointµÄʱºò¸üпØÖÆÎļþºÍÊý¾ÝÎļþÍ·ÖеÄÐÅÏ¢¡£ÆäʵÔÚoracle 8iµÄʱºòÄØ£¬ckptµÄÈÎÎñÒ»°ã¶¼ÊÇÓÉlgwr
½ø³ÌÀ´Íê³É£¬µ½ÁË8iÒÔºó£¬Ëæ×ÅCKPT½ø³ÌµÄÒýÈ룬lgwrµÄ¹¤×÷¸ºµ£¾Í¼õÇáÁ˺ܶà(commitµÄËٶȼӿìÁË)
        ÄÇôÈçºÎÀ´²úÉú¼ì²éµãÄØ?
        ÓÐÈýÖÖ·½·¨£¬¿ÉÒÔͨ¹ý
        1.alter system checkpoint
        2.alter system switch logfile
        3.DBWn½ø³Ìд³öÔà¿é
        SCN
        ÔÚOracleÖÐÀí½âΪһ¸öÄÚ²¿Í¬²½Ê±ÖÓ£¬ÊÇϵͳ¸Ä±äºÅµÄËõд(system change number),ÔÚOracleÊý¾Ý¿âÖÐÎÒÃÇ¿ÉÒÔ
ͨ¹ýdbms_flashback°üÀ´²éѯµ±Ç°ÏµÍ³µÄ¸Ä±äºÅ£ºselect dbms_flashback.get_system_change_number from dual;Ò»°ãÀ´
½²SCNÖ÷ÒªÊÇÓÃÀ´±êʶÊý¾Ý¿âËù×öµÄËùÓиı䣬Õâ¸öSCNµÄ¸Ä±äÊÇÖ»ÄÜÇ°½ø£¬²»ÄÜ»ØÍË£¬³ý·ÇÎÒÃÇ´òËãÖؽ¨¿â£¬Êý¾Ý¿âÖеÄ
SCNÓÀÔ¶²»»á¹é0£¬Ò»°ãÀ´ËµSCNµÄÇ°½ø´¥·¢ÊÇÓÉcommitÀ´½øÐеģ¬³ýÁËÕâЩ¾ÝÎÒ¹Û²ìÿ¸ô3ÃëÖÖϵͳҲ¶¼»áË¢ÐÂÒ»´ÎSCN.
        ÐèҪעÒâµÄÊÇ£º
        1.CKPTÒ»¶¨ÊÇÊÇÔÚcheckpoint·¢ÉúµÄʱºò½«Êý¾Ý¿âµ±Ç°µÄSCN¸üÐÂÈëÊý¾Ý¿âÎļþÍ·ºÍ¿ØÖÆÎļþµ±ÖУ¬Í¬Ê±DBWn½ø³Ì
½«buffer cacheÖеÄÔàÊý¾Ý¿é(dirty blo


Ïà¹ØÎĵµ£º

oracleÓαê

SET NEWPAGE NONE HEADING OFF SPACE 0 PAGESIZE 0 TRIMOUT ON TRIMSPOOL ON LINESIZE 2500 colsep | feedback off termout off pages 0
set colsep |
alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
set feedback on
declare cursor cur_no is
select  beginno,endno  from hm where 1=1;
b ......

oracleÅúÁ¿(batch)²Ù×÷µÄʹÓÃ

    /**
     * ¸üмǼ£¬Ô­×Ó²Ù×÷£¬²»»ácommit
     * @param sql_id
     * @param condition
     * @return
     * @throws SQLException
     */
  &nbs ......

oracleÊé¼®


ºÜ¶àÅóÓÑÒªÎÒ°ïæÍƼöÒ»ÏÂOracleµÄÈëÃÅÊé¼®£¬Äܹ»Á˽âOracleµÄ»ù±¾¸ÅÄî¡¢»ù±¾ÖªÊ¶µÄÄÇÖÖ¡£
ÎÒ¾ÍÃâΪÆäÄÑ£¬ÍƼö¼¸±¾¡£
Ê×ÏÈÎÒÏëÇ¿µ÷µÄÒ»µãÊÇ£¬ÈκÎÒ»±¾ÏµÍ³µÄOracleÊé¼®Ö»ÒªÈÏÕæ¶ÁÏÂÀ´£¬¶¼»áÓв»´íµÄÊÕ»ñ£¬¶ÁÊé×î¼É»äµÄÊÇ»¢Í·Éßβ£¬Ç³³¢ÔòÖ¹¡£
1.µÚÒ»±¾ÒªÍƼö¸ø´ó¼ÒµÄÊÇOracleµÄ¸ÅÄîÊֲᣬÕâ±¾ÊÖ²áÊÇÎÞÊýDBAѧϰµÄÆðµã£ ......

ORACLEÎﻯÊÓͼ ¸ßËÙ¸ßЧ ´´½¨ÎﻯÊÓͼÌá¸ß²éѯËÙ¶È


ÄãÊÇ·ñΪµÈ´ýÄãµÄ²éѯ·µ»Ø½á¹û¶ø¸Ðµ½Æ£±¹£¿ÄãÊÇ·ñÒѾ­ÎªÔöÇ¿Ë÷ÒýºÍµ÷ÓÅSQL¶ø¸Ðµ½Æ£±¹£¬µ«ÈÔÈ»²»ÄÜÌá¸ß²éѯÐÔÄÜ£¿ÄÇô£¬ÄãÊÇ·ñÒѾ­¿¼ÂÇ´´½¨ÎﻯÊÓͼ£¿ÓÐÁËÎﻯÊÓͼ£¬ÄÇЩ¹ýÈ¥ÐèÒªÊýСʱÔËÐеı¨¸æ¿ÉÒÔÔÚ¼¸·ÖÖÓÄÚÍê³É¡£ÎﻯÊÓͼ¿ÉÒÔ°üÀ¨Áª½Ó£¨join£©ºÍ¼¯ºÏ£¨aggregate£©
ÄãÊÇ·ñΪµÈ´ýÄãµÄ²éѯ·µ»Ø½á¹û¶ø¸Ðµ½Æ£±¹£¿ÄãÊÇ·ñÒÑ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ