Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

oracle cursor_sharing²ÎÊý

ÏÈÀ´¿´¿´¹Ù·½ÎĵµÖжÔÕâ¸ö²ÎÊýµÄ½âÊÍ
CURSOR_SHARING
PropertyDescription
Parameter type
String
Syntax
CURSOR_SHARING = { SIMILAR | EXACT | FORCE }
Default value
EXACT
Modifiable
ALTER SESSION, ALTER SYSTEM
Basic
No
CURSOR_SHARING determines what kind of SQL statements can share the same cursors.
Values:
FORCE
Forces statements that may differ in some literals, but are otherwise identical, to share a cursor, unless the literals affect the meaning of the statement.
SIMILAR
Causes statements that may differ in some literals, but are otherwise identical, to share a cursor, unless the literals affect either the meaning of the statement or the degree to which the plan is optimized.
EXACT
Only allows statements with identical text to share the same cursor.
================================================================================
²ÎÊýcursor_sharingµÄ½âÊÍ
--------------------------------------
Õâ¸ö²ÎÊýµÄÉèÖã¬oracleÊÇΪÁËÂú×ãһЩÒÔǰ¿ª·¢µÄ³ÌÐò£¬ÀïÃæÓдóÁ¿µÄsimilar statement£¬µ«ÊÇÖØÐ´Óв»ÏÖʵµÄÇé¿öÏÂʹÓõÄÒ»¸ö²ÎÊý¡£
²¢ÇÒoracleÒ²²»½¨ÒéʹÓÃÕâ¸ö²ÎÊý¡£
ʲôʱºòÐèÒªÐÞ¸ÄÕâ¸ö²ÎÊýÄØ£¿ÐèÒªÂú×ãÒÔϵÄÌõ¼þ¡£
Ò»¸öÊÇÓÉÓÚ´óÁ¿µÄshared pool hit missÓ°ÏìÁËÓû§µÄÏìӦʱ¼ä£¨¾ÍÊǵ±Ç°µÄshared poolÎÞ·¨Âú×ã¹²ÏísqlÓï¾ä´æ´¢µÄÐèÒª,Alan:µ±Ç°libary cacheÖÐûÓÐÎÒÃÇËùÐèÒªÖØÓõÄexplainºÍsql£©£¬Èç¹ûûÓÐÕâ¸öÎÊÌ⣬ÄÇôÉèÖÃÕâ¸ö²ÎÊý£¬¿ÉÄÜ»áÔì³É¸üÔã¸âµÄÐÔÄÜ¡£Õâ¸ö²ÎÊýÖ»»á¼õÉÙparseµÄʱ¼ä¡£
ÁíÍâÒ»¸ö¾ÍÊÇÔÚÏÖÓгÌÐòÖÐÓдóÁ¿µÄsimilar statement£¬¿ÉÒÔͨ¹ýÉèÖÃÕâ¸ö²ÎÊýÀ´»ñµÃ±È½ÏºÃµÄÐÔÄÜ¡£
cursor_sharingÕâ¸ö²ÎÊýÓÐÈý¸öÖµ¿ÉÑ¡£¬exact¡¢similar¡¢force¡£µ±ÖµÎªexactʱΪĬÈÏÖµ£¬Ò²ÊÇoracleµÄĬÈÏ´¦Àí·½Ê½¡£¾ÍÊǵ±Ò»¸östatement parseµÄʱºò£¬Ê×Ïȵ½shared poolÇø²é¿´ÊÇ·ñÓÐexact statement´æÔÚ£¨¾ÍÊÇ¿´ÊÇ·ñÔÚshared poolÖÐÓк͵±Ç°Òª½âÎöµÄstatementÍêȫһÑùµÄÓï¾ä´æÔÚ£©£¬Èç¹û²»´æÔÚ£¬¾ÍÖ´ÐÐhard parse
Èç¹û¸Ã²ÎÊýÉèÖÃΪsimilar£¬ÄÇôÈç¹ûÔÚshared poolÖÐÎÞ·¨ÕÒµ½exact statementµÄ´æÔÚµÄʱºò£¬¾Í»áÔÚshared pool½øÐÐÒ»´ÎеIJéÕÒ£¬¾ÍÊDzéÕҺ͵±Ç°Òª½âÎöµÄÓï¾äÊÇ·ñÊÇsimilar statementµÄÓï¾ä¡£ÕâÀïÐèÒª¶Ôsimilar statement½øÐнâÊÍ£¬simila


Ïà¹ØÎĵµ£º

oracleµÄһЩ֪ʶС½á

SqlÖÐÁ½¸ö“-”±íʾעÊ͵ĿªÊ¼¡£
Æ´½ÓÔËËã·û£º”||”,×¢Ò⣺ֻÓÐÔÚËùÓеÄÔËËã·ûΪnullʱ£¬Æ´½ÓµÄ½á¹ûÊÇnull¡£
±È½ÏÔËËã·ûÓÃÓڱȽÏÁ½¸öÖµ»ò±í´ïʽ£¬¸ø³öÒ»¸ö²¼¶ûÐ͵Ľá¹û true,false,null.
±È½ÏÔËËã·û£º
=
!=  <>   ^=
[not]in °üº¬
Any some ½«Ò»¸öÖµÓëÁбíÖеÄÿ¸öÖµ»òÕß ......

Oracle 10g ÕýÔò±í´ïʽ


ORACLEÖÕÓÚÔÚ10GÖÐÌṩÁ˶ÔÕýÔò±í´ïʽµÄÖ§³Ö£¬ÒÔǰÄÇЩÐèҪͨ¹ýLIKEÀ´½øÐеĸ´Ôӵį¥Åä¾Í¿ÉÒÔͨ¹ýʹÓÃÕýÔò±í´ïʽ¸ü¼òµ¥µÄʵÏÖ¡£
Oracle 10gÕýÔò±í´ïʽÌá¸ßÁËSQLÁé»îÐÔ¡£ÓÐЧµÄ½â¾öÁËÊý¾ÝÓÐЧÐÔ£¬ Öظ´´ÊµÄ±æÈÏ, Î޹صĿհ׼ì²â£¬»òÕß·Ö½â¶à¸öÕýÔò×é³ÉµÄ×Ö·û´®µÈÎÊÌâ¡£
Oracle 10gÖ§³ÖÕýÔò±í´ïʽµÄË ......

OracleÊý¾Ý¿âËø

 ¡¾×ª¡¿http://topic.csdn.net/t/20031006/10/2327335.html
ÎÄÕÂÀ´×Ô   www.ncn.cn     (¾ÛÏÍׯ)  
  =======================================================  
   
  ORACLEÀïËøÓÐÒÔϼ¸ÖÖģʽ:  
  0£ºnone  
  1£ºnull   ¿Õ ......

110¸öOracle º¯Êý

 1. ASCII
·µ»ØÓëÖ¸¶¨µÄ×Ö·û¶ÔÓ¦µÄÊ®½øÖÆÊý;
SQL> select ascii(A) A,ascii(a) a,ascii(0) zero,ascii( ) space from dual;
A A ZERO SPACE
--------- --------- --------- ---------
65 97 48 32
2. CHR
¸ø³öÕûÊý,·µ»Ø¶ÔÓ¦µÄ×Ö·û;
SQL> select chr(54740) zhao,chr(65) chr65 from dual;
ZH ......

SQLºÍORACLEº¯Êý±È½Ï

 
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.È¡Õû£¨Ð¡£© ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