我无法从其他用户导入 oracle 数据库
I can not import oracle database from another user
我从用户 c##cuongnguyen 导出了 oracle 数据库。导出后,我有转储文件,所以我想将此文件导入另一个用户:mbbank
所以我运行这个语法:
**
imp mbbank/xxxxxx FROMUSER=c##cuongnguyen TOUSER=mbbank
file=C:\oracle\export\cuongnguyen-user.DMP;
**
我收到回复了,是关于性格的。
Import: Release 12.2.0.1.0 - Production on Wed Apr 22 19:30:22 2020
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights
reserved.
Connected to: Oracle Database 12c Enterprise Edition Release
12.2.0.1.0 - 64bit Production
Export file created by EXPORT:V12.02.00 via conventional path
Warning: the objects were exported by C##CUONGNGUYEN, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR
character set import server uses AL32UTF8 character set (possible
charset conversion) IMP-00085: multiple input files specified for
unbounded export file IMP-00000: Import terminated unsuccessfully
如果你有什么想法,请告诉我,非常感谢
你试过运行dmp文件所在目录下的命令吗?或者甚至将目录路径放在 ''?
之间
cd C:\oracle\export
imp mbbank/xxxxxx FROMUSER=c##cuongnguyen TOUSER=mbbank file=cuongnguyen-user.DMP
或
imp mbbank/xxxxxx FROMUSER=c##cuongnguyen TOUSER=mbbank file='C:\oracle\export\cuongnguyen-user.DMP'
仅供您了解,oracle 有一个更加改进的数据库导出和导入工具:expdp
和 impdp
。您可以按照自己的方式进行:
- 正在数据库中创建导出目录:
$ORACLE_HOME/bin/sqlplus '/ as sysdba'
SQL> create or replace directory export as 'C:\oracle\export';
- 正在导出架构:
expdp mbbank/xxxxxx dumpfile=cuongnguyen-user.DMP directory=export schemas=c##cuongnguyen
- 终于以新用户身份导入:
impdp mbbank/xxxxxx dumpfile=cuongnguyen-user.DMP directory=export schemas=c##cuongnguyen remap_schema=c##cuongnguyen:mbbank
我从用户 c##cuongnguyen 导出了 oracle 数据库。导出后,我有转储文件,所以我想将此文件导入另一个用户:mbbank
所以我运行这个语法:
**
imp mbbank/xxxxxx FROMUSER=c##cuongnguyen TOUSER=mbbank file=C:\oracle\export\cuongnguyen-user.DMP;
**
我收到回复了,是关于性格的。
Import: Release 12.2.0.1.0 - Production on Wed Apr 22 19:30:22 2020
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
Export file created by EXPORT:V12.02.00 via conventional path
Warning: the objects were exported by C##CUONGNGUYEN, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set import server uses AL32UTF8 character set (possible charset conversion) IMP-00085: multiple input files specified for unbounded export file IMP-00000: Import terminated unsuccessfully
如果你有什么想法,请告诉我,非常感谢
你试过运行dmp文件所在目录下的命令吗?或者甚至将目录路径放在 ''?
之间cd C:\oracle\export
imp mbbank/xxxxxx FROMUSER=c##cuongnguyen TOUSER=mbbank file=cuongnguyen-user.DMP
或
imp mbbank/xxxxxx FROMUSER=c##cuongnguyen TOUSER=mbbank file='C:\oracle\export\cuongnguyen-user.DMP'
仅供您了解,oracle 有一个更加改进的数据库导出和导入工具:expdp
和 impdp
。您可以按照自己的方式进行:
- 正在数据库中创建导出目录:
$ORACLE_HOME/bin/sqlplus '/ as sysdba' SQL> create or replace directory export as 'C:\oracle\export';
- 正在导出架构:
expdp mbbank/xxxxxx dumpfile=cuongnguyen-user.DMP directory=export schemas=c##cuongnguyen
- 终于以新用户身份导入:
impdp mbbank/xxxxxx dumpfile=cuongnguyen-user.DMP directory=export schemas=c##cuongnguyen remap_schema=c##cuongnguyen:mbbank