OracleÊý¾Ýµ¼Èëµ¼³öimp/exp
OracleÊý¾Ýµ¼Èëµ¼³öimp/exp
u
¹¦ÄÜ£ºOracleÊý¾Ýµ¼Èëµ¼³öimp/exp¾ÍÏ൱ÓëoracleÊý¾Ý»¹ÔÓ뱸·Ý¡£
´ó¶àÇé¿ö¶¼¿ÉÒÔÓÃOracleÊý¾Ýµ¼Èëµ¼³öÍê³ÉÊý¾ÝµÄ±¸·ÝºÍ»¹Ô£¨²»»áÔì³ÉÊý¾ÝµÄ¶ªÊ§£©¡£ OracleÓиöºÃ´¦£¬ËäÈ»ÄãµÄµçÄÔ²»ÊÇ·þÎñÆ÷£¬µ«ÊÇÄã×°ÁËoracle¿Í»§¶Ë£¬²¢½¨Á¢ÁËÁ¬½Ó£¨Í¨¹ýNet Configuration AssistantÌí¼ÓÕýÈ·µÄ·þÎñÃüÃû£¬ÆäʵÄã¿ÉÒÔÏë³ÉÊÇ¿Í»§¶ËÓë·þÎñÆ÷¶ËÐÞÁËÌõ·£¬È»ºóÊý¾Ý¾Í¿ÉÒÔ±»À¹ýÀ´ÁË£©ÕâÑùÄã¿ÉÒÔ°ÑÊý¾Ýµ¼³öµ½±¾µØ£¬ËäÈ»¿ÉÄÜ·þÎñÆ÷ÀëÄãºÜÔ¶¡£ÄãͬÑù¿ÉÒÔ°ÑdmpÎļþ´Ó±¾µØµ¼Èëµ½Ô¶´¦µÄÊý¾Ý¿â·þÎñÆ÷ÖС£ÀûÓÃÕâ¸ö¹¦ÄÜÄã¿ÉÒÔ¹¹½¨Á¢Á½¸öÏàͬµÄÊý¾Ý¿â£ºÒ»¸öÓÃÀ´²âÊÔ£¬Ò»¸öÓÃÀ´ÕýʽʹÓá£
Ö´Ðл·¾³£º¿ÉÒÔÔÚSQLPLUS.EXE»òÕßDOS£¨ÃüÁîÐУ©ÖÐÖ´ÐУ¬DOSÖпÉÒÔÖ´ÐÐʱÓÉÓÚ ÔÚoracle 8i Öа²×°Ä¿Â¼\$ora10g\BIN±»ÉèÖÃΪȫ¾Ö·¾¶£¬¸ÃĿ¼ÏÂÓÐEXP.EXEÓëIMP.EXEÎļþ±»ÓÃÀ´Ö´Ðе¼Èëµ¼³ö¡£oracleÓÃjava±àд£¬ÎÒÏëSQLPLUS.EXE¡¢EXP.EXE¡¢IMP.EXEÕâÁ©¸öÎļþÊDZ»°ü×°ºóµÄÀàÎļþ¡£SQLPLUS.EXEµ÷ÓÃEXP.EXE¡¢IMP.EXEËûÃÇËù°ü¹üµÄÀ࣬Íê³Éµ¼Èëµ¼³ö¹¦ÄÜ¡£
ÏÂÃæ½éÉܵÄÊǵ¼Èëµ¼³öµÄʵÀý£¬Ïòµ¼Èëµ¼³ö¿´ÊµÀý»ù±¾ÉϾͿÉÒÔÍê³É£¬ÒòΪµ¼Èëµ¼³öºÜ¼òµ¥¡£
n Êý¾Ýµ¼³ö£º
1¡¢½«Êý¾Ý¿âTESTÍêÈ«µ¼³ö,Óû§Ãûsystem ÃÜÂëmanager µ¼³öµ½ D:\daochu.dmpÖÐ
exp system/manager@TEST file=d:\daochu.dmp full=y
2¡¢½«Êý¾Ý¿âÖÐsystemÓû§ÓësysÓû§µÄ±íµ¼³ö
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
3¡¢½«Êý¾Ý¿âÖеıítable1 ¡¢table2µ¼³ö
exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)
4¡¢½«Êý¾Ý¿âÖеıítable1ÖеÄ×Ö¶Îfiled1ÒÔ"00"´òÍ·µÄÊý¾Ýµ¼³ö
exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"
ÉÏÃæÊdz£Óõĵ¼³ö£¬¶ÔÓÚѹËõÎÒ²»Ì«ÔÚÒ⣬ÓÃwinzip°ÑdmpÎļþ¿ÉÒԺܺõÄѹËõ¡£²»¹ýÔÚÉÏÃæÃüÁîºóÃæ ¼ÓÉÏ compress=y ¾Í¿ÉÒÔÁË¡£
n Êý¾ÝµÄµ¼È룺
1¡¢½«D:\daochu.dmp ÖеÄÊý¾Ýµ¼ÈëTESTÊý¾Ý¿âÖС£
imp system/manager@TEST file=d:\daochu.dmp
ÉÏÃæ¿ÉÄÜÓеãÎÊÌ⣬ÒòΪÓеıíÒѾ´æÔÚ£¬È»ºóËü¾Í±¨´í£¬¶Ô¸Ã±í¾Í²»½øÐе¼Èë¡£ÔÚºóÃæ¼ÓÉÏ ignore=y
Ïà¹ØÎĵµ£º
²é¿´sessionµÈ´ýʼþ£º
select sid,event from v$session_wait where event not like 'rdbms%' and event not like 'SQL*Net message%';
°´pid²é¿´ÕýÔÚÖ´ÐеijÌÐò£º
select sid,program from v$session b where paddr in (selec ......
ORACLEÅàѵ(OCA)ÈÏÖ¤½éÉÜ
Oracle10g Certified Associate (OCA) Oracle ÈÏ֤רԱ¡£
¿¼ÊԳɼ¨Í¨¹ýÄÜ»ñµÃOracle¹«Ë¾ÎªÄú°ä·¢µÄÈ«ÇòÈÏÖ¤µÄÓ¢ÎÄOCAÖ¤Êé¡£OCAÓÉOracle¹«Ë¾³öÌâ¡£
¸ÃÖ¤Êé¿É×÷Ϊ¸÷ÆóÊÂÒµµ¥Î»Êý¾Ý¿â¹ÜÀíÈËÔ±ÉϸڵÄÒÀ¾Ý¡£
Ä¿Ç°ÒѳÉΪ¸÷IT¹«Ë¾¼°Ïà¹ØÆóÒµÕùÏྺƸµÄÊý¾Ý¿â¹ÜÀíά»¤È˲ţ¬ÊÇÊý¾Ý¿âά»¤¹ÜÀíÈËÔ ......
ÒÔϵÄÎÄÕÂÖ÷Òª½²ÊöµÄÊÇOracleɾ³ýÓû§±íµÄʵ¼Ê²Ù×÷·½°¸£¬±¾ÎÄÖ÷ÒªÊÇÒÔÏà¹Øʵ¼ÊÓ¦ÓôúÂëµÄ·½Ê½À´Òý³öÆäʵ¼ÊµÄ²Ù×÷²½Ö裬ÒÔϾÍÊÇÎÄÕµľßÌåÄÚÈÝÃèÊö£¬ÍûÄãÔÚä¯ÀÀÖ®ºó»áÓÐËùÊÕ»ñ¡£
1.
select 'Drop table '||table_name||';' from all_tables where owner='Ҫɾ³ýµÄÓû§Ãû£¨×¢ÒâÒª´óд£©';
2.Oracleɾ³ýÓû§±í ÒÔÓ ......