ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 таблиця або подання не існують 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: Іноді при компіляції об'єкта або пакета або подання в Oracle, або виконувати деякі PL / SQL Oracle заяви по таблиці, або при запуску програми Oracle або застосування, наступна помилка моя відбувається:
ORA-00942: table or view does not exist ORA-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. Причини або причину ORA-00942 помилка відбувається через Oracle намагається виконати 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. А завдяки тому кілька можливих причин, які можуть викликати помилку, існує кілька дій або кроків, які можна зробити, щоб визначити, де помилки і прийняти відповідні рішення або обходу.
- Check existing user tables and views if they exists in Oracle by querying the data dictionary by executing the following SQL statement: Перевірка існуючих таблиць та думки користувачів, якщо вони існують в Oracle за допомогою запиту до словника даних, виконавши такі заяви SQL:
select * SELECT *
from all_objects від all_objects
where object_type in ('TABLE','VIEW') де в object_type ( 'Table', 'VIEW')
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. Якщо немає такої таблиці або перегляду не існує, створіть таблицю або подання, або використовувати інший таблиці або подання.
- 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. У цьому випадку, вам необхідно мати власника таблиці або подання, або Oracle DBA надати відповідні привілеї, дозволу або права на цей об'єкт.
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. Це відбувається, якщо ви можете вибрати з того, без проблем, але потім ця помилка при спробі створити уявлення про його.
- 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 (іншими словами, таблиця не власні тобою, але належать іншим користувачем), ORA-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 : The page is machine translated and provided "as is" without warranty. ВАЖЛИВО: Сторінка машина переведена і надаються "як є" без гарантії. Machine translation may be difficult to understand. Машинний переклад може бути важким для розуміння. Please refer to Будь ласка, зверніться до original English article оригінальний англійська статтю whenever possible. коли це можливо.
Related Articles Статті за Темі
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Table помилку
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Легко дублювання, копіювання або резервного копіювання в Oracle, PostgreSQL, DB2 і SQLite з Створення таблиці як SQL --
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 Створити або додати нові розділи Збій помилку
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 помилка експорту бази даних
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Створення, додати або Split Oracle Database розділів збій з ORA-14080 помилка
- 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 помилок
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 тимчасове табличне порожня Помилка в Oracle
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database IMP-00016 Обов'язковий набір символів перетворення не підтримується Помилка при імпорті для баз даних Oracle
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error Oracle ORA-01658 Неможливо Створена спочатку ступеня для сегмента в табличному помилку









































