ORA-01765
尝试通过SYS重命名表时看到错误 ORA-01765 。
SQL> conn / as sysdba
Connected.
SQL> rename hr.employees to hr.employees_bak;
rename hr.employees to hr.employees_bak
*
ERROR at line 1:
ORA-01765: specifying owner's name of the table is not allowedORA-01765 意味着您不能指定架构所有者来限定对象,即使您以所有者身份登录也是不允许的。
SQL> conn hr/hr@orcl
Connected.
SQL> rename hr.employees to hr.employees_bak;
rename hr.employees to hr.employees_bak
*
ERROR at line 1:
ORA-01765: specifying owner's name of the table is not allowed解决方案
要解决 ORA- 01765,您应该以模式所有者身份连接到数据库,然后重命名表而不限定任何模式名称。
SQL> show user;
USER is "HR"
SQL> rename employees to employees_bak;
Table renamed.使用RENAME语句有更多限制。
原文标题:How to Resolve ORA-01765: specifying owner's name of the table is not allowed
原文作者:Ed Chen
原文链接:https://logic.edchen.org/how-to-resolve-ora-01765-specifying-owners-name-of-the-table-is-not-allowed/
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




