ORA-01765: specifying owner's name of the table is not allowed

ORA-01765: specifying owner’s name of the table is not allowed

修改表名时,抛ORA-01765错误,因为在rename时是不需要指定table的owner,如下example:

  • 错误语法:
    SQL> rename whcnweb.CWA3010 to CWA3010_bak;
    rename whcnweb.CWA3010 to CWA3010_bak
    ORA-01765: specifying owner’s name of the table is not allowed

    在这里插入图片描述
  • 正确语法:
    SQL> rename CWA3010 to CWA3010_bak;
发布了22 篇原创文章 · 获赞 35 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/sinat_27431397/article/details/88531324