Oracle raw Êý¾ÝÀàÐÍ
RAW£¬ÀàËÆÓÚCHAR£¬ÉùÃ÷·½Ê½RAW(L)£¬LΪ³¤¶È£¬ÒÔ×Ö½ÚΪµ¥Î»£¬×÷ΪÊý¾Ý¿âÁÐ×î´ó2000£¬×÷Ϊ±äÁ¿×î´ó32767×Ö½Ú¡£
LONG RAW£¬ÀàËÆÓÚLONG£¬×÷ΪÊý¾Ý¿âÁÐ×î´ó´æ´¢2G×Ö½ÚµÄÊý¾Ý£¬×÷Ϊ±äÁ¿×î´ó32760×Ö½Ú
²åÈërawÊý¾Ý²Ù×÷:
¡¡¡¡insert into raw_test values (1, hextoraw('ff'));
¡¡¡¡insert into raw_test values (utl_raw.cast_to_raw('051'));
¡¡¡¡É¾³ý±í²Ù×÷:
¡¡¡¡drop table raw_test;
¡¡¡¡µ±Ê¹ÓÃHEXTORAWʱ£¬»á°Ñ×Ö·û´®ÖÐÊý¾Ýµ±×÷16½øÖÆÊý¡£¶øʹÓÃUTL_RAW.CAST_TO_RAWʱ£¬Ö±½Ó°Ñ×Ö·û´®ÖÐÿ¸ö×Ö·ûµÄASCIIÂë´æ·Åµ½RAWÀàÐ͵Ä×Ö¶ÎÖÐ.
¡¡¡¡¿ÉÒÔʹÓÃdumpº¯Êý£¬²éѯ´æ´¢Çé¿ö£º
¡¡¡¡select id,raw_date, dump(raw_date, 16) dump_raw from raw_test;
¡¡¡¡OracleÖÐRAWºÍVarchar2³£ÓõÄÁ½¸öת»»º¯Êý
¡¡¡¡1. UTL_RAW.CAST_TO_RAW
¡¡¡¡¸Ãº¯Êý°´ÕÕȱʡ×Ö·û¼¯£¨Ò»°ãΪGB2312£©£¬½«VARCHAR2×Ö·û´®×ª»»ÎªRAW¡£
¡¡¡¡insert into cmpp_submit (dest_terminal_id,msg_content) values('13001081371',UTL_RAW.CAST_TO_RAW('ÄúºÃ£¡'));
¡¡¡¡2. UTL_RAW.CAST_TO_VARCHAR2
¡¡¡¡¸Ãº¯Êý°´ÕÕȱʡ×Ö·û¼¯ºÏ£¨Ò»°ãΪGB2312£©£¬½«RAWת»»ÎªVARCHAR2¡£
¡¡¡¡select UTL_RAW.CAST_TO_VARCHAR2(msg_content) from cmpp_deliver;
¡¡¡¡ÆäʵRAWºÍVARCHARÊÇÀàËƵÄ,Ö»ÊÇ´æ´¢ÔÚRAWÀïµÄÊǶþ½øÖÆÖµ,ÔÚÈκÎʱºò²»»á×ö×Ô¶¯µÄ×Ö·û¼¯×ª»»,ÕâÊÇRAWºÍVARCHARµÄ²»Í¬,RAWÖ»ÊÇÒ»ÖÖÍⲿÀàÐÍ,ÆäÄÚ²¿´æ´¢ÊÇVARRAW
¡¡¡¡VARCHARµÄOracleÄÚ²¿¶¨ÒåÊÇ:struct { ub2 len; char arr[n] }
¡¡¡¡VARRAWµÄORACLEÄÚ²¿¶¨ÒåÊÇ: struct { ub2 len; unsigned char arr[n] }
Ïà¹ØÎĵµ£º
ΪÁË×öÐéÄâ»ú£¬ÐèÒª½«·þÎñÆ÷ÉϵÄ11gµÄÓû§µÄÍêÕûÊý¾Ýµ¼³öÀ´¡£¶øÐéÄâ»úÉϵÄoracle10gµÄ£¬Ö±½Óµ¼³öÀ´£¬ÎÞ·¨µ¼Èëµ½ÐéÄâ»ú¡£
ËùÒÔ£¬ÊÔ×ÅÓÃ10gµÄ¿Í»§¶ËÀ´µ¼³öÊý¾Ý£¬
ÓÃÃüÁî:exp exoa/*****@exoa1 file=20100526.dmp grants=y full=y
Ö´Ðкó£¬ÏµÍ³Ìáʾ£º
EXP-00008:Óöµ½ ORACLE´íÎó1406
&nb ......
author£ºskate
time£º2010-05-26
Oracle DBA ±ÊÊÔÌâ
£¨´ðÌâʱ¼ä60·ÖÖÓ£©
ÍøÉÏ¿´¼ûһƪDBAµÄÃæÊÔÌ⣬¾õµÃͦʵÓõģ¬¶ø²»ÏñÓеÄÃæÊÔŪµÃºÜÐ飬ºÜÀíÏ뻯¡£
Unix/Linux퉀1¡¢ÈçºÎ²é¿´Ö÷»úcpu£¬ÄÚ´æ¡¢IPºÍ´ÅÅÌ¿Õ¼ä?
2¡¢Äã³£ÓõĽø³Ì¹ÜÀí¡¢Ö÷»úÐÔÄܲ쿴ÃüÁîÓÐÄÄЩ£¿
3¡¢½¨Á¢×édbaºÍ¸Ã×éÏÂÓû§oracle£¬Ä¬ÈÏshellΪbash¡£ ......
ÔÚoracleÖУ¬ÎÒÃÇ´´½¨Ò»¸öÖ÷¼ü£¬Ôòͬʱ×Ô¶¯´´½¨ÁËÒ»¸öͬÃûµÄΨһË÷Òý£»É¾³ýÖ÷¼ü£¬ÔòÖ÷¼üÔ¼ÊøºÍ¶ÔÓ¦µÄΨһË÷Òý¶¼É¾³ýÁË¡£ÕâÊÇÎÒÃǾ³£¼ûµ½µÄÏÖÏó¡£
·¢³öÒ»¸ö´´½¨Ö÷¼üµÄsql£¬oracleÆäʵִÐÐÁËÁ½²½£º´´½¨Ö÷¼üÔ¼Êø¡¢´´½¨/¹ØÁª ΨһË÷Òý¡£²½ÖèÊÇÕâÑùµÄ£º
´´½¨Ö÷¼üÔ¼Êøʱ£¬¼ì²é¸ÃÖ÷¼ü×Ö¶ÎÉÏÊÇ·ñÒѾ´æÔÚΨһË÷Òý¡£Èô² ......
SOURCE: CLICK HERE
±¾ÎĽ²ÊöSQL Server¡¢Oracle¡¢MySQL²é³öֵΪNULLµÄÌæ»»¡£
ÔÚSQL Server Oracle MySQLµ±Êý¾Ý¿âÖвé³öijֵΪNULLÔõô°ì?
1¡¢MSSQL: ISNULL()
Óï·¨
ISNULL ( check_expression , replacement_value )
²ÎÊý
check_expression
½«±»¼ì²éÊÇ·ñΪ NULLµÄ±í´ïʽ¡£check_expression ¿ÉÒÔÊÇÈκÎÀàÐ͵ġ£
re ......
¸øÍŶÓÄÚ²¿×öµÄÒ»¸öOracle Êý¾ÝÀàÐÍ·ÖÏí£¬Ö÷ÒªÊǹØÓÚOracleÊý¾ÝÀàÐÍһЩÄÚ²¿´æ´¢½á¹¹¼°ÐÔÄܽéÉÜ¡£
http://www.slideshare.net/yzsind/oracle-4317768
ÒÔÏÂÊÇPPTÖÐunDumpNumberº¯ÊýµÄÈ«²¿´úÂ룺
create or replace function unDumpNumber(iDumpStr varchar2) return number is
TYPE ByteAr ......