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

ORACLE EXPDP/IMPDP


ORACLE EXPDP/IMPDP
2010-01-22 17:07
µ÷ÓÃEXPDP
ʹÓÃEXPDP¹¤¾ßʱ,Æäת´¢ÎļþÖ»Äܱ»´æ·ÅÔÚDIRECTORY¶ÔÏó¶ÔÓ¦µÄOSĿ¼ÖÐ,¶ø
²»ÄÜÖ±½ÓÖ¸¶¨×ª´¢ÎļþËùÔÚµÄOSĿ¼.Òò´Ë,ʹÓÃEXPDP¹¤¾ßʱ,±ØÐëÊ×ÏȽ¨Á¢DIRECTORY¶ÔÏó.²¢ÇÒÐèҪΪÊý¾Ý¿âÓû§ÊÚÓèʹÓÃ
DIRECTORY¶ÔÏóȨÏÞ.
CREATE DIRECTORY dump dir AS ‘DUMP’;
GRANT READ, WIRTE ON DIRECTORY dump_dir TO
scott;
1,µ¼³ö±í
Expdp scott/tiger DIRECTORY=dump_dir
DUMPFILE=tab.dmp TABLES=dept,emp
2,µ¼³ö·½°¸
Expdp scott/tiger DIRECTORY=dump_dir
DUMPFILE=schema.dmp
SCHEMAS=system,scott
3.µ¼³ö±í¿Õ¼ä
Expdp system/manager DIRECTORY=dump_dir
DUMPFILE=tablespace.dmp
TABLESPACES=user01,user02
4,µ¼³öÊý¾Ý¿â
Expdp system/manager DIRECTORY=dump_dir
DUMPFILE=full.dmp FULL=Y
ʹÓÃIMPDP
IMPDPÃüÁîÐÐÑ¡ÏîÓëEXPDPÓкܶàÏàͬµÄ,²»Í¬µÄÓÐ:
1,REMAP_DATAFILE
¸ÃÑ¡ÏîÓÃÓÚ½«Ô´Êý¾ÝÎļþÃûת±äΪĿ±êÊý¾ÝÎļþÃû,ÔÚ²»Í¬Æ½Ì¨Ö®¼ä°áÒƱí¿Õ¼äʱ¿ÉÄÜÐèÒª¸ÃÑ¡
Ïî.
REMAP_DATAFIEL=source_datafie:target_datafile
2,REMAP_SCHEMA
¸ÃÑ¡ÏîÓÃÓÚ½«Ô´·½°¸µÄËùÓжÔÏó×°Ôص½Ä¿±ê·½°¸ÖÐ.
REMAP_SCHEMA=source_schema:target_schema
3,REMAP_TABLESPACE
½«Ô´±í¿Õ¼äµÄËùÓжÔÏóµ¼È뵽Ŀ±ê±í¿Õ¼äÖÐ
REMAP_TABLESPACE=source_tablespace:target:tablespace
4.REUSE_DATAFILES
¸ÃÑ¡ÏîÖ¸¶¨½¨Á¢±í¿Õ¼äʱÊÇ·ñ¸²¸ÇÒÑ´æÔÚµÄÊý¾ÝÎļþ.ĬÈÏΪN
REUSE_DATAFIELS={Y | N}
5.SKIP_UNUSABLE_INDEXES
Ö¸¶¨µ¼ÈëÊÇÊÇ·ñÌø¹ý²»¿ÉʹÓõÄË÷Òý,ĬÈÏΪN
6,SQLFILE
Ö¸¶¨½«µ¼ÈëÒªÖ¸¶¨µÄË÷ÒýDDL²Ù×÷дÈëµ½SQL½Å±¾ÖÐ
SQLFILE=[directory_object:]file_name
Impdp scott/tiger DIRECTORY=dump
DUMPFILE=tab.dmp SQLFILE=a.sql
7.STREAMS_CONFIGURATION
Ö¸¶¨ÊÇ·ñµ¼ÈëÁ÷ÔªÊý¾Ý(Stream Matadata),ĬÈÏֵΪY.
8,TABLE_EXISTS_ACTION
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨µ±±íÒѾ­´æÔÚʱµ¼Èë×÷ÒµÒªÖ´ÐеIJÙ×÷,ĬÈÏΪSKIP
TABBLE_EXISTS_ACTION={SKIP | APPEND |
TRUNCATE | FRPLACE }
µ±ÉèÖøÃÑ¡ÏîΪSKIPʱ,µ¼Èë×÷Òµ»áÌø¹ýÒÑ´æÔÚ±í´¦ÀíÏÂÒ»¸ö¶ÔÏó;µ±ÉèÖÃΪAPPEND
ʱ,»á×·¼ÓÊý¾Ý,ΪTRUNCATEʱ,µ¼Èë×÷Òµ»á½Ø¶Ï±í,È»ºóΪÆä×·¼ÓÐÂÊý¾Ý;µ±ÉèÖÃΪREPLACEʱ,µ¼Èë×÷Òµ»áɾ³ýÒÑ´æÔÚ±í,Öؽ¨±í²¡×·¼ÓÊý¾Ý,
×¢Òâ,TRUNCATEÑ¡Ïî²»ÊÊÓÃÓë´Ø±íºÍNETWORK_LINKÑ¡Ïî
9.TRANSFORM
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨ÊÇ·ñÐ޸Ľ¨Á¢¶ÔÏóµÄDDLÓï¾


