[英]ORA-00942: table or view does not exist .or We are not able to drop
I am getting below error while creating/drop table.Can you please help me on solving this error 我在创建/删除表时遇到错误。请您帮我解决此错误
create table transclaimcounts_ITG401223
drop table transclaimcounts_ITG401223
* *
ERROR at line 1: ORA-00942: table or view does not exist 第1行出现错误:ORA-00942:表或视图不存在
create table transclaimcounts_ITG401223
* *
ERROR at line 1: ORA-00955: name is already used by an existing object 第1行发生错误:ORA-00955:现有对象已使用该名称
The database object naming rules explain the namespaces, including: 数据库对象命名规则解释了名称空间,包括:
Within a namespace, no two objects can have the same name. 在名称空间内,任何两个对象都不能具有相同的名称。
The following schema objects share one namespace: 以下架构对象共享一个名称空间:
- Packages 配套
- Private synonyms 私人同义词
- Sequences 顺序
- Stand-alone procedures 独立程序
- Stand-alone stored functions 独立存储功能
- Tables 桌子
- User-defined operators 用户定义的运算符
- User-defined types 用户定义类型
- Views 观看次数
The ORA-00942 error is saying there is no table or view with that name, so the ORA-00955 error must be coming from a different object type from that list. ORA-00942错误表示没有使用该名称的表或视图,因此ORA-00955错误必须来自与该列表不同的对象类型。
Query the data dictionary to see what exists: 查询数据字典以查看存在的内容:
select owner, object_type
from all_objects
where object_name = 'TRANSCLAIMCOUNTS_ITG401223';
(Note that the name is in uppercase in the data dictionary, as you are not using a quoted identifier; you won't find the object causing your issue if you look for object_name = 'transclaimcounts_ITG401223'
. That is explained in the same documentation.) (请注意,该名称在数据字典中使用大写字母,因为您未使用带引号的标识符;如果您查找object_name = 'transclaimcounts_ITG401223'
则不会找到引起问题的对象。在同一文档中对此进行了说明。 )
Then you will either have to drop or rename that; 然后,您将不得不删除或重命名该名称; or pick a different name for your new table. 或为您的新表选择其他名称。 We can't advise you which action to take, it's your schema. 我们无法建议您采取哪种行动,这是您的架构。 But don't drop anything unless you're 100% sure it should not exist, obviously. 但是,除非您百分百确定它不存在,否则请勿丢弃任何东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.