ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 או לוח האם לא הצג שגיאה אורקל Exist
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, את השגיאה הבאה שלי:
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 הודעת השגיאה היא בגלל אורקל מנסה לבצע משפט 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 * בחר *
from all_objects מ all_objects
where object_type in ('TABLE','VIEW') איפה object_type ב ( 'table', 'תצוגה')
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. במקרה זה, יהיה עליך להיות הבעלים של השולחן או להציג, או 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 מבצעת (מילה אחרת, את השולחן אינו הבעלים על ידי לך, אבל בבעלות משתמש אחר), אורה-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 זרוק טבלה שגיאה
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL בקלות לשכפל, להעתיק או לוחות הגיבוי ב-Oracle, PostgreSQL, SQLite ו-DB2 עם יצירת טבלה כפי SQL
- Oracle ORA-14074 Create or Add New Partition Fails Error אורקל ORA-14074 יצירת מחיצה חדשה או הוסף נכשל שגיאה
- Oracle EXP-00091 Error When Export Database אורקל EXP-00091 שגיאה בעת ייצוא מסד נתונים
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error צור, הוספה או פיצול Oracle Database החלוקה נכשל עם שגיאה ORA-14080
- Oracle Database Import Error 3113/3114 Oracle Database ייבוא שגיאה 3113/3114
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 לא מספיק ערכי שגיאה
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 זמניים Tablespace היא שגיאה ריק אורקל
- View and Retrieve Oracle Database Link Details הצג ולאחזר קישור מסד הנתונים Oracle פרטים
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database IMP-00016 תווים חובה הגדר המרות שגיאה לא נתמכות כאשר ייבוא כדי Oracle Database









































