使用 oracle expdp 导出架构时出现目录无效错误

问题描述 投票:0回答:1

我的 Oracle 数据库(版本 19c)上有大约 5 个模式,我想使用 expdp 实用程序导出它们,并在从 my_schema 导出数据时遵循以下步骤:

  1. sqlplus / 作为 sysdba
  2. 创建目录 prf_dir 为 '/home/oracle/Export Full';
  3. 授予对目录 prf_dir 的读、写权限到 prf_schema;

4.将datapump_exp_full_database授予prf_schema;

5.退出

6.expdp prf_schema/Password1@pdb_1 DIRECTORY=prf_dir DUMPFILE=prf_schema_dump.dmp LOGFILE=prf_schema_dump.log schemas=prf_schema;

但我遇到以下错误:

ORA-39002:  invalid operation
ORA-39070: Unable to open the log file
ORA-39087: directory name prf_dir is invalid.

事前检查:

  1. 我已经使用 dba_directory 检查了有效目录,并且可以在那里看到我的目录。
  2. 我检查了路径“/home/oracle/Export Full”的权限,它是 777。
  3. 在此之前,我对另一个模式(即同一路径中的 app_schema)执行了相同的活动,为此,它按照我上面提到的步骤成功执行,但是当尝试通过仅更改模式名称来执行相同的操作时,它会抛出此错误错误。
oracle oracle-sqldeveloper database-administration
1个回答
0
投票

在我看来,它是关于目录名称中的空格

尝试将其从

Export Full
重命名为
export_full
,然后

create directory prf_dir as '/home/oracle/export_full';
© www.soinside.com 2019 - 2024. All rights reserved.