Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Oracle 11g in Virtual Machine

746835May 7 2010 — edited May 7 2010
Hi Gurus,

I would like to gather input from you, what is the pro and con, advantages and disadvantages for putting Oracle 11g in Virtual Machine (VMWare, Oracle VM, Virtual Box, etc.)
and will there be any licensing issue with this.

Currently we have CPU Based license for our Production and Named User license for the Dev.

thanks in advance for your time.
Lie

Comments

MarceloF.Ochoa
Hi Arek:
Try this:
exec dbms_java.grant_permission( 'SLAB', 'SYS:java.net.SocketPermission', 'localhost:1024-', 'listen,resolve');
exec dbms_java.grant_permission( 'SLAB', 'SYS:java.net.SocketPermission', 'localhost:1024-', 'accept, resolve');
exec dbms_java.grant_permission( 'SLAB', 'SYS:java.net.SocketPermission', 'localhost:1024-', 'connect, resolve');
exec dbms_java.grant_permission( 'LUCENE', 'SYS:java.net.SocketPermission', 'localhost:1099', 'connect,resolve' );
these grants are working fine with my RMI server.
Best regards, Marcelo.
MarceloF.Ochoa
oops replace LUCENE by SLAB in last grant.
Marcelo.
Arek
Thank you Marcello,
Yes, it works, but it is more or less the same as allowing the whole localhost.

However - if we wanted to be picky - is there a way to limit the range to 100 ports only?

Setting permissions is the easy part:

dbms_java.grant_permission( 'SLAB', 'SYS:java.net.SocketPermission', '172.16.30.30:1099-1199', 'connect,resolve' );
etc

But how can we configure the RMI server and/or the database (which should it be?) to use only ports in this range?


Cheers
Arek
MarceloF.Ochoa
Answer
Hi Arek:
AFAIK is not a problem of RMI implementation.
Typically posix socket implementation when an application is listening in a specific port number once the connection is accepted is followed by a clone() call which find a free port number above of 1024 and use it.
So there is no chance to change this behavior :(
Marcelo.
Marked as Answer by Arek · Sep 27 2020
Arek
I see.
Thanks Marcello
1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 4 2010
Added on May 7 2010
4 comments
1,345 views