mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-10 02:28:33 +00:00
perf: python-oracledb Thin Mode
This commit is contained in:
parent
91867fa01d
commit
df1aa73723
@ -56,7 +56,7 @@ class OracleClient(object):
|
|||||||
def cursor(self):
|
def cursor(self):
|
||||||
if self._cursor is None:
|
if self._cursor is None:
|
||||||
try:
|
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._conn = oracledb.connect(**self.connect_params)
|
||||||
self._cursor = self._conn.cursor()
|
self._cursor = self._conn.cursor()
|
||||||
except DatabaseError as err:
|
except DatabaseError as err:
|
||||||
|
Loading…
Reference in New Issue
Block a user