OracleÊý¾Ý¿âµ¼Èëµ¼³ö£¨1£©
OracleÊý¾Ý¿âµ¼Èëµ¼³ö£¨1£©
Oracleµ¼Èëµ¼³ö¹Ù·½¶¨Òå
ÈçºÎ²é¿´ImpºÍExpÃüÁ
Ç°Ì᣺°²×°OracleÊý¾Ý¿â»òÕß¿Í»§¶Ë¡£
Ò»¡¢ IMPÃüÁî
1. ´ò¿ªÃüÁîÌáʾ·û¡£ÀýÈ磬£¨Windows XP£©ÔËÐÐ->cmd¡£
2. ÔÚDOSÖÐÊäÈ룺imp help=y£¬»Ø³µ¡£
3. DOS×Ü»á³öÏÖһϹØÓÚImpÃüÁîµÄ¶¨ÒåºÍ˵Ã÷£º
ͨ¹ýÊäÈë IMP ÃüÁîºÍÄúµÄÓû§Ãû/¿ÚÁî, µ¼Èë
²Ù×÷½«ÌáʾÄúÊäÈë²ÎÊý:
ÀýÈç: IMP SCOTT/TIGER
»òÕß, ¿ÉÒÔͨ¹ýÊäÈë IMP ÃüÁîºÍ¸÷ÖÖ²ÎÊýÀ´¿ØÖƵ¼Èë
µÄÔËÐз½Ê½¡£ÒªÖ¸¶¨²ÎÊý, Äú¿ÉÒÔʹÓùؼü×Ö:
¸ñʽ: IMP KEYWORD=value »ò KEYWORD=(value1,value2,...,valueN)
ÀýÈç: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=N
»ò TABLES=(T1:P1,T1:P2), Èç¹û T1 ÊÇ·ÖÇø±í
USERID ±ØÐëÊÇÃüÁîÐÐÖеĵÚÒ»¸ö²ÎÊý¡£
¹Ø¼ü×Ö ËµÃ÷ (ĬÈÏÖµ) ¹Ø¼ü×Ö ËµÃ÷ (ĬÈÏÖµ)
--------------------------------------------------------------------------
USERID Óû§Ãû/¿ÚÁî FULL µ¼ÈëÕû¸öÎļþ (N)
BUFFER Êý¾Ý»º³åÇø´óС fromUSER ËùÓÐÕßÓû§ÃûÁбí
FILE ÊäÈëÎļþ (EXPDAT.DMP) TOUSER Óû§ÃûÁбí
SHOW Ö»ÁгöÎļþÄÚÈÝ (N) TABLES ±íÃûÁбí
IGNORE ºöÂÔ´´½¨´íÎó (N) RECORDLENGTH IO ¼Ç¼µÄ³¤¶È
GRANTS µ¼ÈëȨÏÞ (Y) INCTYPE ÔöÁ¿µ¼ÈëÀàÐÍ
INDEXES&
Ïà¹ØÎĵµ£º
ORACLEÅàѵ(OCA)ÈÏÖ¤½éÉÜ
Oracle10g Certified Associate (OCA) Oracle ÈÏ֤רԱ¡£
¿¼ÊԳɼ¨Í¨¹ýÄÜ»ñµÃOracle¹«Ë¾ÎªÄú°ä·¢µÄÈ«ÇòÈÏÖ¤µÄÓ¢ÎÄOCAÖ¤Êé¡£OCAÓÉOracle¹«Ë¾³öÌâ¡£
¸ÃÖ¤Êé¿É×÷Ϊ¸÷ÆóÊÂÒµµ¥Î»Êý¾Ý¿â¹ÜÀíÈËÔ±ÉϸڵÄÒÀ¾Ý¡£
Ä¿Ç°ÒѳÉΪ¸÷IT¹«Ë¾¼°Ïà¹ØÆóÒµÕùÏྺƸµÄÊý¾Ý¿â¹ÜÀíά»¤È˲ţ¬ÊÇÊý¾Ý¿âά»¤¹ÜÀíÈËÔ ......
ÓеÄÇé¿öÏ£¬ÎÒÃÇÐèÒªÓõݹéµÄ·½·¨ÕûÀíÊý¾Ý£¬Õâ²Å³ÌÐòÖкÜÈÝÒ××öµ½£¬µ«ÊÇÔÚÊý¾Ý¿âÖУ¬ÓÃSQLÓï¾äÔõôʵÏÖ£¿ÏÂÃæÎÒÒÔ×îµäÐ͵ÄÊ÷ÐνṹÀ´ËµÃ÷ÏÂÈçºÎÔÚOracleʹÓõݹé²éѯ¡£
ΪÁË˵Ã÷·½±ã£¬´´½¨Ò»ÕÅÊý¾Ý¿â±í£¬ÓÃÓÚ´æ´¢Ò»¸ö¼òµ¥µÄÊ÷Ðνṹ
Sql´úÂë
create table TEST_TREE
( &n ......
ÖØ×°²Ù×÷ϵͳºó,Èç¹ûÊý¾ÝÎļþ,¿ØÖÆÎļþ,ÈÕÖ¾Îļþ¶¼ÍêºÃµÄ»°(ÔÚitpub¿´¹ýºÜ¶àÈËÌá¹ýÕâ¸ö»°Ìâ,¶àÊýÈ˶¼Êǽ«Õâ3¸öÎļþ·ÅÔÚͬһĿ¼oradata),Ö»ÐèÖØа²×°oracle(¸úÖØ×°²Ù×÷ϵͳǰͬ°æ±¾)µ½ÔĿ¼ºó,Öؽ¨ÊµÀý·þÎñºÍÃÜÂëÎļþ,ÅäÖÃÒ»ÏÂlistenerºÍtns¼´¿ÉÕý³£Æô¶¯Êý¾Ý¿â.
¹ý³ÌÈçÏÂ(¼ÙÉèÔʵÀýÃûΪorcl,°æ±¾Îª9i):
1.½«ÔÀ´µÄor ......
Æäʵ£¬Õâƪ¶ÌÎÄ£¬ÎÒÔç¾ÍÓ¦¸ÃдÁË¡£ÒòΪ£¬java´æ´¢¹ý³Ì½ñºóÔÚ¸÷´óÊý¾Ý¿â³§ÉÌÖÐÔ½À´Ô½Á÷ÐУ¬¹¦ÄÜÒ²Ô½À´Ô½Ç¿´ó¡£ÕâÀïÒÔOracleΪÀý£¬½éÉÜÒ»ÏÂjava´æ´¢¹ý³ÌµÄ¾ßÌåÓ÷¨¡£
Ò»¡¢ÈçºÎ´´½¨java´æ´¢¹ý³Ì£¿
ͨ³£ÓÐÈýÖÖ·½·¨À´´´½¨java´æ´¢¹ý³Ì¡£
1. ʹÓÃoracleµÄsqlÓï¾äÀ´´´½¨£º
e.g. ʹÓÃcreate or replace and compile java source ......
OracleÓëSQL ServerÊÂÎñ´¦ÀíµÄ±È½Ï
ÊÂÎñ´¦ÀíÊÇËùÓдóÐÍÊý¾Ý¿â²úÆ·µÄÒ»¸ö¹Ø¼üÎÊÌ⣬¸÷Êý¾Ý¿â³§É̶¼ÔÚÕâ¸ö·½Ã滨·ÑÁ˺ܴó
¾«Á¦£¬²»Í¬µÄÊÂÎñ´¦Àí·½Ê½»áµ¼ÖÂÊý¾Ý¿âÐÔÄܺ͹¦ÄÜÉϵľ޴ó²îÒì¡£
ÊÂÎñ´¦ÀíÒ²ÊÇÊý¾Ý¿â¹ÜÀíÔ±ÓëÊý¾Ý¿âÓ¦ÓóÌÐò¿ª·¢ÈËÔ±±ØÐëÉî¿ÌÀí½âµÄÒ»¸öÎÊÌ⣬¶ÔÕâ¸öÎÊÌâµÄÊèºö¿ÉÄܻᵼÖÂÓ¦ÓóÌÐòÂß¼´í ......