您的位置:首页 > 其它

使用imp命令将a1用户的dmp数据,导入到a2用户下

2013-03-22 17:36 211 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: