ITPub博客

首页 > Linux操作系统 > Linux操作系统 > truncate对表的同义词无效

truncate对表的同义词无效

原创 Linux操作系统 作者:to_be_dba 时间:2013-03-12 21:00:20 0 删除 编辑

SQL> conn scott/scott@test;
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
Connected as scott

SQL> drop table t;

Table dropped

SQL> create table t as select * from emp;

Table created

SQL> create user terry identified by terry;

User created

SQL> grant connect,dba to terry;

Grant succeeded

SQL> conn terry/terry@test;
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
Connected as terry

SQL> create synonym t for scott.t;

Synonym created

SQL> truncate table t;

truncate table t

ORA-00942: 表或视图不存在

SQL> truncate table scott.t;

Table truncated

 

在asktom论坛上也找到了tom的确定,但没有具体的原因。

http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1458414958491

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26451536/viewspace-755926/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: truncate 命令使用
请登录后发表评论 登录
全部评论

注册时间:2011-11-23

  • 博文量
    170
  • 访问量
    484880