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

oracle¼òµ¥stream Ò»¸öÓû§µ¥Ïò¸´ÖÆÅäÖÃ

ÒÔÏÂÎÒ×östreammͬ²½Á½Ì¨»úÆ÷¼äµÄijһ¸öÓû§µÄ²Ù×÷²½Öè¡£ºÜ¼òµ¥,¿´µ½stream
»¹
ÓкܶàÒª¿´µÄ¡£
1.»·¾³½éÉÜ
  Ö÷Êý¾Ý¿âSID : obpm
  ²Ù×÷ϵͳ :    win 2003
  IPµØÖ·   :  192.168.0.1
  Global_name :
  oracle
version: 10.2.0.1
  ´ÓÊý¾Ý¿âSID: orcl
  ²Ù×÷ϵͳ :    win 2003
  IPµØÖ·   :  192.168.0.2
  Global_name :
  oracle
version: 10.2.0.1
2.ÔÚÖ÷/´ÓÊý¾Ý¿âÉèÖóõʼ»¯²ÎÊý(ÔÚÖ÷´ÓÊý¾Ý¿â¶¼Ö´ÐÐÒÔϲÙ×÷)
  1) sqlplus / as sysdba ----ÒÔdbaÉí·ÝµÇ¼
  2)alter system set aq_tm_processes=2 scope=both;   ---ÆôÓöԶÓÁÐÏûÏ¢µÄʱ¼ä¼àÊÓ
¡¡¡¡alter system set global_names=true scope=both;   ---ÉèÖÃÈ«¾ÖÃû³ÆΪtrue
¡¡¡¡---alter system set job_queue_processes=10 scope=both;
--ÉèÖö¨Ê±×÷Òµ½ø³Ì×î´óΪ10¸ö,ĬÈÏÊÇ10
¡¡¡¡alter system set undo_retention=3600 scope=both;  
--ÉèÖûعö¶Îʱ¼ä,ĬÈÏÊÇ900
    alter system set streams_pool_size=25M scope=spfile;
--sgaÉèÖÃΪ×Ô¶¯µ÷ÕûÇé¿öϲ»ÐèÉèÖøòÎÊý
  3)ÖØÆô¶¯Á½¸öÊý¾Ý¿â
3.ÉèÖÃÖ÷Êý¾Ý¿âΪ¹éµµmode
  1)archive log list; --²éÊÇ·ñ¹éµµ,ÈçÊǹ鵵,ÇëºöÂÔµÚ3µã
  2)shutdown immediate;
    startup mount;
    alter database archivelog;
    alter system set LOG_ARCHIVE_DEST_1='LOCATION=D:\arc\'; 
---ÉèÖù鵵Ŀ¼
    alter system switch logfile; --ÏàӦĿ¼¼ì²éÊÇ·ñÉú³ÉarcÎļþ
    alter database open;
4.Ö÷/´ÓÊý¾Ýн¨stream
¹ÜÀíÓû§(ÔÚÖ÷´ÓÊý¾Ý¿â¶¼Ö´ÐÐÒÔϲÙ×÷)
  1)sqlplus / as sysdba;
  2)create tablespace tbs_stream datafile 'E:\tbs_stream01.dbf' size
100m autoextend on maxsize unlimited segment space management auto;
---´´½¨Ö÷»·¾³µÄStream
רÓñí¿Õ¼ä
  3)execute dbms_logmnr_d.set_tablespace('tbs_stream');
--½«logminerµÄÊý¾Ý×Öµä´Ósystem±í¿Õ¼äתÒƵ½Ð½¨µÄ±í¿Õ¼ä£¬·ÀÖ¹³ÅÂúsystem±í¿Õ¼ä
  4)create user strmadmin identified by strmadmin default tablespace
tbs


Ïà¹ØÎĵµ£º

OracleÖÐÁÙʱ±í²úÉú¹ýÁ¿RedoµÄ˵Ã÷

