Closed danilyef closed 6 months ago
@danilyef I hope that wasn't your real password!
What's the full DB version number? Is the DB also on the same machine?
Does Thick mode connect OK?
Is the CREATE TABLE clause relevant?
Is there an error earlier that was reported? If so, this issue has already been resolved. If you can build from source you can verify that fact. If not, you can wait for the upcoming version 2.0 release which is planned to be released soon.
@cjbj
---------------------------------------------------------------------------
DatabaseError Traceback (most recent call last)
Cell In[14], line 1
----> 1 oracledb.init_oracle_client()
2 oracledb.connect(user="username",
3 password="password",
4 dsn="hostname:port/servicename")
File src\\oracledb\\impl/thick/utils.pyx:476, in oracledb.thick_impl.init_oracle_client()
File src\\oracledb\\impl/thick/utils.pyx:500, in oracledb.thick_impl.init_oracle_client()
File src\\oracledb\\impl/thick/utils.pyx:421, in oracledb.thick_impl._raise_from_info()
DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "C:\Oracle\product\12.2.0\client_1\bin\oci.dll is not the correct architecture"
@danilyef Anthony has a more useful answer, but for what it's worth, 19.0.0.0.0 is not the full DB number. There will be another 19.x number with a non-0 x somewhere.
You need to install an Oracle client to enable Thick mode, see https://python-oracledb.readthedocs.io/en/latest/user_guide/initialization.html#enabling-python-oracledb-thick-mode
I am trying to connect to my Oracle Database, but throws me an error:
OSError: [WinError 10038] An operation was attempted on something that is not a socket
Error: