Solved

ORA-01720: grant option does not exist for 'APPLSYS.FND_USER'

Posted on 2013-02-04
3
1,482 Views
Last Modified: 2013-02-05
I have created a view as
DROP VIEW BOLINF.TPCO_SHIP_TO_LOCATION;

/* Formatted on 2/4/2013 10:31:56 AM (QP5 v5.149.1003.31008) */
CREATE OR REPLACE FORCE VIEW BOLINF.TPCO_SHIP_TO_LOCATION
(
   LOCATION_CODE,
   SHIP_TO_LOCATION_ID
)
AS
   SELECT UNIQUE HRL.LOCATION_CODE, PHA.SHIP_TO_LOCATION_ID
     FROM PO_HEADERS_ALL PHA,                              --PO_LINES_ALL PLA,
                             HR_LOCATIONS HRL, FND_USER FU
    WHERE     1 = 1
          --PHA.PO_HEADER_ID = PLA.PO_HEADER_ID
          AND HRL.LOCATION_ID = PHA.SHIP_TO_LOCATION_ID
          AND PHA.CREATED_BY = FU.USER_ID
--AND PHA.CANCEL_FLAG ='Y'
;


when i am trying to run this

grant SELECT on BOLINF.TPCO_SHIP_TO_LOCATION to apps

ORA-01720: grant option does not exist for 'APPLSYS.FND_USER'

i am getting this error
0
Comment
Question by:pardeshirahul
  • 2
3 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 38851658
You can only grant select permissions on a view if you have the admin option granted to you on the underlying objects.

If you Google the ORA-01720 error there is a lot of information out there on this.

Check out:
http://ora-01720.ora-code.com/
0
 

Author Comment

by:pardeshirahul
ID: 38851703
Now it is saying under lying objects of the view should also be granted to apps

for PO_HEADERS_ALL  the owner is PO and grant option is not given to apps
for HR_LOCATIONS the owner is apps
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 38851737
Think about it:
I grant you select on one of my tables.

You create a view on my table.

You grant select on your view to a friend of yours I don't know.

Should your friend be able to select against my table?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question