OracleÖÐÁÙʱ±í²úÉú¹ýÁ¿RedoµÄ˵Ã÷
×î½ü,ÔÚOracle9iÖÐÄãÓùýÁÙʱ±íÂð?
ËüÊÇ·ñ¸øÄã´øÀ´ÁËÐÔÄÜÌá¸ß?Äã×¢Òâ¹ýô?
--------------------------------------------------------------------------------
ºÃÁËÑÔ¹éÕý´«.
ÎÒÃÇÖªµÀÁÙʱ±íÔÚDML²Ù×÷ÖпÉÒÔ¼õÉÙredoµÄÉú³É,´Ó¶øÔÚ±£´æÖмä½á¹û¼¯Ê±¿ÉÒÔ´øÀ´½Ï´óµÄÐÔÄÜÌá¸ß.
¿ÉÊÇ,È ......

ת£ºOracle Ò»ÖÂÐÔ¶ÁµÄÔ­Àí

      ÔÚOracleÊý¾Ý¿âÖУ¬undoÖ÷ÒªÓÐÈý´ó×÷ÓãºÌṩһÖÂÐÔ¶Á£¨Consistent Read£©¡¢»Ø¹öÊÂÎñ£¨Rollback Transaction£©ÒÔ¼°ÊµÀý»Ö¸´£¨Instance Recovery£©¡£       Ò»ÖÂÐÔ¶ÁÊÇÏà¶ÔÓÚÔà¶Á£¨Dirty Read£©¶øÑԵġ£¼ÙÉèij¸ö±íTÖÐÓÐ10000Ìõ¼Ç¼£¬»ñÈ¡ËùÓмǼÐèÒª15·ÖÖÓʱ¼ä¡£ ......

oracle¼ì²âËø£¬ÊÍ·ÅËø

¼ì²âËø£º
SELECT A.OWNER,
A.OBJECT_NAME,
B.XIDUSN,
B.XIDSLOT,
B.XIDSQN,
B.SESSION_ID,
B.ORACLE_USERNAME,
B.OS_USER_NAME,
B.PROCESS,
B.LOCKED_MODE,
C.MACHINE,
C.STATUS,
C.SERVER,
C.SID,
C.SERIAL#,
C.PROGRAM
from ALL_OBJECTS A,
V$LOCKED_OBJECT B,
SYS.GV_$SESSION C
WHERE ( A.OBJE ......

oracle 10g ´´½¨ DATA GUARD

Æäʵ´´½¨dgÍøÂçÉϵÄÎĵµºÜ¶à£¬ÎÒÊÇ¿´Ð¡²¼ÀÏʦÊÇÊÓƵѧϰµÄ
ÓÃÐéÄâ»ú×ö²âÊÔ£¬ÅªÁ˺ü¸Ì죬ÏÂÃæ¼Ç¼һÏÂÔø¾­×ö¹ýÓ¡Ïó±È½ÏÉîµÄµØ·½
 
1.½«Primary·þÎñÆ÷´¦Óڹ鵵ģʽºÍForce Loggingģʽ
SQL> SHUTDOWN IMMEDIATE;
SQL> STARTUP MOUNT;
SQL> ALTER DATABASE ARCHIVELOG;
SQL> ALTER DATABASE OPEN;
S ......

´«ÖDz¥¿ÍjavaÅàѵORACLE×ܽá(3)


 
ORACLEµÄѧϰÒѾ­¸æÒ»¶Î茖£¬½ñÌìÒѾ­¿ªÊ¼HIBERNATEµÄѧϰ£¬×ÜÌå¸Ð¾õͦÁ¼ºÃµÄ£¬ËäÈ»ºÜ¶àµÄ֪ʶ²»ÄܼÇס£¬µ«ÊÇÔÚʹÓõÄʱºòÄܹ»Ñ¸ËÙµÄÕÒ¶Ô·½·¨À´½â¾öÏàÓ¦µÄÎÊÌ⣬ֻҪÇÚ¼ÓÁ·Ï°£¬¾Í¿ÉÒÔ¼Çס¡£Ö»²»¹ý£¬Ê±¼äÓÐ珢£¬HIBERNATEµÄ¿Î³ÌÒ²Ö»ÓÐÈýÌìµÄʱ¼ä£¬ËùÒÔÔÚÕâÆÚ¼äÎÒµÄÈÎÎñÊǾ¡Á¿ÎüÒý£¬ÔÚ»¨·Å¼ÙµÄʱºòÀ´¸´Ï° ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