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't have an answer for you, but you would probably

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

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 this pro

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

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 database. > > > I've a problem to use the IN cla

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 = "SELECT field1,field2,field3 > FROM m

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 parameter you're only passing

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
tormod wrote: On Aug 12, 12:30 pm, Alexander Gattin wrote: Does Windows have anything like LD_LIBRARY_PATH/SHLIB_PATH? Yes and no. Windows uses PATH both for finding execuables and for finding DLLs. So if there's a DLL Windows cannot find, you need to add the folder containing that DLL to y

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:// > www.dependencywalker.com/) 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_Oracle to access an Oracle DB. > running the sc

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 a

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

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
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: > > > > > > Hey all. When usingcx_Oracleto run a procedur

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 accessed and then >> a data analysis of th

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") > > > I am getting the following error: > > > ORA-06502: PL/SQL:

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 or value error: character string buffer

Re: cx_Oracle issues

2008-12-10 Thread James Mills
On Thu, Dec 11, 2008 at 2:48 AM, huw_at1 <[EMAIL PROTECTED]> wrote: > Any tips - i have never seen this error before but am guessing that > the value being returned is too big for the buffer size set for the > cursor. the procedure fetches data from a LOB. > > Any suggestions/confirmations? Could

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 >Type "help", "copyright", "credits"

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
Poppy 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 Developer clients. However I'm not sure if I'm construct

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

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

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

2007-11-16 Thread dwahli
On Nov 14, 2:03 pm, Benjamin Hell <[EMAIL PROTECTED]> wrote: > It's solved: Because of a local full Oracle DB installation the > "working" box had the registry key > HKEY_LOCAL_SYSTEM\SOFTWARE\ORACLE\KEY_OraBD10g_home1\NLS_LANG set to > "AMERICAN_AMERICA.WE8MSWIN1252". A similar key was missing on

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 "é"). On a newer installation > w

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 including non-ASCII > cha

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 stan

Re: cx_Oracle and unicode data

2007-03-15 Thread GHUM
loo ping, > But it's not what I call a 'clean' solution and I suppose that it must > exist another way to force the client DB to use UTF8, or another > solution to get my data. I share your feeling. I asked a similiar question ~1 year ago; and: your solution is the only one. The oracle-libs get

Re: cx_Oracle and NCLOBs

2006-11-09 Thread Bernard Delmée
Sorry I have no direct answer for you, but suspect you should post to the cx_Oracle group. Check the sourceforge project page. It is also conveniently mirrored at news.gmane.org. -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_Oracle question

2006-09-08 Thread Richard Schulman
Richard Schulman: >> cursor.execute("""select mean_eng_txt from mean >> where mean_id=:arg_1""",arg_1) Uwe Hoffman: >cursor.execute("""select mean_eng_txt from mean >where mean_id=:arg_1""",{"arg_1":arg_1}) R.S.'s error message: >> Traceback (most recent call

Re: cx_Oracle question

2006-09-08 Thread Diez B. Roggisch
> cursor.execute("""select mean_eng_txt from mean > where mean_id=:arg_1""",{"arg_1"=arg_1}) Needs quotes of course. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_Oracle question

2006-09-08 Thread Diez B. Roggisch
Richard Schulman schrieb: > I'm having trouble getting started using Python's cx_Oracle binding to > Oracle XE. In forthcoming programs, I need to set variables within sql > statements based on values read in from flat files. But I don't seem > to be able to get even the following stripped-down tes

Re: cx_Oracle question

2006-09-08 Thread Uwe Hoffmann
Richard Schulman schrieb: > > cursor.execute("""select mean_eng_txt from mean > where mean_id=:arg_1""",arg_1) cursor.execute("""select mean_eng_txt from mean where mean_id=:arg_1""",{"arg_1":arg_1}) > Traceback (most recent call last): >File "oracle_te

Re: cx_Oracle and UTF8

2006-02-27 Thread Harald Armin Massa
Gerhard, thanks, that import os os.environ["NLS_LANG"] = "German_Germany.UTF8" import cx_Oracle con = cx_Oracle.connect("me/[EMAIL PROTECTED]") really helped. At least now the query returns something encoded differently. I dared not to believe that there is no "direct encoding change api" withou

Re: cx_Oracle and UTF8

2006-02-23 Thread Gerhard Häring
Harald Armin Massa wrote: > Dietz, > > thank you for your answer. > >>It's called NLS (national language support), >>and it is like a locale-setting in python/C. I'm too lazy to google right > > Sad thing: I allready googled that and had to learn: you CAN definitely > change some parameters, tha

Re: cx_Oracle and UTF8

2006-02-23 Thread Harald Armin Massa
Dietz, thank you for your answer. > It's called NLS (national language support), >and it is like a locale-setting in python/C. I'm too lazy to google right Sad thing: I allready googled that and had to learn: you CAN definitely change some parameters, that is sort order and language for error me

Re: cx_Oracle and UTF8

2006-02-23 Thread Diez B. Roggisch
Harald Armin Massa wrote: > Hello, > > I am looking for a method to convince cx_Oracle and oracle to encode > it's replies in UTF8. > > For the moment I have to... > > cn=cx_Oracle.connect("user","password", "database") > cs=cn.Cursor() > > cs.execute("select column1, column2, column3 from ta

