Re: is it possible to use ip:port instead of sid for oracleconnection? by S
S
Fri Nov 25 08:55:28 CST 2005
Hi,
I haven't seen such a thing in use myself, because all the IP address + port
numbers are usually stored in the tnsname.ora file, IINM, so it would be the
right way to connect using the name, instead of the IP address.
-Altaf
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"loveleechangho" <loveleechangho@discussions.microsoft.com> wrote in message
news:B3856BE5-8F36-4F16-A255-A2D38737498D@microsoft.com...
> for example:
>
> connectionstr="DATA SOURCE=192.168.1.11:1521;UID=bnd;PWD=bnd;" instead of
> connectionstr="DATA SOURCE=sid;UID=bnd;PWD=bnd;"
>
> new oracleconnection(connectionstr);
>
> is it ok, and what is the format of data source?