cx-oracle

    0熱度

    1回答

    我正在使用Kenneth Ritz的記錄庫連接到Oracle。 db = records.Database('oracle://scott/[email protected]:1521/orcl') 但它總是拋出此錯誤 DatabaseError: (cx_Oracle.DatabaseError) ORA-12545: Connect failed because target host

    1熱度

    1回答

    我是Python新手。過去幾天,我嘗試使用Anaconda3(3.6)和Oracle 11g客戶端在64位Windows 8.1上運行cx_oracle。 最後我設法使它工作,但它非常繁瑣。 Anaconda似乎是一個廣泛使用的發行版,Windows是一個常見的操作系統,而cx_oracle windows二進制文件來自python.org,因此真的可以做到這一點嗎?!? 我無法使用Gholke'

    0熱度

    2回答

    我想部署到PCF的Python腳本和API很少。在構建過程中,我收到了這個錯誤,最後銷燬了容器。 你知道如何解決這個。聽起來像cx_Oracle需要Oracle客戶端存在。 ----->安裝python-2.7.11 已下載[file:///tmp/buildpacks/3e091922d73fa9260b32ad7737d842e3/dependencies/https___pivotal-bu

    0熱度

    1回答

    我不能去我的環境中安裝cx_Oracle(64位Windows)中: 通過水蟒提示:pip install cx_Oracle的iget: Running setup.py install for cx-Oracle ... error error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ B

    6熱度

    3回答

    我安裝了cx_Oracle,並且可以成功導入它。但是,當我嘗試建立Oracle連接,我得到這個錯誤: Traceback (most recent call last): File "<stdin>", line 1, in <module> cx_Oracle.InterfaceError: Unable to acquire Oracle environment handle 我的操作系統是M

    1熱度

    1回答

    我試了幾次嘗試連接Oracle DB,但仍無法連接。以下是我的代碼連接。 $ sqlplus64 uid/[email protected]:1521/WSVC 我的環境現狀:Ubuntu的16.04/64位/ Python3.5 不過,我可以通過這樣的終端連接Oracle數據庫 我希望您能分享與此問題相關的知識和經驗。謝謝。 import os os.chdir("/usr/lib/oracl

    1熱度

    1回答

    我正在嘗試使用pip安裝cx_Oracle,但我一直在控制檯中獲取此輸出。 (test_env1)[ [email protected] ~ ] $ pip install cx_Oracle Collecting cx_Oracle Using cached cx_Oracle-5.3.tar.gz Installing collected packages: cx-Oracle

    0熱度

    1回答

    我對數據庫比較陌生,任何人都可以向我解釋爲什麼會出現這種情況? E.g.下面給出了一個無效字符錯誤: dsn_tns = cx_Oracle.makedsn(ip, port, SID) # cx_Oracle.connect([user, password, dsn, mode, handle, pool, threaded, events, cclass, # purity, newpa

    0熱度

    3回答

    我試圖解析以下參數爲cursor.execute: sql_insert = 'insert into sms_messaging (result_sms, msgid, msgparts) values (:1, :2, :3)' smsreport_text_new = ('success', '2D67C865FB6FA25A9261C75E8D2F0F2B ', 1) cursor.

    0熱度

    1回答

    我想,當我分析日期/時間參數如讓我周圍我收到錯誤消息頭: '29-SEP-1999 14:00:00' ,而不是: '29-SEP-1999' 前者不插入到表中,後者是。我懷疑NLS設置存在問題,但設置不太清楚日期/時間允許的格式,因此我需要在日期/時間重新格式化我的Python代碼。我目前對SQL Developer的NLS設置有: Date format: DD.MM.RR HH24: