我有一张桌子占用了相当多的空间,即使它没有行.我也不久前放弃了它.当我现在尝试删除它时,表示该表不存在.
它显示在user_tables中.此外,它的所有分区和索引都显示在user_objects中.
它也不在回收站中.
这里发生了什么?
编辑:
这是user_tables的结果:
TABLE_NAME TABLESPACE_NAME CLUSTER_NAME IOT_NAME STATUS PCT_FREE PCT_USED INI_TRANS MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS FREELIST_GROUPS LOGGING BACKED_UP NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE CHAIN_CNT AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE INSTANCES CACHE TABLE_LOCK SAMPLE_SIZE LAST_ANALYZED PARTITIONED IOT_TYPE TEMPORARY SECONDARY NESTED BUFFER_POOL ROW_MOVEMENT GLOBAL_STATS USER_STATS DURATION SKIP_CORRUPT MONITORING CLUSTER_OWNER DEPENDENCIES COMPRESSION COMPRESS_FOR DROPPED READ_ONLY jeremy_ALLK VALID N 8 1 N ENABLED YES N N NO ENABLED NO NO DISABLED YES DISABLED NO NO
当我这样做:“drop table jeremy_ALLK”,我得到:
Error starting at line 7 in command: drop table jeremy_ALLK Error report: sql Error: ORA-00942: table or view does not exist 00942. 00000 - "table or view does not exist" *Cause: *Action:
你会发现表名的区分大小写.在Oracle中,所有这些命令都完全相同:
原文链接:https://www.f2er.com/oracle/205397.htmldrop table jeremy_ALLK drop table Jeremy_ALLK drop table JEREMY_ALLK drop table "JEREMY_ALLK"
也就是说,表名默认为“解除”为大写.由于表名中包含小写字母,因此必须指定drop语句,如下所示:
drop table "jeremy_ALLK"
只要有一个以小写字母或空格(!)命名的数据库对象,就会使用双引号.