update : 10.01.2025 9:47:53,74

This commit is contained in:
Sabron 2025-01-10 09:47:53 +07:00
parent 2dad45a017
commit 46034305e1

View File

@ -94,8 +94,10 @@ def test_oracle_connect():
un = 'mfsb'
cs = '192.168.77.1:1521/v3'
pw = '00QgSiB1'
connection = cx_Oracle.connect(user=un, password=pw,
dsn=cs)
#connection = cx_Oracle.connect(user=un, password=pw,
# dsn=cs)
connection = cx_Oracle.connect('mfsb/00QgSiB1@192.168.77.1:1521/v3')
cursor = connection.cursor()
sql='SELECT * FROM OBSTATE'
sql='SELECT owner, table_name FROM dba_tables'
@ -106,6 +108,7 @@ def test_oracle_connect():
cursor.close()
connection.close()
except Exception as err:
connection.close()
logging.error(traceback.format_exc())
if __name__ == "__main__":