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

Oracle SpatialÖеÄOperator²Ù×÷×Ó Ïêϸ˵Ã÷

SDO_FILTER
¸ñʽ£º
    SDO_FILTER(geometry1, geometry2, params);
ÃèÊö£º
    ͨ¹ý¿Õ¼äË÷Òý£¬¸ù¾Ý¸ø¶¨µÄ¼¸ºÎÒªËؼìË÷³ö¾ßÓпռäÏ໥¹ØϵµÄ¿Õ¼ä¶ÔÏó¡£ÕâÀïµÄ¿Õ¼ä¹ØϵÊÇÖ¸Á½¸ö¼¸ºÎ²»·ÖÀ룬¼´Non-disjoint¡£¡¾disjoint£º±íʾÁ½¸ö¼¸ºÎµÄ±ßºÍÄÚ²¿¶¼²»Ïཻ¡¿
    Õâ¸öSdo_FilterÖ´ÐÐÖ»ÊdzõʼµÄ¿Õ¼ä¹ýÂ˲Ù×÷£»¶þ´ÎµÄ¹ýÂ˲Ù×÷½«ÓÉSDO_RELATE²Ù×÷×ÓÍê³É£¬ËüÄÜÈ·¶¨¿Õ¼ä¶ÔÏóµÄÏཻ¹Øϵ¡£
²ÎÊý£º
geometry1£º Ö¸ÐèÒª²éѯ±íÖм¸ºÎÁУ¬¸Ã¼¸ºÎÁÐÎñ±ØÒѾ­½¨Á¢¿Õ¼äË÷Òý¡£¸ÃÁеÄÊý¾ÝÀàÐÍΪ£ºMDSYS.SDO_GEOMETRY¡£
geometry2£º ËüÖµµÄ¿ÉÒÔÊDZíÖеļ¸ºÎ£¬Ò²¿ÉÒÔÊǾßÌåµÄ¼¸ºÎ¶ÔÏ󣨰üÀ¨¹ØÁªµÄ¼¸ºÎ¶ÔÏó±äÁ¿¡¢Í¨¹ýSDO_GEOMETRY¹¹Ô캯ÊýµÄ¼¸ºÎ¶ÔÏ󣩡£¸ÃÁеÄÊý¾ÝÀàÐÍҲΪ£ºMDSYS.SDO_GEOMETRY¡£
params£º  ¾ö¶¨²Ù×÷×ÓµÄÐÐΪ¡£Êý¾ÝÀàÐÍΪVARCHAR2¡£
¸Ãparams¾ßÌåÓÐÒÔϼ¸ÖÖ£º
querytype: ÓÐЧµÄ²éѯÀàÐÍÓУºWINDOWºÍJOIN.¡£ÕâÊǸö±ØÐëµÄ²ÎÊý¡£
          querytype =’ WINDOW’½¨Òé´ó²¿·ÖÇé¿öÏÂÊÇʹÓøòÎÊýµÄ¡£WINDOW’±íÃ÷²éѯ½«Ö´ÐбíÖÐËùÓкòÑ¡geometry1£¬Óëgeometry2½øÐбȽϡ£Ò²¾ÍÊÇ˵WINDOW½«µ¥¸ögeometry1ºÍËùÓеÄgeometry2½øÐпռä¹Øϵ²Ù×÷£¬²¢±È½ÏÊÇ·ñÂú×ã¿Õ¼ä¹Øϵ¡£
          querytype =’ JOIN’ºÜÉÙÓõ½¡£µ±ÄãÏë±È½Ï¸Ãgeometry1¼¸ºÎÁкÍÁíÍâgeometry2±íÖеļ¸ºÎÁеĻ°¿ÉʹÓÃJOIN¡£Ê¹ÓÃJOIN±íÃ÷¸Ãgeometry2±ØÐ뽨Á¢µÄ¼¸ºÎË÷Òý£¨¾ßÌå²Î¿¼Ê¹ÓÃ˵Ã÷£©¡£
          idxtab1¡¾¿ÉÑ¡¡¿£ºÈç¹û´æÔÚ¶à¸ö¿Õ¼äË÷Òý±í£¬ËüÖ¸µÄÊÇgeometry1¿Õ¼äË÷Òý±í¶ÔÓ¦µÄ±íÃû¡£
idxtab2¡¾¿ÉÑ¡¡¿£ºÈç¹û´æÔÚ¶à¸ö¿Õ¼äË÷Òý±í£¬ËüÖ¸µÄÊÇgeometry1¿Õ¼äË÷Òý±í¶ÔÓ¦µÄ±íÃû¡£Ö»Óе±querytype =’ JOIN’²Å¿ÉÒÔʹÓøòÎÊý¡£
·µ»ØÖµ£º
±í´ïʽSDO_FILTER(arg1, arg2, arg3) = ‘TRUE’ÖеÄTrue±íÃ÷Á½¸ö¼¸ºÎ¿Õ¼ä¹ØϵΪ£º²»ÏàÀ룻·ñÔòΪFalse¡£
ʹÓÃ˵Ã÷
Õâ¸öSDO_FILTER²Ù×÷×Ó±ØÐëÓÃÔÚWhere×Ó¾äÖУ¬ÔÚsqlÓï¾äÖÐʹÓøøñʽ£ºSDO_FILTER(arg1, arg2,arg3) = ‘TRUE’.¡£
Èç¹ûquerytype =’ WINDOW’¡£ geometry2¿ÉÒÔÀ´×ÔÒ»¸ö±í£¬Ò²¿ÉÒÔÀ´×Ô¾ßÌåµÄ¼¸ºÎ¶ÔÏ󣨰üÀ¨¹ØÁªµÄ¼¸ºÎ¶ÔÏó±äÁ¿¡¢Í¨¹ýSDO_GEOMETRY¹¹Ô캯ÊýµÄ¼¸


