简体   繁体   English

使用 oracle expdp 导出模式

[英]export schema using oracle expdp

I use this tutorial to export one schema into some directory.我使用本教程将一个模式导出到某个目录中。 I have created a directory and granted the user as follows:我创建了一个目录并按如下方式授予用户:

CREATE DIRECTORY foo as '/data';创建目录 foo 为 '/data';

GRANT READ, WRITE ON DIRECTORY foo TO Scott;授予读取,写入目录 foo 给 Scott;

This works fine.Now when I try to export some schema as follow:这工作正常。现在当我尝试导出一些架构如下:

EXPDP SCOTT7TIGER@mysip schemas=schema_to_be_exported directory=dbdir dumpfile=exp.dmp logfile=log.log EXPDP SCOTT7TIGER@mysip schemas=schema_to_be_exported directory=dbdir dumpfile=exp.dmp logfile=log.log

it prints the following error to me:它向我打印以下错误:

ORA-31631: privileges are required
ORA-39109: unprivileged users my not poerate upon other users' schemas.

你需要EXP_FULL_DATABASE从其他模式出口和IMP_FULL_DATABASE导入到其他模式(包括SCHEMA_REMAP)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM