实现数据导出
導出模式
模式 參數 說明 操作角色 full full 導出整個數據庫 exp_full_database schema schmas 導出一個或多個用戶模式中的數據和元數據 擁有exp_full_database角色,可以導出任何模式,否則只能導出自己的模式 table tables 導出一組特定表 擁有exp_full_database角色,可以導出任何模式的表,否則只能導出自己的模式的表 tablespace tablespaces 導出一個或多個表空間中的數據 exp_full_database transportable_tablespace transportable_tablespaces 導出表空間中對象元數據 exp_full_database案列
1 按表名導,連接用戶scott,導出scott用戶的表emp,dept,導出的文件名expdp.dmp,導出的目錄mypump
expdp scott/123 directory=mypump dumpfile=expdp.dmp tables=emp,dept;
2 按用戶導,導出scott用戶模式中的數據和元數據,導出的文件名expdp.dmp,導出的目錄mypump
expdp scott/123 directory=mypump dumpfile=expdp.dmp schemas=scott ;
3 按表空間導,導出users表空間中的數據和元數據,導出的文件名expdp.dmp,導出的目錄mypump
expdp scott/123 directory=mypump dumpfile=expdp.dmp tablespaces=users;
4 導整個數據庫
expdp scott/123 directory=mypump dumpfile=expdp.dmp full=y;
轉載于:https://www.cnblogs.com/feiZhou/p/9344232.html
總結
- 上一篇: UVA 10069 Distinct S
- 下一篇: SQL的各种连接(cross join、