cx-oracle Questions
2
Solved
I have a query like this:
SELECT prodId, prod_name , prod_type FROM mytable WHERE prod_type in (:list_prod_names)
I want to get the information of a product, depending on the possible types are:...
Trici asked 3/8, 2018 at 11:27
2
Solved
I'm using Oracle Database with UTF-16 encoding. The diacritics is correctly displayed when using directly cx_oracle client. Connection statement is like this:
cx_Oracle.connect(username, password,...
Shaffer asked 4/1, 2018 at 13:24
12
Here's what I did:
I'm on Windows XP SP3
I already had Python 2.7.1 installed.
I downloaded instantclient-basic-nt-11.2.0.3.0.zip, unzipped it, and put it in C:\Program Files\Oracle\instantclient...
1
Solved
In using cx_Oracle to invoke a simple stored procedure, I can easily get data back from the procedure as so:
db = db_class() #Sets up stuff, etc.
conn = db.connect() #Returns a connection to the d...
1
Solved
I'm attempting to connect to an oracle server in Python. I have this working in cx_Oracle, but when I try to connect using sqlalchemy it fails. The cx_Oracle code:
import cx_Oracle
import pandas a...
Bile asked 23/2, 2018 at 16:11
3
I try to connect to a remote oracle server by cx_Oracle:
db = cx_Oracle.connect('username', 'password', dsn_tns)
but it says databaseError: ORA-12541 tns no listener
2
Solved
I am trying to connect to Oracle using AWS lambda and python.
These are the step I followed. (Everything has done EC2 instance)
Downloaded the instantclient-basic-linux.x64-12.2.0.1.0.zip and
in...
Canst asked 25/10, 2017 at 16:41
1
Solved
I am getting the error cx_Oracle.DatabaseError: ORA-00933: SQL command not properly ended when trying to run the following code. I have used
import cx_Oracle
ip = '127.0.0.1'
port = 1234
SID = 'ab...
3
Solved
Here's my code:
import cx_Oracle
conn = cx_Oracle.connect(usr, pwd, url)
cursor = conn.cursor()
cursor.execute("UPDATE SO SET STATUS='PE' WHERE ID='100'")
conn.commit()
If I remove the conn.com...
2
I have this code where I am executing a select sql statement from python code using cx_oracle package:
import cx_Oracle
try:
cur = conn.cursor()
result = cur.execute('select * from table1')
pr...
2
Solved
I've trying to create a list with the results from a column. I execute the query and the result are okay, but when I input the data in a list using list.append they return just [].
import cx_Oracl...
Dozen asked 8/8, 2017 at 20:47
5
Solved
As I understand it, there was some change related to SIP that makes installing this difficult.
These pages have the background and advice to install. http://sourceforge.net/p/cx-oracle/mailman/mes...
Cryogenics asked 21/10, 2015 at 12:44
4
I need install cx_Oracle for Python 2.5 on Linux (Linux 2.6.18-371.1.2.el5 i686). I have installed Oracle client 10.2.0.4.
I have tried following:
1. Download cx_Oracle tar.gz from http://sourcefo...
Fumarole asked 3/7, 2014 at 9:26
2
I have installed Anaconda 3.5 for Windows 64bits, and I need to connect to the Oracle database using package "cx_Oracle".
I tried with the anaconda way:
conda install -c https://conda.anaconda.o...
6
Solved
I've been using the following function to make a "more readable" (supposedly) format for fetching data from Oracle. Here is the function:
def rows_to_dict_list(cursor):
"""
Create a list, each ...
5
Solved
I'm getting the standard "DLL load failed; module not found" error when trying to import cx_Oracle. I have the proper instant client installed, the paths are all correct... running Dependency Walke...
2
Solved
I am a Python newbie, I am having troubles in the use of bind variables. If I execute the code below everything works fine.
bind= {"var" : "ciao"}
sql = "select * from sometable where somefield = ...
Lanneret asked 30/9, 2015 at 14:27
2
I'm using anaconda with Python3
I installed cx_oracle package using pip.
When I type import cx_Oracle or run the code, the python interpreter recognizes the package and runs it, but for some rea...
2
I have a problem importing cx_Oracle with Python. I know a lot of issues with cx_Oracle have been discussed here, but it seems that I cannot find a solution to my problem after reading all the rela...
Consistency asked 9/6, 2014 at 16:1
2
Solved
I'm trying to use cx_Oracle to connect to an Oracle instance and execute some DDL statements:
db = None
try:
db = cx_Oracle.connect('username', 'password', 'hostname:port/SERVICENAME')
#print(db....
1
I am on Windows 10 Pro 64-bit Anniversary Edition using Python 3.5.2 (Anaconda 4.1.1). I download the latest Oracle 12c Instant Client instantclient-basic-windows.x64-12.1.0.2.0.zip and instantclie...
4
Solved
I recently installed cx_Oracle module on my machine, in order to connect to a remote Oracle database server. (I have no Oracle client at my side).
Python: Version 2.7 x86
Oracle: Verision 11.1....
3
I'm working with a database containing a lot of Chinese characters. My code goes something like this:
connection = cx_Oracle.connect("%s/%s@%s:%s/%s" % (username, password, host, port, service_nam...
5
Solved
I have some monthly weather data that I want to insert into an Oracle database table but I want to insert the corresponding records in a batch in order to be more efficient. Can anyone advise as to...
Busboy asked 15/2, 2013 at 21:58
3
Solved
I have two RHEL servers running Python 2.4 and 2.6 separately. There is an Oracle database on the other server I need to access.
I was trying to install cx_oracle on my RHEL server but found out t...
Yale asked 2/10, 2013 at 17:6
© 2022 - 2024 — McMap. All rights reserved.