导åºä¸ä¸ªå®æ´æ°æ®åº
ããexp system/manager file=bible_db log=dible_db full=y
导åºæ°æ®åºå®ä¹èä¸å¯¼åºæ°æ®
ããexp system/manager file=bible_db log=dible_db full=y rows=n
导åºä¸ä¸ªæä¸ç»æå®ç¨æ·æå±çå
¨é¨è¡¨ãç´¢å¼åå
¶ä»å¯¹è±¡
ããexp system/manager file=seapark log=seapark owner=seapark
ããexp system/manager file=seapark log=seapark owner=(seapark,amy,amyc,harold)
ãã注æï¼å¨å¯¼åºç¨æ·æ¶ï¼å°½ç®¡å·²ç»å¾å°äºè¿ä¸ªç¨æ·çææ对象ï¼ä½æ¯è¿æ¯ä¸è½å¾å°è¿äºå¯¹è±¡å¼ç¨çä»»ä½åä¹è¯ã解å³æ¹æ³æ¯ç¨ä»¥ä¸çSQL*Pluså½ä»¤å建ä¸ä¸ªèæ¬æ件ï¼è¿è¡è¿ä¸ªèæ¬æ件å¯ä»¥è·å¾ä¸ä¸ªé建seaparkæå±å¯¹è±¡çå
¨é¨å
Œ
±åä¹è¯çå¯æ§è¡èæ¬ï¼ç¶åå¨ç®æ æ°æ®åºä¸è¿è¡è¯¥èæ¬å°±å¯é建åä¹è¯äºã
ããSET LINESIZE 132
ããSET PAGESIZE 0
ããSET TRIMSPOOL ON
ããSPOOL c:\seapark.syn
ããSELECT 'Create public synonym '||synonym_name
ãã||' for '||table_owner||'.'||table_name||';'
ããFROM dba_synonyms
ããWHERE table_owner = 'SEAPARK' AND owner = 'PUBLIC';
ããSPOOL OFF
导åºä¸ä¸ªæå¤ä¸ªæå®è¡¨
ããexp seapark/seapark file=tank log=tank tables=tank
ããexp system/manager file=tank log=tank tables=seapark.tank
ããexp system/manager file=tank log=tank tables=(seapark.tank,amy.artist)
估计导åºæ件ç大å°
ããå
¨é¨è¡¨æ»åèæ°ï¼
ããSELECT sum(bytes)
ããFROM dba_segments
ããWHERE segment_type = 'TABLE';
ããseaparkç¨æ·æå±è¡¨çæ»åèæ°ï¼
ããSELECT sum(bytes)
ããFROM dba_segments
ããWHERE owner = 'SEAPARK'
ããAND segment_type = 'TABLE';
ããseaparkç¨æ·ä¸çaquatic_animal表çåèæ°ï¼
ããSELECT sum(bytes)
ããFROM dba_segments
ããWHERE owner = 'SEAPARK'
ããAND segment_type = 'TABLE'
ããAND segment_name = 'AQUATIC_ANIMAL';
导åºè¡¨æ°æ®çåé(oracle8i以ä¸)
ããNTç³»ç»ï¼
ããexp system/manager query='Where salad_type='FRUIT'' tables=amy.salad_type
ããfile=fruit log=fruit
ããUNIXç³»ç»ï¼
ããexp system/manager query=\"Where salad_type=\'FRUIT\'\" tables=amy.salad_type
ããfile=fruit log=fruit
ç¨å¤ä¸ªæ件åå²ä¸ä¸ªå¯¼åºæ件
ããexp system/manager
ããfile=(paycheck_1,paycheck_2,paycheck_3,paycheck_4)
ããlog=paycheck, filesize=1G tables=hr.paycheck
使ç¨åæ°æ件
ããexp system/manager parfile=bible_tables.par
ããbible_tables.paråæ°æ件ï¼
ãã#Export the sample tables used for the Oracle8i Database Administrator's Bible.
ããfile=bible_tables
ããlog=bible_tables
ããtables=(
ããamy.artist
ããamy.books
ããseapark.checkup
ããseapark.items
ãã)
å¢é导åº
ããâå®å
¨âå¢é导åº(complete)ï¼å³å¤ä»½æ´ä¸ªæ°æ®åº
ããexp system/manager inctype=complete file=990702.dmp
ããâå¢éåâå¢é导åº(incremental)ï¼å³å¤ä»½ä¸ä¸æ¬¡å¤ä»½åæ¹åçæ°æ®
ããexp system/manager inctype=incremental file=990702.dmp
ããâ累计åâå¢é导åº(cumulative)ï¼å³å¤ä»½ä¸ä¸æ¬¡âå®å
¨â导åºä¹åæ¹åçæ°æ®
ããexp system/manager inctype=cumulative file=990702.dmp
ãã导åºæ个ç¨æ·ææ¥æçæ°æ®åºè¡¨ï¼exp ç¨æ·å/å¯ç file=åæ¾ä½ç½®\åæ¾æ件å.dmp log=åæ¾ä½ç½®\åæ¾æ件å.log owner=æ¥æè
ç¨æ·å
温馨提示:内容为网友见解,仅供参考