Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: java permissions

RE: java permissions

From: Richard Ji <Richard.Ji_at_ztango.com>
Date: Tue, 08 Jul 2003 09:41:28 -0700
Message-ID: <F001.005C3DF7.20030708093424@fatcity.com>


Try to grant it without the "SYS:"

begin
 dbms_java.grant_permission('DIRECTORV5' , 'java.net.SocketPermission'
, 'localhost:1024' , 'listen,resolve' ) ;

commit;
end;
/

-----Original Message-----
Sent: Tuesday, July 08, 2003 12:59 PM
To: Multiple recipients of list ORACLE-L

All,

> I'm getting a java exception in Oracle 8.1.7
>
> ORA-29532: Java call terminated by uncaught Java exception:
> java.security.AccessControlException: the Permission
> (java.net.SocketPermission localhost:1024- listen,resolve) has not been
> granted by dbms_java.grant_permission to
> SchemaProtectionDomain(DIRECTORV5|PolicyTableProxy(DIRECTORV5))
> ORA-06512: at "DIRECTORV5.JOSC_SEND_DATA", line 0
> ORA-06512: at line 37
>
> I've tried granting permissions with ...
>
> call dbms_java.grant_permission('DIRECTORV5' ,
> 'SYS:java.net.SocketPermission'
> , 'localhost:1024' , 'listen,resolve' ) ;
>

where DIRECTORV5 is my user

> But that hasn't helped. Any ideas what's wrong?
>
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: John Dunn
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Richard Ji
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Jul 08 2003 - 11:41:28 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US