Oracle Data Gurad Physical Standby Ïà¹Ø˵Ã÷
Oracle Data Guard, ·ÖÂß¼StandbyºÍÎïÀíStandby¡£ ÏÂÃæ½²µÄÊÇÎïÀíStandby »·¾³µÄ´î½¨²½Öè¡£ ÓйØData GuardµÄһЩ¸ÅÄîÐÔµÄÀíÂÛ֪ʶ£¬Çë²Î¿¼ÎÒµÄblog£¬ ÕâÀï²»×ö¹ý¶àµÄ˵Ã÷¡£
Oracle Data Gurad ÀíÂÛ֪ʶ
http://blog.csdn.net/tianlesoftware/archive/2010/04/22/5514082.aspx
Ò»£® ÆôÓÃForce Logging
½«PrimaryÊý¾Ý¿âÖÃΪForce Loggingģʽ¡£Í¨¹ýÏÂÁÐÓï¾ä£º
²é¿´×´Ì¬£º
SQL> SELECT DATABASE_ROLE,FORCE_LOGGING from V$DATABASE;
DATABASE_ROLE FORCE_LOGGING
---------------- ---------------
PRIMARY NO
ÐÞ¸Äģʽ
SQL> alter database force logging;
Database altered.
È¡ÏûForce logging ģʽ£º
SQL> alter database no force logging;
Database altered.
˵Ã÷£ºÎªÊ²Ã´Òª¸Ä³ÉForce Logging
ÓÐһЩDDLÓï¾ä¿ÉÒÔͨ¹ýÖ¸¶¨NOLOGGING×Ó¾äµÄ·½Ê½±ÜÃâдREDO£¨Ä¿µÄÊÇÌá¸ßËٶȣ¬Ä³Ð©Ê±ºòȷʵÓÐЧ£©¡£Ö¸¶¨Êý¾Ý¿âΪForce Loggingģʽºó£¬Êý¾Ý¿â½«»á¼Ç¼³ýÁÙʱ±í¿Õ¼ä»òÁÙʱ»Ø¹ö¶ÎÍâËùÓеIJÙ×÷£¬¶øºöÂÔÀàËÆNOLOGGINGÖ®ÀàµÄÖ¸¶¨²ÎÊý¡£Èç¹ûÔÚÖ´ÐÐForce LoggingʱÓÐNOLOGGINGÖ®ÀàµÄÓï¾äÔÚÖ´ÐУ¬ÄÇôForce Logging»áµÈ´ý£¬Ö±µ½ÕâÀàÓï¾äÈ«²¿Ö´ÐС£
Force LoggingÊÇ×÷Ϊ¹Ì¶¨²ÎÊý±£´æÔÚ¿ØÖÆÎļþÖУ¬Òò´ËÆä²»ÊÜÖØÆôÖ®Àà²Ù×÷µÄÓ°Ï죨ִֻÐÐÒ»´Î¼´¿É£©£¬Èç¹ûÏëÈ¡Ïû£¬¿ÉÒÔͨ¹ýALTER DATABASE NO FORCE LOGGINGÓï¾ä¹Ø±ÕÇ¿ÖƼǼ¡£
¶þ£® ´´½¨ÃÜÔ¿Îļþ£¨Èç¹û²»´æÔڵĻ°£©
ͬһ¸öData GuardÅäÖÃÖÐËùÓÐÊý¾Ý¿â±ØÐ붼ӵÓжÀÁ¢µÄÃÜÔ¿Îļþ£¬²¢ÇÒ±ØÐ뱣֤ͬһ¸öData GuardÅäÖÃÖУ¬ËùÓÐÊý¾Ý¿â·þÎñÆ÷µÄSYSÓû§ÓµÓÐÏàͬÃÜÂ룬ÒÔ±£Ö¤REDOÊý¾ÝµÄ˳Àû´«Ê䣬ÒòΪREDO´«Êä·þÎñÊÇͨ¹ýÈÏÖ¤µÄÍøÂç»á»°À´´«ÊäREDOÊý¾Ý£¬¶ø»á»°Ê¹Óðüº¬ÔÚÃÜÔ¿ÎļþÖеÄSYSÓû§ÃÜÂëÀ´ÈÏÖ¤¡£
Èç¹ûʹÓÃDBCA½¨¿âÔòOracle»á×Ô¶¯´´½¨ÃÜÔ¿Îļþ£¬¸ÃÎļþĬÈÏ·¾¶ÔÚ%ORACLE_HOME%\databaseĿ¼Ï£¬Èç¹ûÔÚ¸ÃĿ¼ûÄÜÕÒµ½¶ÔÓ¦µÄÃÜÔ¿ÎļþҲû¹Øϵ£¬OracleÌṩÁËÒ»¸ö´´½¨ÃÜÔ¿ÎļþµÄÃüÁorapwd£¬Î»ÓÚ%ORACLE_HOME%\binĿ¼Ï£¬¸ÃÃüÁîÓÐÁ½ÖÖµ÷Ó÷½Ê½£º´ø²Îµ÷ÓúͲ»´ø
Ïà¹ØÎĵµ£º
×ÔÔö×ֶΣº
±íatable(id,a) idÐèÒª×ÔÔö Ê×ÏȽ¨Á¢Ò»¸öÐòÁУº
create sequence seq_atable minvalue 1 maxvalue 999999999999999999 start with 1 increment by 1 nocache
ÓжþÖÖ·½Ê½Ê¹ÓÃ×ÔÔö×ֶΣº
ʹÓÃÐòÁÐ+´¥·¢Æ÷ʵÏÖ×ÔÔö£¬²åÈëÓï¾ä²»ÐèÒª¹Ü×ÔÔö×Ö¶Î
È磺create or replace trigger trg_atable before insert on ......
Æô¶¯ÓëÅäÖòÎÊý ¸ü¸ÄϵͳԪÊý¾ÝºÍ²ÎÊýÅäÖà ¶¯Ì¬ÊÓͼ ´æ´¢µÄÎïÀíºÍÂß¼½á¹¹ Æô¶¯ºÍ¹Ø±Õ
topÆô¶¯ÓëÅäÖòÎÊý
ÔÚSQL Server°²×°µÄʱºò£¬Í¬Ê±Ò²»áÍùWindows×¢²á±íÀïÃæÌí¼ÓһЩ¼Ç¼£¬ÕâЩע²á±í¼üÖµÖ¸¶¨ÁËʵÀýËùÐèÒªµÄ¸÷ÖÖ²ÎÊý¡£±ÈÈ磬ÓеÄ×¢²á±í¼üÖµÖ¸¶¨ÁË´íÎóÈÕÖ¾µÄ±£´æĿ¼£¬ÁíÍâµÄÖ¸¶¨ÁËĬÈϵı¸·ÝĿ¼µÈµÈ¡£SQL ServerÔÚÔ ......
1.´ò¿ªcmd£¬ÊäÈësqlplus£¬»Ø³µ
2.ÊäÈëÓû§Ãû£ºsystem/manager@orcl as sysdba£¬»Ø³µ
3.create user muzai identified by muzai; //´´½¨muzaiÓû§£¬ÃÜÂëΪmuzai
4.grant dba to muzai; //°ÑdbaµÄȨÏÞ¸³¸ømuzaiÕâ¸öÓû§ ......
ʹÊÔÒò:
1.ÓÉÓÚÎó²Ù×÷ÓÃhp unix ÃüÁî rm -f datafilename ɾ³ý±í¿Õ¼äµÄÊý¾ÝÎļþ
2.alter tablespace tablespacenaem drop datafile datafile ;
3.drop tablespace tablespacename including content and datafiles;
ÉÏÊöÁ½¸ö²½ÖèÎÒÓÃÁ˽üÈý¸öСʱ¶¼Ã»ÓÐÖ´ÐÐÍ꣬×îºóµ¼ÖÂÊý¾Ý¿âå´»ú¡£ÏÂÃæ°ÑÎÒµ±Ê±Æô¶¯Êý¾ÝµÄºóÌ¨Ò ......
¹ØÓÚOracleÊÂÎñµÄ×ܽá
1.ʲôÊÇÊÂÎñ£¬ÊÂÎñµÄÌØÐÔÊÇʲô£¿
ÊÂÎñµÄÈÎÎñ±ãÊÇʹÊý¾Ý¿â´ÓÒ»ÖÖ״̬±ä»»³ÉΪÁíÒ»ÖÖ״̬£¬ÕⲻͬÓÚÎļþϵͳ£¬ËüÊÇÊý¾Ý¿âËùÌØÓõġ£ËüµÄÌØÐÔÓÐËĸö£ºTOM×ܽáΪACID¼´
Ô×ÓÐÔatomicity:Óï¾ä¼¶Ô×ÓÐÔ£¬¹ý³Ì¼¶Ô×ÓÐÔ£¬ÊÂÎñ¼¶Ô×ÓÐÔ
Ò»ÖÂÐÔconsistency:״̬һÖ£¬Í¬Ò»ÊÂÎñÖв»»áÓÐÁ½ÖÖ״̬
¸ôÀëÐÔiso ......