Merge pull request #11293 from jumpserver/pr@dev@oracledb_thin_mode

perf: python-oracledb Thin Mode
This commit is contained in:
老广
2023-08-16 13:44:26 +08:00
committed by GitHub

View File

@@ -56,7 +56,7 @@ class OracleClient(object):
def cursor(self):
if self._cursor is None:
try:
oracledb.init_oracle_client(lib_dir='/opt/oracle/instantclient_19_10')
# oracledb.init_oracle_client(lib_dir='/opt/oracle/instantclient_19_10')
self._conn = oracledb.connect(**self.connect_params)
self._cursor = self._conn.cursor()
except DatabaseError as err: