oracle clusterware ºÍ oracle rac µÄÖ÷Òª²¿¼þ
ÏÖÔÚ¿´Ïà¹ØµÄRAC½á¹¹µÄÎÄÕ»¹²»Ì«Àí½â¡£
ÏÖÔÚ¿´Õâ¸ö¾ÍºÜÇå³þÆäÖеÄÒâ˼ÁË¡£
oracle clusterware Ö÷ÒªÓÐÒÔÏÂÖ÷Òª²¿¼þ£º
CSS: ¼¯ÈºÍ¬²½·þÎñ
Ö÷Òª¹ÜÀíÕû¸ö¼¯ÈºÄÚ¸÷¸ö½Úµã¼äµÄÇé¿ö£¬°üÀ¨½ÚµãµÄÌí¼ÓºÍ¼õÉÙ¡£ÓëÖ®¶ÔÓ¦µÄÊÇocssd ½ø³Ì£¬Èç¹û¸Ä½ø³Ì³öÏÖ¹ÊÕϽ«»áµ¼Ö½ڵãÖØÆô¡£Èç¹ûʹÓÃÁ˵ÚÈý·½µÄclusterware£¬css ͨ¹ýµÚÈý·½clusterware ¹ÜÀí½Úµã¼äµÄÐÅÏ¢¡£
¹ØÓÚÊÇ·ñʹÓõÚÈý·½clusterware£¬css µÄ²»Í¬ÔÚinit.crsd ÖÐÓÐÈç϶¨Ò壺
# FAST_REBOOT - take out the machine now. We are concerned about
# data integrity since the other node has evicted us.
# SLOW_REBOOT - We can rely on vendor clusterware to delay sending
# the reconfig to the other node due to its IO fencing
# guarantees. So trigger its diagnostic reboot.
Èç¹ûʹÓÃÁ˵ÚÈý·½µÄclusterware£¬ÊÇ·ñrebootµÄ¾ö¶¨½«½»¸øËüÈ¥¾ö¶¨¡£
CRS: ¼¯Èº¾ÍÐ÷·þÎñ
Ö÷Òª¹ÜÀí×¢²áµ½cluster ÖеÄ×ÊÔ´£¨°üÀ¨vip£¬instance£¬db£¬listener£¬serviceµÈ£©£¬Ëü»á×Ô¶¯ÖØÆôʧ°ÜµÄ×ÊÔ´£¬Ò»°ã»á×Ô¶¯ÖØÆô5´Î£¬Èç¹ûÒÀÈ»²»ÄÜÖØÆô³É¹¦£¬½«·ÅÆúÖØÆô¡£
EVM: ʼþ¹ÜÀíÆ÷
Ö÷Òª·¢²¼Ò»Ð©crs ²úÉúµÄʼþ¡£
ONS: Oracle Notification Service
Ö÷ÒªÊǽÓÊÜevmd ºÍ racgimon ´«À´µÄevents£¬²¢°ÑËü·¢²¼¸ølocal listener ºÍ application¡£
Ö÷ÒªÓÐÁ½¸öÄ¿µÄ£º
a) ʹµÃÓ¦ÓÃÖªµÀ¼¯ÈºµÄ״̬µÄ±ä»¯£¬²¢²ÉÈ¡ÏàÓ¦µÄ´ëÊ©¡£ÈçFast Connection Failover.
b) ÓÃÓÚʵÏÖLoad balancing. rdbms µÄmmon ½ø³Ìÿ¸ô30s ¶Ô¸Ã½ÚµãµÄwordload ×öÒ»´Î¼Ç¼£¬È»ºóͨ¹ýracgimon ºÍ ONS ´«µÝ¸ølocal listener ºÍ application¡£
OPROCD£º
¸Ã½ø³Ìʱ¿ÌÔÚÄÚ´æÖÐÔËÐУ¬¼à¿Øcluster¡£Èç¹û¸Ã½ø³Ì³öÏÖ¹ÊÕÏ£¬½«»áÖØÆô¸Ä½Úµã¡£
RAC µÄÖ÷Òª²¿¼þ£º
Ïà¶ÔÓÚµ¥½ÚµãµÄoracle database£¬rac database Ö÷ÒªÊÇÒýÈëÁËcache fusion »úÖÆ£¬´Ó¶ø¼õÉÙÁË´ÅÅÌioµÄ´ÎÊý¡£ÔÚÁ˽âracÌØÓеÄһЩ½ø³Ì֮ǰ£¬ÏÈÁ˽âһЩ¸ÅÄ
GRD:Global Resource Directory
´æ·ÅÔÚ±¾µØÄÚ´æÖУ¬¼Ç¼¹²Ïí×ÊÔ´µ±Ç°µÄ״̬¡£Ò»°ãÒ»¸öGRD°üº¬ÈçÏÂÄÚÈÝ£ºdba£¬ location, mode(N, S,
X),Role £¨local£¬global£©£¬ PI£¬XI£¬ scn
µÈ¡£ÔÚÒ»¸öÔ¶³Ì½ÚµãÌá³ö·ÃÎÊÒ»¸öÊý¾Ý¿éµÄÇëÇóÖ®ºó£¬ÒªÍ¨¹ý·ÃÎÊgrdÀ´²é¿´µ±Ç°Ä£Ê½ÊÇ·ñÔÊÐíÔ¶³Ì½ÚµãµÄÏàÓ¦µÄ²Ù×÷¡£
Resources Master£º
ÔÚÿ´Î·ÃÎÊÒ»¸öÊý¾Ý¿éµÄʱºò£¬¶¼ÒªÏÈ·ÃÎÊÒ»´ÎResources Master£¨¶ÔÓÚÃ
Ïà¹ØÎĵµ£º
SQLServerºÍOracleÊÇ´ó¼Ò¾³£Óõ½µÄÊý¾Ý¿â£¬ÔÚ´Ë×ܽá³öÕâЩ³£Óú¯ÊýÒÔ¹©
´ó¼Ò²Î¿¼¡£
Êýѧº¯Êý
¡¡¡¡1.¾ø¶ÔÖµ
¡¡¡¡S:select abs(-1) value
¡¡¡¡O:select abs(-1) value from dual
¡¡¡¡2.È¡Õû(´ó)
¡¡¡¡S:select ceiling(-1.001) value
¡¡¡¡O:select ceil(-1.001) value from dual
¡¡¡¡3.È¡Õû£¨Ð¡£©
¡¡¡¡S:s ......
ÎÒÊǸöÐÂÊÖ,ËùÒÔÓÐЩ˵µÄ¿ÉÄܻ᲻ºÃ,Ï£ÍûÔĶÁÕâÎÄÕµÄÈ˼ûÁ°¡.
Ò»°ã¹ØÓÚID×ÔÔöµÄÍøÉ϶¼ÓÐÁ˺ܶàÁË,ºÇºÇ^ÄÇÎҾͼòµ¥µÄ˵һÏÂ: ÏÈ´´½¨±í£¬ÔÙ´´½¨ÐòÁÐ:
create sequence ÐòÁÐÃû
&nb ......
±¾ÎÄÖ÷Òª´Ó´óÐÍÊý¾Ý¿âORACLE»·¾³Ëĸö²»Í¬¼¶±ðµÄµ÷Õû·ÖÎöÈëÊÖ£¬·ÖÎöORACLEµÄϵͳ½á¹¹ºÍ¹¤×÷»úÀí£¬´Ó¾Å¸ö²»Í¬·½Ãæ½ÏÈ«ÃæµØ×ܽáÁËORACLEÊý¾Ý¿âµÄÓÅ»¯µ÷Õû·½°¸¡£
¹Ø¼ü´Ê ORACLEÊý¾Ý¿â»·¾³µ÷ÕûÓÅ»¯Éè¼Æ·½°¸
¶ÔÓÚORACLEÊý¾Ý¿âµÄÊý¾Ý´æÈ¡£¬Ö÷ÒªÓÐËĸö²»Í¬µÄµ÷Õû¼¶±ð£¬µÚÒ»¼¶µ÷ÕûÊDzÙ×÷ÏµÍ ......
Oracle µÄ¹ÜÀí¿ÉÒÔͨ¹ýOEM»òÕßÃüÁîÐнӿڡ£ Oracle ClusterwareµÄÃüÁ¿ÉÒÔ·ÖΪÒÔÏÂ4ÖÖ£º
½Úµã²ã£ºosnodes
ÍøÂç²ã£ºoifcfg
¼¯Èº²ã£ºcrsctl, ocrcheck,ocrdump,ocrconfig
Ó¦Óò㣺srvctl,onsctl,crs_stat
ÏÂÃæ·Ö±ðÀ´½éÉÜÕâЩÃüÁî¡£
Ò»£® ½Úµã²ã
Ö»ÓÐÒ»¸öÃüÁ¡¡osnodes£¬ Õâ ......
ORACLE 10 ѧϰ±Ê¼ÇÃüÁîµÚÒ»¿Î¡£
1.
sqlplus /nolog
connect /as sysdba
alter user scott account unlock;
alter user scott identified by manager;
2.
grant select on dept to nmerp;
revoke select on dept to nmerp;
select * from scott.dept
create table abc(a varchar2(10),b char(10));
alter& ......