ORA-00942 Table or View Does Not Exist Oracle Error ORA-00.942 tabulā vai View neeksistē Oracle Kļūda
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: Dažkārt, kad sastāda objektu vai iepakojuma vai viedokli Oracle, vai izpildīt dažas PL / SQL uz Oracle tabulu vai braucot Oracle programmu vai piemērošanu, šādu kļūdas manā nosacījumiem:
ORA-00942: table or view does not exist ORA-00.942 galda vai apskatīt neeksistē
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. Cēlonis vai iemesls ORA-00.942 kļūdas ziņojums ir tāpēc, ka Oracle cenšas izpildīt SQL teikumu, ka atsauces tabulu vai uzskata, ka vai nu neeksistē, vai arī tāpēc, sinonīmu, kas nav atļauts šeit tika izmantoti, vai dēļ jums nav piekļuves tiesības īpašo mērķi. 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. Citi iespējamais cēlonis ir tas, ka galda arī apskatīt no citas shēmas, un Jums nav atsauces galda shēmas nosaukums vai viedoklis ir atsauce, ja tabula ir vajadzīga.
Depending on what's the cause of the problem, there are several resolutions or remedies to resolve this error. Atkarībā no tā, kas ir cēlonis problēmu, ir vairākas rezolūcijas vai līdzekļus, lai atrisinātu šo kļūdu. 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. Un sakarā ar vairākiem iespējamiem iemesliem, kas var radīt kļūdas, ir vairāki darbības vai pasākumi, kurus var veikt, lai noteiktu, kur ir kļūda un veic attiecīgus PROFILAKSE vai šķīduma.
- Check existing user tables and views if they exists in Oracle by querying the data dictionary by executing the following SQL statement: Pārbaudīt esošo lietotāju tabulas, un viedokļus, ja tie pastāv Oracle ar vaicājumiem vārdnīca dati, veicot šādu SQL:
select * SELECT *
from all_objects no all_objects
where object_type in ('TABLE','VIEW') ja object_type in ( "galda ',' VIEW ')
and object_name = ' OBJECT_NAME '; un object_name = 'OBJECT_NAME';Replace OBJECT_NAME with the name of the table or view that you want to verify its existence. Aizstāt OBJECT_NAME ar vārdu tabulas vai, ka jūs vēlaties, lai pārbaudītu to esamību.
If this error occurred because the table or view does not exist, take the following actions: Ja šī kļūda, jo tabulu vai apskatīt nav, jāveic šādas darbības:
- Check and ensure that the spelling of the table (does not misspell) or view name is correct. Pārbaudīt un nodrošināt, ka no galda pareizrakstību (nav kļūdaini rakstīt), vai lai vārds ir pareizs.
- Check and ensure that a view is not specified where a table is required. Pārbaudīt un nodrošināt, ka viedoklis nav noteikts, ja tabula ir vajadzīga.
- If no such table or view exists, create the table or view, or use another table or view. Ja šādu tabulu vai lai ir, izveidot tabulu vai skatu, vai izmantot citā tabulā vai skatā.
- 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. Ja tabula vai apskatīt nav, pārbauda un apstiprina, ja lietotājs ir nepieciešamās atļaujas un tiesības lasīt un pieeju (ti, izvēlieties) no galda, tā kā dažas privilēģijas var būt nepieciešams, lai piekļūtu galda. 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. Šādā gadījumā jums ir jābūt īpašniekam tabulu vai skatu, vai Oracle DBA piešķirt atbilstošu privilēģijas, atļaujas vai tiesības uz šo objektu.
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. Ņemiet vērā, ka izvēloties no sistēmas skatu (piemēram, v $ session) privilēģijas un piekļuves tiesības izvēlēties no uzskatiem var piešķirt lietotājam tieši un nevis ar lomu. 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. Tas ir gadījumā, ja jūs varat izvēlēties no nolūkā bez problēmu, bet pēc tam saņemt šo kļūdu, mēģinot izveidot viedokli par to.
- 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. Ja tabulu vai lai pastāv, bet ir dažādu shēmu no pašreizējās shēmas, kur SQL izpildes (citiem vārdiem, tabulā nav pašas jūs, bet pieder citam lietotājam) ORA-00.942 kļūdu atgriešanās pārāk . Resolve this by explicitly reference the table or view by specifying the schema name, ie schema_name.table_name. Atrisināt šo, skaidri atsaucoties tabulas vai viedokli, norādot shēmas nosaukumu, ti, schema_name.table_name.
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanas var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- ORA-02449 Oracle Drop Table Error ORA-02.449 Oracle Drop tabula Kļūda
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Viegli Dublēt, kopēšana vai Backup tabulu Oracle, PostgreSQL, DB2 un SQLite ar tabulas izveidošanai, SQL
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14.074 izveidošana vai Add New Partition nav kļūda
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 kļūdu Export Database
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Izveidot, pievienošana vai Split Oracle Database Partition neizdodas, ORA-14.080 Kļūda
- Oracle Database Import Error 3113/3114 Oracle Database Import Error 3113/3114
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 Not Enough vērtību kļūda
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25.153 Pagaidu Tablespace ir tukšs Kļūda Oracle
- View and Retrieve Oracle Database Link Details Apskatīt un Retrieve Oracle Database Link Details
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database IMP-00016 Nepieciešams Character Set Conversion Not Supported Kļūda Imports Oracle Database









































