ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 Xem Bảng hoặc không tồn tại Oracle Lỗi

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: Sometime khi bạn biên dịch một đối tượng hoặc các phần mềm hoặc xem trong Oracle, hoặc thực hiện một số PL / SQL Oracle kê trên bảng, hoặc khi chạy một chương trình hay ứng dụng Oracle, các lỗi sau của tôi xảy ra:

ORA-00942: table or view does not exist ORA-00942: bảng hoặc xem không tồn tại

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ác nguyên nhân hay lý do gì cho ORA-00942 thông báo lỗi của Oracle là vì cố gắng thực hiện một tuyên bố rằng tài liệu tham khảo SQL một bảng hoặc xem đó, hoặc không tồn tại, hoặc vì một synonym đó là không được cho phép ở đây đã được sử dụng, hoặc vì bạn không có quyền truy cập vào đối tượng cụ thể. 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. Khác có thể gây ra là bảng hoặc xem thuộc schema khác và bạn đã không tham khảo bảng của schema tên, hoặc một lần xem là có một bảng tham chiếu là bắt buộc.

Depending on what's the cause of the problem, there are several resolutions or remedies to resolve this error. Tùy thuộc vào những gì là nguyên nhân của vấn đề, có một số quyết hoặc biện pháp để giải quyết lỗi này. 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. Và do có thể có một số lý do mà có thể gây ra lỗi, có một số hành động hoặc các bước mà bạn có thể áp dụng để xác định nơi mà là lỗi và có thích hợp hay giải pháp workaround.

  1. Check existing user tables and views if they exists in Oracle by querying the data dictionary by executing the following SQL statement: Kiểm tra hiện có người sử dụng bảng biểu và xem nếu họ có thể có được ở Oracle của truy vấn dữ liệu từ điển bằng cách tự thực hiện sau đây SQL tuyên bố:

    select * chọn *
    from all_objects từ all_objects
    where object_type in ('TABLE','VIEW') nơi trong object_type ( 'TABLE', 'Xem')
    and object_name = ' OBJECT_NAME '; và object_name = 'OBJECT_NAME';

    Replace OBJECT_NAME with the name of the table or view that you want to verify its existence. Thay thế OBJECT_NAME với tên của bảng, hoặc xem mà bạn muốn để xác minh sự tồn tại của nó.

    If this error occurred because the table or view does not exist, take the following actions: Nếu lỗi này xảy ra vì bảng hoặc xem không tồn tại, đi hành động sau đây:

    • Check and ensure that the spelling of the table (does not misspell) or view name is correct. Kiểm tra và đảm bảo rằng các lỗi chính tả của bảng (không misspell), hoặc xem tên là chính xác.
    • Check and ensure that a view is not specified where a table is required. Kiểm tra và đảm bảo rằng một lần xem là nơi mà không được chỉ định một bảng là bắt buộc.
    • If no such table or view exists, create the table or view, or use another table or view. Nếu không có các bảng hoặc xem có thể có được, tạo bảng, hoặc xem, hoặc sử dụng khác hoặc xem bảng.
  2. 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. Nếu bảng, hoặc xem có thể có được, hãy kiểm tra và xác minh nếu người dùng có quyền truy cập và quyền cần thiết để đọc và truy cập (tức là chọn) từ bảng, vì một số đặc quyền có thể được yêu cầu để truy cập vào các bảng. 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. Trong trường hợp này, bạn sẽ cần phải có những chủ nhân của bảng, hoặc xem, hoặc một Oracle DBA để cấp quyền thích hợp đặc quyền, quyền hoặc quyền cho đối tượng này.

    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. Lưu ý rằng khi chọn từ một hệ thống xem (chẳng hạn như phiên $ v) quyền hoặc các quyền truy cập để chọn từ người xem phải được cấp cho người sử dụng trực tiếp và không phải thông qua một vai trò. 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. Đây là trường hợp nếu bạn có thể chọn từ người xem mà không có vấn đề, nhưng sau đó nhận được lỗi này khi cố gắng tạo ra một lần xem trên nó.

  3. 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. Nếu bảng, hoặc xem có thể có được, nhưng là trong một schema khác nhau từ các nơi mà hiện nay schema SQL được thực hiện (trong các từ ngữ, bảng, không riêng của bạn, nhưng khác thuộc sở hữu của người dùng), các báo lỗi ORA-00942 sẽ trở lại quá . Resolve this by explicitly reference the table or view by specifying the schema name, ie schema_name.table_name. Giải quyết rõ ràng điều này bằng cách tham khảo bảng hoặc xem schema của xác định tên tuổi, tức là schema_name.table_name.

IMPORTANT : The page is machine translated and provided "as is" without warranty. Lưu ý: Các trang web là máy tính dịch và cung cấp "như là" mà không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể là khó hiểu. Please refer to Xin vui lòng tham khảo original English article Tiếng Anh bản gốc bài viết whenever possible. bất cứ khi nào có thể.


