WEBLOGICÁ¬½ÓOracle RAC µÄ¸ºÔؾùºâ²âÊÔ
Òª½øÐÐѹÁ¦²âÊÔ£¬Öмä¼þʹÓÃWEBLOGIC 816
£¬Êý¾Ý¿â°æ±¾Îª11.1.0.6 RAC
£¬Ñ¹Á¦²âÊÔ¹¤¾ßΪLOADRUNNER 8.0
¡£²âÊÔµ¥ÊµÀýÓëRAC
»·¾³¸÷¸ö½ÚµãµÄ¸ºÔØÇé¿ö¡£
ÔÚWEBLOGIC
ÉÏÅäÖÃÁËÒ»¸ö¶à³Ø£¬ÀûÓÃWEBLOGIC
ÌṩµÄ¸ºÔؾùºâ²ßÂÔ£¬½«²¢·¢¾ùºâµÄ·Ö±ðµ½Á½¸ö½ÚµãÉÏ¡£
µ«ÊDzâÊÔ·¢ÏÖ£¬Ò»µ©ÔËÐÐ
ÁËÒ»¶Îʱ¼ä£¬ËùÓеÄѹÁ¦¶¼»á¼ÓÔص½Ò»¸ö½ÚµãÉÏ£¬¶øÁíÒ»¸ö½ÚµãÉÏ»ú»áûÓÐÈκεÄѹÁ¦¡£
ͨ¹ýÊý¾Ý¿âÖвéѯµ½µÄ½á
¹ûÈçÏ£º
SQL> SELECT INST_ID, STATUS,
COUNT(*)
2 from GV$SESSION
3 WHERE USERNAME = 'NDMAIN'
4 GROUP BY INST_ID, STATUS;
INST_ID STATUS COUNT(*)
---------- -------- ----------
1 INACTIVE 6
1 ACTIVE 1
2 ACTIVE 147
2 INACTIVE 3
WEBLOGIC
µÄ²¢·¢ÉèÖÃΪ150
£¬¶øLOADRUNNER
²¢·¢Îª200
£¬Oracle
ÿ
¸öʵÀýµÄSESSION
Ϊ600
¡£
¿ÉÒÔ¿´µ½£¬»ù±¾ÉÏѹÁ¦Íê
È«¼¯ÖÐÔÚʵÀý2
ÉÏ¡£ÊµÀý1
ÉÏ´¦ÓÚ¿ÕÏÐ״̬£¬Èç¹ûѹÁ¦²âÊÔÔËÐÐʱ¼ä×ã¹»³¤£¬¿ÉÄÜÔÚ¶Ìʱ¼äÄÚʵÀý1
ÉϵÄACTIVE
Á¬½ÓÄÜ´ïµ½¶þ¡¢ÈýÊ®×óÓÒ£¬µ«ÊǺܿìÓÖÈ«²¿ÊÍ·Å¡£
SQL> SELECT INST_ID, STATUS,
COUNT(*)
2 from GV$SESSION
3 WHERE USERNAME = 'NDMAIN'
4 GROUP BY INST_ID, STATUS;
INST_ID STATUS COUNT(*)
---------- -------- ----------
1 ACTIVE 20
1 INACTIVE 54
2 ACTIVE 121
2 INACTIVE 28
²âÊÔÁ˶à´Î£¬½á¹û¶¼ºÜÀà
ËÆ£¬Ñ¹Á¦¼¸ºõÍêÈ«¼¯Öе½Ò»¸ö½ÚµãÉÏ¡£²»¹ý²»¼ûµÃÿ´ÎѹÁ¦¶¼ÊÇÔÚ½Úµã2
ÉÏ£¬
ºÜÓпÉÄÜÔÚWEBLOGIC
·þÎñÖØÆôÖ®ºó£¬Ï´βâÊÔ¿ªÊ¼£¬ËùÓÐ
µÄѹÁ¦¶¼¼¯Öе½½Úµã1
ÉÏ¡£Õâ˵Ã÷ÎÊÌâÓ¦¸Ã²»ÊÇÁ½¸ö½ÚµãµÄÓ²¼þ´¦
Àí²»Æ½ºâÔì³ÉµÄ¡£
Õâ¸ö²âÊÔµÄÊdz¤Ê±¼äÔËÐÐ
µÄ²éѯ£¬¶ø¶ÔÓÚ¿ìËÙÏàÓ¦µÄINSERT
Óï¾ä£¬¿ÉÒÔ¿´µ½Á½¸ö½Úµã
É϶¼ÓкÜÉÙµÄACTIVE
µÄ»á»°¡£ÕâʱÒòΪÊÂÎñ´¦ÀíºÜ¶ÌÔÝ£¬²»
¿ÉÄÜÔÚ¶Ìʱ¼äÄÚʹµÃWEBLOGIC
µÄ²¢·¢ÅÜÂú£¬Òò´ËÕâÖÖÇé¿ö
ûÓÐÎÊÌâ¡£
SQL> SELECT INST_ID, STATUS,
COUNT(*)
2 from GV$SESSION
3 WHERE USERNAME = 'NDMAIN'
4 GROUP BY INST_ID, STATUS;
INST_ID STATUS COUNT(*)
---------- -------- ----------
1 INACTIVE 50
1 ACTIVE 1
2 ACTIVE 1
2 INACTIVE 98
¶ÔÓÚ³¤Ê±¼ä²éѯµÄÇé¿ö£¬WEBLOGIC
µÄLOAD-BALANCING
²ßÂÔËƺõ´æÔÚÎÊÌ⣬µ¼ÖÂÁ½¸ö½ÚµãѹÁ¦³öÏÖÇãб¡£¿ªÊ¼ÈÏΪ¿ÉÄÜÊÇÓÉÓÚWEBLOGIC
µÄ°æ±¾Ì«µÍµ¼ÖÂÁËÎÊÌâµÄ²úÉú£¬ÓÚÊǽ«WEBLOGIC
Éý¼¶µ½ÁË×îеİ汾10.3
£¬¿ÉÊDzâÊÔ½á¹ûÒÀ¾É
Ïà¹ØÎĵµ£º
COMMITÊÇÒ»¸ö·Ç³£¿ìµÄ²Ù×÷£¬µ±ÎÒÃÇ·¢²¼commitÃüÁîʱ£¬ÕæÕýÀ§ÄѵĶ¯×÷ÒѾÍê³É£¬
ÔÚÊý¾Ý¿âÖÐÒѾִÐÐÁËÊý¾Ý¸ü¸Ä£¬ËùÒÔÒѾÍê³ÉÁË99%µÄÈÎÎñ£¬ÀýÈ磺ÏÂÁвÙ×÷ÒѾ²úÉú£º
1.ÔÚSGA(Buffer Cache)ÖÐÒѾÉú³ÉÁËundo¿é£»
2.ÔÚSGA(Buffer Cache)ÖÐÒѾÉú³ ......
ʹÓÃSYSÓû§ÒÔSYSDBAÉí·ÝµÇ¼ϵͳ
²é¿´ÐÞ¸ÄÇ°sga_max_size£¬sga_target´óС
show parameter sga_max_size;
show parameter sga_target;
Ð޸IJÎÊý
alter system set sga_max_size=1600m scope=spfile;
alter system set sga_target=1600m scope=spfile;
²é¿´Ð޸ĺósga_max_size£¬sga_target´óС
show parameter sga_ ......
OracleÈÕÆÚº¯Êýѧϰʱ£¬Ôڽ̳ÌÓм¸¸öʵÀýÈçÏ£º
Months_between(’01-sep-95’, ’11-jan-94’)
½á¹ûÊÇ£º19.6774194
Add_months ÔÚÖ¸¶¨µÄÔ·ÝÉÏÃæÔö¼ÓÏàÓ¦µÃÔ·Ý
ÀýÈ磺
Add_months(’11-jan-94’, 6)
½á¹ûÊÇ£º11-jul-94
Next_day ¼ÆËã¹æ¶¨ÈÕÆڵĺóÒ»¸öÌض¨ÈÕÆÚ
ÀýÈ磺
Next_ ......
PRAGMA RESTRICT_REFERENCES()£¬Õâ¸öPRAGMA±È½Ï¸´ÔÓ£¬ ×ܵÄÀ´Ëµ£¬ËüÊÇÒ»¸ö³ÌÐò¸¨Öú¼ìÑéÂ룬¼ì²é×Ó³ÌÐòµÄ´¿¶È£¨PURITY£©£¬°ïÖú¼ìÑé×Ó³ÌÐòÊÇ·ñÓÐÎ¥·´¹æÔòµÄµØ·½¡£Ò»°ãÓÃÔÚº¯ÊýÉÏ£¬µ«µ±º¯Êýµ÷Óùý³Ìʱ£¬Ò²Òª×÷ÏàÓ¦µÄÉèÖüì²é¡£ÕâÊÇΪÁ˱ÜÃâµ±ÔÚDMLÓï¾äÉϵ÷Óú¯ÊýʱÕý³£Ö´Ðв»ÖÁÓÚ²úÉú´íÎó¡£
Óï·¨£¬PRAGMA ......
1¡¢±¸·ÝÖ¸¶¨µÄ±í¿Õ¼ä
Ê×ÏÈ£¬ÄãҪȷÈÏ×Ô¼ºµçÄÔÉÏÓÐexp.exeÕâ¸ö¶«¶«£¬²ÅÄܽøÐб¸·Ý¹¤×÷¡£
ÎÒÏëÒª±¸·ÝµÄÊÇÓû§ÃûΪcyyµÄ±í¿Õ¼ä£¬±¸·ÝÎļþ´òËã·ÅÔÚDÅÌ£¬²¢ÒÔbackup_oracle.dmpÃüÃû£¬Ë³±ã°ÑÈÕÖ¾ÎļþÒ²±¸·ÝһϺÃÁË¡£
ÔÚÃüÁîÐÐÇÃÈ룺
C:\Documents and Settings\Administrator>exp cyy/cyy@bsrs file=D:\backup_oracle.dmp ......