我使用此命令创建了表表空间:-
(create tablespace epehchan datafile 'C:\oraclexe\app\oracle\oradata\XE\epehchan' size 1M autoectend on;
还使用此命令创建了用户:-
create user epehchan identified by epehchan123 default table space epehchan temporary tablespace temp;
并将所有特权赋予 epehchan。
现在我在“D:\param_bkp kp”中有 EPEHCHAN.DMP 文件,并在该文件夹中创建了目录“dump_dir”。还可以通过以下命令授予权限:-
GRANT READ, WRITE ON DIRECTORY dump_dir TO epehchan;
GRANT IMP_FULL_DATABASE TO epehchan;
我正在使用 import 命令导入转储文件:-
impdp epehchan/epehchan123 dumpfile=EPEHCHAN.DMP directory=dump_dir schemas=epehchan;
执行时出现此错误
> Import: Release 11.2.0.2.0 - Production on Thu Oct 19 11:31:20 2023
>
> Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
>
> Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
> ORA-39002: invalid operation
> ORA-39165: Schema epehchan; was not found.
如何正确导入EPEHCHAN.dmp文件。
只需从 impdp 命令末尾删除分号,因为它被视为模式名称的一部分。