Leave a Reply Để lại một trả lời

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Bạn có thể sử dụng các thẻ:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Đăng ký nhận xét tính năng đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo về ý kiến mới nhất được đăng, đăng ký với My Digital Life Comments RSS feed Cuộc sống kỹ thuật số Bình luận của tôi nguồn cấp dữ liệu RSS or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong thư điện tử tiêu hàng ngày.
Custom Search

New Articles Bài viết mới

Incoming Search Terms for the Article Tìm kiếm các điều khoản cho các Điều

ORA-00942 ORA-00942 - -- ORA-00942: table or view does not exist ORA-00942: bảng hoặc xem không tồn tại - -- ora-00942 table or view does not exist ora-00942 bảng hoặc xem không tồn tại - -- table or view does not exist in oracle bảng hoặc xem không tồn tại trong oracle - -- oracle table or view does not exist oracle bảng hoặc xem không tồn tại - -- ora-00942 table or view doesn't exist ora-00942 bảng hoặc xem không tồn tại - -- ora 00942 table or view does not exist ora 00942 bảng hoặc xem không tồn tại - -- table or view does not exist bảng hoặc xem không tồn tại - -- ora-00942 table or view does not exist ora-00942 bảng hoặc xem không tồn tại - -- ORACLE prepare error: ORA-00942: ORACLE chuẩn bị báo lỗi: ORA-00942: - -- PL/SQL: ORA-00942: table or view does not exist PL / SQL: ORA-00942: bảng hoặc xem không tồn tại - -- ORA-00942: table or view does not exist .net ORA-00942: bảng hoặc xem không tồn tại. Net - -- ora 00942 ora 00942 - -- ora-00942 error ora-00942 lỗi - -- table does not exist oracle bảng không tồn tại oracle - -- "ORA-00942: table or view does not exist" "ORA-00942: bảng hoặc xem không tồn tại" - -- ora 942 error ora 942 lỗi - -- oracle table does not exist oracle bảng không tồn tại - -- ora 942 ora 942 - -- ORA-00942: table or view does not exist ORA-00942: bảng hoặc xem không tồn tại - -- [Oracle] ORA-00942: table or view does not exist [Oracle] ORA-00942: bảng hoặc xem không tồn tại - -- debug ORA-00942 gỡ lỗi ORA-00942 - -- ORA-00942 ORA-00942 - -- check if oracle table exists hãy kiểm tra xem nếu có thể có được bảng oracle - -- check existence of table in oracle kiểm tra tồn tại của bảng trong oracle - -- create table if not exists in oracle tạo bảng nếu không tồn tại trong oracle - -- DISPLAY ORACLE TABLE RIGHTS IN SQLPLUS DISPLAY TABLE ORACLE QUYỀN TẠI SQLPLUS - -- error sql ORA-00942 sql lỗi ORA-00942 - -- how to check a schema name exist in DB oracle làm thế nào để kiểm tra xem một schema tên tồn tại trong DB oracle - -- how to check existance of a tables in oracle làm thế nào để kiểm tra sự tồn tại của một bảng biểu trong oracle - -- oracle does not exist oracle không tồn tại - -- oracle check for table existence oracle bảng kiểm tra xem có tồn tại - -- oracle drop table error if doesn't exist oracle thả bảng báo lỗi, nếu không tồn tại - -- ORA-00942 but the table exists ORA-00942 nhưng có thể có được bảng - -- oracle check permissions oracle kiểm tra quyền truy cập - -- ORA-00942: table or view does not exist v$session ORA-00942: bảng hoặc xem không tồn tại v $ phiên - -- gv$session ORA-00942: table or view does not exist while creating view GV $ phiên ORA-00942: bảng hoặc xem không tồn tại, trong khi tạo ra xem - -- ora 00942 ora 00942 - -- table does not exist exception handling oracle bảng không tồn tại ngoại lệ xử lý oracle - -- 942 - ORA-00942:table or view does not exist 942 - ORA-00942: bảng hoặc xem không tồn tại - -- find table permission on oracle tìm bảng cho phép trên oracle - -- IF EXIST table name SQL Oracle NẾU tồn tại bảng tên SQL Oracle - -- opencms table o view exists opencms bảng o xem có thể có được - -- ORA-00942: table or view does not exist | while trying to export sys.aud$ table ORA-00942: bảng hoặc xem không tồn tại | trong khi cố gắng để xuất khẩu sys.aud $ bảng - -- oracle grant using role ORA-00942 oracle cấp quyền sử dụng vai trò ORA-00942 - -- oracle syscat.tables does not exist oracle syscat.tables không tồn tại - -- oracle how to find if package exists oracle như thế nào để tìm phần mềm có thể có được nếu - -- ora-00942 table or view does not exist oracle ora-00942 bảng hoặc xem không tồn tại oracle - -- ORA-00942 V$SESSION ORA-00942 V $ SESSION - -- ORA-00942: table or view does not exist Error Code: 942 ORA-00942: bảng hoặc xem không tồn tại Lôi Mã số: 942 - --