Re: [cx-oracle-users] Re: cx-oracle-users digest, Vol 1 #167 - 4 msgs
Brought to you by:
atuining
From: Anthony T. <ant...@gm...> - 2005-11-07 15:07:00
|
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. On 11/6/05, Paul Watson <pw...@re...> wrote: > > Hmm, I'm not sure exactly what you think the problem is. From your > > demo below the dsn produced by your call to makedsn() looks just fine. > > Can you indicate what you were expecting to happen? > > Sorry. I guess that it is less than obvious that my hostname (pwatson) i= s not the IP address of the Oracle host. > > I was expecting makedns() to contain 'HOST=3D172.16.0.80' which is the ad= dress of the Oracle engine server, not my local IP address. > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Downl= oad > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > |