Oracle10gÏà¶ÔÓÚOracle9i¼°Ö®Ç°µÄ°æ±¾³öÏÖÁËÈçϵÄеĺǫ́½ø³Ì£º
RVWRÈ«³ÆÎªRecovery Writer¡£¼´»Ö¸´Ð´Èë½ø³Ì,Õâ¸ö½ø³ÌµÄ×÷ÓÃÊǸºÔðflashbackÈÕÖ¾µÄдÈë¡£
CTWRÈ«³ÆÎªChange Tracking Writer¡£ÎªÌáÉýOracleÔöÁ¿±¸·ÝµÄÐÔÄÜ£¬¼õÉÙÔÚ±¸·Ýʱ¶ÔÊý¾Ý¿âÐÔÄܵÄÓ°Ï죬ÔÚOracle10gÖÐÒýÈëÁ˱仯¿é¼Ç¼µÄ¹¦ÄÜ£¬CTWRµÄ×÷ÓþÍÊǼǼ±ä»¯µÄ¿é²¢½«±ä»¯Ð´ÈëÏàÓ¦µÄÈÕÖ¾µÄ¡£
MMNLÈ«³ÆÎªMemory Monitor Light¡£ËüÓë×Ô¶¯¸ºÔØ×ÊÁÏ¿â(AWR, Automatic Workload Repository)Ðͬ¹¤×÷£¬¸ºÔð½«bufferÖеÄÍêÕûͳ¼ÆÐÅÏ¢ÔÚÐèÒªµÄʱºîдµ½´ÅÅÌ¡£
MMONÈ«³ÆÎªMemory Monitor process¡£Í¬ÑùÊÇAWRÏà¹ØµÄÒ»¸ö½ø³Ì£¬ÔÚOracle10gÖУ¬Êý¾Ý¿âÊÕ¼¯ºÍ´æ´¢¸÷ÖÖ¸÷ÑùµÄͳ¼ÆÐÅÏ¢ÔÚAWRÖУ¬MMON¶¨Ê±×öÒ»¸öÊý¾Ý¿âͳ¼ÆÐÅÏ¢µÄÒ»¸ö¿ìÕÕ(snapshot)£¬²¢°ÑÕâЩÐÅÏ¢´æ´¢ÔÚAWRÖС£Í¬Ê±Õâ¸ö½ø³ÌÒ²Óë×Ô¶¯ÎÊÌâ¼ì²âºÍ×ÔÎÒÓÅ»¯Ïà¹Ø¡£
M000MMONµÄ´Ó½ø³Ì¡£
RBALÈ«³ÆÎªRebalancing Daemon¡£ASMÏà¹ØµÄ¹ÜÀí½ø³Ì£¬¸ºÔðÖ´ÐÐASMËù¹ÜÀí´ÅÅÌ×ÊÔ´µÄrebalance²Ù×÷¡£Õâ¸ö½ø³ÌÓÃÀ´È·¶¨ºÎʱÐèÒªÖ´ÐÐÖØÐÂÆ½ºâ²Ù×÷¼°¹À¼Æ¸Ã²Ù×÷»¨·ÑµÄʱ¼ä
ARBn
ÕâЩ½ø³ÌÔÚRBAL½ø³ÌµÄ¹ÜÀíÏÂ×öʵ¼ÊµÄASMËù¹ÜÀí´ ......
ÔÚ´óÐÍµÄÆóÒµÓ¦ÓûòÆóÒµ¼¶µÄÊý¾Ý¿âÓ¦ÓÃÖУ¬Òª´¦ÀíµÄÊý¾ÝÁ¿Í¨³£¿ÉÒÔ´ïµ½¼¸Ê®µ½¼¸°ÙGB£¬ÓеÄÉõÖÁ¿ÉÒÔµ½TB¼¶¡£ ËäÈ»´æ´¢½éÖʺÍÊý¾Ý´¦Àí¼¼ÊõµÄ·¢Õ¹Ò²ºÜ¿ì£¬µ«ÊÇÈÔÈ»²»ÄÜÂú×ãÓû§µÄÐèÇó£¬ÎªÁËʹÓû§µÄ´óÁ¿µÄÊý¾ÝÔÚ¶Áд²Ù×÷ºÍ²éѯÖÐËٶȸü¿ì£¬OracleÌṩÁ˶ԱíºÍË÷Òý½øÐзÖÇøµÄ¼¼Êõ£¬ÒÔ¸ÄÉÆ´óÐÍÓ¦ÓÃϵͳµÄÐÔÄÜ¡£
ʹÓ÷ÖÇøµÄÓŵ㣺
1¡¢ÔöÇ¿¿ÉÓÃÐÔ£ºÈç¹û±íµÄij¸ö·ÖÇø³öÏÖ¹ÊÕÏ£¬±íÔÚÆäËû·ÖÇøµÄÊý¾ÝÈÔÈ»¿ÉÓã»
2¡¢Î¬»¤·½±ã£ºÈç¹û±íµÄij¸ö·ÖÇø³öÏÖ¹ÊÕÏ£¬ÐèÒªÐÞ¸´Êý¾Ý£¬Ö»ÐÞ¸´¸Ã·ÖÇø¼´¿É£»
3¡¢¾ùºâI/O£º¿ÉÒ԰Ѳ»Í¬µÄ·ÖÇøÓ³Éäµ½´ÅÅÌÒÔÆ½ºâI/O£¬¸ÄÉÆÕû¸öϵͳÐÔÄÜ£»
4¡¢¸ÄÉÆ²éѯÐÔÄÜ£º¶Ô·ÖÇø¶ÔÏóµÄ²éѯ¿ÉÒÔ½öËÑË÷×Ô¼º¹ØÐĵķÖÇø£¬Ìá¸ß¼ìË÷ËÙ¶È¡£
OracleÊý¾Ý¿âÌṩ¶Ô±í»òË÷ÒýµÄ·ÖÇø·½·¨ÓÐÈýÖÖ£º
1¡¢·¶Î§·ÖÇø
2¡¢Hash·ÖÇø£¨É¢ÁзÖÇø£©
3¡¢¸´ºÏ·ÖÇø
ÏÂÃæ½«ÒÔʵÀýµÄ·½Ê½·Ö±ð¶ÔÕâÈýÖÖ·ÖÇø·½·¨À´ËµÃ÷·ÖÇø±íµÄʹÓá£ÎªÁ˲âÊÔ·½± ......
1.ÁÙʱ±íµÄ»ù´¡ÖªÊ¶
ÁÙʱ±íÖ»ÔÚOracle 8i ÒÔ¼°ÒÔÉϲúÆ·ÖÐÖ§³Ö¡£ORACLEÊý¾Ý¿â³ýÁË¿ÉÒÔ±£´æÓÀ¾Ã±íÍ⣬»¹¿ÉÒÔ½¨Á¢ÁÙʱ±ítemporary tables¡£ÕâЩÁÙʱ±íÓÃÀ´±£´æÒ»¸ö»á»°SESSIONµÄÊý¾Ý£¬»òÕß±£´æÔÚÒ»¸öÊÂÎñÖÐÐèÒªµÄÊý¾Ý¡£µ±»á»°Í˳ö»òÕßÓû§Ìá½»commitºÍ»Ø¹örollbackÊÂÎñµÄʱºò£¬ÁÙʱ±íµÄÊý¾Ý×Ô¶¯Çå¿Õ£¬µ«ÊÇÁÙʱ±íµÄ½á¹¹ÒÔ¼°ÔªÊý¾Ý»¹´æ´¢ÔÚÓû§µÄÊý¾Ý×ÖµäÖС£
OracleµÄÁÙʱ±í´´½¨Ö®ºó»ù±¾²»Õ¼Óñí¿Õ¼ä£¬ÁÙʱ±í²¢·Ç´æ·ÅÔÚÓû§µÄ±í¿Õ¼äÖУ¬¶øÊÇ´æ·ÅÔÚ Schema ËùÖ¸¶¨µÄÁÙʱ±í¿Õ¼äÖС£Èç¹ûÄãûÓÐÖ¸¶¨ÁÙʱ±í£¨°üÀ¨ÁÙʱ±íµÄË÷Òý£©´æ·ÅµÄ±í¿ÕµÄʱºò£¬Äã²åÈëµ½ÁÙʱ±íµÄÊý¾ÝÊÇ´æ·ÅÔÚORACLEϵͳµÄÁÙʱ±í¿Õ¼äÖУ¨TEMP£©¡£
¿ÉÒÔ¶ÔÁÙʱ±í´´½¨Ë÷Òý£¬ÊÓͼ£¬´¥·¢Æ÷£¬¿ÉÒÔÓÃexportºÍimport¹¤¾ßµ¼Èëµ¼³ö±íµÄ¶¨Ò壬µ«ÊDz»Äܵ¼³öÊý¾Ý¡£±íµÄ¶¨Òå¶ÔËùÓеĻỰ¿É¼û¡£½¨Á¢ÔÚÁÙʱ±íÉϵÄË÷ÒýÒ²ÊÇÁÙʱµÄ,Ò²ÊÇÖ»¶Ôµ±Ç°»á»°»òÕßÊÂÎñÓÐЧ.
¾¡¹Ü¶ÔÁÙʱ±íµÄDML²Ù×÷ËٶȱȽϿ죬µ«Í¬ÑùÒ²ÊÇÒª²úÉú Redo Log £¬Ö»ÊÇͬÑùµÄDMLÓï¾ä£¬±È¶Ô PERMANENT µÄDML ²úÉúµÄRedo Log ÉÙ¡£
ÁÙʱ±íµÄ²»×ãÖ®´¦£º
1.²»Ö§³Ölob¶ÔÏó£¬ÕâÒ²Ðí ......
Oracle9iÒýÈëÁËMERGEÃüÁî,ÄãÄܹ»ÔÚÒ»¸öSQLÓï¾äÖжÔÒ»¸ö±íͬʱִÐÐinsertsºÍupdates²Ù×÷. MERGEÃüÁî´ÓÒ»¸ö»ò¶à¸öÊý¾ÝÔ´ÖÐÑ¡ÔñÐÐÀ´updating»òinsertingµ½Ò»¸ö»ò¶à¸ö±í.ÔÚOracle 10gÖÐMERGEÓÐÈçÏÂһЩ¸Ä½ø£º
1¡¢UPDATE»òINSERT×Ó¾äÊÇ¿ÉÑ¡µÄ
2¡¢UPDATEºÍINSERT×Ó¾ä¿ÉÒÔ¼ÓWHERE×Ó¾ä
3¡¢ÔÚONÌõ¼þÖÐʹÓó£Á¿¹ýÂËν´ÊÀ´insertËùÓеÄÐе½Ä¿±ê±íÖÐ,²»ÐèÒªÁ¬½ÓÔ´±íºÍÄ¿±ê±í
4¡¢UPDATE×Ó¾äºóÃæ¿ÉÒÔ¸úDELETE×Ó¾äÀ´È¥³ýһЩ²»ÐèÒªµÄÐÐ
Ê×ÏÈ´´½¨Ê¾Àý±í
create table PRODUCTS
(
PRODUCT_ID INTEGER,
PRODUCT_NAME VARCHAR2(60),
CATEGORY VARCHAR2(60)
);
insert into PRODUCTS values (1501, 'VIVITAR 35MM', 'ELECTRNCS');
insert into PRODUCTS values (1502, 'OLYMPUS IS50', 'ELECTRNCS');
insert into PRODUCTS values (1600, 'PLAY GYM', 'TOYS');
insert into PRODUCTS values (1601, 'LAMAZE', 'TOYS');
insert into PRODUCTS values (1666, 'HARRY POTTER', 'DVD');
commit;
create table NEWPRODUCTS
(
PRODUCT_ID INTEGER,
PRODUCT_NAME VARCHAR2(60),
CATEGORY VARCHAR2(60)
) ......
·ÁËÒ»ÏÂÒÔǰµÄһЩÎĵµ, ·¢ÏÖ±£´æ×Ųéѯoracle ËÀËøµÄsql Óï¾ä, ÕâÊÇÒÔǰµÄÒ»¸öǰ±²½Ì¸øÎÒµÄ, ÄóöÀ´ÌùÌù
--²éѯËÀËøSQL
SELECT /*+ rule */ s.username,
decode(l.type,'TM','TABLE LOCK',
'TX','ROW LOCK',
NULL) LOCK_LEVEL,
o.owner,o.object_name,o.object_type,
s.sid,s.serial#,s.terminal,s.machine,s.program,s.osuser
from v$session s,v$lock l,dba_objects o
WHERE l.sid = s.sid
AND l.id1 = o.object_id(+)
AND s.username is NOT NULL ;
--ɱËÀËÀËøµÄsession, ÊÍ·ÅËÀËø
alter system kill session '1055,621'; -- µÚÒ»¸ö²ÎÊýÊÇ sid, µÚ¶þ¸ö²ÎÊýÊÇ serial#
¿ÉÄÜÓкܶàµÄËÀËø, µ«ÊÇÊÍ·ÅÁËÇ°ÃæµÄ¼¸¸ö, ¿ÉÄܺóÃæµÄËø¾Í¶¼½â¿ªÁË ......
×î½ü¹«Ë¾¿ª·¢µÄÏîÄ¿ÖÐºÜ¶àµØ·½ÐèÒª¿çÓòajaxÇëÇ󣬱ÈÈ缸¸ö×ÓÓòÃûÏÂ
http://a.****.com/index123.aspx,
http://b.****.com/index2.aspx
¶¼ÒªÇëÇóÓû§jsonÐÅÏ¢£¬È»ºóÔÙ¶ÔÊý¾Ý½øÐд¦Àí£¬Æð³õÎÒºÍͬÊÂÃÇÊÔÁ˺ܶàÖÖ·½·¨£¬Ê¹ÓÃ$.ajax() ÎÞÂÛÊÇget»òpost·½·¨¶¼»áÒýÆðuri denyµÄ´íÎó¡£Ò»·¬GGÖ®ºó·¢ÏÖÁ˽â¾ö·½·¨£¬Ò²Á˽âÆäÖеÄÔÒò¡£
jquery´Ó1.2¿ªÊ¼£¬.getJSON¾ÍÖ§³Ö¿çÓò²Ù×÷ÁË¡£Ê¹ÓÃjquery.getJSON()·½·¨¿ÉÒÔ½â¾ö¿çÓòÎÊÌ⡣ʵÀýÈçÏÂ
ǰ̨
<script type="text/javascript" src="/script/jquery.js"></script>
HTMLÖÐJS´úÂë
function gettst2() {
$.getJSON("http://ucenter.xxxx.com.cn/ajax/test.aspx?callback=?", { id: "123456", site: "01" },
function(data) {
alert(data.htmls);
document.getElementById("shows").innerHTML = data.htmls;
});
}
gettst2();
ASPX.csÎļþÖд¦ÀíΪ
string jsoncall = Request.QueryString("callback");
Response.Write(jsoncall + "({htmls:²âÊÔ001})");
Èç¹û¼Óhtml´úÂëµÄ»°£¬Ç§Íò±ð¼Ó\n ·ûºÅ£¬² ......