Browse Source

perf: python-oracledb Thin Mode

pull/11293/head
吴小白 1 year ago
parent
commit
df1aa73723
  1. 2
      apps/ops/ansible/modules_utils/oracle_common.py

2
apps/ops/ansible/modules_utils/oracle_common.py

@ -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:

Loading…
Cancel
Save