Re: ORA-12560:TNS:protocol adapter error with cx_Freeze
Claus Gyrup Nielsen <claus-/rcTyO1/[email protected]>
| Newsgroups | gmane.comp.python.db.cx-oracle |
|---|---|
| Message-ID | <[email protected]> |
I'm providing a TNS entry to connect. It doesn't work if I provide host/port. I have tried both methods for the frozen version. Sent from my iPhone. > Den 16/07/2014 kl. 15.19 skrev Dwayne King <[email protected]>: > > What method are you using to connect? i.e. are you providing host / port / SID, or are you providing a TNS entry? > > >> On Wed, Jul 16, 2014 at 5:37 AM, Claus Gyrup Nielsen <claus-/rcTyO1/[email protected]> wrote: >> Yes, i'm running both on the same machine. Haven't tested on another machine yet. >> >> Sent from my iPhone. >> >>> Den 16/07/2014 kl. 02.50 skrev Dwayne King <[email protected]>: >>> >> >>> Are you testing on the same machine? If not, are you sure that the machine that you're using the frozen version on has the same environment variables for ORACLE_HOME, ORACLE_SID, TNS_ADMIN etc? >>> >>> >>>> On Thu, Jul 10, 2014 at 8:41 AM, <claus-/rcTyO1/[email protected]> wrote: >>>> I have a python(3.4.1) script in which I use cx_Oracle(5.1.3) to connect to an oracle database (11g). >>>> >>>> I'm on a windows 7 machine (64bit). >>>> >>>> When I run the script from IDLE or from a command promt the program works perfectly and retrieves my data. >>>> >>>> However, when i create a frozen binary using cx_Freeze(4.3.3) and try to retrieve data i get the error message ORA-12560:TNS:protocol adapter error. All other parts of my program work perfectly. >>>> >>>> Any help or suggestions are highly appreciated. >>>> >>>> Best regards, >>>> >>>> Claus Gyrup >>>> >>>> ------------------------------------------------------------------------------ >>>> Open source business process management suite built on Java and Eclipse >>>> Turn processes into business applications with Bonita BPM Community Edition >>>> Quickly connect people, data, and systems into organized workflows >>>> Winner of BOSSIE, CODIE, OW2 and Gartner awards >>>> http://p.sf.net/sfu/Bonitasoft >>>> _______________________________________________ >>>> cx-oracle-users mailing list >>>> cx-oracle-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >>>> https://lists.sourceforge.net/lists/listinfo/cx-oracle-users >>>> >>> > ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ cx-oracle-users mailing list cx-oracle-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/cx-oracle-users