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

Oracle RACѧϰ±Ê¼Ç

Oracle RACѧϰ±Ê¼Ç
1. Introduction:
Cluster - ¶ÔÓû§À´Ëµ¶ą̀·þÎñÆ÷ºÃÏñÊÇһ̨·þÎñÆ÷Ò»Ñù¡£
Oracle Clusterware - OracleÌṩµÄ¼¯Èº½â¾ö·½°¸
Oracle RAC ¶à¸öʵÀý¶ÔÓ¦Ò»¸öÊý¾Ý¿â£¨Îļþ£©
Oracle Cluster Architecture:  (Hardware)
Oracle RAC Á©¸ö×é¼þ£ºVoting DiskºÍOCR £¨Oracle Cluster Register£©
Voting Disk¼Ç¼½Úµã×éÔ±ÐÅÏ¢£¬OCR¼Ç¼¼¯ÈºÅäÖÃÐÅÏ¢¡£±ØÐë´æ·ÅÔÚ¹²Ïí´ÅÅÌÉÏ¡£
Oracle ClusterÒªÇó½ÚµãÖ®¼äÓÃ˽ÓÐÍøÂçÁ¬½Ó£¬½¨ÒéÔÚǧÕ×Íø¿¨ÉÏʹÓÃUDP
Oracle Cluster Processes: (Software)
CSS - ¿ØÖƽڵã×éÔ±ÐÅÏ¢£¬µ±¼ÓÈë½Úµã»ò½ÚµãÍ˳öʱ֪ͨ×éÔ± (init.cssd, ocssd, ocssd.bin)¡£ ½ø³ÌÒÔoracleÓû§ÔËÐС£
CRS - ¹ÜÀí¼¯Èº×ÊÔ´£¨database£¬instance,service,listener,VIP,application process£©,  ()
      ×ÊÔ´ÐÅÏ¢´æ·ÅÔÚOCR, µ±ÕâЩ·þÎñ³öÏÖÎÊÌâʱ£¬CRS×Ô¶¯Æô¶¯ÕâЩ·þÎñ£¬µ±·þÎñ²úÉú¸Ä±ä
      ʱ²úÉúʼþ¡£(crsd.bin) ½ø³ÌÒÔrootÓû§ÔËÐС£
EVM - ¹«²¼CRS²úÉúµÄʼþ (evmd,evmd.bin,evmlogger)
ONS - ·¢²¼/¶©ÔÄFAN£¨¿ìËÙÓ¦ÓÃ֪ͨ£©·þÎñ (ons)
RAGG - Ö§³ÖÌØÊâµÄÐèÇóºÍ¸´ÔÓµÄ×ÊÔ´¡£µ±ÓÐFANʼþʱÔËÐÐcall out ½Å±¾ (racgmain,racgimon)
OPRPCD - פÁôÔÚÄÚ´æÖУ¬¼à²â¼¯ÈººÍÌṩIO±£»¤¡£Èç¹û³¬¹ý¼ì²éʱ¼ä£¬½«ÖØÆô½Úµã¡£ÔÚlinuxƽ̨ʹÓÃhangcheck timer £¨oprocd£©
Oracle RAC Architecture:  (Hardware)
¹²Ïí´ÅÅÌ´æ·Ådatafiles, control files, PFILEs, and redo log files, instancesÔÚͬһ¸öÍøÂç¶ÎÖÐ
ASM
OCFS
NETWORK file system
RAW
ÿ¸öinstanceÓÐ×Ô¼ºµÄÔÚÏßÈÕÖ¾ÎļþºÍundo tablespace
Services ¶¨ÒåÁËÓû§·ÃÎʵĹæÔòºÍÌØÐÔ£ºunique name£¬workload balancing£¬failover¡£
Oracle instance¿ÉÒÔͨ¹ýdefault IPºÍVIPÀ´·ÃÎÊ
VIP£ºÃ¿Ò»¸ö½ÚµãÓÐÒ»¸öVIP£¬Èç¹ûÒ»¸ö½Úµãfails£¬VIP×Ô¶¯Çл»µ½ÁíÒ»¸ö½ÚµãVIP
Oracle RAC Software Component£º
GCSºÍGESʹÓÃGRDά»¤blockµÄ״̬£¬GRDµÄÄÚÈݱ»·Ö·¢µ½instances
Cache Fusion£ºÔÚinstances¼äͬ²½data blockÄÚÈÝ
LMS£ºGlobal Cache Service process
LMD£ºGlobal Enqueue Service Daemon
LMON: Global Enqueue Service Monitor
LCK0: Instance Enqueue Process
Oracle RAC workload management:
¹ÜÀíworkload distribution£¬²¢¸øÓû§ºÍÓ¦ÓÃÌṩÓÅ»¯µÄÐÔÄÜ
¸ß¿ÉÓÃÐÔµÄÊý¾Ý¿âÁª½Ó£¬¿ìËÙfailover»Ö¸


