I see today a strange thing on my oracle db.
SQL> select tablespace_name, table_name from user_tables;
TABLESPACE_NAME |TABLE_NAME
------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SYSTEM |lavoratori2
1 riga selezionata.
Passati: 00:00:00.07
SQL> drop table lavoratori2 purge;
drop table lavoratori2 purge
*
ERROR at line 1:
ORA-00942: table or view does not exist
Passati: 00:00:00.03
I have tried this as non-sys user, now I try as SYS and ... same thing.
SQL> select tablespace_name, table_name from all_tables where table_name ='lavoratori2';
TABLESPACE_NAME
------------------------------
TABLE_NAME
--------------------------------------------------------------------------------
SYSTEM
lavoratori2
SQL> drop table lavoratori2;
drop table lavoratori2
*
ERROR at line 1:
ORA-00942: table or view does not exist
SQL>
How to solve?
I tried to empty the trash bin, but the immortal table still exist
SQL> purge recyclebin;
Recyclebin purged.
SQL> select tablespace_name, table_name from all_tables where table_name ='lavoratori2';
TABLESPACE_NAME
------------------------------
TABLE_NAME
--------------------------------------------------------------------------------
SYSTEM
lavoratori2
another strange thing..
SQL> select * from lavoratori2;
select * from lavoratori2
*
ERROR at line 1:
ORA-00942: table or view does not exist
If I did
select * from "lavoratori2";
return
ORA-00942: table or view does not exist
If I did
SQL> select owner from all_tables where table_name ='lavoratori2';
return the correct name of non-sys user which is the owner of the table.
select owner from all_tables where table_name ='lavoratori2'
?