ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 Tabel atau Lihat Tiada Oracle Error
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: Kadang ketika Anda menyusun suatu objek atau paket atau melihat di Oracle, atau menjalankan beberapa PL / SQL Oracle pernyataan di meja, atau ketika menjalankan sebuah program atau aplikasi Oracle, saya error berikut terjadi:
ORA-00942: table or view does not exist ORA-00942: tabel atau view tidak ada
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. Penyebab atau alasan untuk ORA-00942 pesan kesalahan adalah karena Oracle mencoba untuk menjalankan pernyataan SQL yang merujuk pada sebuah tabel atau view yang baik tidak ada, atau karena sinonim yang tidak diperbolehkan di sini adalah yang digunakan, atau karena Anda lakukan tidak memiliki hak akses ke obyek tertentu. 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. Lain penyebabnya adalah bahwa meja atau melihat milik skema lain dan Anda tidak referensi tabel dengan nama skema, atau suatu pandangan yang direferensikan di mana sebuah meja yang diperlukan.
Depending on what's the cause of the problem, there are several resolutions or remedies to resolve this error. Tergantung pada apa penyebab masalah, ada beberapa resolusi atau obat untuk mengatasi kesalahan ini. 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. Dan karena beberapa kemungkinan alasan yang dapat menyebabkan kesalahan, ada beberapa tindakan atau langkah-langkah yang dapat Anda ambil untuk mengidentifikasi di mana kesalahan dan mengambil solusi yang tepat atau solusi.
- Check existing user tables and views if they exists in Oracle by querying the data dictionary by executing the following SQL statement: Periksa pengguna yang ada tabel dan tampilan jika mereka ada di Oracle dengan query kamus data dengan mengeksekusi pernyataan SQL berikut:
select * pilih *
from all_objects dari all_objects
where object_type in ('TABLE','VIEW') mana object_type in ( 'TABLE', 'VIEW')
and object_name = ' OBJECT_NAME '; dan object_name = 'object_name';Replace OBJECT_NAME with the name of the table or view that you want to verify its existence. Ganti object_name dengan nama tabel atau view yang Anda ingin memastikan keberadaannya.
If this error occurred because the table or view does not exist, take the following actions: Jika kesalahan ini terjadi karena tabel atau view tidak ada, mengambil tindakan berikut:
- Check and ensure that the spelling of the table (does not misspell) or view name is correct. Memeriksa dan memastikan bahwa ejaan meja (tidak misspell) atau nama tampilan benar.
- Check and ensure that a view is not specified where a table is required. Memeriksa dan memastikan bahwa tampilan tidak ditentukan di mana sebuah meja yang diperlukan.
- If no such table or view exists, create the table or view, or use another table or view. Jika tidak ada meja atau pandangan seperti itu ada, menciptakan tabel atau melihat, atau menggunakan tabel atau view lain.
- 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. Jika meja atau melihat ada, cek dan memverifikasi apakah pengguna memiliki izin yang diperlukan untuk membaca dan hak-hak dan akses (yaitu pilih) dari meja, seperti hak-hak istimewa tertentu mungkin diperlukan untuk mengakses meja. 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. Dalam hal ini, Anda akan perlu untuk memiliki pemilik meja atau melihat, atau Oracle DBA untuk memberikan hak istimewa yang sesuai, izin atau hak untuk objek ini.
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. Perhatikan bahwa ketika memilih dari pandangan sistem (seperti v $ session) hak istimewa atau hak akses untuk memilih dari pandangan harus diberikan kepada pengguna secara langsung dan tidak melalui peran. 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. Ini terjadi jika Anda dapat memilih dari pandangan tanpa masalah tetapi kemudian mendapatkan error ini ketika mencoba untuk membuat tampilan di atasnya.
- 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. Jika meja atau melihat ada tetapi skema yang berbeda dari skema di mana saat ini SQL adalah mengeksekusi (dalam kata lain, tabel tidak memiliki oleh Anda, tetapi dimiliki oleh pengguna lain), yang ORA-00942 error akan kembali juga . Resolve this by explicitly reference the table or view by specifying the schema name, ie schema_name.table_name. Menyelesaikan hal ini dengan merujuk secara eksplisit tabel atau melihat dengan menentukan nama skema, yaitu schema_name.table_name.
IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman ini adalah mesin diterjemahkan dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Terjemahan mesin mungkin sulit untuk mengerti. Please refer to Silakan merujuk ke original English article artikel asli bahasa Inggris whenever possible. bila memungkinkan.
Related Articles Artikel Terkait
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Tabel Error
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Mudah Duplikat, Salin atau Backup Tabel di Oracle, PostgreSQL, DB2 dan SQLite dengan Membuat Tabel Sebagai SQL
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 Buat atau Tambah Partisi Baru Gagal Kesalahan
- Oracle EXP-00091 Error When Export Database EXP-00091 oracle Error Ketika Ekspor Database
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Membuat, Tambah atau Split Pemisahan Oracle Database Gagal dengan ORA-14080 Error
- Oracle Database Import Error 3113/3114 Kesalahan Impor Oracle Database 3113/3114
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 Tidak Cukup Nilai Kesalahan
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 tablespace is Empty Temporary Error di Oracle
- View and Retrieve Oracle Database Link Details Lihat dan Ambil Oracle Database Link Details
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database Diperlukan IMP-00016 Character Set Konversi Tidak Didukung Kesalahan ketika Impor ke Oracle Database









































