Re: MERGE SQL in cx_Oracle executemany

2020-10-18 Thread Peter J. Holzer
On 2020-10-18 06:35:03 -, Mladen Gogala via Python-list wrote: > On Sat, 17 Oct 2020 21:23:40 -0600, Jason Friedman wrote: > >> I'm looking to insert values into an oracle table (my_table) using the > >> query below. The insert query works when the PROJECT is not NULL/empty > >> (""). However w

Re: MERGE SQL in cx_Oracle executemany

2020-10-17 Thread Mladen Gogala via Python-list
On Sat, 17 Oct 2020 21:23:40 -0600, Jason Friedman wrote: >> I'm looking to insert values into an oracle table (my_table) using the >> query below. The insert query works when the PROJECT is not NULL/empty >> (""). However when PROJECT is an empty string(''), the query creates a >> new duplicate

Re: MERGE SQL in cx_Oracle executemany

2020-10-17 Thread Jason Friedman
> > I'm looking to insert values into an oracle table (my_table) using the > query below. The insert query works when the PROJECT is not NULL/empty > (""). However when PROJECT is an empty string(''), the query creates a new > duplicate row every time the code is executed (with project value > popu

MERGE SQL in cx_Oracle executemany

2020-10-12 Thread Naveen Roy Vikkram
Hi there, I'm looking to insert values into an oracle table (my_table) using the query below. The insert query works when the PROJECT is not NULL/empty (""). However when PROJECT is an empty string(''), the query creates a new duplicate row every time the code is executed (with project value po

Re: cx_Oracle + array parameter

2016-03-04 Thread sandrof66
I did your solution. I created a varray like this: TYPE LIST_IDS IS TABLE OF INT INDEX BY BINARY_INTEGER, but when I try to use in a sql statement SELECT appears an oracle error cannot access row in nested table. I use oracle 11g and I read that you can use a varray declare in plsql to sql state

Re: cx_Oracle + array parameter

2016-03-04 Thread sandrof66
I did your solution. I created a varray like this: TYPE LIST_IDS IS TABLE OF INT INDEX BY BINARY_INTEGER, but when I try to use in a sql statement SELECT appears an oracle error cannot access row in nested table. I use oracle 11g and I read that you can use a varray declare in plsql to sql state

Re: cx_Oracle, callfunc and varray

2015-01-09 Thread Ian Kelly
On Fri, Jan 9, 2015 at 12:24 PM, Dom wrote: > Hi > > I'm trying to return a simple array of numbers from a package using cx_oracle > (5.1.2). I believe this is possible. I've not been able to find anything that > suggest it isn't I'm afraid I don'

Re: cx_Oracle, callfunc and varray

2015-01-09 Thread John Gordon
In Dom writes: > create or replace PACKAGE SIMPLEPACKAGE > AS > FUNCTION DoSomethingSimple( > cust_id INTEGER) > RETURN numarray; > FUNCTION DoSomethingSimpler( > cust_id INTEGER) > RETURN INTEGER; > END SIMPLEPACKAGE; > / > Any ideas what I'm doing wrong? Is RETURN IN

cx_Oracle, callfunc and varray

2015-01-09 Thread Dom
Hi I'm trying to return a simple array of numbers from a package using cx_oracle (5.1.2). I believe this is possible. I've not been able to find anything that suggest it isn't create or replace TYPE NUMARRAY -- Simple VArray of numbers is VARRAY(3) OF NUMBER; / create or

Problem in fetching blob or clob data with python and cx_oracle

2014-03-19 Thread goswami . anjan
It seems that when I attempt to download blob or clob data using fetchmany, it can not keep track of the LOB variable in subsequent fetch. The problem is over if I fetch one row at a time but it is not optimal. Can anyone give me an idea how to efficiently fetch columns with clob or blob data fr

Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 7:22 AM, Ruben van den Berg wrote: > I haven't the slightest clue why version 11 just - wouldn't - run but due to > backward compatibility it seems a stressful weekend got a happy ending anyway. Doesn't make particular sense to me either, but I don't know anything about O

Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

2013-11-25 Thread Ruben van den Berg
> > On Sun, 11/24/13, MRAB wrote: > > > > Subject: Re: cx_Oracle throws: ImportError: DLL load failed: This > application has failed to start ... > > To: python-list@python.org > > Date: Sunday, November 24, 2013, 7:17 PM > > > > On 24/11/201

Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

2013-11-25 Thread Albert-Jan Roskam
On Sun, 11/24/13, MRAB wrote: Subject: Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ... To: python-list@python.org Date: Sunday, November 24, 2013, 7:17 PM On 24/11/2013 17:12, Ruben van den Berg

Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

