OracleÖ§³ÅµÄasp.net2.0Ó¦ÓÃÖÐ×ÔÖ÷ʵÏÖÊý¾ÝÒÀÀµ»º´æ
ÏîÄ¿ÖÐÓÐһЩ±¨±í£¬±¾ÉíËٶȾͲ»Ì«¿ì£¬Óöµ½Êý¾ÝÁ¿´óµÄÇé¿ö£¬¸üÊÇÈÃÈË×¥¿ñ£¬Óû§Ò²Ìá³öÁ˱¨±íËÙ¶ÈÂýµÄÎÊÌ⣬ÓÚÊÇÏë×ÅÈçºÎʵÏÖ±¨±íµÄÊý¾ÝÒÀÀµ»º´æ£¬¼´½«±¨±íÊý¾Ý»º´æ£¬µ±Êý¾Ý·¢Éú¸Ä±äʱ£¬ÔÙÖØлñÈ¡Êý¾Ý¡£
×î¼òµ¥µÄ·½·¨£¬ÊÇÔÚÏÔʾ±¨±íµÄaspxÒ³ÃæµÚÒ»ÐмÓÉÏÐÎÈç<%@ OutputCache Duration="600" VaryByParam="some_param" %>µÄÒ»¾ä£¬Ö±½ÓÈÃÒ³Ã滺´æ10·ÖÖÓ¡£µ«ÊÇÕâÖÖ°ì·¨ÎÞ·¨¼à²âÊý¾ÝµÄ¸Ä±ä£¬ÎÞ·¨Âú×㱨±íµÄʱЧÐÔ¡£
ASP.NET2.0ÌṩÁË»º´æÒÀÀµ¼¼Êõ£¬¿ÉÒÔÈûº´æ¼àÊÓÎļþ¡¢Ä¿Â¼µÄ±ä»¯£¬´Ó¶ø¸üлº´æ¡£ÕâÖÖ¼¼ÊõÈôÊÇÓëSQL Server½áºÏʹÓã¬Ã²ËÆ»áºÜ·½±ã£¬¿ÉÊÇÎÒÃǵÄÏîÄ¿ÓõÄÊÇOracle£¬ËùÒÔÎÞ·¨¿¼ÂÇ¡£
´ËÍ⣬ASP.NET2.0Öл¹¿ÉÒÔ×Ô¼ºÉ趨ӦÓóÌÐòÊý¾Ý»º´æ£¬Ò²¾ÍÊÇ°ÑÊý¾Ý»º´æÆðÀ´£¬²»ÓÃÿ´Î¶¼²éѯÊý¾Ý¿â¡£
Ó¦ÓóÌÐòÊý¾Ý»º´æ¼¼Êõ£¬¿ÉÒÔÈÃÎҵı¨±íÒ³Ãæ²»ÓÃÿ´Î¶¼×öÊý¾Ý¿â²éѯ£¬´Ó¶øÌá¸ßЧÂÊ¡£ÔÚÉ趨ÕâÖÖ»º´æʱ£¬¿ÉÒÔÖ¸¶¨¾ø¶Ô¹ýÆÚʱ¼ä¡¢Ïà¶Ô¹ýÆÚʱ¼ä£¬ÒÔ¼°»º´æ¸üеÄÒÀÀµÏî¡£
ÀíÏëµÄ״̬£¬Ó¦¸ÃÊǵ±Êý¾ÝÔÚ±ðµÄÒ³ÃæÓиüÐÂʱ£¬¾ÍÏë°ì·¨“֪ͨ”±¨±íÒ³Ã棬ÈÃËüÖØÐÂ×öÊý¾Ý¿â²éѯ¡£¼ÈÈ»¿ÉÒÔÖ¸¶¨»º´æÒÀÀµÓÚÎļþ£¬ÄÇô¾Í¿ÉÒÔ¿¼ÂÇ£¬µ±Êý¾ÝÓб仯ʱ£¬¾Í¸üÐÂij¸öÎļþ£¬ÕâÑùÒÀÀµÓÚÕâ¸öÎļþµÄ»º´æ¾Í»áʧЧ£¬´Ó¶øÒý·¢´ÓÊý¾Ý¿âÖØвéѯÊý¾ÝÁË¡£
ÓÐÁËÕâ¸ö˼·£¬ÊµÏÖÆðÀ´Ò²¾Í²»ÄÑÁË¡£
¾ßÌåÀ´Ëµ£¬ÎÒ×öµÄÕâ¸öϵͳÊǸöÈÎÎñÁ÷תµÄϵͳ£¬±¨±íÒ²ÊǶÔÈÎÎñµÄÊý¾Ýͳ¼Æ¡£
ÄÇô£¬ÎÒ¾ÍÔÚϵͳÖн¨Á¢Ò»¸öCacheĿ¼£¬×¨ÃÅ´æ·Å»º´æËùÒÀÀµµÄÎļþ¡£µ±Ð½¨Ò»¸öÈÎÎñʱ£¬¾ÍÒÔ¸ÃÈÎÎñµÄIDºÅΪÎļþÃû£¬Ð½¨Ò»¸öÀ©Õ¹ÃûΪ.cacheµÄÎļþ£¨µ±È»£¬Õâ¸öÀ©Õ¹ÃûÊÇÎÒ×Ô¶¨ÒåµÄ£¬ÈÎÒ⣩£¬È»ºóÏòÆäÖÐдÈ뵱ǰµÄϵͳʱ¼ä£¨µ±È»£¬Ð´Èëʲô¶¼ÐУ¬Ö»ÒªÊÇÄܸüÐÂÕâ¸öÎļþ£©¡£ÆäËüµÄÄܹ»¸Ä±äÈÎÎñÏà¹ØµÄÊý¾ÝµÄµØ·½£¬Ò²Í¬Ê±ÐÞ¸ÄÏàÓ¦»º´æÎļþµÄÄÚÈݼ´¿É¡£
½ÓÏÂÀ´£¬ÔÚ±¨±íÒ³Ã棬ÓÃÀàËÆÒÔÏ´úÂëʵÏÖ»º´æ£º
DataTable dt = (DataTable)Cache["rptPingFen"+strTaskID + Session["userEntID"].ToString()];
if (dt == null)
{
dt = Reports.rptPingFen( strTaskID, Session["userEntID"].ToString() );
string strCacheFile = Server.MapPath( "~/Cache/" + strTaskID + ".cache" );
if (System.IO.File.Exists( strCacheFile ))
Cache.Insert( "rptPingFen" + strTaskID + Session["userEntID"
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
MViewÖØÒªÊÓͼÔÚÔ´Êý¾Ý¿â¶ËµÄÏà¹ØÊÓͼDBA_BASE_TABLE_MVIEWSDBA_REGISTERED_MVIEWSDBA_MVIEW_LOGSÔÚMViewÊý¾Ý¿â¶ËµÄÏà¹ØÊÓͼDBA_MVIEWSDBA_MVIEW_REFRESH_TIMESDBA_REFRESHºÍDBA_REFRESH_CHILDRENMViewÏà¹Ø°üһЩMViewά»¤µÄÏà¹ØÎÊÌâSNAPSHOT vs. Materialized ViewÇåÀíÎÞЧµÄMView Log²éѯMView LogµÄ´óС¼ì²éMVµÄˢмæ ......
À´Ô´£º[url]http://www.wangchao.net.cn/bbsdetail_1788053.html[/url]
Ä¿Ç°£¬OracleÒѾ¹ã·ºµÄÓ¦ÓÃÓÚ¸÷¸öÐÐÒµ¡£×÷ΪһÃûDBA£¬¼°Ê±·¢ÏÖ²¢ÕûÀíËéƬÒѾ³ÉΪDBAÈÕ³£¹¤×÷ÖеÄÒ»ÏîÖØҪά»¤ÄÚÈÝ¡£ 1¡¢ËéƬÊÇÈçºÎ²úÉúµÄ µ±Éú³ÉÒ»¸öÊý¾Ý¿âʱ£¬Ëü»á·Ö³É³ÆΪ±í¿Õ¼ä(tablespace)µÄ¶à¸öÂß¼¶Î(segment)£¬Èçϵͳ(system)±í¿Õ¼ä,ÁÙʱ(te ......
ÔÚQuery RewriteÖдó¼Ò¿´µ½Õâ¸ö¼¼ÊõÀë²»¿ªÒ»Ñù¶«Î÷, ʵÌ廯ÊÓͼ, ¼ò³ÆMVIEW. ÕâÊÇOracleÔÚ8iÖÐÊ×ÏÈÍƳöµÄ¼¼Êõ, MVIEW³ýÁËÔÚQuery RewriteÖÐʹÓÃÍâ, »¹ÔÚMaster - Slave¸´ÖÆÖÐÓкÜÖØÒªµÄ×÷ÓÃ, ÔÚÕâ¶ùÎÒÃÇÖ÷Òª¹ØÐÄQuery RewriteÏà¹ØµÄµØ·½, OracleÔÚQuery Rewrite·½ÃæÔ½À´Ô½Ç¿ÁË, ÔÚOracle 8iÖлù±¾ÉÏÊÇText Ma ......
¿ÉÒÔ¿´µ½MVIEWÔÚQuery RewriteÖеÄÖØÒªÐÔ, ÒªÔÚʵ¼ÊÓ¦ÓÃÖÐʹÓÃ, ¾ÍµÃÖªµÀËüµÄºÜ¶à·½Ãæ, ÆäÖÐË¢ÐÂÊÇ×îÖ÷ÒªµÄ:
1, MVIEWÈÕÖ¾µÄ½¨Á¢
2, »ã×ÜÐ͵ÄMIVEWµÄË¢ÐÂ
3, JOINÀàÐ͵ÄMVIEWµÄË¢ÐÂ
4, ¸ü¸´ÔÓµÄMVIEWµÄË¢ÐÂ
5, ·ÖÇøʱµÄMVIEWµÄË¢ÐÂ
ÔÚÕâ¶ùÎÒÃÇÖ÷ÒªÌÖÂÛµÄÊÇÈçºÎʵÏÖFastË¢ÐÂ, ·ñÔòûÓжàÉ ......