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

ÎÒ¶ÔORACLE BI µÄETLµÄһЩ×ܽá

ÎÒ¶ÔORACLE BI µÄETLµÄһЩ×ܽᣨԭ£© ÊÕ²Ø
http://blog.chinaunix.net/u/25176/showart_2036107.html
Êý¾Ý²Ö¿âÖеÄETLÏêϸµÄ·ÖΪËĸö½×¶Î£ºÌáÈ¡£¬´«Ê䣬ת»»£¬×°ÔØ¡£ÎÒÏȼòµ¥µÄ½éÉÜÒ»ÏÂÌáÈ¡ºÍ´«ÊäµÄ·ÖÀàºÍ·½·¨£º
Ò»£ºÌáÈ¡
   ÌáÈ¡¿ÉÒÔ·ÖΪÂß¼­ÌáÈ¡£¬ºÍÎïÀíÌáÈ¡¡£
   1£ºÂß¼­ÌáÈ¡°´ÕÕ¹æÄ£·ÖΪ£ºÍêÈ«ÌáÈ¡£¬ÔöÁ¿ÌáÈ¡¡£
 ÍêÈ«ÌáÈ¡¼òµ¥ÔËÓÃEXP»òÕßÈ«±íɨÃè¿ÉÒÔÍê³É¡£
      ÔöÁ¿ÌáÈ¡ÊÇÌáÈ¡Ïà±ÈÉÏ´ÎÌáÈ¡Ôö¼ÓÁ˵ÄÊý¾Ý£¬Ò²¿ÉÒÔÊÇ°´ÕÕÊý¾Ý²úÉúʱ¼äPATITIONÁ˵ÄÒ»¸ö·ÖÇøµÈµÈ¡£Oracle's Change Data Capture ÊÇORACLEΪÔöÁ¿ÌáÈ¡ÌṩµÄÒ»¸öÍ걸µÄ»úÖÆ¡£¿ÉÒÔÔËÓûùÓÚTimestamps£¬Partitioning£¬TriggersµÄÔöÁ¿ÌáÈ¡¡£
   2£ºÎïÀíÌáÈ¡ÓÖ·ÖΪÔÚÏßÌáÈ¡ºÍÀëÏßÌáÈ¡¡£
      ÔÚÏßÌáÈ¡ÊÇÖ±½ÓÁ¬½ÓÊý¾Ý¿â£¬·ÃÎÊÊý¾Ý¿âµÄ±í£¬È»ºóÌáÈ¡¡£
      ÀëÏßÌáÈ¡ÊÇÖ¸ÌáÈ¡Êý¾Ý¿âÒÔÍâµÄһЩÎļþ£¬±ÈÈçFlat file£¬Dump file£¬Redo or Archive log.Transportable tablespaces¡£µÈµÈ¡£
ÌáÈ¡µÄ·½·¨ºÜ¶à¡£¿ÉÒÔÓÃsqlplus°ÑÊý¾ÝÌáÈ¡µ½FLAT fileÖУ¬Ò²¿ÉÒÔÓÃexp£¬ÉõÖÁ¿ÉÒÔÖ±½ÓÓÃoracle net´¦Àí¡£±ÈÈ磺
CREATE TABLE country_city AS SELECT distinct t1.country_name, t2.cust_city
from countries@source_db t1, customers@source_db t2
WHERE t1.country_id = t2.country_id
AND t1.country_name='United States of America';
ËùÓÐÌáÈ¡²»ÊÇETLÖÐÀ§ÄѵĹý³Ì¡£
¶þ£º´«Êä
ͨ¹ýFTP»òÕßTransportable Tablespaces£¨½¨Á¢Ò»¸öÁÙʱµÄ±í¿Õ¼äÓÃÀ´´æÌáÈ¡³öÀ´ÐèÒª´«ÊäµÄÊý¾Ý£¬È»ºóEXPÕâ¸ö±í¿Õ¼ä£©
Èý£º×ª»»
ת»»µÄ¹ý³ÌÊÇETL×ÔÓ£¬´¦Àíʱ¼ä×µÄ¹ý³Ì¡£Õâ¸ö¹ý³ÌÉæ¼°µÄORACLE֪ʶ±È½Ï¶à¡£¿ª·¢ÈËÔ±ÐèÒªÖªµÀÔõÑùÑ¡Ôñ×îÓÐЧ£¬×î±ã½ÝµÄ¼¼Êõ£¬ÎÒ½«ÔÚ±¾ÎÄÏêϸ˵Ã÷¡£
ÎÒÀí½âµÄת»¯¹ý³Ì¾ÍÊÇ£¬Í¨¹ýÈô¸É¸ö²½ÖèÀ´´¦Àíת»¯¹ý³ÌÖÐÐèÒª´¦ÀíµÄÿһ¸öÎÊÌ⣬¶øÕâÈô¸É²½ÖèÊÇͨ¹ý½¨Á¢Èô¸ÉµÄÁÙʱ±íÀ´Íê³ÉµÄ£¬ºóÒ»¸ö²½Ö轨Á¢µÄÁÙʱ±íÊÇÔÚÇ°Ò»¸ö²½Ö轨Á¢µÄÁÙʱ±íµÄ»ù´¡ÉϽ¨Á¢ÆðÀ´µÄ¡£ÕâÑùÒ»´ÎÒ»´ÎµÄת»¯£¬×îºóµÃµ½×ª»¯µÄ½á¹û¡£
1£ºTransformation Flow
Èç¹ûÄã×Ô¼ºÉ漰ת»¯µÄ¹ý³Ì£¬Äã»áÏ뵽ʲô£¿Ê×ÏÈÃ÷È·£¬ÔÛÃǵÄÄ¿µÄÊÇʲô£¬ÎÒÃÇÓÐÒ»¸öSTAGING±í£¬ÎÒÃÇÊÇÒª°ÑÕâ¸ö±íµÄÊý¾ÝÌí¼Óµ½DWµÄÊÂʵ±íÖУ¬µ«ÊDz»ÊǼòµ¥µÄÌí¼Ó£¬ÕâЩÊý¾ÝÐèÒª°´ÕÕSCHEMA DESIGNµÄÒªÇ󣬰ÑËùÓкÍά±í¶ÔÓ¦µÄÃèÊöÐÅÏ¢·ÖÀ