Ïà¹ØÎĵµ£º

oracle Ò»´Îɾ³ý¶àÕűíµÄÊý¾Ý£¨Î´²âÊ԰棩

spool d:\deletetb.sql;
select 'delete ' || table_name || ' where to_char(col,'||'''yyyy'''||')='||'''2007'''||';'
  from user_tables
where table_name in  (select 'HS_' || lpad(rownum, '2', '0')
          from dual
        ......

Oracle¶¯Ì¬ÐÔÄÜÊÓͼѧϰ֮ V$ROLLSTAT

À´Ô´ÓÚhttp://hi.baidu.com/edeed/blog/item/33576327d1b73d00918f9dd4.html
±¾ÊÓͼ×ÔÆô¶¯¼´±£³Ö²¢¼Ç¼¸÷»Ø¹ö¶Îͳ¼ÆÏî¡£ÔÚѧϰ±¾ÊÓͼ֮ǰ£¬ÎÒÃÇÏÈÀ´Á˽âһϻعö¶Î(rollback segment)µÄÏà¹Ø¸ÅÄ
»Ø¹ö¶Î¸ÅÊö
»Ø¹ö¶ÎÓÃÓÚ´æ·ÅÊý¾ÝÐÞ¸Ä֮ǰµÄÖµ£¨°üÀ¨Êý¾ÝÐÞ¸Ä֮ǰµÄλÖúÍÖµ£©¡£»Ø¹ö¶ÎµÄÍ·²¿°üº¬ÕýÔÚʹÓõĸûعö¶ÎÊÂÎñµÄÐ ......

Oracle DB Link½éÉÜ

1¡£»ù±¾¸ÅÄ

Êý¾Ý¿âÁ¬½Ó´®Ö÷ÒªÓÃÓÚ½¨Á¢¶ÔÔ¶³ÌÊý¾Ý¿âµÄ·ÃÎÊ·½·¨£¬¿ÉÒÔÖ±½Ó¶ÁÈ¡Ô¶³ÌOracleµÄÊý¾Ý£¬»òÕßÖ±½ÓÐ޸ġ£Êý¾Ý¿âÁ¬½Ó´®¿ÉÒÔÊǹ«ÓÃÁ¬½ÓPUBLIC»òÕß˽ÓÐÁ¬½ÓPRIVATE¡£ÕâÒ»µãºÍͬÒå´ÊºÜÏàÏñ¡£

1¡£´´½¨Óï·¨£º

CREATE DATABASE LINK TEST CONNECT TO USERNAME IDENTIFIED BY PASSWORD
USING 'CONNECT_STRING ......

ÔÚ Linux x86 ÉÏ°²×° Oracle RAC 10g

DBA£ºLinux
ÔÚ Linux x86 ÉÏ°²×° Oracle RAC 10g
×÷ÕߣºJohn Smiley
Á˽âÔÚ Red Hat Enterprise Linux »ò Novell SUSE Enterprise Linux ÉÏ´ÓÍ·°²×° Oracle RAC 10g µÄ»ù´¡ÖªÊ¶£¨½öÓÃÓÚÆÀ¹À£©
Ŀ¼
¸ÅÊö
±³¾°
µÚ 1 ²¿·Ö£º °²×° Linux
µÚ 2 ²¿·Ö£º Ϊ Oracle ÅäÖà Linux
µÚ 3 ²¿·Ö£º ×¼±¸¹²Ïí´ÅÅÌ
µÚ 4 ²¿·Ö£º ......

Oracle×ܽá


Oracle
Ò»¡¢Êý¾Ý¿âÓïÑÔ£º
DCL:Êý¾Ý¿â¿ØÖÆÓïÑÔ(ÈçÊÂÎñ...)
DQL:Êý¾Ý¿â²éѯÓïÑÔ(select...)
DDL:Êý¾Ý¿â¶¨ÒåÓïÑÔ(create)
DML:Êý¾Ý¿â²Ù×÷ÓïÑÔ(¸üÐÂ....)
¶þ¡¢Oracle°æ±¾£º
Oracle8I   i£º»¥ÁªÍø
Oracle10g g£ºÍø¸ñ£º°Ñ¸´ÔÓµÄÎÊÌâ·Ö²¼´¦Àí£¬×îºó°Ñ½á¹û×ۺϳÉ×î×ܽá¹û
°Ñ¸´ÔÓµÄÎÊÌâ·Ö²¼´¦Àí£¬×îºó°Ñ½á¹û×Ûº ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