ORA-00942 Table or View Does Not Exist Oracle Error庫存- 00942表或視圖不存在Oracle錯誤

Sometime when you compile an object or package or view in Oracle, or execute some PL/SQL statements on Oracle table, or when running an Oracle program or application, the following error my occurs:有時當您編譯一個對象或包裝或查看在Oracle中,或執行一些PL / SQL的聲明,甲骨文表,或當運行一個Oracle程序或應用程序,下面的錯誤,我發生:

ORA-00942: table or view does not exist庫存- 00942 :表或視圖不存在

The cause or reason for ORA-00942 error message is because of Oracle tries to execute an SQL statement that references a table or view that either does not exist, or because of a synonym that is not allowed here was used, or because of you do not have access rights to the particular object.原因或理由庫存- 00942錯誤訊息,是因為甲骨文試圖執行一個SQL語句參考表或認為要么不存在,或者因為一個同義詞是不容許在這裡用,或因為你這樣做沒有訪問權限的特定對象。 Other possible cause is that the table or view belongs to another schema and you didn’t reference the table by the schema name, or a view was referenced where a table is required.其他可能的原因是,該表或檢視屬於另一個架構和你沒有參考表所架構的名稱,或有一種意見是引用凡表是必需的。

Depending on what’s the cause of the problem, there are several resolutions or remedies to resolve this error.根據對什麼樣的問題的原因,有幾項決議或補救措施,要解決這個錯誤。 And due to several possible reasons that may cause the error, there are several actions or steps that you can take to identify where is the error and take the appropriate workaround or solution.由於幾個可能的原因可能造成的錯誤,有幾個行動或步驟,您可以採取確定哪些地方是錯誤,並採取適當可行方案或解決辦法。

  1. Check existing user tables and views if they exists in Oracle by querying the data dictionary by executing the following SQL statement:檢查現有的用戶表和意見,如果他們存在於甲骨文藉由查詢數據字典執行以下SQL語句:

    select *選擇*
    from all_objects從all_objects
    where object_type in (’TABLE’,'VIEW’)如果object_type在( '表' , '查看' )
    and object_name = ‘ OBJECT_NAME ‘;和object_name = ' object_name ' ;

    Replace OBJECT_NAME with the name of the table or view that you want to verify its existence.取代object_name與表的名稱或認為您要驗證它的存在。

    If this error occurred because the table or view does not exist, take the following actions:如果這發生錯誤,因為該表或視圖不存在,採取以下行動:

    • Check and ensure that the spelling of the table (does not misspell) or view name is correct.檢查並確保拼寫表(不拼錯)或視圖名稱是正確的。
    • Check and ensure that a view is not specified where a table is required.檢查並確保看法是沒有指明如果一個表是必需的。
    • If no such table or view exists, create the table or view, or use another table or view.如果沒有這樣的表或視圖存在,創建表或視圖,或使用另一個表或檢視。
  2. If the table or view exists, check and verify if the user has the necessary permissions and rights to read and access (ie select) from the table, as certain privileges may be required to access the table.如果表或視圖存在,檢查和驗證,如果用戶有必要的權限和權利的閱讀和獲取(即選擇)從表中,由於某些特權,可能需要訪問該表。 In this case, you will need to have the owner of the table or view, or a Oracle DBA to grant the appropriate privileges, permissions or rights to this object.在這種情況下,您將需要有擁有該表或視圖,或一甲骨文公司名義運作給予適當的特權,權限或權利到這個對象。

    Note that when selecting from a system view (such as v$session) the privilege or access rights to select from the view must be granted to the user directly and not via a role.請注意,當選擇從制度的看法(如為V元,會議)的特權或訪問的權利,選擇從視圖必須給予用戶直接而不是通過一個角色。 This is the case if you can select from the view without problem but then get this error when trying to create a view on it.在這種情況下,如果您可以選擇從視圖沒有問題,但當時得到這個錯誤時,試圖建立一個的看法。

  3. If the table or view exists but is in a different schema from the current schema where the SQL is executing (in other word, the table doesn’t own by you, but owned by other user), the ORA-00942 error will return too.如果表或視圖存在,但是在一個不同的模式從目前的架構下SQL是執行(在其他字,該表沒有自己的你,但所擁有的其他用戶) ,電腦- 00942錯誤將返回太。 Resolve this by explicitly reference the table or view by specifying the schema name, ie schema_name.table_name.解決這個問題,明確參考表或視圖指定架構名稱,即schema_name.table_name 。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要說明 :這是一個機器翻譯網頁是“按原樣”提供的擔保。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article英文原版的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和貢獻,或取得技術的支持和幫助,在 My Digital Life Forums 我的數字生活論壇 .



Leave a Reply離開的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些標籤:的<a href="" title=""> <abbr title=""> <acronym的<b> title=""> <blockquote cite=""> <cite>在<code> <刪除日期時間= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting訂閱無評論


Custom Search

New Articles新的條款,

Incoming Search Terms for the Article傳入的搜索條件文章

ora-00942 庫存- 00942 - - ORA-00942: table or view does not exist 庫存- 00942 :表或視圖不存在 - - ora 00942 庫存00942 - - PL/SQL: ORA-00942: table or view does not exist PL / SQL的貨存狀況: - 00942 :表或視圖不存在 - - ora 942 庫存942 - - ORA-00942: 庫存- 00942 : - - ORA-00942: table or view does not exist 庫存- 00942 :表或視圖不存在 - - Oracle table or view does not exist 甲骨文的表或視圖不存在 - - table or view does not exist 表或視圖不存在 - - ORA-00942 TABLE OR VIEW DOES NOT EXIST 庫存- 00942表或視圖不存在 - - oracle ORA-00942 甲骨文庫存- 00942 - - ORA-00942 庫存- 00942 - - 00942 00942 - - "ORA-00942: table or view does not exist" “ + - 00942 :表或視圖不存在” - - v$session table or view does not exist v元會話表或視圖不存在 - - SQL Error: ORA-00942: table or view does not exist SQL錯誤庫存- 00942 :表或視圖不存在 - - v$session ORA-00942: table or view does not exist v元,會議庫存- 00942 :表或視圖不存在 - - ORA-00942 error 庫存- 00942錯誤 - - ORA-00942 oracle 庫存- 00942甲骨文 - - ora-000942 庫存- 000942 - - TABLE OR VIEW DOES NOT EXISTS 表或視圖不存在 - - table or view does not exist oracle 表或視圖不存在的甲骨文 - - ORA 000942 庫存000942 - - all 全部 - - ORA-00942: table or view does not exist 庫存- 00942 :表或視圖不存在 - - oracle table does not exist 甲骨文表不存在 - - ORA-00942 庫存- 00942 - - not exists oracle 不存在的甲骨文 - - ORA-00942 v$session 庫存- 00942元, v會議 - - ORA-00942: 庫存- 00942 : - - oracle not exists 甲骨文不存在 - - ora-00942 package 庫存- 00942包 - - "table or view does not exist" “表或視圖不存在” - - ORA-00942: a tabela ou view não existe 庫存- 00942 :表內註明的看法不含稅existe - - PL/SQL: ORA-00942 PL / SQL的貨存狀況: - 00942 - - oracle v$session table or view does not exist 甲骨文v元會話表或視圖不存在 - - check if table exist in oracle 如果檢查表中存在的甲骨文 - - SQL Error: ORA-00942 SQL錯誤:庫存- 00942 - - oracle drop if exists 甲骨文下降,如果存在 - - v$session does not exist v元,會議不存在 - - v$session does not exists v元會話不存在 - - table or view doesn't exist 表或視圖不存在 - - ora 00942 table or view does not exist 庫存00942表或視圖不存在 - - oracle error: ORA-00942: table or view does not exist Oracle錯誤:庫存- 00942 :表或視圖不存在 - - oracle error ORA-00942 Oracle錯誤庫存- 00942 - - "ORA-00942" “ + - 00942 ” - - ora-00942 : table or view does not exist 庫存- 00942 :表或視圖不存在 - - table or view does not exist 表或視圖不存在 - - PL/SQL: ORA-00942: table or view does not exist PL / SQL的貨存狀況: - 00942 :表或視圖不存在 - - ORA-00942 drop table 庫存- 00942下拉表 - -