zoukankan      html  css  js  c++  java
  • oracle数据泵按用户导出导入数据库

    按用户导出
    
    G:appAdministratorproduct11.2.0dbhome_1BIN>  expdp system/oracle@localhost:1521/orcl schemas=taskdb dumpfile=taskdb.dmp DIRECTORY=dump_dir
    
    按用户导入
    
    1)新用户不存在: G:appAdministratorproduct11.2.0dbhome_1BIN> impdp system/oracle@localhost:1521/orcl directory=dump_dir dumpfile=taskDB.dmp REMAP_SCHEMA=taskDB:qianzhang 
    
    2)新用户存在: G:appAdministratorproduct11.2.0dbhome_1BIN> impdp qianzhang/qianzhang@localhost:1521/orcl directory=dump_dir dumpfile=taskDB.dmp REMAP_SCHEMA=taskDB:qianzhang 
    
    备注: 
    1、expdp 和impdp 需要是执行在服务器上的cmd窗口中的,directory=dump_dir 是建立在服务器上的目录,
    可以用语句“select * from dba_directories”查询,   如果没有建立,则需要登录sqlplus,用语句“SQL> create directory dump_dir as 'd:dump';”进行创建 2、taskDB是原用户,qianzhang是新的用户,qianzhang不存在时会自动建立,其权限和使用的表空间与taskDB相同,但此时用qianzhang无法登录,必须修改qianzhang的密码

      

  • 相关阅读:
    13. Docker容器内不能联网的6种解决方案
    12. Docker修改默认存储位置
    11. Docker为容器分配指定物理IP地址
    10.修改sysctl.conf提示没权限
    9. 使用ssh登陆Docker
    8. Docker
    7. Docker
    6. Docker
    Python生成器&迭代器
    Python装饰器
  • 原文地址:https://www.cnblogs.com/shurun/p/14581010.html
Copyright © 2011-2022 走看看