?
Solved

how using java.io.FilePermission

Posted on 2001-08-03
5
Medium Priority
?
948 Views
Last Modified: 2012-08-13
Hallo,

how can i using java.io.FilePermission to scott allow delete a file on d:\temp\*.* ?

My PL/SQL procedure (a javaClass+Wrapper) is ok. if scott has the javasyspriv role, but by javauserpriv role i occur an error.

Thanks
0
Comment
Question by:belem
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Expert Comment

by:r_mikhaeel
ID: 6387492
at your sql+:
=============
login as sys or any other user of the administrator group, and invoke the following grant command:
call dbms_java.grantpermission('SCOTT','java.io.FilePermission','d:\temp\*.*','delete');

note:
=====
you can use execute instead of call,if it does not work.
0
 

Accepted Solution

by:
r_mikhaeel earned 600 total points
ID: 6387510
for more information see http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83728/securit2.htm#1004286

note: the last message has a writing error it should be like that:
call dbms_java.grant_permission('SCOTT','java.io.FilePermission','d:\temp\*.*','delete');


I hope that solves it.....:)

0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7034689
Please update and finalize this old, open question.  Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks,
Moondancer - EE Moderator

P.S.  Please click your Member Profile, expand View Question History to navigate and update all your open and locked questions.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7055694
Recommended disposition:

    Accept r_mikhaeel's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7057057
Thanks, Dan.
I finalized this today and will monitor it in the event an adjustment is needed.
Moondancer - EE Moderator
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Suggested Courses

800 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