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

ÔÚOracleÖÐʹÓÃGuid

ÔÚOracleÖÐʹÓÃGuid
ÔÚOracleÖпÉÒÔÓÃSYS_GUID()À´Éú³ÉÒ»¸öguid,Ï൱ÓÚmsSqlÖеÄnewid()¡£
ÔÚOracle9iºÍOracle 10g ÀïSYS_GUID²úÉúµÃµ½µÄÊý¾ÝÊÇ32 λµÄ£¬È磺234E45F0077881AAE0430AA3034681AA
µ«OracleÖеÄguidÓëmsSqlÖеÄguid¸ñʽ²»ÍêÈ«Ïàͬ¡£
½«OracleÖеÄguid·Ö¸î³ÉΪ Windowsϵͳ ObjectId µÄ¸ñʽ£º{8-4-4-4-12} £¬ÏÂÃæ¸ø³öÁ½ÖÖ½â¾ö·½·¨£º
¡¡¡¡·½·¨Ò»£ºÀûÓÃsubstr½øÐзָ·Ç³£¼òµ¥£¬¾ßÌå´úÂëÈçÏ£º
¡¡¡¡/**
¡¡¡¡* ´´½¨ÏµÍ³Object Id ¸ñʽµÄ×Ö·û´®£¬·µ»ØµÄ½á¹ûÈçÏ£º{234E45F0-077A-81AA-E043-0AA3034681AA}
¡¡¡¡*/
¡¡¡¡function CreateGUID return varchar2
¡¡¡¡is
¡¡¡¡guid varchar(64);
¡¡¡¡begin
¡¡¡¡guid := SYS_GUID();
¡¡¡¡return
¡¡¡¡'{'||substr(guid,1,8)||'-'||substr(guid,9,4)||
¡¡¡¡'-'||substr(guid,13,4)||'-'||substr(guid,17,4)
¡¡¡¡||'-'||substr(guid,21,12)||'}';
¡¡¡¡end CreateGUID;
¡¡¡¡·½·¨¶þ£ºÀûÓÃCONCATº¯Êý½øÐÐÁ¬½Ó£¬¾ßÌå´úÂëÈçÏ£º
¡¡¡¡CREATE OR REPLACE FUNCTION AILDM_GET_GUID
    RETURN CHAR
 IS
    v_guid              CHAR (36);
    v_guid_part_one     CHAR (8);
    v_guid_part_two     CHAR (4);
    v_guid_part_three   CHAR (4);
    v_guid_part_four    CHAR (4);
    v_guid_part_five    CHAR (12);
 BEGIN
    SELECT SYS_GUID ()
  INTO v_guid
  from DUAL;
    v_guid_part_one := SUBSTR (v_guid, 0, 8);
    v_guid_part_two := SUBSTR (v_guid, 8, 4);
    v_guid_part_three := SUBSTR (v_guid, 12, 4);
    v_guid_part_four := SUBSTR (v_guid, 16, 4);
    v_guid_part_five := SUBSTR (v_guid, 20, 12);
    v_guid :=
    CONCAT
    (CONCAT
     (CONCAT
      (CONCAT (CONCAT (CONCAT (CONCAT (CONCAT (v_guid_part_one,
 &n


Ïà¹ØÎĵµ£º

½ñÌìoracle DBA½ç´óʦ¼¶ÈËÎï¸Ç¹úÇ¿ÏÈÉúÀ´ÎÒÃǹ«Ë¾

      2010Äê3ÔÂ5ÈÕ£¬ËäÈ»º®·ç´Ì¹Ç£¬µ«ÒÀÈ»µ²²»×¡¹«Ë¾Í¬ÊºÍÎÒ¹¤×÷µÄÈÈÇé.µÎ´ð¡¢µÎ´ð,ͬÊÂÊÖ»úÏìÁË£¬ÀÏ×ܸøËû´òµç»°£¬Ëµ¹ã¶«ÁªÍ¨ÍøÓÅƽ̨Êý¾Ý¿â³öÏÖÎÊÌ⣬ÓÉÓÚÊý¾ÝÁ¿È·Êµ¹ý´ó£¬Í¬ÊÂÒÔÇ°Ò²´¦Àí¹ýÄDZߵÄÎÊÌ⣬Ö÷ÒªÊÇËùÓÐÊý¾ÝÁ¿´óµÄ±íÿ¸ôÒ»Ì콨Á¢Ò»¸öË÷Òý£¬ÕâÑù²éѯÊý¾ÝËٶȱȽϿ졣µ«ÊǽøÐÐÊý¾Ý»ã× ......

±±´óÇàÄñoracleѧϰ±Ê¼Ç11

´Ø£º
Óй«¹²ÁеÄÁ½¸ö»ò¶à¸ö±íµÄ¼¯ºÏ
´Ø±íÖеÄÊý¾Ý´æ´¢ÔÚ¹«¹²Êý¾Ý¿éÖÐ
´Ø¼ü£º
Ψһ±êʶ·û
´´½¨´Ø£º
¼õÉÙI/O²Ù×÷£¬¼õÉÙ´ÅÅ̿ռ䣬µ«ÊDzåÈëÐÔÄܽµµÍ¡£
Á½ÕűíÖÐÓй²Í¬µÄÁУ¬±ÈÈçѧÉú±íÖÐÓа༶±àºÅ£¬°à¼¶±íÖÐÒ²Óа༶±àºÅ£¬¿ÉÒÔ½«°à¼¶±àºÅ´æ·ÅÔÚ´ØÖÐ
create cluster ´ØÃû(
×Ö¶ÎÃû ÀàÐÍ
)tablespace ±íÃüÃû¿Õ¼ä;
cr ......

oracleͬÒå´Ê

----------------------------------------------------------------------------
Ïà¹Ø֪ʶ£ºOracle SYNONYM£¨Í¬Òå´Ê£©
----------------------------------------------------------------------------
ÊÇÒ»ÖÖÓ³Éä¹Øϵ£¬¿ÉÒÔÀí½âΪ±íµÄÒ»Ö̶ֹ¨±ðÃû
ͬÒå´ÊµÄºÃ´¦£º½¨Á¢Ò»¸öͬÒå´Ê¿ÉÒÔÅųýÒ»¸ö¶ÔÏóÃû×ÖµÄÏÞÖÆ
Èç¹ûÄãµÄ ......

ÔÚOracleÖÐʹÓÃ×Ô¶¯µÝÔöÁÐ

ÔÚOracleÖÐʹÓÃ×Ô¶¯µÝÔöÁÐ
Oracle 沒ÓÐ類ËÆ MS-SQL ¿ÉÒÔÖ±½ÓÐÞ¸Ä欄λ屬ÐÔ£¬設¶¨³É×Ô動編號欄룬ËùÒÔÎÒ們±Ø須͸過 Sequence Îï¼þµÄ nextval ·½·¨£¬È¡µÃÆäÏÂÒ»個Öµ£¬È»áá將´ËÖµÐÂÔöÖÁ TABLE ÖУ¬製Ôì³öÓÐ×Ô動編 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