ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 tabeli lub widoku nie istnieje Oracle błąd
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: Kiedyś podczas kompilacji obiektu lub pakiet lub widok w Oracle, lub wykonania niektórych PL / SQL Oracle na stole lub przy prowadzeniu programu lub aplikacji Oracle, co następuje mój błąd występuje:
ORA-00942: table or view does not exist ORA-00942: tabela lub widok nie istnieje
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. Przyczynę lub przyczyny ORA-00942 jest komunikat o błędzie, ponieważ Oracle próbuje wykonać instrukcję SQL, że odnosi się do tabeli lub widoku, że albo nie istnieją, lub z powodu synonim, że nie jest tutaj dozwolony był używany, ani ze względu zrobić nie mają prawa dostępu do danego obiektu. 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. Innych możliwych przyczyn jest to, że tabela lub widok należy do innego schematu, a nie przez odniesienie do tabeli nazwę schematu, lub był widok tabeli, o której mowa w których jest wymagane.
Depending on what’s the cause of the problem, there are several resolutions or remedies to resolve this error. W zależności od tego, co jest przyczyną problemu, istnieje kilka uchwał lub środki zaradcze, aby rozwiązać ten problem. 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. Oraz ze względu na kilka możliwych powodów, które mogą powodować błąd, istnieje wiele działań lub czynności, które można podjąć w celu określenia, gdzie jest błąd i podejmuje właściwe rozwiązanie lub obejście.
- Check existing user tables and views if they exists in Oracle by querying the data dictionary by executing the following SQL statement: Sprawdź użytkownika istniejących tabel i widoków, jeżeli istnieje odpytywania przez Oracle w słowniku danych przez wykonanie następujących SQL:
select * select *
from all_objects z all_objects
where object_type in (’TABLE’,'VIEW’) gdzie w object_type ( 'tabela', 'VIEW')
and object_name = ‘ OBJECT_NAME ‘; i object_name = "OBJECT_NAME";Replace OBJECT_NAME with the name of the table or view that you want to verify its existence. Wymień OBJECT_NAME z nazwą tabeli lub widoku, który chcesz zweryfikować jego istnienia.
If this error occurred because the table or view does not exist, take the following actions: Jeśli ten błąd ponieważ stołowego lub obejrzeć nie istnieje, podejmuje następujące działania:
- Check and ensure that the spelling of the table (does not misspell) or view name is correct. Sprawdzić i upewnić się, że pisownia tabeli (nie literówki) lub widok nazwa jest poprawna.
- Check and ensure that a view is not specified where a table is required. Sprawdzić i upewnić się, że zamiarem nie jest określony, gdy tabela jest wymagane.
- If no such table or view exists, create the table or view, or use another table or view. W przypadku braku takiej tabeli lub widoku istnieje, należy utworzyć tabelę lub widok, albo użyć innej tabeli lub widoku.
- 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. Jeśli tabela lub widok istnieje, należy sprawdzić i zweryfikować, czy użytkownik ma wymagane uprawnienia i prawa do odczytu i dostępu (tzn. wybrać) z tabeli, jak pewne przywileje mogą być wymagane do uzyskania dostępu do tabeli. 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. W tym przypadku, trzeba będzie mieć właściciela tabeli lub widoku lub Oracle DBA, aby nadać odpowiednie uprawnienia, uprawnienia lub prawa do tego obiektu.
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. Należy pamiętać, że przy wyborze systemu z widoku (np. v $ session) uprawnienia lub prawa dostępu, aby wybrać z widoku muszą być przyznawane bezpośrednio do użytkownika, a nie za pośrednictwem rolę. 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. Dzieje się tak w przypadku, jeśli można wybrać z myślą, ale potem bez problemu dostać ten błąd podczas próby utworzenia widok na jej temat.
- 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. Jeśli tabela lub widok istnieje, ale w innym schemacie z bieżącego schematu, gdzie jest wykonanie SQL (innymi słowy, tabela nie jest właścicielem przez Ciebie, ale należące do innego użytkownika), w ORA-00942 błędu zwróci zbyt . Resolve this by explicitly reference the table or view by specifying the schema name, ie schema_name.table_name. Rozwiązać ten wyraźnie odniesienie do tabeli lub widoku określając nazwę schematu, tj. schema_name.table_name.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. WAŻNE: To jest maszyna przetłumaczony strony, które są dostarczane "tak jak są" bez gwarancji. Machine translation may be difficult to understand. Tłumaczenie maszynowe mogą być trudne do zrozumienia. Please refer to Proszę odnieść się do original English article oryginalnego artykułu w języku angielskim whenever possible. ilekroć to możliwe.
Share and contribute or get technical support and help at Udział i wkład lub uzyskać wsparcie techniczne oraz pomoc w My Digital Life Forums Mój Cyfrowy Życie Forum .
Related Articles Powiązane artykuły
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle drop table błąd
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Łatwe powielanie, kopiowanie lub kopii zapasowej tabel w Oracle, PostgreSQL, DB2 i SQLite z Utwórz W tabeli SQL
- 0×8007232B DNS Name Does Not Exist Error on Windows Vista or Server 2003 Activation 0 × 8007232B Nazwa DNS nie istnieje Błąd w systemie Windows Vista, Server 2003 lub aktywacji
- IMP-00013 Oracle Import Error IMP-00013 Oracle Import Błąd
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 nie wystarczy wartości błędu
- Oracle EXP-00091 Error When Export Database Oracle exp-00091 błąd, gdy wywóz bazy danych
- Oracle Database Import Error 3113/3114 Błąd bazy danych Oracle import 3113/3114
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 tymczasowej TABLESPACE jest pusty Błąd w Oracle
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 Dodaj lub utworzyć nową partycję nie błąd
- View and Retrieve Oracle Database Link Details Wyświetlić i pobrać Oracle Database link szczegóły

























