473,396 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

cx_Oracle.DatabaseError: ORA-24315: illegal attribute type

I am trying to connect to an Oracle database using cx_Oracle.

my code is the following:

import cx_Oracle
connection=cx_Oracle('user','pwd','host')

and I get the following error.
cx_Oracle.DatabaseError: ORA-24315: illegal attribute type

I can connect to the same database using SQL+ with all the same user, pwd, and host. I can not figure out what I am doing wrong.

thanks
Aug 27 '10 #1
5 14545
bvdet
2,851 Expert Mod 2GB
Try using a single string argument in the format "user/password@dsn".
Aug 27 '10 #2
I get the same error if I use "user,password@host" or 'user','password','host'
Aug 27 '10 #3
bvdet
2,851 Expert Mod 2GB
Oops! To create a connection object, you must call Connection() or connect() as in
Expand|Select|Wrap|Line Numbers
  1. import cx_Oracle
  2. connection=cx_Oracle.Connection('user','pwd','host')
I wasn't paying attention.
Aug 27 '10 #4
I actually mis-typed the code I was using and had cx_Oracle.connect('user/pwd@host') and it doesn't work. Though I am wondering if there is something with the path or environ var that I am missing.
Aug 30 '10 #5
Dang
1
I just had this problem, getting error: ORA-24315 no matter how I tried to connect.

I searched the web for hours, but didn't find the answer.
I figured it out, and will share, though it's a bit embarassing.

I originally downloaded/installed the Ora11g version, but the database is 10g.
I installed the 10g version of cx_Oracle, and the connection worked the first time.

--dang
Sep 23 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: GrayGeek | last post by:
After cx_Oracle and the related Oracle tools for Python 2.2.3 + Boa-constructor on Win2000, I added "import cx_Oracle" to the top of a test script. It gives me an error about being unable to find...
1
by: Benson, John | last post by:
Hi, I'm a non-Oracle guy just starting to use Python to explore Oracle. I enclose the Python command prompt log for the usage example further down with only the user, password and host names...
8
by: Rodrigo Daunaravicius | last post by:
I can't get this configuration working: cx_Oracle 4.0.1 Oracle 8.0.6 Python 2.3.3 Win NT4.0 SP6fc My first shot at the problem was just running the installation thingie pre-built for...
1
by: Greg Lindstrom | last post by:
>Shouldn't this be '/u01/app/oracle/product/9.2.0' ? Based on the following values, that's what I'd expect. I changed the ORCALE_HOME environment variable to the above suggested value and got a...
15
by: Andrew Dalke | last post by:
In searching I find there several different ways to connect to an Oracle server on MS Windows: mxODBC - http://www.egenix.com/files/python/mxODBC.html built on top of the ODBC drivers for a...
4
by: Damjan | last post by:
I'm using Python 2.4, cx_Oracle-4.1 on Linux with Oracle instant client 10.1.0.3. This is the sql string: SQL = """insert into D.D_NOTIFY values (:CARDREF, :BANKKEY, :OK1, :OK2 \ :DEBTEUR,...
0
by: Corrine | last post by:
Why am I getting this exception, and how can I fix it? I took out all the commit's and "select ... for update" statements that I had been calling using JDBC, but I'm still getting this exception. I...
4
by: infidel | last post by:
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? >>>...
1
by: [12]Nitro | last post by:
Greetings, I'm currently working in a Python project to create a multi-platform database replication tool, and cx_Oracle was the chosen provider to handle the Oracle connections. So far the...
7
by: Carl K | last post by:
I am trying to use this: http://python.net/crew/atuining/cx_Oracle/html/cx_Oracle.html it is a real module, right? sudo easy_install cx_Oracle did not easy_install cx_Oracle. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.