Añado librerias .dll para funcionamiento en Windows

This commit is contained in:
2025-07-02 09:56:22 +02:00
parent ffebce3343
commit f5dc307013
9 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -2,9 +2,10 @@ import os
from dotenv import load_dotenv
import cx_Oracle
print("Usuario:", os.getenv("OraHome"))
print("cx_Oracle version:", cx_Oracle.__version__)
print("Oracle Client version:", cx_Oracle.clientversion())
print(cx_Oracle.clientversion())
load_dotenv()
@@ -19,7 +20,7 @@ dsn = cx_Oracle.makedsn(host, port, sid=sid)
try:
connection = cx_Oracle.connect(user=user, password=password, dsn=dsn)
cursor = connection.cursor()
cursor.execute("SELECT CODIGO_PERSONAL FROM FPERSONA WHERE APELLIDO1 LIKE '%ALFARO%'")
cursor.execute("SELECT CODIGO_PERSONAL FROM FPERSONA WHERE APELLIDO1 LIKE '%ALFARO%' AND NOMBRE LIKE '%JESUS%'")
for row in cursor:
print(row)