Solved

how using java.io.FilePermission

Posted on 2001-08-03
5
947 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 150 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
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 explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

726 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