Oracle 10g ÖÐÎÄÂÒÂëÎÊÌâ
ÎÊÌ⣺Êý¾Ý¿âΪ£ºOracle Database 10g Release 2
¡¡¡¡²Ù×÷ϵͳΪ£ºWindows Vista/Windows XP MCE(Á½¸ö²Ù×÷ϵͳ·Ö±ð°²×°ºó³öÏÖÏàͬÎÊÌâ)
¡¡¡¡Êý¾Ý¿â°²×°ºó(һ·ĬÈÏÖµ)£¬³¢ÊÔInsertÊý¾ÝºóSelect³öÀ´£¬ÔÀ´µÄÖÐÎÄ×Ö¶ÎÖµ±ä³ÉÁË??????ÐÎʽµÄÂÒÂ룬¸ÃÈçºÎ½â¾ö£¿
¡¡¡¡ÔÚÍøÉϲéÁËһЩ×ÊÁÏ£¬ËµÊÇ·þÎñÆ÷Óë¿Í»§¶Ë×Ö·û¼¯²»Æ¥Å䣬µ«ÎÒµÄÊÇͬһ̨»úÆ÷£¬Ó¦¸Ã²»»áÓÐ×Ö·û¼¯²»Æ¥ÅäµÄÎÊÌâ°É¡£»¹ÓÐʲôÔÒòÄØ?
¡¡¡¡»Ø´ð£ºÒ»°ãÓöµ½Õâ¸öÎÊÌ⣬Ê×ÏÈ»áÏëµ½ÏÈÔÚÊý¾Ý¿âÖвéѯÏÂÃæµÄ½á¹ûÊÇ·ñΪÖÐÎÄ×Ö·û¼¯,Èç¹û²»ÊǾ͸ijÉÖÐÎÄ×Ö·û¼¯£º
¡¡¡¡select * from V$NLS_PARAMETERS where parameter = 'NLS_CHARACTERSET ';
¡¡¡¡Í¨³££¬Õâ²»»áÆðʲô×÷Óá£
¡¡¡¡¼Ì¶øÓÐÈ˻ỳÒÉVista°æ±¾µÄÎÊÌ⣬µ«ÊÇËæºóÄã»á·¢ÏÖÔÚXPÉϲâÊÔÒ²»á³öÏÖͬÑùµÄÎÊÌâ¡£
¡¡¡¡ÔÚ¹úÄÚÍâ´óÖÐÐÍÊý¾Ý¿â¹ÜÀíϵͳÖУ¬°ÑORACLE×÷ΪÊý¾Ý¿â¹ÜÀíƽ̨µÄÓû§±È½Ï¶à¡£ORACLE ²»ÂÛÊÇÊý¾Ý¿â¹ÜÀíÄÜÁ¦»¹ÊÇ°²È«ÐÔ¶¼ÊÇÎÞ¿É·ÇÒéµÄ£¬µ«ÊÇ£¬ËüÔÚºº×ÖÐÅÏ¢µÄÏÔʾ·½Ãæ×Åʵ¸øÖйúÓû§´øÀ´²»ÉÙÂé·³£¬±ÊÕ߶àÄê´ÓÊÂORACLEÊý¾Ý¿â¹ÜÀí£¬¾³£ÊÕµ½ÖÜΧÓû§ºÍÍâµØÓû§·´Ó³ÓйØORACLEÊý¾Ý¿âºº×ÖÏÔʾÎÊÌâµÄÇóÔ®ÐÅ£¬Ö÷ÒªÏÖÏóÊǰѺº×ÖÏÔʾΪ²»¿Éʶ±ðµÄÂÒÂ룬Ôì³ÉÔÀ´´óÁ¿ÐÅÏ¢ÎÞ·¨Ê¹Óᣱ¾ÎĽ«¾ÍÕâÒ»ÎÊÌâ²úÉúµÄÔÒòºÍ½â¾ö°ì·¨½øÐÐһЩ̽ÌÖ£¬¹©´æÔÚÕâ·½ÃæÎÊÌâµÄÓû§ÅóÓѲο¼¡£
¡¡¡¡1¡¢ÔÒò·ÖÎö
¡¡¡¡Í¨¹ý¶ÔÓû§·´Ó³Çé¿öµÄ·ÖÎö£¬·¢ÏÖ×Ö·û¼¯µÄÉèÖò»µ±ÊÇÓ°ÏìORACLEÊý¾Ý¿âºº×ÖÏÔʾµÄ¹Ø¼üÎÊÌâ¡£ÄÇô×Ö·û¼¯ÊÇÔõôһ»áÊÂÄØ?×Ö·û¼¯ÊÇORACLE ΪÊÊÓ¦²»Í¬ÓïÑÔÎÄ×ÖÏÔʾ¶øÉ趨µÄ¡£ÓÃÓÚºº×ÖÏÔʾµÄ×Ö·û¼¯Ö÷ÒªÓÐZHS16CGB231280£¬US7ASCII£¬WE8ISO8859P1µÈ¡£×Ö·û¼¯²»½öÐèÔÚ·þÎñÆ÷¶Ë´æÔÚ£¬¶øÇÒ¿Í»§¶ËÒ²±ØÐëÓÐ×Ö·û¼¯×¢²á¡£·þÎñÆ÷¶Ë£¬×Ö·û¼¯ÊÇÔÚ°²×°ORACLEʱָ¶¨µÄ£¬×Ö·û¼¯µÇ¼ÇÐÅÏ¢´æ´¢ÔÚORACLEÊý¾Ý¿â×ÖµäµÄV$NLS_PARAMETERS±íÖÐ;¿Í»§¶Ë£¬×Ö·û¼¯·ÖÁ½ÖÖÇé¿ö£¬Ò»ÖÖÇé¿öÊÇsql*net 2.0ÒÔÏ°汾£¬×Ö·û¼¯ÊÇÔÚwindowsµÄϵͳĿ¼ÏµÄoracle.iniÎļþÖеǼǵÄ;ÁíÒ»ÖÖÇé¿öÊÇsql*net 2.0ÒÔÉÏ(¼´32λ)°æ±¾£¬×Ö·û¼¯ÊÇÔÚwindowsµÄϵͳע²á±íÖеǼǵġ£ÒªÔÚ¿Í»§¶ËÕýÈ·ÏÔʾORACLE Êý¾Ý¿âºº×ÖÐÅÏ¢£¬Ê×ÏȱØÐëʹ·þÎñÆ÷¶ËµÄ×Ö·û¼¯Óë¿Í»§¶ËµÄ×Ö·û¼¯Ò»ÖÂ;Æä´ÎÊǼÓÔص½ORACLEÊý¾Ý¿âµÄÊý¾Ý×Ö·û¼¯±ØÐëÓë·þÎñÆ÷Ö¸¶¨×Ö·û¼¯Ò»Ö¡£Òò´Ë£¬°ÑÓû§´æÔÚµÄÎÊÌâ¹éÄÉ·ÖÀ࣬²úÉúºº×ÖÏÔʾÒì³£µÄÔÒò´óÖÂÓÐÒÔϼ¸ÖÖ£º
¡¡¡¡·þÎñÆ÷Ö¸¶¨×Ö·û¼¯Óë¿Í»§×Ö·û¼¯²»Í¬£¬¶øÓë¼ÓÔØÊý¾Ý×Ö·û¼¯Ò»Ö¡£
¡¡¡¡ÕâÖ
Ïà¹ØÎĵµ£º
ÔÚVSÖÐдSQLÓï¾äµÄʱºò£¬Ç§ÍòÍòǧҪСÐÄÔÙСÐÄ£¬±ÈÈç ˵ Êý¾ÝÀàÐ͵ÄÆ¥Å䣬 µ¥ÒýºÅ£¨Õâ¸öÄÜ°ÑÈËÃÔËÀ£©
where ×Ó¾äÖпÉǧÍò²»ÄÜÓпոñ£¨µ±²éѯÌõ¼þΪ×Ö·û´®µÄʱºòÄÜ°ÑÄãŪ·è£¬ÎÒŪÕâ¸öµÄʱºò¶¼·èÁ˼¸´ÎÁË£¬Ê²Ã´¶¼¶Ô¾ÍÊDz鲻³öÀ´£¬µ÷ÊÔÁËN±é²Å·¢ÏÖ¡££©²»ÐÐÁË£¬³Ô·¹È¥£¬ÔÙ²»³Ô¿´¼û»îÈ˶¼ÏëÒ§ÁË¡£ ......
What circumstances we use ALL_ROWS and what circumstances we use FIRST_ROWS optimizer mode? This article is written in oracle9i.
First_rows attempts to optimize the query to get the very first row back to the client as fast as possible. This is good for an interactive client server environment wher ......
¹Ø¼ü´Ê£ºwith read only
×÷ÓãºÓÃÓÚÖ¸¶¨Ëù´´½¨µÄÊÔͼ²»¿ÉÒÔͨ¹ý±¾ÊÓͼ¸üбí
Ö´ÐÐÒ»ÏÂSQL£¬´´½¨±íT£¬ºÍÁ½¸öÊÔͼV1£¬V2£º
CREATE TABLE T(ID INTEGER);
CREATE VIEW V1 AS SELECT * from T;
CREATE VIEW V2 AS SELECT * from T WITH READ ONLY;
Ö´ÐÐSQL:
INSERT INTO V1 VALUES(1);
--------------------
1 row cre ......