创建用户的步骤:
删除用户: drop user cms cascade;
创建表空间: create tablespace YLFW datafile
‘D:\app\xxxx\oradata\orcl\xx.dbf’ size 10M autoextend on next 1M
maxsize unlimited extent management local segment space management
auto;- 新建用户: create user cms identified by cms default tablespace YLFW
temporary tablespace temp; - 分配权限: grant dba to cms;
数据泵工具导入步骤:
- 新建directory: create directory jbyj as ‘D:\oracle\dir_dp’;
- 授权: Grant read,write on directory jbyj to cms;
- 数据泵工具导入在cmd中直接复制执行:: impdp cms/cms@orcl schemas=cms directory=jbyj dumpfile =xxx.dmp logfile=xxxx.log 注意:具体参数参考log文件而定。
执行导出 下面这句在cmd直接执行:
expdp cms/cms@orcl schemas=cms directory=jbyj dumpfile =xxxx.dmp logfile=xxxxx.log;
注意:以上牵扯到参数部分均做参考,具体路径、名称、参数等还需自行修改。
参考自:http://www.cnblogs.com/lanzi/archive/2011/01/06/1927731.html
http://blog.itpub.net/750660/viewspace-1114985/
https://www.cnblogs.com/shlcn/archive/2011/07/21/2112879.html