2013-11-24 Thread MRAB
On 24/11/2013 17:12, Ruben van den Berg wrote: I'm on Windows XP SP3, Python 2.7.1. On running import cx_Oracle I got the error ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix

Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

2013-11-24 Thread Chris Angelico
On Mon, Nov 25, 2013 at 4:12 AM, Ruben van den Berg wrote: > ImportError: DLL load failed: This application has failed to start because > the application configuration is incorrect. Reinstalling the application may > fix this problem. > > I then ran Dependency Walker on cx_Oracle.pyd. Its first

cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

2013-11-24 Thread Ruben van den Berg
I'm on Windows XP SP3, Python 2.7.1. On running import cx_Oracle I got the error ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. I then ran Dependency Walk

Re: cx_Oracle clause IN using a variable

2012-10-17 Thread Beppe
Il giorno martedì 16 ottobre 2012 19:23:22 UTC+2, Hans Mulder ha scritto: > On 16/10/12 15:41:58, Beppe wrote: > > > Hi all, > > > I don't know if it is the correct place to set this question, however, > > > I'm using cx_Oracle to query an Oracle datab

Re: cx_Oracle clause IN using a variable

2012-10-16 Thread Hans Mulder
On 16/10/12 15:41:58, Beppe wrote: > Hi all, > I don't know if it is the correct place to set this question, however, > I'm using cx_Oracle to query an Oracle database. > I've a problem to use the IN clause with a variable. > My statement is > > sql = "S

Re: cx_Oracle clause IN using a variable

2012-10-16 Thread Ian Kelly
On Tue, Oct 16, 2012 at 7:41 AM, Beppe wrote: > Hi all, > I don't know if it is the correct place to set this question, however, The best place to ask questions about cx_Oracle would be the cx-oracle-users mailing list. > what is wrong? > suggestions? With the bind para

cx_Oracle clause IN using a variable

2012-10-16 Thread Beppe
Hi all, I don't know if it is the correct place to set this question, however, I'm using cx_Oracle to query an Oracle database. I've a problem to use the IN clause with a variable. My statement is sql = "SELECT field1,field2,field3 FROM my_table WHERE field_3

Re: Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found."

2011-01-24 Thread thompjs
s 0x6BD8. Unloaded "OCI.DLL" at address 0x1000. LoadLibraryExA("C:\JSTData\Python27\lib\site-packages\cx_Oracle.pyd", 0x, LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL. Error: The specified procedure could not be found (127). Why is cx_Oracle not found after it has

Re: Error python + cx_Oracle :Oracle-Error-Message: ORA-01036: illegal variable name/number

2011-01-04 Thread Ian Kelly
On Tue, Jan 4, 2011 at 12:57 PM, Mauricio Martinez Garcia wrote: > > Hi, i need help with the next error: > > "ERR_PYTHON:Oracle-Error-Message: ORA-01036: illegal variable name/number", > i used the cx_Oracle module, and the error not is only Oracle Error. > > The

Error python + cx_Oracle :Oracle-Error-Message: ORA-01036: illegal variable name/number

2011-01-04 Thread Mauricio Martinez Garcia
Hi, i need help with the next error: "ERR_PYTHON:Oracle-Error-Message: ORA-01036: illegal variable name/number", i used the cx_Oracle module, and the error not is only Oracle Error. The error its for that python don't translate the query, with the variables ":VARIABLE&q

Re: Error installing cx_Oracle

2010-09-22 Thread James Mills
; > In one of my program file I had to use the module "cx_Oracle".For that > I have installed the module in my windows machine and done the > programming. But the finished program does not run in Solaris machine, > may be because "cx_Oracle" was not installed ther

Error installing cx_Oracle

2010-09-22 Thread AMC
Hi, >From last months I am using Python for making small but useful tools for my team members. I am doing my development in windows machine and running the program in Solaris machine where Python 2.6.2 is installed. In one of my program file I had to use the module "cx_Oracle".Fo

Re: Trouble importing cx_Oracle on HPUX

2010-08-30 Thread Cliff Martin
including libttsh11 fixed the problem. Thank you! Now I can get on with fixing everything that Python 3 broke... err changed. :) -- Cliff On Sat, Aug 28, 2010 at 11:20 AM, Alexander Gattin wrote: > Hello, > > On Sat, Aug 28, 2010 at 09:27:05AM -0400, Cliff > Martin wrote: > > Yes, our entire

Re: rouble importing cx_Oracle on HPUX

