Our Oracle 10g database has recently been updated to 11g. The database runs on a computer running Windows Server 2003 X64. In SQL queries from a .NET application that access a table with TIMESTAMP (6) WITH TIME ZONE data columns, I get the following exception.
System.Data.OracleClient.OracleException: ORA-01805: possible error in date / time operation
the proposed action for exclusion is to ensure that the client and server are the same version:
ORA-01805: Possible error in the date / time operation Cause. The time zone files on the client and server do not match. The operation may lead to incorrect results based on the local time zone file. Action: Verify that the time zones of the client and server are the same.
I performed the following queries to check the time zone in the corresponding database. I did not find information on how to configure the time zone (or change the time zone file) for the client.
SELECT dbtimezone FROM DUAL; select * from v$timezone_file; DBTIMEZONE
I assume the client is referencing the Instant Client that I installed, which is version 11_2? I execute queries through System.Data.OracleClient.OracleConnection as provided by the .NET Framework. U I assume that the โtime zone versionโ refers to the time zone file versions. I do not see where the instant client has a timezone file. Any suggestions can be added.
source share