Ïà¹ØÎĵµ£º

Oracle Listener ·þÎñ²»ÄÜÆô¶¯µÄÁíÒ»·¢ÏÖ

    ×î½üʱ¼ä£¬¸ü»»ÁËÏîÄ¿×飬×î½üͻȻ·¢ÏÖOracle Listener²»ÄÜÆô¶¯¡£ÒÔÇ°·¢ÏÖ²»ÄÜÆô¶¯µÄÔ­ÒòÊÇ£¬ÖØ×°ÁËOracleºóûÓÐɾ³ýÒÔÇ°µÄ×¢²á±í£¬ÒÔÖÁÓÚĬÈÏÆô¶¯·þÎñµÄÃüÁîÎļþÖ¸ÏòµÄÒÀÈ»ÊÇÒÔÇ°µÄλÖã¬ËùÒÔ²»ÄÜÆô¶¯£¬µ«Õą̂µçÄÔµÄOracleÖ»×°ÁËÒ»´Î¡£
    ×òÌìͻȻ·¢ÏÖ£¬ÔÚlistener.oraÎļþÖеÄHostÅ ......

Oracle, DB2 ¼° MySQL ·ÖÒ³²éѯд·¨

 
ÏÖÔÚÔÚWEB Ó¦ÓÃÖÐʹÓ÷ÖÒ³¼¼ÊõÔ½À´Ô½ÆÕ±éÁË£¬ÆäÖÐÀûÓÃÊý¾Ý¿â²éѯ·ÖÒ³ÊÇÒ»ÖÖЧÂʱȽϸߵķ½·¨£¬
ÏÂÃæÁгöÁËOracle, DB2  ¼° MySQL ·ÖÒ³²éѯд·¨¡£
Ò»£ºOracle
select * from (select rownum,name from table where rownum <=endIndex )
where rownum > startIndex
¶þ£ºDB2
DB2·ÖÒ³²éѯ
SELECT * ......

oracle Ëø±í´¦Àí

--²é³öËùÓб»ËøסµÄ±í
select b.owner TABLEOWNER, b.object_name TABLENAME, c.OSUSER LOCKBY, c.USERNAME LOGINID, c.sid SID, c.SERIAL# SERIAL
from v$locked_object a,dba_objects b, v$session c
where b.object_id = a.object_id AND a.SESSION_ID =c.sid;
--ͨ¹ýSID, SERIAL½âËø
--alter system kill sessio ......

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

pl/sql ±í
ÔÚpl/sql¿éÖÐÁÙʱʹÓá¢ÏñÊý×éÒ»ÑùµÄ¶ÔÏó
°üº¬Ò»ÁкÍÒ»¸öÖ÷¼ü
²»ÄܶÔÁкÍÖ÷¼ü½øÐÐÃüÃû
ÁпÉÒÔÊÇÈκαêÁ¿Êý¾ÝÀàÐÍ
Ö÷¼ü±ØÐëÊÇbinary_integerÀàÐÍ
´óСûÓÐÏÞÖÆ
ÉùÃ÷pl/sql±í
    ¶¨Òå±íµÄÀàÐÍ
    type ÀàÐÍÃû is table of ÁÐÀàÐÍ|±äÁ¿Êý¾ÝÀàÐÍ ......

OracleÆô¶¯¹ý³ÌÏê½â ½éÉܼ°ÃüÁ»¹ÓйرÕ

OracleÆô¶¯¹ý³Ì½éÉܼ°ÃüÁ»¹Óйرա£
дÔÚÇ°Ã棺Æô¶¯Êý¾Ý¿âÇ°£¬ÇëÏÈÆô¶¯¼à³ÌÐò¡£
lsnrctl start
Æô¶¯µÄÈý¸ö²½Ö裬ÒÀ´ÎΪ1.´´½¨²¢Æô¶¯ÊµÀý¡¢2.×°ÔØÊý¾Ý¿â¡¢3.´ò¿ªÊý¾Ý¿â¡£
¿ÉÒÔͨ¹ýÃüÁîstartupÀ´ÊµÏÖ¡£
startup ÃüÁî¸ñʽ
startup [ nomount | mount | open | force ] [ restrict ] [ pfile=filename ];
·½·¨1 -- st ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