zoukankan      html  css  js  c++  java
  • 使用imp命令将a1用户的dmp数据,导入到a2用户下

    1、以dba身份登录oracle,授权a2用户imp_full_database权限

    SQL> grant imp_full_database to a2;
    
    Grant succeeded.

    2、执行导入操作命令

    imp a2/a3@DB200 file=a1.dmp log=a2.log full=y 

    E:\expimp>imp a2/a3@DB200 file=a1.dmp log=a2.log full=y
    
    Import: Release 11.2.0.1.0 - Production on Fri Mar 22 17:13:27 2013
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export
    file created by EXPORT:V11.02.00 via conventional path
    Warning: the objects were exported
    by A1, not by you
    import done
    in AL32UTF8 character set and AL16UTF16 NCHAR character set
    . importing A1's objects into A2
    . . importing table "A1T1" 1 rows imported
    Import terminated successfully without warnings.

    3、以a2用户分身登录,查看导入数据情况

    E:\expimp>sqlplus a2/a3@DB200
    
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Mar 22 17:13:41 2013
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> select * from a1t1;
    
            ID NAME
    ---------- --------------------
             0 arcerzhang_a1
  • 相关阅读:
    mysql报错排查总结
    java设计模式--外观模式
    java设计模式--策略模式
    java设计模式--策略模式
    java设计模式--简单工厂
    java设计模式--简单工厂
    国外有哪些比较好的IT社区
    使用jmeter进行性能测试-Jmeter教程及技巧汇总 (转)
    Fiddler环境配置教程
    Fiddler+Jmeter+断言详细教程
  • 原文地址:https://www.cnblogs.com/arcer/p/2976045.html
Copyright © 2011-2022 走看看