【问题标题】:Amazon RDS Oracle : impdp REMAP_SCHEMAAmazon RDS 甲骨文:impdp REMAP_SCHEMA
【发布时间】:2015-03-19 00:35:44
【问题描述】:

我正在尝试使用来自the official tutorial 的说明将一些数据导入 Amazon AWS。我已成功将转储文件上传到RDS机器。

最后一步是使用impdp Oracle 实用程序进行实际导入。如果我不重新映射架构,它会很好用。但是我确实需要重新映射架构并且遇到了问题。

如果我使用REMAP_SCHEMA 选项运行impdp,我会得到:

ORA-39122: Unprivileged users may not perform REMAP_SCHEMA remappings.

谷歌搜索后,似乎启用此功能的唯一方法是:

grant imp_full_database to MY_USER;

但 RDS 拒绝这样做:

ORA-00604: error occurred at recursive SQL level 1
ORA-20997: "IMP_FULL_DATABASE" grants not allowed
ORA-06512: at "RDSADMIN.RDSADMIN", line 51
ORA-06512: at line 2

这绝对看起来像是在 RDS 级别故意强制执行的。

您知道在使用 RDS 和 impdp 时是否可以重新映射架构?

【问题讨论】:

标签: oracle amazon-web-services oracle11g amazon-rds


【解决方案1】:

亚历克斯(请参阅我的问题的评论)是对的。 Unprivileged users can perform schema remaps only if their schema is the target schema of the remap

所以我采取的步骤是:

create user MY_USER identified by ****;
grant create session, create table to MY_USER;
alter user MY_USER quota unlimited on users;
-- both read and write are needed
grant read, write on directory data_pump_dir to MY_USER;
grant execute on dbms_datapump to MY_USER;

然后:

impdp MY_USER/psswd@server DUMPFILE=file.dmp DIRECTORY=DATA_PUMP_DIR \
remap_tablespace=original_tablespace:users \
remap_schema=original_user:MY_USER

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-05
    • 2011-07-19
    • 2014-09-11
    相关资源
    最近更新 更多