Re: cx_Oracle string problems...

2006-02-13 Thread Carsten Haese
On Mon, 2006-02-13 at 13:50, Carsten Haese wrote: > By using parametrized queries, you don't have to worry about any of the > supplied values requiring special treatment due to any quotation marks > or apostrophes that might they might contain. Add grammar corrections to taste. -Carsten -- htt

Re: cx_Oracle string problems...

2006-02-13 Thread Carsten Haese
On Mon, 2006-02-13 at 13:18, MooMaster wrote: > Lol, that was a copy paste error into the post on my part...but the > problem has been fixed. Turns out that there was a string.replace call > somewhere else in the code that replaced all single quotes with empty > strings, which thus caused the singe

Re: cx_Oracle string problems...

2006-02-13 Thread MooMaster
Lol, that was a copy paste error into the post on my part...but the problem has been fixed. Turns out that there was a string.replace call somewhere else in the code that replaced all single quotes with empty strings, which thus caused the singe quotes to disappear! Whoops! Thanks for the look, th

Re: cx_Oracle string problems...

2006-02-13 Thread tooper
Looks like a space is missing before VALUES keyword ? -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_Oracle entry point error

2006-02-08 Thread Albert Leibbrandt
[EMAIL PROTECTED] wrote: >I downloaded cx_Oracle from >http://www.cxtools.net/default.aspx?nav=cxorlb and selected the windows >installer for Oracle 8i, Python 2.4 > >>From the readme.txt file: >BINARY INSTALL: >Place the file cx_Oracle.pyd or cx_Oracle.so anywhere on your Python >path. > >So I tr

Re: cx_Oracle callproc output parameters

2005-11-09 Thread Lao Tzu
Thanks! On 11/9/05, Gerhard Häring <[EMAIL PROTECTED]> wrote: > infidel wrote: > > I have a stored procedure that has a single output parameter. Why do I > > have to pass it a string big enough to hold the value it is to receive? > > Why can't I pass an empty string or None? > > [...] > > Am I mi

Re: cx_Oracle callproc output parameters

2005-11-09 Thread Diez B. Roggisch
Gerhard Häring wrote: > You have to use variable objects to the callproc() that will hold the > output values. This is an example using three VARCHAR output parameters. Oh boy, one never stops learning... I still thing a single in-out-value is crying for a function - but in case of several parame

Re: cx_Oracle callproc output parameters

2005-11-09 Thread Gerhard Häring
infidel wrote: > I have a stored procedure that has a single output parameter. Why do I > have to pass it a string big enough to hold the value it is to receive? > Why can't I pass an empty string or None? > [...] > Am I missing something obvious here? You have to use variable objects to the call

Re: cx_Oracle callproc output parameters

2005-11-09 Thread Diez B. Roggisch
infidel wrote: > I have a stored procedure that has a single output parameter. Why do I > have to pass it a string big enough to hold the value it is to receive? > Why can't I pass an empty string or None? > > import cx_Oracle as oracle connection = oracle.connect('usr/[EMAIL PROTECTED]

Re: cx_Oracle, is anything selected?

2005-11-01 Thread Damjan
> Apart from that: what harm does the connection to the smpt do? If it > works - keep it that way. I worry about being banned from the server. -- damjan -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_Oracle, is anything selected?

2005-11-01 Thread Gerhard Häring
Damjan wrote: > This is a simplification of the program > > c = db.cursor() > while 1: > c.execute('select ') > smtp = SMTP(MAIL_HOST, 25, 'localhost') > for address, subject, body in c: > smtp.sendmail() > smtp.quit() > time.sleep(60) > > now if the select doe

Re: cx_Oracle, is anything selected?

2005-11-01 Thread Diez B. Roggisch
> > I don't understand your problem - if your select doesn't return > > anything, the fetch* methods on the cursor will tell you if there is any > > data to expect at all. Additionally there is teh rowcount-property that > > holds the number of rows the last execute* yielded. > > This is a simplif

Re: cx_Oracle, is anything selected?

2005-11-01 Thread Damjan
>> Is there a way to see if the SELECT in cx_Oracle didn't return anything? >> I want to optimize the situation when the number of selected rows is >> zero. Is select count(*) the only option, seems inefficient? > > I don't understand your problem - if your select doesn't return > anything, the fe

Re: cx_Oracle, is anything selected?

2005-10-31 Thread Diez B. Roggisch
Damjan wrote: > Is there a way to see if the SELECT in cx_Oracle didn't return anything? > I want to optimize the situation when the number of selected rows is zero. > Is select count(*) the only option, seems inefficient? I don't understand your problem - if your select doesn't return anything,

Re: cx_Oracle failed to load DLL BUT versions correct

2005-02-09 Thread Aurelio Martin Massoni
jmdeschamps wrote: Hello Having cx_Oracle (an Oracle database connector for Python) used it here where I teach for the last couple of years, and finding it so easy to use (and install) I was taken aback when I got an error message telling me it could not load the DLL (complete message below) Third