You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The value of systimestamp is wrong, it is different to the value in the database and the value reported by cx_Oracle.
Does your application call init_oracle_client()?
No.
Include a runnable Python script that shows the problem.
import oracledb
import cx_Oracle
user ="..."
password = "..."
dsn = "...
with oracledb.connect(user=user, password=password, dsn=dsn) as connection:
with connection.cursor() as cursor:
sql = """select systimestamp, current_timestamp from dual"""
for r in cursor.execute(sql):
print(r)
with cx_Oracle.connect(user=user, password=password, dsn=dsn) as connection:
with connection.cursor() as cursor:
sql = """select systimestamp, current_timestamp from dual"""
for r in cursor.execute(sql):
print(r)
import oracledb
print("oracledb.__version__:", oracledb.__version__)
If you want them to be the same, make sure to set the session time zone. The default session time zone for thin mode is UTC whereas for thick mode it is the client's time zone. You can request an enhancement to thin mode to do the same.
Error
The value of systimestamp is wrong, it is different to the value in the database and the value reported by cx_Oracle.
No.
The value of "systimestamp" is off by 1 hour when using oracledb instead of cx_Oracle.
The values reported by the database are:
The text was updated successfully, but these errors were encountered: