[Last Call] Learn how to a build a cloud-first strategyRegister Now


how to check file permissions

Posted on 2011-10-31
Medium Priority
Last Modified: 2012-05-12
Hello All,

I granted the file permission to a user using

exec dbms_java.grant_permission( 'TESTUSER', 'SYS:java.io.FilePermission', '/filers/ dle/reader.csv','read');

Is there a query exists I can use to check if the permissions has been assigned to this user on this file.
Question by:dojjol
  • 2
LVL 74

Accepted Solution

sdstuber earned 1000 total points
ID: 37057313
look in dba_java_policy
LVL 74

Expert Comment

ID: 37057320

 WHERE grantee = 'TESTUSER' AND type_name = 'java.io.FilePermission' AND action = 'read'
LVL 23

Assisted Solution

OP_Zaharin earned 1000 total points
ID: 37057323
select * from USER_JAVA_POLICY where grantee_name = 'TESTUSER';

Author Closing Comment

ID: 37057440
Thanks sdstuber and OP Zaharin

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Suggested Courses
Course of the Month18 days, 1 hour left to enroll

829 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