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

10 comments:


  1. Hire Best Packers And Movers Mumbai for hassle-free Household Shifting, ***Office Relocation, ###Car Transporation, Loading Unloading, packing Unpacking at affordable Price Quotation. Top Rated, Safe and Secure Service Providers who can help you with 24x7 and make sure a Untroubled Relocation Services at Cheapest/Lowest Rate @ Packers And Movers Mumbai

    ReplyDelete
  2. Hi! Nice blog. We are also offering Quickbooks Payroll Support. If you need any help regarding QuickBooks issues, dial (877) 606-0004 for instant help.

    ReplyDelete
  3. Packers and Movers Chennai Give Safe and Reliable ***Household Shifting Services in Chennai with Reasonable ###Packers and Movers Price Quotation. We Provide Household Shifting, Office Relocation, ✔✔✔ Local and Domestic Transportation Services, Affordable and Reliable Shifting Service Charges @ Packers And Movers Chennai

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

    ReplyDelete
  5. 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
  6. 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
  7. Does the architect mean to utilize experts for this task and provided that this is true, how are they paid? I want to start a credit card processing company

    ReplyDelete
  8. 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
  9. I think this is often associated with informative and knowledgeable posts. However, I prefer to thank you for the efforts you have created in penning this blog. Visit here: SEO Company.

    ReplyDelete
  10. 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