Home » SQL & PL/SQL » SQL & PL/SQL » DBMS_LOB defined in a View - Error: ORA-01031: insufficient privileges (Oracle 11g)
DBMS_LOB defined in a View - Error: ORA-01031: insufficient privileges [message #617520] Tue, 01 July 2014 04:31 Go to next message
sivakumar121
Messages: 29
Registered: April 2009
Junior Member
Hi -

I have a view in Schema A

View is like this -

CREATE OR REPLACE FORCE VIEW A.VIEW1
(
COL1,
COL2,
COL3
)
AS
   (SELECT COL1,
           COL2,
           DBMS_LOB.SUBSTR (COL3, 3000, 1) COL3
      FROM TABLE1);


View has select grants to Schema B
Also DBMS_LOB execute grants exists for both schema A and B.

When I login Schema B
and access the view - it says Error: ORA-01031: insufficient privileges
Where as if I excute the view query directly in Schema B - it works perfectly.

Let me know if any grants missing or is it because of CLOB object and we cannot view from different user?
Re: DBMS_LOB defined in a View - Error: ORA-01031: insufficient privileges [message #617524 is a reply to message #617520] Tue, 01 July 2014 04:47 Go to previous message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Copy and paste what you actually did and got.

Previous Topic: CURSOR FOR LOOP
Next Topic: Grouped data on detail record
Goto Forum:
  


Current Time: Thu Apr 25 23:48:52 CDT 2024