使用 oracle expdp 导出模式
export schema using oracle expdp
我使用 this tutorial 将一个模式导出到某个目录中。我已经创建了一个目录并授予用户如下:
CREATE DIRECTORY foo as '/data';
GRANT READ, WRITE ON DIRECTORY foo TO Scott;
当我尝试按如下方式导出一些架构时,这 fine.Now 有效:
EXPDP SCOTT7TIGER@mysip schemas=schema_to_be_exported directory=dbdir
dumpfile=exp.dmp logfile=log.log
它向我打印了以下错误:
ORA-31631: privileges are required
ORA-39109: unprivileged users my not poerate upon other users' schemas.
您需要 EXP_FULL_DATABASE
从其他模式导出,IMP_FULL_DATABASE
导入其他模式(包括 SCHEMA_REMAP)。
我使用 this tutorial 将一个模式导出到某个目录中。我已经创建了一个目录并授予用户如下:
CREATE DIRECTORY foo as '/data';
GRANT READ, WRITE ON DIRECTORY foo TO Scott;
当我尝试按如下方式导出一些架构时,这 fine.Now 有效:
EXPDP SCOTT7TIGER@mysip schemas=schema_to_be_exported directory=dbdir dumpfile=exp.dmp logfile=log.log
它向我打印了以下错误:
ORA-31631: privileges are required
ORA-39109: unprivileged users my not poerate upon other users' schemas.
您需要 EXP_FULL_DATABASE
从其他模式导出,IMP_FULL_DATABASE
导入其他模式(包括 SCHEMA_REMAP)。