Oracle undo »Ø¹ö¶Î¹ÜÀí
ÔÚ¿ªÊ¼Ö®Ç°£¬ÎÒÃÇÏÈÀ´Ë¼¿¼¼¸¸öÎÊÌ⣿
1. ora-01555´íÎóµÄÊÇÔõô²úÉúµÄ£¿ÓÐʲô°ì·¨½â¾ö£¿
¸ÃÎÊÌ⣬²Î¿¼ÎÒµÄBlog£º Oracle ORA-01555¿ìÕÕ¹ý¾É
http://blog.csdn.net/tianlesoftware/archive/2009/10/31/4745898.aspx
2. »Ø¹ö¶Î(»Ø¹ö±í¿Õ¼ä)ÓÐʲô×÷Óã¿
3. Êý¾Ý¿âÆô¶¯µÄʱºò£¬ÈçºÎ¼ÓÔػعö¶Î£¨»Ø¹ö¶Î±í¿Õ¼ä£©¡£
4. »Ø¹ö¶ÎµÄÊýÁ¿ÓÉʲô¹«Ê½À´¼ÆËã
5. »Ø¹ö±í¿Õ¼äµÄ´óСÈçºÎÈ·¶¨£¿
Ò». ʲôÊÇundo
OracleÊý¾Ý¿âÔÚ»ØÍË¡¢³·Ïú»òÕ߸ıäÊý¾ÝËùÐèÒªµÄά»¤Êý¾Ý¿âÐÅÏ¢µÄÒ»ÖÖÊֶΡ£ÕâÀïµÄÊý¾Ý¿âÐÅÏ¢ÊÇÖ¸ÔÚÊý¾Ý¿âÌύ֮ǰµÄ¼Ç¼µÄ¸Ä±äµÈÊÂÎñÐÅÏ¢¡£
Undo ÐÅÏ¢Ö÷ÒªÓÐÒÔÏÂÓÃ;£º
µ±ÏµÍ³·¢³örollbackÐÅÏ¢
Êý¾Ý¿â»Ö¸´
Ìṩ¶ÁÒ»ÖÂÐÔ
µ±ÏµÍ³·¢³örollbackÃüÁîʱ£¬undo ÐÅϢͨ¹ý¼Ç¼µÄÐÅÏ¢½«Êý¾Ý¿âµÄ¸Ä±ä»Ö¸´µ½commit֮ǰµÄ״̬¡£ÔÚÊý¾Ý¿â»Ö¸´Æڼ䣬undoÐÅÏ¢±»ÓÃÀ´´Óredo logÖг·ÏúÈκÎδÌá½»µ½Êý¾ÝÎļþµÄÊÂÎñ¡£µ±Ò»¸öÓû§ÔÚ·ÃÎÊÊý¾Ýʱ£¬Undo¼Ç¼ͨ¹ýά»¤·ÃÎÊÊý¾ÝµÄÇ°¾µÏñÊý¾ÝÀ´±£Ö¤µ±ÓÐÆäËûÓû§¸Ä±äÏàͬÊý¾ÝʱÊý¾Ý¿âµÄ¶ÁÒ»ÖÂÐÔ¡£
ÒÔÇ°Êý¾Ý¿âʹÓûعö¶ÎÀ´´æ´¢undoÐÅÏ¢£¬ÕâÖֻعö¶Î¹ÜÀí·½Ê½·Ç³£µÄ¸´ÔÓ¡£ÏÖÔÚÊý¾Ý¿â²ÉÓÃundoµÄ·½Ê½½µµÍÁ˹ÜÀíµÄ¸´ÔÓÐÔ£¬Í¬Ê±¼õÉÙÁËdbaµÄ¹¤×÷¸ººÉ¡£µ«ÊÇÔÚÊý¾Ý¿âÖ»ÄÜʹÓÃÕâÁ½ÖÖ·½Ê½µÄÒ»ÖÖ¡£¿ÉÒÔÔÚÊý¾Ý¿âÀﶨÒåÁ½ÖÖ·½Ê½µÄÎļþ£¬µ«ÊÇ£¬Í¬Ò»Ê±¿Ì£¬±ØÐëÖ¸¶¨Êý¾ÝʹÓÃÄÄÒ»ÖÖ·½Ê½¡£µ±ÄãÐèÒªÔÚÁ½ÖÖ·½Ê½ÖÐÇл»Ê±£¬±ØÐ뽫ϵͳÖØÐÂÆô¶¯¡£
OracleÊý¾Ý¿âһֱʹÓÃϵͳ»Ø¹ö¶ÎÀ´Íê³ÉϵͳµÄÊÂÎñ¡£ÏµÍ³»Ø¹ö¶ÎÊÇÔÚÊý¾Ý¿â,´´½¨µÄʱºò²úÉúµÄ£¬ÏµÍ³Æô¶¯ºó¾ÍÒ»Ö±ÔÚÏß¡£Dba²»ÐèÒª¶ÔËü×÷ÈκεIJÙ×÷À´ÓÅ»¯¡£
¶þ. Ö¸¶¨UndoµÄ·½Ê½
oracle 9iÒÔºóÓиö³õʼ»¯²ÎÊý£ºundo_management¡£µ±½«undo_managementÉèÖóÉAUTOʱϵͳʹÓÃÖØ×ö±í¿Õ¼äÀ´¹ÜÀí»Ø¹ö¶Î£¬µ±Ëü±»ÉèÖóÉMENUALʱϵͳʹÓûعö¶Î¡£
oracleÍƼöʹÓÃÖØ×ö±í¿Õ¼ä´úÌæ»Ø¹ö¶Î¡£
µ±ÏµÍ³Ê¹ÓÃauto·½Ê½¹ÜÀíundoÐÅϢʱ£¬ÏµÍ³±ØÐëÖ¸¶¨Ò»¸öundo±í¿Õ¼ä¡£Õâ¸ö±í¿Õ¼ä¿ÉÒÔÊÇÔÚÊý¾Ý¿â´´½¨Ê±²úÉú£¬Ò²¿ÉÒÔÊý¾Ý¿â´´½¨ºóÔÙ´´½¨¡£
µ±ÊµÀýÆô¶¯µÄʱºò£¬ÏµÍ³×Ô¶¯Ñ¡ÔñµÚÒ»¸öÓÐЧµÄundo±í¿Õ¼ä»òÕßÊÇrollback segment£¬Èç¹ûûÓÐÓÐЧµÄ¿ÉÓõÄundo±í¿Õ¼ä»òÕßÊǻعö¶Î£¬ÏµÍ³Ê¹ÓÃsystem rollback segment¡£ÕâÖÖÇé¿öÊDz»±»ÍƼöµÄ£¬µ±ÏµÍ³ÔËÐÐÔÚûÓÐundoµÄÇé¿öÏ£¬Ï
Ïà¹ØÎĵµ£º
ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
Ê×ÏÈ£¬Ô ......
СÒý
Oracle RdbmsÊ©ÓÃÁ˸÷ÖÖ²»Í¬ÀàÐ͵ÄËø¶¨»úÖÆ£¬latchµÈÓÚ´ËÖеÄÒ»ÖÖ£¬ÕýÎĽ«¼¯ÖÐÒý¼ûlatch(ãÅ)µÄ¸ÅÄ¶®µÃlatchµÄ¶ÒÏÖ²½Ö貢˵Ã÷»½ÆðlatchĦ²ÁµÄÔµ¹Ê¡£
ʲôÊÇlatch
LatchÊÇÓÃÀ´±£»¤SGAÇøÖй²ÏíÊý¾Ý½á¹¹µÄÒ»ÖÖ´®Ðл¯Ëø¶¨»úÖÆ¡£LatchµÄ¶ÒÏÖÊÇÓë²Ù×÷ϵͳÏà¸ÉµÄ£¬ÓÈÉõºÍÒ»¸ö¹ý³ÌÊDz»ÊÇؽÐèµÈºòÒ»¸ölatch¡¢¼±ÐèµÈº ......
1.»ù±¾½á¹¹
CREATE OR REPLACE PROCEDURE ´æ´¢¹ý³ÌÃû×Ö
(
²ÎÊý1 IN NUMBER,
²ÎÊý2 IN NUMBER
) IS
±äÁ¿1 INTEGER :=0;
±äÁ¿2 DATE;
BEGIN
END ´æ´¢¹ý³ÌÃû×Ö
2.SELECT INTO STATEMENT
½«select²éѯµÄ½á¹û´æÈëµ½±äÁ¿ÖУ¬¿ÉÒÔͬʱ½«¶à¸öÁд洢¶à¸ö±äÁ¿ÖУ¬±ØÐëÓÐÒ»Ì ......
1)SQL ServerÁ´½Ó·þÎñÆ÷ Linked Server·½Ê½£¨SQLServer×÷ΪԴ·þÎñÆ÷£©£º
http://www.cnblogs.com/riccc/archive/2009/07/23/sql-server-linked-server.html
2)Oracle¸ß¼¶¸´ÖÆ£¨oracleÊý¾Ý¿âÖ®¼ä¸´ÖÆ£©£º
http://www.chinaunix.net/bbsjh/8/54.html
ÆäËû¼¼Êõ·½·¨£º
snapshot
Replication ......