1、plsql工具導出dmp文件sql
工具—>導出表 選擇要導出的表 如圖所示
數據庫
2、使用命令方式oracle
查看本地oracle客戶端配置tnsname.ora配置信息文件工具
#=uc/uc 本機數據庫文件== LC_UC= (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = UCDEV) ) )
其中:LC_UC爲數據庫名,HOST爲IP地址測試
2.測試tns是否可用 tnsping LC_UC(tnsname.ora配置信息顯示錶明可用)spa
3.命令導入導出數據code
a. 將數據庫LC_UC徹底導出,用戶名uc 密碼uc 導出到D:\uc .dmp中xml
exp uc/uc @LC_UC file=d:\uc.dmp full=y
b. 將數據庫中system用戶與sys用戶的表導出table
exp system/uc @LC_UC file=d:\uc.dmp owner=(system,sys)
c. 將數據庫中的表table1 、table2導出class
exp system/uc@LC_UC file=d:\uc.dmp tables=(table1,table2)
d 將數據庫中的表table1中的字段filed1以"00"打頭的數據導出
exp system/uc@LC_UC file=d:\uc.dmp tables=(table1) query=\" where filed1 like '00%'\"