Why doesn't Oracle tell you WHICH table or view does not exist?

前端 未结 8 1163
时光取名叫无心
时光取名叫无心 2021-01-31 13:43

If you\'ve used Oracle, you\'ve probably gotten the helpful message \"ORA-00942: Table or view does not exist\". Is there a legitimate technical reason the message doesn\'t incl

8条回答
  •  伪装坚强ぢ
    2021-01-31 14:20

    If its not a huge statement, then the easiest way is just to check the data dictionary,

    SQL> select * from xx,abc;
    select * from xx,abc
                     *
    ERROR at line 1:
    ORA-00942: table or view does not exist
    
    
    SQL> select owner,table_name from all_tables where table_name in ('XX','ABC');
    
    OWNER                          TABLE_NAME
    ------------------------------ ------------------------------
    MWATSON                        XX
    
    SQL> 
    

    This isn't ideal, but short of going and examining trace files, I'm not sure how else to do it.

提交回复
热议问题