[cx-oracle-users] Re: Usage of makedsn()
Brought to you by:
atuining
From: <pw...@re...> - 2005-11-08 04:55:15
|
Yes, thank you. That explains it. I was thinking that this was something that read the tnsnames file. My bad. > From: Anthony Tuininga <ant...@gm...> > To: cx-...@li... > Subject: Re: [cx-oracle-users] Re: cx-oracle-users digest, Vol 1 #167 - 4 msgs > Reply-To: cx-...@li... > > Ah, makedsn() is not "smart" -- its simply a glorified string > substitution method so it takes what you give it so if you want it to > contain HOST=3D172.16.0.80 then specify that in your makedsn() call as > in > > dsn =3D cx_Oracle.makedsn("172.16.0.80", 1521, "TRAIN") > > which will yield > > '(DESCRIPTION=3D(ADDRESS_LIST=3D(ADDRESS=3D(PROTOCOL=3DTCP)(HOST=3D172.16.0= > .80)(PORT=3D1521)))(CONNECT_DATA=3D(SID=3DTRAIN)))' > > Hope that helps. |