使用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

 

posted @ 2013-03-22 17:36  ArcerZhang  阅读(424)  评论(0编辑  收藏  举报