首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ORA-65169:试图复制文件时遇到的错误

ORA-65169:试图复制文件时遇到的错误
EN

Stack Overflow用户
提问于 2020-04-02 10:02:57
回答 1查看 2.4K关注 0票数 0

由于克隆PDB数据库,我试图在两个ora19数据库之间创建ora19。

这两个数据库都创建了如下用户:

代码语言:javascript
复制
CREATE USER c##remote_clone_user IDENTIFIED BY remote_clone_user CONTAINER=ALL;
GRANT CREATE SESSION, CREATE PLUGGABLE DATABASE TO c##remote_clone_user CONTAINER=ALL;

我想将PDB从DB2复制到DB1,所以我在DB2上关闭了想要的PDB,并打开阅读:

代码语言:javascript
复制
alter pluggable database testpdb close;
alter pluggable database testpdb open read only;

从DB1创建了clone_link并试图复制PDB (tns testpdb连接被设置为DB2)

代码语言:javascript
复制
--db link to database we want to copy
create database link clone_link
    connect to C##remote_clone_user identified by remote_clone_user using 'testpdb';

-- clone from DB2 to DB1  
create pluggable database testpdb from testpdb@clone_link
    file_name_convert = ('/u01/app/oracle/oradata/', '/testpdb/');

但我犯了错误:

代码语言:javascript
复制
Error starting at line : 14 in command -
create pluggable database testpdb from testpdb@clone_link
    file_name_convert = ('/u01/app/oracle/oradata/', '/testpdb/')
Error report -
ORA-65169: error encountered while attempting to copy file /u01/app/oracle/oradata/testpdb/testpdb_index.dbf 
ORA-19504: failed to create file "/testpdb/testpdb/testpdb_index.dbf"
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 13: Permission denied
Additional information: 3
65169. 00000 -  "error encountered while attempting to copy file %s "
*Cause:    An error was encountered while attempting to copy the file
           while creating a pluggable database.
*Action:   Check additional error messages for the cause of the failure to
           copy the file, and resolve the issue accordingly.

在警报日志中,我只看到:

代码语言:javascript
复制
Undo Create of Pluggable Database TESTPDB with pdb id - 7.
**************************************************************
ORA-65169 signalled during: create pluggable database testpdb from testpdb@clone_link
    file_name_convert = ('/u01/app/oracle/oradata/', '/testpdb/')...

我不确定需要设置哪些权限。

EN

回答 1

Stack Overflow用户

发布于 2022-02-08 20:31:06

它在国开行为我工作

代码语言:javascript
复制
alter system set "_exadata_feature_on" =true scope=spfile;
shutdown immediate;
startup;
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60988974

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档