Re: ADO request mistery



On Jun 20, 6:32 am, "Wilfrid" <grill...@xxxxxxxxx> wrote:
Hello,

I am running an application on a client machine (server 2003 sp2) that uses
the oledb driver to execute ado command (driver ODAC1020221.exe).
It connects to an oracle server 10.2.0.1.0 installed on a windows server
2003R2 SP2. The oracle has nls_language AMERICAN and nls_territory.

The application is regularly executing an update command. Some of the values
are dates formatted as DD/MM/YYYY. The application then writes a variant of
date type.
Sometimes, oracle returns the error message: ORA-01841: (full) year must be
between -4713 and +9999, and not be 0
When i check what data the application has sent i can see:

732531;0;20/06/2008  08:46:58;20/06/2008  08:47:00;title;type;19/06/2008
00:00:00;69;349;349;0;0;5;;2;1;20/06/2008  08:46:13;

One of the date is apparently taken as 0 event though the date we send has a
normal format.
In oracle 10, the view v$sql does not show the data inserted (only the
variable of the update command.

Now, this error started to appear few month ago (after installation of the
system), on the same day we might have 3 or 4 errors (some requests worked
some others not). We changed the regional settings of the 2 windows server
(to US). It stopped for a little while and then re appeared again.

What I do not understand is why it is working fine for weeks and then the
errors appears from time to time with no apparent patterns.
If anyone has an idea, please do not hesitate to share them with me!

thanks in advance

I see a similar problem with one of the computers in our IT group when
literal values with implicit type conversion are used rather than bind
variables. I have not spent much time tracking down the problem - it
may be a result of using an ODBC connection with ADO, or NOT using
ODBC when using ADO directly against the database. Such a problem is
an excellent excuse to implement the proper method using bind
variables. If, for some reason, you cannot use bind variables, modify
the SQL statement to perform an explicit data type conversion: INSERT
INTO ... TO_DATE('20/06/2008','DD/MM/YYYY') ...

Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.
.



Relevant Pages

  • Re: ADO.NET and ODBC { CALL ..... } Syntax
    ... > Coonecting to Oracle 8i DB running on Unix ... > OleDB connection with provider as MSDAORA. ... > the same way as it works in ADO arena. ... You should really only do this at design-time, or with a command you will ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Solaris 10 - problem with connect to Oracle 10.2.0.2 with ORA_SYSDBA
    ... It's a production server, I can't upgrade DBD::Oracle for the moment. ... you are using the system command and given it returns -1 it failed. ... The oracle client libraries fiddle with SIGCHILD handling - presumably because it wants to know a SIGCHILD signals. ...
    (perl.dbi.users)
  • Re: Oracle und MS-SQL
    ... > Wenn ich über SQL QueryAnalyzer oder EnterpriseManager mir den View ... Könnte es sein dass Du einen Keyset Recordset (ADO oder ODBC) ... Der ist zwar für reinen SQL Server Zugriff längst ... sp_prepare ausgeführt und das mag den Oracle Provider verwirren. ...
    (microsoft.public.de.sqlserver)
  • Re: IMP-00058: ORACLE error 1017 encountered (invalid username/password)
    ... I am using Oracle for the 1st time. ... created by means of the export command. ... TABLESPACE SYSTEM TEMPORARY TABLESPACE TEMP QUOTA UNLIMITED ON SYSTEM; ... export server uses AL16UTF16 NCHAR character set (possible ncharset ...
    (comp.databases.oracle.server)
  • Re: OracleClient connection pooling
    ... randomly and the only way to fix is reboot the server. ... GetObject(System.Object, Boolean ByRef) ... Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DBCommand­Wrapper command) ... And from the error message it look like that Oracle client database pooling ...
    (microsoft.public.dotnet.framework.aspnet)

Loading