oracleº¯ÊýË÷ÒýС½á
º¯ÊýË÷ÒýµÄ¸ÅÄ
»ùÓÚº¯ÊýµÄË÷ÒýÒ²ÊÇ8iÒÔÀ´µÄвúÎËüÓÐË÷Òý¼ÆËãÁеÄÄÜÁ¦£¬ËüÒ×ÓÚʹÓò¢ÇÒÌṩ¼ÆËãºÃµÄÖµ£¬ÔÚ²»ÐÞ¸ÄÓ¦ÓóÌÐòµÄÂß¼ÉÏÌá¸ßÁ˲éѯÐÔÄÜ¡£Ê¹ÓûùÓÚº¯ÊýµÄË÷ÒýÓм¸¸öÏȾöÌõ¼þ£º
(1)
±ØÐëÓµÓÐQUERY REWRITE£¨±¾Ä£Ê½Ï£©»òGLOBAL QUERY REWRITE£¨ÆäËûģʽÏ£©È¨ÏÞ¡£
(2)
±ØÐëʹÓûùÓڳɱ¾µÄÓÅ»¯Æ÷£¬»ùÓÚ¹æÔòµÄÓÅ»¯Æ÷½«±»ºöÂÔ¡£
(3)
±ØÐëÉèÖÃÒÔÏÂÁ½¸öϵͳ²ÎÊý£º
QUERY_REWRITE_ENABLED=TRUE
QUERY_REWRITE_INTEGRITY=TRUSTED
¿ÉÒÔͨ¹ýalter system set,alter session setÔÚϵͳ¼¶»òÏ̼߳¶ÉèÖã¬Ò²¿ÉÒÔͨ¹ýÔÚinit.oraÌí¼ÓʵÏÖ¡£
ÕâÀï¾ÙÒ»¸ö»ùÓÚº¯ÊýµÄË÷ÒýµÄÀý×Ó£º
º¯ÊýË÷Òý½¨Á¢¼°Êý¾Ý×¼±¸£º
SQL> create index test.ind_fun on test.testindex(upper(a));
Ë÷ÒýÒÑ´´½¨¡£
SQL> insert into testindex values('a',2);
ÒÑ´´½¨ 1 ÐС£
SQL> commit;
Ìá½»Íê³É¡£
Ç¿ÖÆʹÓûùÓÚ¹æÔòµÄÓÅ»¯Æ÷£¬ËùÒÔ²»»áʹÓú¯ÊýË÷Òý£º
SQL> select /*+ RULE*/* from test.testindex where upper(a)='A';
A¡¡¡¡ B
-- ----------
a¡¡¡¡ 2
Execution Plan
----------------------------------------------------------
0¡¡¡¡SELECT STATEMENT Optimizer=HINT: RULE
1 0 TABLE ACCESS (FULL) OF 'TESTINDEX'
(ÓÅ»¯Æ÷Ñ¡ÔñÁËÈ«±íɨÃè)
--------------------------------------------------------------------
ʹÓú¯ÊýË÷Òý£º
SQL> select * from test.testindex where upper(a)='A';
A¡¡¡¡ B
-- ----------
a¡¡¡¡ 2
Execution Plan
----------------------------------------------------------
0¡¡¡¡SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1 Bytes=5)
1 0 TABLE ACCESS (BY INDEX ROWID) OF 'TESTINDEX' (Cost=2 Card=1 Bytes=5)
2 1 INDEX (RANGE SCAN) OF 'IND_FUN' (NON-UNIQUE) (Cost=1 Card=1)
(ʹÓÃÁËind_funË÷Òý)
´Ë´¦ÓÐÒ»ÖÖ·½°¸£¬²»Ê¹Óú¯ÊýË÷Òý£¬Í¨¹ýsqlÉϵļ¼ÇÉÀ´Ê¹ÓÃÔÓÐÁÐÉϵÄË÷Òý¡£²»¹ýÎÒ¾õµÃ»¹²»È罨Á¢º¯ÊýË÷ÒýÀ´µÄ·½±ã¡£
Ïà¹ØÎĵµ£º
Oracleµ÷ÓÅ×ÛÊö
ÔÚ¹ýÈ¥µÄÊ®ÄêÖУ¬ Oracle ÒѾ³ÉΪÊÀ½çÉÏ×îרҵµÄÊý¾Ý¿âÖ®Ò»¡£¶ÔÓÚ IT ר¼ÒÀ´Ëµ£¬¾ÍÊÇҪȷ±£ÀûÓà Oracle µÄÇ¿´óÌØÐÔÀ´Ìá¸ßËûÃǹ«Ë¾µÄÉú²úÁ¦¡£×îÓÐЧµÄ·½·¨Ö®Ò»ÊÇͨ¹ý Oracle µ÷ÓÅ¡£ËüÓдóÁ¿µÄµ÷Õû²ÎÊýºÍ¼¼ÊõÀ´¸Ä½øÄãµÄ Oracle Êý¾Ý¿âµÄÐÔÄÜ¡£
Oracle µ÷ÓÅÊÇÒ»¸ö¸´ÔÓµÄÖ÷Ìâ¡£¹ØÓÚµ÷ÓÅ¿ ......
ºÎΪLOB£¿
lobΪoracleÊý¾Ý¿âµÄÒ»¸ö´ó¶ÔÏóÊý¾ÝÀàÐÍ,¿ÉÒÔ´æ´¢³¬¹ý4000bytesµÄ×Ö·û´®£¬¶þ½øÖÆÊý¾Ý£¬OSÎļþµÈ´ó¶ÔÏóÐÅÏ¢.×î´ó¿É´æ´¢µÄÈÝÁ¿¸ùoracleµÄ°æ±¾ºÍoracle ¿é´óСÓйØ.
ÓÐÄǼ¸Öֿɹ©Ñ¡ÔñµÄLOBÀàÐÍ?
Ä¿Ç°ORACLEÌṩÁËCLOB£¬NCLOB£¬BLOB£¬BFILE¹²ËÄÖÖLOBÀàÐÍ,CLOB,NLOBΪ´ó×Ö·û´®ÀàÐÍ,NLOBΪ¶àÓïÑÔ¼¯×Ö·ûÀàÐÍ,ÀàËÆÓÚNV ......
http://blog.csdn.net/lzysystem/archive/2009/03/05/3960853.aspx
http://www.linuxidc.com/Linux/2009-06/20390.htm
http://www.linuxdiyf.com/viewarticle.php?id=163893
http://blog.sina.com.cn/s/blog_4ed66efa0100gfjx.html### ......
1.Ê×ÏÈ˵Ã÷һϣº
ÔÒòÊÇÒòΪÎÒÔÚ×öÕâ¸öÏîĿʱ£¬±»ÏÞÖƵÃÌ«¶à£¬weblogicºÍoracleµÄ°æ±¾²»Äܱ䣬ҪʹÓÃÔÀ´µÄ°æ±¾¡£
Òò´ËÄØ¡£²Ù×÷ÆðÀ´±È½ÏÂé·³¡£¶øÇÒ²»Äܸü¸ÄÔ±¾¹¤³ÌÀïÃæµÄJar°ü£¨ËüÀïÃæ´æÔÚÁËoracle14.jar°ü£¬µ«±È½Ï¾É£©
weblogic°æ±¾Îª£º8.14
oracle°æ±¾Îª£º9i
2.ÔÚÕâÀïÄØ£¬Ê¹ÓÃhibernate£¬ÒÔÁ÷µÄÐÎʽ¶ÁÈ¡µ½Êý¾ÝÀïÃæ ......
Oracle»¥»»×ܽá
1. ¶àÐл»³ÉÒ»ÐÐ
col1 col2 col1 col2
a 1
a 2 ת»»ºó ......