Ïà¹ØÎĵµ£º

oracle clob ºÍblobÎÊÌâµÄ½â¾ö

oracle clob ºÍblobÎÊÌâµÄ½â¾ö
 
ÕûÀíÁËoracle clob ºÍblobÎÊÌâµÄ½â¾ö°ì·¨£º
1£º½¨ÒéʹÓÃoracle 10µÄojdbc14.jar,·ñÔòµ±±£´æclobµÄʱºò¿ÉÄÜ»á³öÏÖÌ×½Ó×Ö´íÎó£» 
2£ºspringÅäÖÃÈçÏ£º 
java´úÂë: 
        <bean id="sessionFact ......

OracleµÄжÔØ·½·¨

   ֮ǰ¸ø´ó¼Ò½éÉÜÁËÔÚWIN7ÉÏOracle 10gµÄ°²×°·½·¨£¬½ÓÏÂÀ´¾Í¸Ã¸ø´ó¼Ò½éÉÜËüµÄжÔØ·½·¨ÁË¡£ºÜ¶àÈ˲»¸Ò°²×°Oracle¾ÍÊǵ£ÐÄ°²×°ºó»áжÔز»¸É¾»£¬Æäʵµ±³õÎÒÒ²ÓйýÕâ¸ö¹ËÂÇ£¬ºÇºÇ¡£µ«ºóÀ´·¢ÏÖ£¬ÆäʵжÔØÊǺÜÈÝÒ×µÄÊ¡£¾Í¼¸²½¶øÒÑ£¬²»ÐžÍÇë¿´£º
 
¿ÉÒÔʹÓòúÆ·×Ô´øµÄжÔع¤¾ßȥжÔØ¡£
1£®    ......

ORACLE ´¥·¢Æ÷

oracleѧϰ±Ê¼Ç_´¥·¢Æ÷
´¥·¢Æ÷
ÊÇÌض¨Ê¼þ³öÏÖµÄʱºò£¬×Ô¶¯Ö´ÐеĴúÂë¿é¡£ÀàËÆÓÚ´æ´¢¹ý³Ì£¬µ«ÊÇÓû§²»ÄÜÖ±½Óµ÷ÓÃËûÃÇ¡£
¹¦ÄÜ£º
1¡¢ ÔÊÐí/ÏÞÖƶԱíµÄÐÞ¸Ä
2¡¢ ×Ô¶¯Éú³ÉÅÉÉúÁУ¬±ÈÈç×ÔÔö×Ö¶Î
3¡¢ Ç¿ÖÆÊý¾ÝÒ»ÖÂÐÔ
4¡¢ ÌṩÉó¼ÆºÍÈÕÖ¾¼Ç¼
5¡¢ ·ÀÖ¹ÎÞЧµÄÊÂÎñ´¦Àí
6¡¢ ÆôÓø´ÔÓµÄÒµÎñÂß¼­
¿ªÊ¼
create trigger biufe ......

oracle expdp/impdp Ó÷¨Ïê½â

Data Pump ·´Ó³ÁËÕû¸öµ¼³ö/µ¼Èë¹ý³ÌµÄÍêÈ«¸ïС£²»Ê¹Óó£¼ûµÄ SQL ÃüÁ¶øÊÇÓ¦ÓÃר
ÓàAPI£¨direct path api etc) À´ÒÔ¸ü¿ìµÃ¶àµÄËٶȼÓÔغÍжÔØÊý¾Ý¡£
1.Data Pump µ¼³ö expdp
Àý
×Ó£º
sql>create directory dpdata1 as '/u02/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