Solved

Need sample on how to acess Oracle using ojdbc14.jar

Posted on 2004-10-15
1
675 Views
Last Modified: 2012-06-27

Hi,

Need sample on how to acess Oracle using ojdbc14.jar

if at all posible.

TIA
0
Comment
Question by:eDias
1 Comment
 
LVL 11

Accepted Solution

by:
cjjclifford earned 250 total points
ID: 12337002
ojdbc14.jar is the JDBC thin client that is provided by Oracle (this is the equivalent for the old "classes12.zip"). To use this through Python is a little tricky - if you use Jython, then it should be straightforward enough (Create a java.sql.Connection, use that to create a java.sql.Statement, use that to executeQuery() on a SQL statement, which will return a java.sql.ResultSet, which can be used to go through the data.
If you are using C Python, then ojdbc14.jar is not the way to go... You should have a look at cx_Oracle, which is a Database access module conforming to the Python database API. (http://sourceforge.net/projects/cx-oracle/). You'll need the Oracle Client software installed to use this...

Documentation on using cx_Oracle is available here: http://starship.python.net/crew/atuining/cx_Oracle/html/index.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Python ElementTree xml output to csv 5 105
Pyhon with Oracle encoding issue 8 87
python sqlite question 11 46
Python:Remove duplicates without sorting? 5 74
Plenty of writing has gone on the web trying to compare Python with other competitive programming languages and vice versa. However, not much has been put into a wholistic perspective. This article should help you decide whether to adopt Python as a…
Less strange, but still introduction This introduction was added (1st August, 2011) to reflect some reactions.  Firstly, the term basics in the title of the article...  As any other word, it is a symbol with meaning attached to the word by some a…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now