Wrap¼ÓÃÜOracle´æ´¢¹ý³Ì
Wrap¼ÓÃÜOracle´æ´¢¹ý³Ì
Oracle×Ô´øµÄÄÚ²¿°ü´ó¶àÊý¶¼ÊǾ¹ý¼ÓÃܵģ¬±È½ÏºÃÆ棬Á˽âÒ»ÏÂOracle½øÐмÓÃܵŤ¾ß¡£Ò»°ã¶¼Ê¹ÓÃwrap¹¤¾ß½øÐмÓÃÜ£¬Õâ¸öwrapµÄʹÓÃÓï
·¨·Ç³£¼òµ¥£¬Ö»ÓÐÊäÈëºÍÊä³öÁ½¸ö²ÎÊý£¬Ò²Ã»ÓжàÓàµÄ²Ù×÷¡£µ«ÊÇҲûÓÐÏêϸµÄ´íÎóÌáʾ£¬ËùÒԺܶàÎÊÌâ³öÏÖºóºÜÄѲ鵽ÔÒò¡£¼òµ¥¿´¿´£¬¼Ç¼һÏÂÕâ¸ö¹¤¾ßµÄÓÃ
·¨£¬ÒÔ±ã½ñºó²éѯ¡£
wrapµÄÓï·¨·Ç³£¼òµ¥£ºwrap iname={input file} [oname={output file}]
¿ÉÒÔÖ¸¶¨Â·¾¶£¬Ò²¿ÉÒÔֻд³öÎļþÃû¡£Èç¹û²»Ð´oname²ÎÊý£¬ÔòÔÚµ±Ç°Â·¾¶Ï´´½¨Ò»¸öÓëinameÎļþÃûͬÃû£¬ÇÒºó׺Ϊ“.plb”µÄÎļþ¡£
´ÓÍøÉÏÁ˽âµÄ¾ÑéÀ´¿´£¬´óÖÂҪעÒâ3¸öÎÊÌ⣺
Ò»¡¢¼æÈÝÐÔÎÊÌâ
¸÷¸ö°æ±¾wrap³öÀ´µÄ½á¹ûÊÇÓвî±ðµÄ£¬Oracle¶ÔwrapÉú³ÉµÄ½á¹ûÒ²ÊÇÏòϼæÈݵġ£10gµÄÊý¾Ý¿â¿ÉÒÔʹÓÃ9iÉú³ÉµÄwrapÎļþ£¬¶øÔÚ9iÖÐÎÞ
·¨Ê¹ÓÃ10gµÄwrapµÄÉú³É½á¹û¡£
¶þ¡¢×Ö·ûÎÊÌâ
²Ù×÷ϵͳµÄ×Ö·û¼¯ÉèÖò»ÕýÈ·£¬¿ÉÄÜ»áÒýÆðwrapµÄ´íÎó(Õâ¸öÎÊÌâòËÆÏÖÔڵİ汾ÒѾûÓÐÁË)
·½·¨ÊÇÉèÖÃOSµÄ×Ö·û¼¯£ºSET
NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
Èý¡¢²»Ö§³Ö·ÖÎöº¯Êý
ÕâÊÇÒ»¸ö04ÄêµÄÌû×Ó£º
http://www.itpub.net/thread-217136-1-1.
Ïà¹ØÎĵµ£º
CREATE OR REPLACE TYPE ty_str_array IS TABLE OF VARCHAR2 (4000);
CREATE OR REPLACE FUNCTION fn_split (p_str IN VARCHAR2, p_delimiter IN VARCHAR2)
RETURN ty_str_split
IS
j INT := 0;
i INT := 1;
len INT := 0;
&nbs ......
OracleÖÐDecode()º¯ÊýʹÓü¼ÇÉ
¡¡¡¡decode()º¯ÊýÊÇORACLE PL/SQLÊǹ¦ÄÜÇ¿´óµÄº¯ÊýÖ®Ò»£¬Ä¿Ç°»¹Ö»ÓÐORACLE¹«Ë¾µÄSQLÌṩÁ˴˺¯Êý£¬ÆäËûÊý¾Ý¿â³§É̵ÄSQLʵÏÖ»¹Ã»Óд˹¦ÄÜ¡£
DECODEº¯ÊýÊÇORACLE PL/SQLÊǹ¦ÄÜÇ¿´óµÄº¯ÊýÖ®Ò»£¬Ä¿Ç°»¹Ö»ÓÐORACLE¹«Ë¾µÄSQLÌṩÁ˴˺¯Êý£¬ÆäËûÊý¾Ý¿â³§É̵ÄSQLÊµÏ ......
¡¡¡¡Ò»¡¢ÎÊÌâµÄÌá³ö
¡¡¡¡Ä¿Ç°µÄºÜ¶àÊý¾Ý¿âÓ¦ÓóÌÐòÊÇʹÓÃORACLEÊý¾Ý¿â¿ª·¢µÄclient/serverģʽ¡£ÖÚËùÖÜ
Öª£¬Ê¹ÓôËÖÖģʽÐèÒªÔÚÖÕ¶ËÉÏ°²×°ORACLE¿Í»§¶ËÈí¼þ¡£Ó¦ÓóÌÐò¿ÉÒÔʹÓÃInstallShieldÈí¼þ´ò°ü³É°²×°³ÌÐò£¬ÓÉÓû§×ÔÐа²×°¡£µ«
ORACLE¿Í»§¶ËÈí¼þÒ»°ãÐèÒªÓоÑéµÄ¿ª·¢ÈËԱͨ¹ýÈË»ú½»»¥µÄ·½·¨°²×°£¬°²×°Íê³Éºó»¹ÐèÔ ......
²éÕÒÊý¾Ý¿âÖÐËùÓÐ×ֶΠÒÔ¶ÔÓ¦µÄ±í
select C.column_name,C.TABLE_NAME from dba_tab_columns C where owner=''
²éÿ¸ö¿ÆÄ¿class ·ÖÊýscroÇ°ÈýÃû
select id, name, class, scro
from (select row_number() over(partition by class order by scro desc) cnt,
&n ......
OracleÊý¾Ýµ¼Èëµ¼³öimp/exp¾ÍÏ൱ÓÚoracleÊý¾Ý»¹ÔÓ뱸·Ý¡£expÃüÁî¿ÉÒÔ°ÑÊý¾Ý´ÓÔ¶³ÌÊý¾Ý¿â·þÎñÆ÷µ¼³öµ½±¾µØµÄdmpÎļþ£¬impÃüÁî¿ÉÒÔ°ÑdmpÎļþ´Ó±¾µØµ¼Èëµ½Ô¶´¦µÄÊý¾Ý¿â·þÎñÆ÷ÖС£ ÀûÓÃÕâ¸ö¹¦ÄÜ¿ÉÒÔ¹¹½¨Á½¸öÏàͬµÄÊý¾Ý¿â£¬Ò»¸öÓÃÀ´²âÊÔ£¬Ò»¸öÓÃÀ´ÕýʽʹÓá£
Ö´Ðл·¾³£º¿ÉÒÔÔÚSQLPLUS.EXE»òÕßDOS£¨ÃüÁîÐУ©ÖÐÖ´ÐУ¬
DOSÖпÉÒ ......