Ïà¹ØÎĵµ£º

LinuxÏÂÆô¶¯OracleÊý¾Ý¿â


[root@GISDB ~]$ su - oracle
[oracle@GISDB ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.4.0 - Production on Tue Oct 13 11:03:03 2009
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
To ......

ORACLEѧϰ֮·

Âò±¾Êé ÏÈ´Ó°²×°¿ªÊ¼°É È»ºóÂò±¾PLSQL ѧѧÓï·¨ ÕâÊÇ×î»ù±¾µÄ ½ÓÏÂÀ´¾ÍÑо¿¹ÊÕϺóÔõôÐÞ¸´ ÔÙ¾ÍÊDZ¸·Ý ÓÅ»¯ ¼¯Èº È»ºó»¹ÒªÑ§Ï°LINUX²Ù×÷ ÕâÊÇÒ»¶¨ÒªµÄ ×°WINDOWSÉϵÄORACLE²»¶à ÔÙ»¨2WÈ¥¿¼¸öOCP ¾ÍÐÐÁË
oracleµÄ¹Ù·½½Ì²ÄµÄ˳ÐòÊÇsql»ù´¡£¬½á¹¹£¬±¸·Ý»Ö¸´£¬ÐÔÄÜÓÅ»¯¡£
sqlÓï¾äµÄ»ù´¡»¹ÊǺÜÖØÒªµÄ¡£Èç¹ûÄãÏë×ö¿ª·¢pl/sqlÒ» ......

solaris 10 oracleµÄ°²×°

ÇëÑéÖ¤Ò»ÏÂsolarisºÍoracleµÄ°æ±¾ÐÅÏ¢£¬Èç¹û°æ±¾ºÅ²»¶Ô£¬¿ÉÄܻᰲװʧ°Ü
solaris°æ±¾£ºSunOs 5.10
oracle°æ±¾£º Oracle Database 10g Release 2 (10.2.0.2) for Solaris Operating System (x86)
**Èç¹û²»ÖªµÀsolarisµÄ°æ±¾£¬¿ÉÒÔÔÚÃüÁî´°¿ÚÊäÈë:uname -a
µÚÒ»²½:ÒÔROOTÉí·ÝµÇ½ϵͳ
µÚ¶þ²½:´´½¨Óû§ºÍ×é:
#groupadd ......

oracle ¹éµµÓë·Ç¹éµµÄ£Ê½

ÔÚ
Oracle
Êý
¾Ý¿â
ÖУ¬
Ö÷ÒªÓÐÁ½ÖÖ
ÈÕÖ¾
²Ù×÷ģʽ£¬·Ö±ðΪ·Ç¹é
µµÄ£Ê½Óë¹éµµÄ£Ê½¡£Ä¬ÈÏÇé¿öÏ£¬Êý¾Ý¿â
²É
ÓõÄÊǷǹ鵵ģʽ
¡£×÷Ϊһ¸öºÏ¸ñµÄÊý¾Ý¿â¹Ü
Àí
Ô±£¬Ó¦µ±ÉîÈëÁ˽âÕâÁ½ÖÖÈÕÖ¾²Ù×÷ģʽµÄÌص㣬²¢ÇÒÔÚÊý¾Ý¿â½¨Á¢Ê±£¬Ñ¡
ÔñºÏÊʵIJÙ×÷ģʽ¡£
¡¡¡¡±ÊÕß
½ñÌì¾Í̸̸×Ô¼º¶ÔÕâÁ½ÖÖ²Ù×÷ģʽµÄÀí½â£¬²¢ÇÒ¸ø³ö ......

Oracle dead lock deep research.

Update SQLS will lead dead lock exception. Because by default, it use optimistic lock but not pessimistic lock.
Below description is exceprted from the attachment(It exceeds my image that this blog can not upload the attachment,hehe)
Optimistic locking offers an elegant solution to the problems o ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