2010-08-28 Thread Alexander Gattin
Hello, On Sat, Aug 28, 2010 at 09:27:05AM -0400, Cliff Martin wrote: > Yes, our entire toolchain is 64 bit - a mix of > stuff I have downloaded and built and some > packages from HP (in the form of depot files) > GCC was downloaded from HP, for example. I see. I bootstrapped from bundled cc, henc

Re: Trouble importing cx_Oracle on HPUX

2010-08-28 Thread Cliff Martin
ug 28, 2010 at 9:11 AM, Alexander Gattin wrote: > Hello, > > On Thu, Aug 26, 2010 at 08:08:42PM -0700, Cliff > Martin wrote: > > I have just gotten done building Python 3.1.2 on > > HPUX 11.31 Itanium (IA64) using gcc 4.4.3, and > > have tried building cx_Oracle to

Re: Trouble importing cx_Oracle on HPUX

2010-08-28 Thread Alexander Gattin
Hello, On Thu, Aug 26, 2010 at 08:08:42PM -0700, Cliff Martin wrote: > I have just gotten done building Python 3.1.2 on > HPUX 11.31 Itanium (IA64) using gcc 4.4.3, and > have tried building cx_Oracle to go with it. The > build succeeds, but test and importing does not. > I have

Trouble importing cx_Oracle on HPUX

2010-08-26 Thread Cliff Martin
I have just gotten done building Python 3.1.2 on HPUX 11.31 Itanium (IA64) using gcc 4.4.3, and have tried building cx_Oracle to go with it. The build succeeds, but test and importing does not. I have tried building Python with threads and without. The only exotic thing I do with the configure for

Re: cx_Oracle 5.0.4 + Python 3.1.2 + Oracle Instant Client 10.2.04; DLL Load failed on import (Win/NT)

2010-08-13 Thread Hans Mulder
LL to your PATH variable. No, isn't that only if I have an actual Oracle client installed (not the instant client)? Whether you use the instant client or an actual Oracle client is not the issue. You may or may not need LD_LIBRARY_PATH either way. When you import cx_Oracle on Linux, it lo

Re: cx_Oracle 5.0.4 + Python 3.1.2 + Oracle Instant Client 10.2.04; DLL Load failed on import (Win/NT)

2010-08-12 Thread tormod
On Aug 12, 12:30 pm, Alexander Gattin wrote: > Does Windows have anything like > LD_LIBRARY_PATH/SHLIB_PATH? No, isn't that only if I have an actual Oracle client installed (not the instant client)? But great tip, wasn't exactly the solution, but your question triggered me to check the Windows e

Re: cx_Oracle 5.0.4 + Python 3.1.2 + Oracle Instant Client 10.2.04; DLL Load failed on import (Win/NT)

2010-08-12 Thread Alexander Gattin
Hello, On Wed, Aug 11, 2010 at 02:29:24PM -0700, tormod wrote: > I've tried countless times to build & install cx_Oracle on Python > 3.1.2, and failed every time, so I'd like to ask someone for help. ... > I've opened the cx_Oracle.pyd with Dependency Walker (http:/

cx_Oracle 5.0.4 + Python 3.1.2 + Oracle Instant Client 10.2.04; DLL Load failed on import (Win/NT)

2010-08-11 Thread tormod
Hi, I've tried countless times to build & install cx_Oracle on Python 3.1.2, and failed every time, so I'd like to ask someone for help. I've included step-by-step (literally) description of my last try, with so much detail I could, to help clarify things. I can build wi

Re: source install of python2.7 and rpm install of cx_Oracle collision

2010-07-22 Thread Nils Ruettershoff
Hi Jim, Jim Qiu wrote: I make installed python 2.7 from source, and also installed the RPM version of cx_Oracle for python 2.7. But ldd tells me : #ldd cx_Oracle.so libpython2.7.so.1.0 => not found I find out that only libpython2.7.a generated when I install python

Re: source install of python2.7 and rpm install of cx_Oracle collision

2010-07-22 Thread Nils Ruettershoff
Hi Jim, Jim Qiu wrote: [...] I find out that only libpython2.7.a generated when I install python2.7, who can tell me what I need to do ? I want a libpython2.7.so.1.0 generated when I've didn't read your complete mail... In addition to the steps I've described in my other mail, you need to

Re: source install of python2.7 and rpm install of cx_Oracle collision

2010-07-21 Thread Daniel Fetchinson
> I make installed python 2.7 from source, and also installed the RPM version > of cx_Oracle for python 2.7. > > But ldd tells me : > #ldd cx_Oracle.so > libpython2.7.so.1.0 => not found > > I find out that only libpython2.7.a generated when I instal

source install of python2.7 and rpm install of cx_Oracle collision

2010-07-21 Thread Jim Qiu
Hi all, I make installed python 2.7 from source, and also installed the RPM version of cx_Oracle for python 2.7. But ldd tells me : #ldd cx_Oracle.so libpython2.7.so.1.0 => not found I find out that only libpython2.7.a generated when I install python2.7, who can tell

Re: mod_python load cx_Oracle error

2010-07-19 Thread Mladen Gogala
On Mon, 19 Jul 2010 09:12:20 -0700, li wang wrote: > It's quite weird when I import cx_Oracle in python interactive shell, it > works perfectly. > but when I import cx_Oracle in a *,py script, handled by > mod_python.publisher, it keep reportint : > > ImportError: libclnt

mod_python load cx_Oracle error

2010-07-19 Thread li wang
It's quite weird when I import cx_Oracle in python interactive shell, it works perfectly. but when I import cx_Oracle in a *,py script, handled by mod_python.publisher, it keep reportint : ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or directory Can I anyone

Re: Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found."

2009-11-25 Thread André
On Nov 19, 6:57 pm, Neil Hodgson wrote: > André: > > > Apparently the error is caused by cx_Oracle not being able to find the > > Oracle client DLLs (oci.dll and others). The client home path and the > > client home path bin directory are in the PATH System Variable

Re: Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found."

2009-11-20 Thread Neil Hodgson
André: > Apparently the error is caused by cx_Oracle not being able to find the > Oracle client DLLs (oci.dll and others). The client home path and the > client home path bin directory are in the PATH System Variable and > oci.dll is there. Open the cx_Oracle extension with Depen

Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found."

2009-11-19 Thread André
Hello, I'm trying to get Python 3.1 and cx_Oracle 5.02 (cx_Oracle-5.0.2-10g.win32-py3.0.msi) to connect to an Oracle 11.1.0.7.0 database via OraClient10g 10.2.0.3.0 with Pydev 1.5.1.1258496115 in Eclipse 20090920-1017 on Windows XP SP 3 v2002. The import cx_Oracle line appears as an unres

Problems with cx_Oracle and Oracle 11.1 on Windows

2009-10-30 Thread ron.re...@gmail.com
Hi, I am trying to use cx_Oracle and SQLAlchemy with Oracle 11gR1 (11.1) on Windows Vista 64 bit. When I import cx_Oracle, I get this error: >>> import cx_Oracle Traceback (most recent call last): File "", line 1, in ImportError: DLL load failed: %1 is not a valid Win32 a

Re: cx_Oracle problem

2009-09-15 Thread Squid
On Sep 15, 9:45 am, Squid wrote: > It's time for another round of "stump-the-geek". (thats what we call > it in my office) > > If actual code is needed I can provide but lets start off small for > this one... > > I've got a Python script that uses cx_Ora

cx_Oracle problem

2009-09-15 Thread Squid
It's time for another round of "stump-the-geek". (thats what we call it in my office) If actual code is needed I can provide but lets start off small for this one... I've got a Python script that uses cx_Oracle to access an Oracle DB. running the script from command line runs

Re: Print value CLOB via cx_Oracle

