ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 lentelę ar vaizdas neegzistuoja Oracle Klaida
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: Kartais, kai renka objekto ar pakuotės arba peržiūrėti Oracle, arba vykdyti tam PL / SQL Oracle stalo, ar paleidus "Oracle" programa arba programa, man kyla tokia klaida:
ORA-00942: table or view does not exist ORA-00942: stalo arba peržiūrėti neegzistuoja
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. Priežastis arba priežastį ORA-00942 klaidos pranešimas dėl "Oracle" bando įvykdyti SQL, kad nuorodos, lentelės ar nuomonės, kad nors nėra, ar dėl sinonimas, kuris negali būti čia buvo naudojamas, ar dėl jums neturite prieigos teisių, ypač objektas. 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. Kita galima priežastis yra ta, kad lentelė arba peržiūrėti priklauso kitam schema ir Jūs nenurodėte nuorodą lentelės schemos pavadinimas, arba kad buvo nuorodos, kur lentelėje yra privalomi.
Depending on what's the cause of the problem, there are several resolutions or remedies to resolve this error. Priklausomai nuo to, kas iš problemos priežasčių yra keletas rezoliucijų ar teisės gynimo priemonių išspręsti šią 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. Ir dėl to keletas galimų priežasčių, kurios gali sukelti klaidos, keli veiksmai arba veiksmai, kurių galite imtis, siekiant nustatyti, kur yra klaida, ir imtis atitinkamų ar problemos sprendimą.
- Check existing user tables and views if they exists in Oracle by querying the data dictionary by executing the following SQL statement: Pažymėkite esamą vartotojo stalai ir nuomones, jei jie egzistuoja Oracle užklausų duomenų žodyną vykdydama šias SQL:
select * SELECT *
from all_objects nuo all_objects
where object_type in ('TABLE','VIEW') kur object_type in ( "Lentelė", "View")
and object_name = ' OBJECT_NAME '; ir object_name = 'object_name ";Replace OBJECT_NAME with the name of the table or view that you want to verify its existence. Pakeisti object_name su lentelės ar rodinio pavadinimą, kurį norite patikrinti jo egzistavimą.
If this error occurred because the table or view does not exist, take the following actions: Jei ši klaida įvyko dėl to, lentelės arba peržiūrėti neegzistuoja, imtis šių veiksmų:
- Check and ensure that the spelling of the table (does not misspell) or view name is correct. Patikrinti ir užtikrinti, kad nuo stalo rašybos (nėra rašybos), arba kad pavadinimas yra teisingas.
- Check and ensure that a view is not specified where a table is required. Patikrinti ir užtikrinti, kad vaizdas nėra nurodyta, kur lentelėje yra privalomi.
- If no such table or view exists, create the table or view, or use another table or view. Jei tokios lentelės arba peržiūrėti neegzistuoja, sukurkite lentelę arba peržiūrėti, arba naudoti kitą lentelę arba peržiūrėti.
- 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. Jei lentelės arba peržiūrėti egzistuoja, patikrinti ir patvirtinti, jei vartotojas turi reikiamas teises ir teises skaityti ir naudotis (ty pasirinkti) iš lentelės, tam tikros privilegijos, gali būti reikalaujama gauti lentelę. 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. Tokiu atveju jums reikės lentelės arba peržiūrėti, arba Oracle DBA savininkui suteikti atitinkamas teises, įgaliojimus ar teises į šį objektą.
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. Atkreipkite dėmesį, kad renkantis iš sistemos vaizdas (pvz., v $ session) privilegija ar prieigos prie jų teisėms pasirinkti atsižvelgiant turi būti teikiama vartotojui tiesiogiai, o ne per tam tikrą vaidmenį. 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. Tai yra tuo atveju, jei galite pasirinkti peržiūrėti be problemų, tačiau vėliau ši klaida bandant sukurti apie jį peržiūrėti.
- 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. Jei lentelės arba peržiūrėti egzistuoja, bet yra skirtingos schemos iš dabartinės schema, kur SQL vykdančiosios (kitaip tariant, lentelės neturi savo jumis, bet valdo kitas vartotojas), ORA-00942 klaida bus grąžinti per . Resolve this by explicitly reference the table or view by specifying the schema name, ie schema_name.table_name. Išspręsti šią aiškiai nuoroda stalo arba peržiūrėti nurodant schemos pavadinimas, ty schema_name.table_name.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Table Klaida
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Geras dublikatas, kopija ar pasikartojančios lentelės Oracle, PostgreSQL, DB2 ir SQLite su Sukurkite lentelę SQL
- Oracle ORA-14074 Create or Add New Partition Fails Error "Oracle" ORA-14074 Kurti arba Pridėti naują skyrių fails Klaida
- Oracle EXP-00091 Error When Export Database Oracle Tinka-00091 Klaida Eksporto duomenų bazė
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Kurti, Pridėti arba neskaldytos Oracle Pasiskirstymo fails su klaida ORA-14080
- Oracle Database Import Error 3113/3114 Oracle Database Importo Klaida 3113/3114
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 Nepakanka vertės paklaida
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Laikinosios Tablespace yra tuščias Klaida Oracle
- View and Retrieve Oracle Database Link Details Peržiūrėti ir atsiimti Oracle Link Details
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database IMP-00016 Privalomas Character Set konversijos Not Supported klaidą Importas į duomenų bazę Oracle









































