當前位置:首頁 » 操作系統 » exporacle導出資料庫

exporacle導出資料庫

發布時間: 2022-05-02 11:51:13

❶ 如何用exp導出oracle資料庫壓縮

1. 它是一個可執行的文件 存放目錄/ORACLE_HOME/bin
exp導出工具將資料庫中數據備份壓縮成一個二進制系統文件. 它有三種模式:
a. 用戶模式:導出用戶所有對象以及對象中的數據;
b. 表模式: 導出用戶所有表或者指定的表;
c. 整個資料庫: 導出資料庫中所有對象。
2. 導出工具exp互動式命令行方式的使用的例子
$exp test/test123@appd
Enter array fetch buffer size: 4096 > 回車
Export file: expdat.dmp > m.dmp 生成導出的文件名
(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U > 3
Export table data (yes/no): yes > 回車wQeLin
Compress extents (yes/no): yes > 回車

❷ oracle exp命令如何批量導出在資料庫中開頭為XX的所有表

oracle exp命令批量導出資料庫的方法:
1 假如資料庫名為:TEST 、,用戶名system 密碼manager 導出到D:/chu.dmp中
exp system/manager@TEST file=d:/chu.dmp full=y
如果要導出指定的表,方法如下:
假如要導出資料庫中的表'CHA%'導出
exp aichannel/aichannel@TESTDB2 file= d:/data/newsmgnt.dmp owner=(PRO) tables=(PRO.CHA%
)

❸ oracle中exp命令怎樣使用

exp三種用法:

1、exp 導出某個用戶全部資料庫

格式:exp ywxy/ywxy@ORCL file=d:/chu1.dmp full=y;

ywxy/ywxy@ORCL 是用戶名/密碼@資料庫名

file=d:/chu1.dmp 是導出的路徑

full=y 是導出全庫

2、exp 導出某個用戶的某個庫

格式:exp ywxy/ywxy@ORCL file=d:/chu1.dmp owner=system;

ywxy/ywxy@ORCL 是用戶名/密碼@資料庫名

file=d:/chu1.dmp 是導出的路徑

owner=system 是要導出的庫

3、exp 導出某個用戶的某個表

格式:exp ywxy/ywxy@ORCL file=d:/chu1.dmp tables=C_ZX_QYJC;

ywxy/ywxy@ORCL 是用戶名/密碼@資料庫名

file=d:/chu1.dmp 是導出的路徑

tables=C_ZX_QYJC 是導出的表名字,多個表名則 (table1,table2)形式

(3)exporacle導出資料庫擴展閱讀:

常用選項:

1、FULL,用於導出整個資料庫,在ROWS=N一起使用時,可以導出整個資料庫的結構。

2、OWNER和TABLE,這兩個選項用於定義EXP的對象。OWNER定義導出指定用戶的對象,TABLE指定EXP的table名稱。

⒊BUFFER和FEEDBACK,在導出比較多的數據時,考慮設置這兩個參數。

⒋FILE和LOG,這兩個參數分別指定備份的DMP名稱和LOG名稱,包括文件名和目錄。

⒌COMPRESS參數不壓縮導出數據的內容。用來控制導出對象的storage語句如何產生。默認值為Y,使用默認值,對象的存儲語句的init extent等於當前導出對象的extent的總和。推薦使用COMPRESS=N。

⒍ FILESIZE該選項在8i中可用。如果導出的dmp文件過大時,最好使用FILESIZE參數,限制文件大小不要超過2G。

❹ oracle導出資料庫

oracle導出資料庫用exp語句。

步驟:

一、win鍵+R鍵,輸入cmd,打開命令提示符。

二、然後根據實際情況選擇不同的exp語句。


exp語句詳解:

1. 獲取幫助

exp help=y

2. 導出一個完整資料庫

exp system/manager file=bible_db log=dible_db full=y

3. 導出資料庫定義而不導出數據

exp system/manager file=bible_db log=dible_db full=y rows=n

4. 導出一個或一組指定用戶所屬的全部表、索引和其他對象

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

5. 導出一個或多個指定表

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)

6. 估計導出文件的大小

全部表總位元組數:

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';

7. 導出表數據的子集(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

8. 用多個文件分割一個導出文件

exp system/manager

file=(paycheck_1,paycheck_2,paycheck_3,paycheck_4)

log=paycheck, filesize=1G tables=hr.paycheck

9. 使用參數文件

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

)

10. 增量導出

「完全」增量導出(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

❺ 怎麼導出oracle整個資料庫

1
將資料庫TEST完全導出,用戶名system
密碼manager
導出到D:\chu.dmp中
exp
system/manager@TEST
file=d:\chu.dmp
full=y
2
將資料庫中system用戶與sys用戶的表導出
exp
system/manager@TEST
file=d:\chu.dmp
owner=(system,sys)
3
將資料庫中的表table1
、table2導出
exp
system/manager@TEST
file=d:\chu.dmp
tables=(table1,table2)
4
將資料庫中的表table1中的欄位filed1以"00"打頭的數據導出
exp
system/manager@TEST
file=d:\chu.dmp
tables=(table1)
query=\"
where
filed1
like
'00%'\"
上面是常用的導出,對於壓縮我不太在意,用winzip把dmp文件可以很好的壓縮。
不過在上面命令後面
加上
compress=y
就可以了

❻ oracle exp怎樣導出低版本的資料庫

oracle exp命令批量導出資料庫的方法:
1 假如資料庫名為:TEST 、,用戶名system 密碼manager 導出到D:/chu.dmp中
exp system/manager@TEST file=d:/chu.dmp full=y
如果要導出指定的表,方法如下:
假如要導出資料庫中的表'CHA%'導出
exp aichannel/aichannel@TESTDB2 file= d:/data/newsmgnt.dmp owner=(PRO) tables=(PRO.CHA%
)

熱點內容
雷霆一擊伺服器搭建 發布:2024-10-06 03:58:14 瀏覽:498
導演腳本 發布:2024-10-06 03:37:34 瀏覽:564
施耐德有密碼程序如何打開 發布:2024-10-06 03:37:00 瀏覽:891
解壓縮文件修復 發布:2024-10-06 03:31:17 瀏覽:703
如何設置休眠時不需要開機密碼 發布:2024-10-06 03:03:25 瀏覽:231
密碼工作三個事關的內容是什麼 發布:2024-10-06 02:39:44 瀏覽:424
21款昂科威哪個配置好 發布:2024-10-06 02:20:39 瀏覽:836
拆裝空調壓縮機 發布:2024-10-06 01:59:47 瀏覽:420
dl演算法 發布:2024-10-06 01:59:44 瀏覽:846
寵物商店java 發布:2024-10-06 01:59:43 瀏覽:538