2009-07-29 Thread Vincent Vega
On 28 Lip, 20:02, Vincent Vega wrote: > Hi, > > I call function in Oracle database use cx_Oracle. > In standard I define: > > db       = cx_Oracle.connect(username, password, tnsentry) > cursor  = db.cursor() > > I create variable 'y' (result function 

Print value CLOB via cx_Oracle

2009-07-28 Thread Vincent Vega
Hi, I call function in Oracle database use cx_Oracle. In standard I define: db = cx_Oracle.connect(username, password, tnsentry) cursor = db.cursor() I create variable 'y' (result function 'fun_name') and call function 'fun_name': y = cursor.var(c

Re: problem about cx_Oracle

2009-07-15 Thread Vincent
On Jul 16, 12:18 pm, Vincent wrote: > hi, all: > > i am using cx_oracle now. > > i write code as below: > > def __getfields_by_tbname(self,tbname): >         cursor = self.ora_db.cursor() >         print tbname >         sql = 'select * from %s where rownu

problem about cx_Oracle

2009-07-15 Thread Vincent
hi, all: i am using cx_oracle now. i write code as below: def __getfields_by_tbname(self,tbname): cursor = self.ora_db.cursor() print tbname sql = 'select * from %s where rownum <=2' % tbname print sql cursor = cursor.execute(sql)

cx_oracle

2009-04-21 Thread gita ziabari
Hello everyone, 1. I installed Oracle client on my linux x86_64 machine. 2. Set oracle home and LD_LIBRARY_PATH 3. Installed cx_oracle using rpm for python 2.5 -> It's installed and the following file exists: /usr/local/lib/python2.5/site-packages/cx_Oracle.so -> When I run python

Re: cx_Oracle - DLL load failed

2009-04-13 Thread Martin P. Hellwig
cwurld wrote: Hi, I am having some trouble getting cx_Oracle to work. When I try to import cx_Oracle, I get the following error message: ImportError: DLL load failed: %1 is not a valid Win32 application. I am using Python 2.6 on WIndows. Oracle Client 10g. Any ideas? Thanks Hmm some time

cx_Oracle - DLL load failed

2009-04-13 Thread cwurld
Hi, I am having some trouble getting cx_Oracle to work. When I try to import cx_Oracle, I get the following error message: ImportError: DLL load failed: %1 is not a valid Win32 application. I am using Python 2.6 on WIndows. Oracle Client 10g. Any ideas? Thanks -- http://mail.python.org

Re: how to manage CLOB type with cx_oracle

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 15:23:38 -0200, Loredana escribió: I try this code and it works: curs.execute(sqlstr) for rows in curs: for col in rows: try: print col.read() except: print col onother q

Re: how to manage CLOB type with cx_oracle

2009-03-03 Thread Loredana
; >> Lory > > > Hi all, > > I success to read one row with the following code: > > >         curs.execute(sqlstr) > >         name_of_columns =   [] > >         for fieldDesc in curs.description: > >             name_of_columns.append(fieldDe

Re: how to manage CLOB type with cx_oracle

2009-03-03 Thread Gabriel Genellina
except: print "except. ",rows_ but if I try with fetchmany() it doesn't work any ideas? cx_Oracle implements DBAPI 2.0, then you should follow the general guidelines in the specification: http://www.python.org/dev/peps/pep-0249/ LOBs are an extension to

Re: how to manage CLOB type with cx_oracle

2009-03-03 Thread Loredana
On Mar 3, 1:01 pm, Loredana wrote: > Hi, > > I need to read CLOB field type (it is long text) > > if I use this code: > > curs.execute(sqlstr) > rows['name_of_columns']     =   name_of_columns > rows['data']                         =   curs.fetchall() > > it returns me this values: > > test = {'na

how to manage CLOB type with cx_oracle

2009-03-03 Thread Loredana
Hi, I need to read CLOB field type (it is long text) if I use this code: curs.execute(sqlstr) rows['name_of_columns'] = name_of_columns rows['data'] = curs.fetchall() it returns me this values: test = {'name_of_columns': ['FILENAME', 'CRONTIME', 'SHORT_TAIL', 'L

Re: Problem with environment variables and cx_Oracle

2009-02-24 Thread Zvezdan Petkovic
On Feb 24, 2009, at 4:34 PM, Brandon Taylor wrote: Here's my setup: OS X (10.5.6 - Intel), Oracle Instant Clinet 10_2, Python 2.6.1, Django trunk OS X is an important detail here. In my .bash_profile, I have ORACLE_HOME and LD_LIBRARY_PATH specified as: ORACLE_HOME="$HOME/Library/Oracle/inst

Problem with environment variables and cx_Oracle

2009-02-24 Thread Brandon Taylor
quot;$HOME/Library/Oracle/instantclient_10_2" export ORACLE_HOME LD_LIBRARY_PATH=$ORACLE_HOME export LD_LIBRARY_PATH When I try to compile cx_Oracle-4.4.1 or 5.0.1, I get an error stating that it cannot find an Oracle installation. setup.py will error here: # try to determine

Re: cx_Oracle-5.0 Problem

2009-02-12 Thread Brandon Taylor
On Feb 12, 9:31 am, redbaron wrote: > > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/ > > lib/python2.6/site-packages/cx_Oracle.so, 2): Symbol not found: > > ___divdi3 > > You didn't link cx_Oracle.so all libs which it use. run "ldd -r > cx_Oracle.so" and you'll have an id

Re: cx_Oracle-5.0 Problem

2009-02-12 Thread redbaron
> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/ > lib/python2.6/site-packages/cx_Oracle.so, 2): Symbol not found: > ___divdi3 You didn't link cx_Oracle.so all libs which it use. run "ldd -r cx_Oracle.so" and you'll have an idea about all missing symbols. The names of misse

cx_Oracle-5.0 Problem

2009-02-12 Thread Brandon Taylor
Hello everyone, I'm Brandon Taylor, senior web developer with the University of Texas at Austin. We're using Python 2.6.1 and having a lot of difficulty getting the cx_Oracle-5.0 library to install on one of our MacBooks running OS X 10.5.6. We can get cx_Oracle to compile, but aft

Re: cx_Oracle issues

2009-01-05 Thread huw_at1
On Dec 18 2008, 10:34 am, huw_at1 wrote: > On Dec 16, 12:17 pm, huw_at1 wrote: > > > > > On Dec 15, 12:59 pm, "ron.re...@gmail.com" > > wrote: > > > > On Dec 15, 2:44 am, huw_at1 wrote: > > > > > On Dec 11, 5:34 pm, "ron.re...@gmail.com" wrote: > > > > > > On Dec 10, 9:48 am, huw_at1 wrote: >

Re: cx_Oracle issues

2008-12-18 Thread huw_at1
va executable which seemed to execute the SQL query without hitch. My Java isn't great but from what I could make out it seems that the query is broken down from: select (obj.function(value)) from table where id=blah to: select value from table where id=blah obj.function(value) So make two quer

Re: cx_Oracle issues

2008-12-16 Thread huw_at1
On Dec 15, 12:59 pm, "ron.re...@gmail.com" wrote: > On Dec 15, 2:44 am, huw_at1 wrote: > > > > > On Dec 11, 5:34 pm, "ron.re...@gmail.com" wrote: > > > > On Dec 10, 9:48 am, huw_at1 wrote: > > > > > Hey all. When usingcx_Oracleto run a procedure like: > > > > > cursor.execute("select (obj.funct

Re: cx_Oracle issues

2008-12-16 Thread huw_at1
On Dec 15, 12:59 pm, "ron.re...@gmail.com" wrote: > On Dec 15, 2:44 am, huw_at1 wrote: > > > > > On Dec 11, 5:34 pm, "ron.re...@gmail.com" wrote: > > > > On Dec 10, 9:48 am, huw_at1 wrote: > > > > > Hey all. When usingcx_Oracleto run a procedure like: > > > > > cursor.execute("select (obj.funct

Re: cx_Oracle issues

2008-12-15 Thread ron.re...@gmail.com
On Dec 15, 2:44 am, huw_at1 wrote: > On Dec 11, 5:34 pm, "ron.re...@gmail.com" wrote: > > > > > > > On Dec 10, 9:48 am, huw_at1 wrote: > > > > Hey all. When usingcx_Oracleto run a procedure like: > > > > cursor.execute("select (obj.function(value)) from table where > > > id=blah") > > > > I am g

Re: cx_Oracle issues

2008-12-15 Thread Hrvoje Niksic
huw_at1 writes: >> > ORA-06502: PL/SQL: numeric or value error: character string buffer too >> > small ORA-06512: at line 1 >> >> This error is a problem with the PL/SQL, not cx_Oracle.  You need to >> debug obj.function to see what kind of data is being acc

Re: cx_Oracle issues

2008-12-15 Thread huw_at1
On Dec 11, 5:34 pm, "ron.re...@gmail.com" wrote: > On Dec 10, 9:48 am, huw_at1 wrote: > > > > > Hey all. When using cx_Oracle to run a procedure like: > > > cursor.execute("select (obj.function(value)) from table where > > id=blah") > >

Re: cx_Oracle issues

2008-12-11 Thread ron.re...@gmail.com
On Dec 10, 9:48 am, huw_at1 <[EMAIL PROTECTED]> wrote: > Hey all. When using cx_Oracle to run a procedure like: > > cursor.execute("select (obj.function(value)) from table where > id=blah") > > I am getting the following error: > > ORA-06502: PL/SQL: numeric

Re: cx_Oracle issues

2008-12-10 Thread James Mills
confirmations? Could you not increase the buffer size ? I think you can do this with cx_Oracle. cheers James -- -- -- "Problems are solved by method" -- http://mail.python.org/mailman/listinfo/python-list

cx_Oracle issues

2008-12-10 Thread huw_at1
Hey all. When using cx_Oracle to run a procedure like: cursor.execute("select (obj.function(value)) from table where id=blah") I am getting the following error: ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at line 1 Looking at cursor.descrip

Re: cx_oracle and commands

2008-09-05 Thread Edwin . Madari
gaius hammond Wrote: >Hi all, > > >I am having a very strange problem with cx_Oracle, has anyone >seen this kind of behavior before: > > > >ActivePython 2.5.2.2 (ActiveState Software Inc.) based on >Python 2.5.2 (r252:60911, Mar 27 2008, 18:53:24) [C] on sunos5 >T

cx_oracle and commands

2008-09-05 Thread gaius hammond
Hi all, I am having a very strange problem with cx_Oracle, has anyone seen this kind of behavior before: ActivePython 2.5.2.2 (ActiveState Software Inc.) based on Python 2.5.2 (r252:60911, Mar 27 2008, 18:53:24) [C] on sunos5 Type "help", "copyright", "credi

Re: Python cx_Oracle and Apache

2008-08-25 Thread Raja
On Aug 25, 1:53 pm, Cousin Stanley <[EMAIL PROTECTED]> wrote: > > > > > def generate_output(): > >         print '' > > > generate_output() > >   Raja > >     You might try adding a  Content-type  header followed by >     a  blank line  to your  generate_output()  function > >     de

Re: Python cx_Oracle and Apache

2008-08-25 Thread Cousin Stanley
> > > def generate_output(): > print '' > > generate_output() Raja You might try adding a Content-type header followed by a blank line to your generate_output() function def generate_output() : print 'Content-type: text/html' print

Re: Python cx_Oracle and Apache

2008-08-25 Thread Hrvoje Niksic
Raja <[EMAIL PROTECTED]> writes: > The code is working fine on the command line but when executing it > on the browser i get the famouse "Premature end of script headers" > error. Look at the server's error log to see what the real error message is. You are probably missing an environment variabl

Python cx_Oracle and Apache

2008-08-24 Thread Raja
Hi, I am trying to write a cgi program which would be executed on browser with Apache server installed. The program would make a connection to a database using cx_Oracle module and display results on page. The code is working fine on the command line but when executing it on the browser i

Re: cx_Oracle execute procedure

2008-03-19 Thread Poppy
Thanks Jerry and Diez. The first two replies I found answered my noob question. "Jerry Hill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, Mar 19, 2008 at 11:03 AM, Poppy <[EMAIL PROTECTED]> > wrote: >> I've been working on the code below and and executes silently, no >

Re: cx_Oracle execute procedure

2008-03-19 Thread Diez B. Roggisch
er I'm not sure if I'm constructing my > python code correctly to interact with Oracle. > > I've been basing the code below on what I found in this thread > http://www.thescripts.com/forum/thread33728.html . > > Zach- > > import cx_Oracle > > connect

Re: cx_Oracle execute procedure

2008-03-19 Thread Jerry Hill
On Wed, Mar 19, 2008 at 11:03 AM, Poppy <[EMAIL PROTECTED]> wrote: > I've been working on the code below and and executes silently, no > complaints, however the end result should be a record in my table and it's > not added. The procedure works with the passed credentials using SQLPlus or > SQL

cx_Oracle execute procedure

2008-03-19 Thread Poppy
nstructing my python code correctly to interact with Oracle. I've been basing the code below on what I found in this thread http://www.thescripts.com/forum/thread33728.html . Zach- import cx_Oracle connection = cx_Oracle.connect("user/[EMAIL PROTECTED]") ## PROCEDURE rptmgr.rep_util

Re: Insert to a clob field using cx_Oracle via a stored procedure

2008-01-03 Thread hinds . ja
On Jan 2, 2:01 pm, [EMAIL PROTECTED] wrote: > Hello, > > Does anyone have experience using cx_Oracle to call a stored procedure > that inserts to a clob field?  We have done this successfully via > straight SQL, but we are at a loss on how to do the same insert using > a sto

Insert to a clob field using cx_Oracle via a stored procedure

2008-01-02 Thread hinds . ja
Hello, Does anyone have experience using cx_Oracle to call a stored procedure that inserts to a clob field? We have done this successfully via straight SQL, but we are at a loss on how to do the same insert using a stored procedure call. Any assistance would be much appreciated. Thanks. Jason

Re: cx_Oracle + array parameter

2007-12-03 Thread lukasz . f24
On 3 Gru, 19:07, Ian Clark <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hello, > > > I'm trying to pass array as an argument into PL/SQL procedure. > > According to cursor manual (http://cx-oracle.sourceforge.net/html/ > > cursorobj.html) arrayvar() should be use to do it. I've created

Re: cx_Oracle + array parameter

2007-12-03 Thread lukasz . f24
On 3 Gru, 19:07, Ian Clark <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hello, > > > I'm trying to pass array as an argument into PL/SQL procedure. > > According to cursor manual (http://cx-oracle.sourceforge.net/html/ > > cursorobj.html) arrayvar() should be use to do it. I've created

Re: cx_Oracle + array parameter

2007-12-03 Thread Ian Clark
[EMAIL PROTECTED] wrote: > Hello, > > I'm trying to pass array as an argument into PL/SQL procedure. > According to cursor manual (http://cx-oracle.sourceforge.net/html/ > cursorobj.html) arrayvar() should be use to do it. I've created my > array type in PL/SQL: > > CREATE OR REPLACE TYPE cx_arra

cx_Oracle + array parameter

2007-12-03 Thread lukasz . f24
Hello, I'm trying to pass array as an argument into PL/SQL procedure. According to cursor manual (http://cx-oracle.sourceforge.net/html/ cursorobj.html) arrayvar() should be use to do it. I've created my array type in PL/SQL: CREATE OR REPLACE TYPE cx_array_string is table of varchar2(200); and

Re: cx_Oracle: Non-ASCII characters handling with different versions

2007-11-16 Thread dwahli
WIN1252". A similar key was missing on the > other box. I added HKEY_LOCAL_SYSTEM\SOFTWARE\ORACLE\NLS_LANG with > the same value and now it works. You could use environment variable NLS_LANG to set it at run time with: os.environ["NLS_LANG"] = "AMERICAN_AMERICA.WE8MSWIN

Re: cx_Oracle: Non-ASCII characters handling with different versions

2007-11-14 Thread Benjamin Hell
Benjamin Hell wrote: > On a computer with cx_Oracle version 4.1 (Python 2.4.3, Oracle 10g) > I can get query results consisting of strings including non-ASCII > characters, e.g. the code example below outputs "é 0xe9" (which is > the correct ISO-8859-1 hex code for "é

Re: cx_Oracle: Non-ASCII characters handling with different versions

2007-11-13 Thread Gabriel Genellina
En Tue, 13 Nov 2007 13:37:16 -0300, Benjamin Hell <[EMAIL PROTECTED]> escribió: > I have a problem with the cx_Oracle module (Oracle database access): > > On a computer with cx_Oracle version 4.1 (Python 2.4.3, Oracle 10g) > I can get query results consisting of strings i

cx_Oracle: Non-ASCII characters handling with different versions

2007-11-13 Thread Benjamin Hell
Hi! I have a problem with the cx_Oracle module (Oracle database access): On a computer with cx_Oracle version 4.1 (Python 2.4.3, Oracle 10g) I can get query results consisting of strings including non-ASCII characters, e.g. the code example below outputs "é 0xe9" (which is the correct

Re: cx_oracle

2007-06-24 Thread Bernard Delmée
Hi Lukas, you will need a working oracle OCI client middleware before cx_oracle can talk to your database. The easiest nowadays is the so-called instant client, which must be available from the otn.oracle.com site (downloads might require a free registration). Try to get sql*plus working (the

cx_oracle

2007-06-24 Thread Lukas Ziegler
Hi, I want to get an access to an oracle database. For that I found the module cx_oracle (http://www.python.net/crew/atuining/cx_Oracle/) and I have installed the version 'Windows Installer (Oracle 10g, Python 2.5)'. Now I tried to run the script in the r

Re: installing cx_Oracle.

2007-05-24 Thread Charles Sanders
Doug Phillips wrote: >> It also works the other way around, at least on the non-empty >> set of systems that contains my workstation. export simply >> marks the variable name for automatic export to the >> environment of subsequent commands. The value at that time >> doesn't matter. What matter

RE: installing cx_Oracle.

2007-05-24 Thread Doug Phillips
> It also works the other way around, at least on the non-empty > set of systems that contains my workstation. export simply > marks the variable name for automatic export to the > environment of subsequent commands. The value at that time > doesn't matter. What matters is the value that the na

Re: installing cx_Oracle.

2007-05-24 Thread Carsten Haese
On Thu, 2007-05-24 at 16:15 +, Dennis Lee Bieber wrote: > On Thu, 24 May 2007 09:07:07 -0500, Carl K <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > Getting closer, thanks Bill and Diez. > > > > $ export ORACLE_HOME > > $ ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/prod

Re: installing cx_Oracle.

2007-05-24 Thread Carl K
Dennis Lee Bieber wrote: > On Thu, 24 May 2007 09:07:07 -0500, Carl K <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> Getting closer, thanks Bill and Diez. >> >> $ export ORACLE_HOME >> $ ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client > > Don't those

Re: installing cx_Oracle.

2007-05-24 Thread Steve Holden
Dennis Lee Bieber wrote: > On Thu, 24 May 2007 09:07:07 -0500, Carl K <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> Getting closer, thanks Bill and Diez. >> >> $ export ORACLE_HOME >> $ ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client > > Don't those

  1   2   >