oracle exp imp ³õ̽
Êý¾Ýµ¼³ö£º
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 ½«Êý¾Ý¿âÖеıíinner_notify¡¢notify_staff_relatµ¼³ö
exp aichannel/aichannel@TESTDB2 file= d:\data\newsmgnt.dmp tables=(inner_notify,notify_staff_relat)
4 ½«Êý¾Ý¿âÖеıítable1ÖеÄ×Ö¶Îfiled1ÒÔ"00"´òÍ·µÄÊý¾Ýµ¼³ö
exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"
Êý¾ÝµÄµ¼Èë
1 ½«D:\daochu.dmp ÖеÄÊý¾Ýµ¼Èë TESTÊý¾Ý¿âÖС£
imp system/manager@TEST file=d:\daochu.dmp
imp aichannel/aichannel@HUST full=y file= d:\data\newsmgnt.dmp ignore=y
ÉÏÃæ¿ÉÄÜÓеãÎÊÌ⣬ÒòΪÓеıíÒѾ´æÔÚ£¬È»ºóËü¾Í±¨´í£¬¶Ô¸Ã±í¾Í²»½øÐе¼Èë¡£
ÔÚºóÃæ¼ÓÉÏ ignore=y ¾Í¿ÉÒÔÁË¡£
2 ½«d:\daochu.dmpÖеıítable1 µ¼Èë
imp system/manager@TEST file=d:\daochu.dmp tables=(table1)
3.´ÓÓû§Aµ½Óû§B
imp username/pwd@db_server file=d:\back.dmp fromuser =A touser =B
Ïà¹ØÎĵµ£º
ѧϰOracle DBAÒ²°ë¸ö¶àѧÆÚÁË£¬½ñÌìÃÍÈ»²Å·¢ÏÖ£¬ÔÀ´ÎÒµÄÊ黹ÊǺÜеģ¬ÉϿβÙ×÷ʱºòÒ²Ö»ÊÇÖªµÀ´ó¸ÅÔõô×ö£¬µ«ÊÇÒªÕæµÄÈ«²¿×Ô¼º×ö£¬¶ø²»È¥·Ê黹ÊÇÓÐÒ»¶¨µÄÄѶȵģ¬ËùÒÔÄØ£¬½ñÌ쿪ʼ½«DBA´ÓÍ·¸´Ï°Ò»±é£¬Í¬Ê±ÔÙ²Ù×÷Ò»±é¡£
µÚÒ»Õ£¬Ñ§µÄÊÇOracleµÄÌåϵ½á¹¹£ ......
28.2 OracleÊý¾Ý¿â·þÎñÆ÷µÄ°²×°
Óû§¿ÉÒÔͨ¹ýOracleµÄ¹Ù·½ÍøÕ¾ÏÂÔØµ½×îеÄOracleÊý¾Ý¿â²úÆ·µÄÈí¼þ°²×°°ü£¬ÔÚ°²×°Oracle 11gǰÐèÒª¼ì²éϵͳµÄÈíÓ²¼þ»·¾³ÊÇ·ñ·ûºÏ°²×°ÒªÇó¡£Oracle 11gÌṩͼÐλ¯µÄ°²×°³ÌÐò½çÃæ£¬Óû§¿ÉÒÔͨ¹ýµ¥»÷Êó±êÍê³ÉOracleµÄ°²×°¡£ ......
Æô¶¯ºÍÍ£Ö¹Êý¾Ý¿â
Àý³Ì£>ÅäÖã>Ò»°ãÐÅÏ¢ÖÐ Æô¶¯ºÍÍ£Ö¹Êý¾Ý
Í£Ö¹Êý¾Ý¿âÓ¦¸ÃÑ¡Ôñ£ºµ±ËùÓÐÊÂÎñ½áÊøÊ±¡£
Ò²¿ÉÒÔÓÃÃüÁîÆô¶¯ºÍÍ£Ö¹(ÓÃoracleÓû§µÇ½)
Æô¶¯ £º lsnrctl start //Æô¶¯ lister
sqlplus /nolog <<EO ......
hints 這個東ʹÓõĺõÄ話ºÜºÃÓá£ÔÚ½øÐÐsqlÖ´Ðйý³ÌÖУ¬ÓÉÓÚÓÐʱºòϵͳ×Ô¶¯ÓÅ»¯µÄ·½Ê½²¢²»ÊÇ×îÓŵġ£ÐèÒªÎÒÃÇÊÖ¹¤Ìí¼ÓhintÀ´Ìá¸ß²éѯЧÂÊ¡£ÔÚSQLÓï¾äÓÅ»¯¹ý³ÌÖУ¬ÎÒÃǾ³£»áÓõ½hint,ÏÖ×ܽáÒ»ÏÂÔÚSQLÓÅ»¯¹ý³ÌÖг£¼ûOracle HINTµÄÓ÷¨£º
1. /*+ALL_ROWS*/±íÃ÷¶ÔÓï¾ä¿éÑ¡Ôñ»ùÓÚ¿ªÏúµÄÓÅ»¯·½·¨,²¢»ñ ......
ORACLEÊý¾Ý¿âÓÐÁ½ÖÖÔËÐз½Ê½£ºÒ»Êǹ鵵·½Ê½(ARCHIVELOG)£¬¹éµµ·½Ê½µÄÄ¿µÄÊǵ±Êý¾Ý¿â·¢Éú¹ÊÕÏʱ×î´óÏ޶Ȼָ´ËùÓÐÒÑÌá½»µÄÊÂÎï;¶þÊDz»¹éµµ·½Ê½(NOARCHIVELOG)£¬»Ö¸´Êý¾Ý¿âµ½×î½üµÄ»ØÊյ㡣ÎÒÃǸù¾ÝÊý¾Ý¿âµÄ¸ß¿ÉÓÃÐÔºÍÓû§¿É³ÐÊܶªÊ§µÄ¹¤×÷Á¿µÄ¶àÉÙ£¬°ÑÎÒÃÇÕýʽÔËÐеÄÊý¾Ý¿â²ÉÓÃΪ¹éµµ·½Ê½;ÄÇЩÕýÔÚ¿ª·¢ºÍµ÷ÊÔµÄÊý¾Ý¿â²ÉÓò»¹é ......