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

Home -> Community -> Usenet -> c.d.o.server -> Re: problem in connecting to databases in oracle

Re: problem in connecting to databases in oracle

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 20 Apr 2006 08:22:44 -0700
Message-ID: <1145546564.240425.181320@g10g2000cwb.googlegroups.com>

suneel.n..._at_gmail.com wrote:
> Why do I get java.security.AccessControlException when using Java
> Sockets in oracle to connect with other sockets

You need to grant permission to the user to be able to connect to the socket.

Logon to sqlplus as sys and,
dbms_java.grant_permission('username', 'java.net.SocketPermission', 'host:port', 'resolve,connect');
commit;

Regards
/Rauf Received on Thu Apr 20 2006 - 10:22:44 CDT

Original text of this message

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