Thursday, January 16, 2020

ORA-00942: table or view does not exist

When calling a table directly or through procedure/function...etc user may receive error “ORA-00942: table or view does not exist”.

For ex:-
CREATE OR REPLACE FUNCTION PROC1
(Num IN NUMBER)
RETURN NUMBER
IS
BEGIN
INSERT INTO Table1 SELECT * FROM SCOTT.Table2 WHERE ID = Num;
END;

PL/SQL: ORA-00942: table or view does not exist

SQL> select * from table1;
select * from table1
              *
ERROR at line 1:
ORA-00942: table or view does not exist

Possible reasons:
1. The table name or view name spelled wrongly
2. The table or view doesn’t exist
3. The user doesn’t have required permissions

In some cases users have select access and able to query data but when running from a procedure they still receive “ORA-00942: table or view does not exist”

The reason for this error is the access granted trough a ROLE not directly. In order to access another user table from a procedure you need to have SELECT privilege granted directly.

Regards,
Satishbabu Gunukula, Oracle ACE
http://www.oracleracexpert.com

5 comments:

  1. Thanks for sharing! It's really helpful to me. I will follow and support you. word unscrambler

    ReplyDelete
  2. Dolby Atmos Crack uses the long-standing surround sound home theater concept, but adds additional height channels to create an enveloping sound effect in your room.
    Alien Skin Blow Up Crack
    Adobe Indesign CC Crack
    Bittorrent Pro Crack

    ReplyDelete
  3. I believe the things you whatever you have enclosed, all the way throughout the post are peaceful striking, good job and great hard work. I found it very striking and enjoyed reading all of it...stay it up, good-looking job. Thanks. andrey belyakov

    ReplyDelete
  4. I am incapable of reading articles online very often, but I’m happy I did today. It is very well written, and your points are well-expressed. I request you warmly, please, don’t ever stop writing. North American Bancard Agent Program

    ReplyDelete
  5. JKBOSE 9th class Model Paper 2023 JKBOSE 9th Previous Question Paper 2023 JLBOSE 2023 9th class Model Paper 2023 according to Syllabus declared, JKBOSE 9th class Model Paper 2023, JKBOSE 9th class Question Paper 2023, J&K 9th Question Paper 2023 JKBOSE 9th Previous Question Paper 2023, JKBOSE 10class 2023 Model Question Paper 2023, Jammu Kashmir 9th class Model Paper 2023, Jammu Kashmir 9th Previous Question Paper 2023, J&K 9th Previous Question Paper 2023, Annual Regular 2023 Summer Zone Jammu Division Class 9th Model Question Paper 2023, JKBOSE 9th class Model Paper 2023

    ReplyDelete