Using Oracle OLE DB provider (with ADO) generates error: ORA-01843 while using date

Were using OLE DB provider in order to connect to our Oracle 9i database. When executing the following query in a SQL Plus window I will get the correct results:
SELECT gum_seu_syo_id, seu_userid, seu_first_name, seu_last_name
From group_user_mapping, security_users
Where gum_seu_syo_id = seu_syo_id
and gum_term_date > '8/19/2002'
and gum_seg_syo_id = 11
However if will execute the same query from the our application (VB using ADO) I will get the following error:
ORA-01843: Not a valid month
Checking with our Oracle DBA we made sure my registry is correct and includes the correct format under HEKY_LOCAL_MACHINE\SOFTWARE\ORACLE\ORACLE_HOME,
where the key is NLS_DATE_FORMAT (of type REG_EXPAND_SZ) with the value:
MM/DD/YYYY HH:MI:SS AM
I also run the following query in a SQL Plus window:
select sysdate from dual;
and got the following result:
08/19/2002 10:27:20 AM
which shows that the data format is correct.
Trying to switch between the month and day in the query (put '19/8/2002') worked from the application but generated ORA-01843: Not a valid month in the SQL Plus window.
Any ideas?

try using
to_char function
for eg.
select * from emp where to_char(hiredate,'dd/mm/yy') > '20/3/83'.
Jagriti

Similar Messages

  • Calling a stored procedure using Oracle Ole Db provider

    I am looking for an example of syntax used to call a stored procedure from VB.Net using the Oracle OleDB provider. I have been using the Microsoft provider MSDAORA but need to move to the Oracle provider due to upgrade. The syntax used with the MSDAORA provider does not work with the Oracle provider.

    Hi,
    Please refer to the Populate DataSet with Multiple REF Cursors Sample available at the following URL:
    http://otn.oracle.com/sample_code/tech/windows/ole_db/oledb92/index.html
    Check the PopulateProducts method available in the ViewProducts.cs file that call a database stored procedure "getProductsInfo" . This code is written in C# you may want to convert it to VB.NET syntax.
    Thanks,
    Jagriti
    OTN IDC Team.

  • Oracle OLE DB provider truncates LONG field's data

    I am using Visual Basic 6, Oracle 8.1, and use ADO to connect to the Oracle database.
    I have a problem with OLE DB provider OraOLEDB.Oracle reading a LONG field (MEMO field in Access).
    When I tried to get the value of the LONG field, it truncates it to 100 characters.
    I do not have the problem using Microsoft Oracle OLE DB Provider MSDAORA.
    This is the Oracle table:
    CREATE TABLE tblA (
    tblA_KEY NUMBER(10) NOT NULL,
    tblA_MEMO LONG NULL
    This is the VB 6 code:
    Set rs = New ADODB.Recordset
    rs.Open ssql, adoConn, adOpenForwardOnly, adLockReadOnly
    sMemo = "" & rs.Fields("tblA_Memo") -->> sMemo contains only the first 100
    characters of tblA_Memo
    How can I fix this?
    Thank you.

    Thanks. I assume you are talking about 9.2 version of Oracle, right?
    While we are in the subject of LONG field. In Oracle 8.1, I can not do the following sql stt:
    select * from tblA where tblA_Memo like '%york%'
    It gives me the error "ORA-00932: inconsistent datatypes"
    Can I do this in Oracle 9.2 ?
    Thank you.

  • Oracle OLE DB Provider / Stored Procedure REF CURSOR errror

    Post Author: robfurrball
    CA Forum: Data Connectivity and SQL
    All,I'm out of ideas on this and would appreciate any suggestions.I'm trying to use Crystal XI to connect to an Oracle 9i database using the Oracle OLE DB Provider (required to use this provider by a 3rd party program that fires off the report).If I connect using the Microsoft OLE DB Provider for Oracle,  the report will return data.  When connecting with the Oracle OLE DB Provider, I get the following:Database Connector Error: 'ADO Error Code: 0x80040e14
    Source: OraOLEDB
    Description: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'SP_MOMGLOBCSHBAL_TEST'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Native Error: 6550 [Database Vendor Code: 6550 ]' -
    The procedure's only parameter is an IN OUT SYS_REFCURSOR, and the Oracle OLE DB Provider is version 9.2.0.7.0 Thanks,Rob

    Post Author: robfurrball
    CA Forum: Data Connectivity and SQL
    Summary: After going
    back and forth with Business Objects support they ruled that it was an issue
    with the provider itself, recommended I contact Oracle for resolution, and
    closed the case before I could comment back to them.  I was unable to send this response to their
    support team, so I'm posting it here in hopes that I can save others time/money
    in the future.
    My Response -
      I appreciate your input and would have liked to comment further on the case management system before you closed the case.  I'm a little surprised and disappointed that you recommend I contact Oracle directly about this issue.I would imagine that a company as large as Business Objects would have much better results dealing with Oracle to resolve an issue compared to an individual.Also, since you are able to connect to other objects (such as a table) in Crystal Reports using that provider, I would expect that you would want customers to be able to connect to stored procedures using it as well.  Otherwise, it would seem appropriate to either alert customers of this defect through documentation, public message boards, and forums.Using Crystal to pull data from stored procedures in other databases and data providers made me think that was a viable option for this project.  Since it was not documented as a limitation of Crystal and the provider, it has cost my organization a great deal of time and money trying to troubleshoot an issue I would have expected to be caught in Crystal Reports' internal quality assurance testing.------ This is the final note I received on my support case: -
    Please note that the statement used to execute a procedure within ODBC/OLE DB is different from the native 'Oracle Server' statement.In ODBC or OLE DB, the call is '{CALL "SCHEMANAME"."TEST_PROCEDURE"(3)}' , when using native 'Oracle Server' the call is 'BEGIN "SCHEMANAME"."TEST_PROCEDURE"(:TEST_CURSOR, 1); END ;'In ODBC or OLE DB, the cursor is still used however it is not listed within the SQL Statement as in the Native connection. This is the behavior from Crystal Reports 9 forward that the cursor is not shown through ODBC/OLE DB.In addition to that as the issue is only with the Oracle OLE DB provider and I would suggest you to contact Oracle about this issue, since the issue occurs outside of Crystal Reports when using QTADO with a standard call, so it is not an issue between Crystal Reports and Oracle.The issue is only with Oracle OLE DB provider as the same Oracle stored procedure call works within QTADO with the MS Oracle OLE DB provider.As the issue is with the OLE DB Provider and not with Crystal Reports, we may not be able to proceed further. Hence, I am closing this case from Case Management System.

  • How to Configure and Use Oracle's JMS Connector with Tibco EMS

    Jeff,
    I am getting the below exception while try to do the deployment of the sample provided on 'How to Configure and Use Oracle's JMS Connector with Tibco Enterprise for JMS'
    While deployment not able to get the 'TibcoJMSReference',
    As I understand in the 'orion-application.xml for the below, unable to get the instance. Could you adivce how I can enable the trace more?
    <resource-provider class="com.evermind.server.deployment.ContextScanningResourceProvider" name="TibcoJMSReference">
    could you help to resolve the issue?
    Error
    Operation failed with error: No resource named 'TibcoJMSReference/TibcoXACF'found

    Hi,
    I'm also looking for the same 'Configure and Use Oracle's JMS Connector with Tibco JMS to consume message'. If you have already implemented and working fine, please let me know the steps and some documents.

  • Developer 9i suite & Oracle OLE DB provider conflict on XP Professional

    On a Windows XP Professional I installed Oracle 9i Developer suite Release 2 (9.0.2.0.0.) and it works fine.
    After that I installed the Oracle Provider for OLE DB 9.2.1.0 on the same machine and then after installing the OLE DB provider I get an error with Oracle Reports that will not open and gives me an illegal memory address error. Also I get another error with Forms.
    Is there any conflict in installing on the same XP machine 9i Developer suite (9.0.2.0.0) and the Oracle Provider for OLE DB 9.2.1.0 ?

    Hi,
    Unfortunately this forum can only deal with questions relating to the OTN documentation pages at: htp://otn.oracle.com/documentation/index.html
    Please try the Downloads forum at: Downloads Issues or the Database Product forums at: http://forums.oracle.com/forums/index.jsp?cat=18
    Regards,
    Les

  • How deploy Oracle OLE DB Provider?

    What information is available to enable one to set up a simple deployment scenario for a Delphi 6.0 program that
    utilizes the Oracle OLE DB Provider? (What DLL files are needed, what [if any] registry settings must be made,
    what configuration files are needed, etc..) It is not viable to expect the end user to download the 45 MB file from
    the Oracle site in order to obtain the functionality of the Oracle OLE DB Provider.
    Thanks for your help!
    Dave Eland
    [email protected]

    Put the Oracle Installation CD on the network and then install the Client version of Oracle to everyone's pc.
    I know there are deployment wizards for VB and VC++ but this is the best i think as there are lots of dll's and it gets messy.
    They will also need the tnsnames.ora entry.
    Make sure you have the right licensing agreement with Oracle.

  • Download Oracle OLE DB Provider

    Hello!
    I cannot download Oracle OLE DB Provider
    http://www.oracle.com/technology/software/tech/windows/ole_db/htdocs/utilsoft.htm
    I get the message: "We're sorry, the page you requested was not found. "
    I have tried with serveral versions (but I want to have one for version 10)
    Do anyone know where else I can find this provider.
    Best regards,
    Tina

    http://edelivery.oracle.com
    Regards
    Asif Kabir

  • The '' secondary data source is not a relational data source, or does not use an OLE DB provider.

    Hi,
    We are using Teradata as data source in SSAS 2008R2, it’s using ‘.Net Providers\.Net Data Provider for Teradata’.
    In DSV, we have two data sources both using Teradata. While processing dimensions, all dimensions coming from secondary data source has error message”
    The '' secondary data source is not a relational data source, or does not use an OLE DB provider.”
    But we are not using OLE DB provider for now, we’ve searched some threads that named queries can be replaced for secondary ds, but since we have a lot of tables, it’s hard to implement using named queries.
    Any inputs would be appreciated. 

    Hi memostone,
    When defining a data source view that contains tables, views, or columns from multiple data sources, the first data source from which you add objects to the data source view is designated as the primary data source (you cannot change the primary data
    source after it is defined). After defining a data source view based on objects from a single data source, you can then add objects from other data sources.
    If an OLAP processing or a data mining query requires data from multiple data sources in a single query, the primary data source must support remote queries using
    OpenRowset. Typically, this will be a SQL Server data source.
    Here are the restrictions:
    The primary data source should be SQL Server and support OpenRowset to the secondary data source.
    Or you design the cube in such a way that rocessing for each object only needs to access data from a single data source
    I recommand you refer to the following article:
    Defining a Data Source View (Analysis Services):
    http://technet.microsoft.com/en-us/library/ms174600.aspx
    Regards,
    Bin Long
    TechNet Community Support

  • Unable to download ORACLE OLE DB provider 8.1.7.3

    I can not connect to web18-115.us.oracle.com to download the oracle ole db provider for 8.1.7.3.
    Is this down?
    I need this ASAP.

    oh ... I forgot to say ..
    when I run query under Enterprise Manager as
    select * from Openquery (db, 'select * from table')
    then it will show me a pop-up message
    "Query Designer encountered a MS Design Tools error:
    ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB provider 'OraOLEDB.Oracle' reported an error.
    [Microsoft][ODBC SQL server Driver][SQL Server][OLE/DB provider returned message: ORA-12545: Connect failed because target host or object does not exist]
    And I follow support.microsoft.com/support/complus/mtsandoracle.asp?SD=GN&LN=EN-US&gssnb=1,setting as follow
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\MTxOCI]
    "OracleXaLib"="oraclient8.dll"
    "OracleSqlLib"="orasql8.dll"
    "OracleOciLib"="oci.dll"

  • Oracle OLE DB Provider installation failed...

    I downloaded ODAC101040.exe (Oracle OLE DB Provider setup) from following link.
    http://www.oracle.com/technetwork/database/windows/utilsoft-088126.html
    My OS is Windows 7 Home Premium.
    But during installation, am getting error "Abnormal Program Termination" "Unknown Unknown".
    Please help, if there is a workaround please let me know.

    My OS is Windows 7 Home Premium.Be aware that normally no Oracle products are certified for any Windows Home editions.
    BTW, did you read installation instructions from your link ?

  • Microsoft OLE DB Provider for ODBC Drivers error '80040e10'

    Getting the following error:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
    [Microsoft][ODBC driver for Oracle]Wrong number of parameters
    I have a Stored Procedure within a package that has no input parameter and 2 output parameters..
    oConnEngineer.CursorLocation = 3
         oConnEngineer.Open sConnectionString
         oCmdEngineer.ActiveConnection = oConnEngineer
         oCmdEngineer.CommandText = "{Call ENG_TAILORMADE.USER_PKG.GET_ENGINEER_LIST(?,{resultset 100, out_ENGINEER_ID, out_ENGINEER_NAME})}"
         oCmdEngineer.CommandType = 1
         Set rsEngineers = oCmdEngineer.Execute()
    Any suggestions?

    Getting the following error:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
    [Microsoft][ODBC driver for Oracle]Wrong number of parameters
    I have a Stored Procedure within a package that has no input parameter and 2 output parameters..
    oConnEngineer.CursorLocation = 3
         oConnEngineer.Open sConnectionString
         oCmdEngineer.ActiveConnection = oConnEngineer
         oCmdEngineer.CommandText = "{Call ENG_TAILORMADE.USER_PKG.GET_ENGINEER_LIST(?,{resultset 100, out_ENGINEER_ID, out_ENGINEER_NAME})}"
         oCmdEngineer.CommandType = 1
         Set rsEngineers = oCmdEngineer.Execute()
    Any suggestions?

  • Firefox Mobile 4 beta 3 (and pre-beta 4) fails to install on Archos 101 Tablet using Android 2.1 Eclair with no specific error.

    Firefox Mobile 4 beta 3 (and pre-beta 4) fails to install on Archos 101 Tablet using Android 2.1 Eclair with no specific error. Is this a know issue or has someone been able to successfully install?

    Sorry, we haven't tested Firefox on this device yet, and we aren't sure why it isn't working. If anyone (especially with Android development experience) would like to help us debug this problem, please start by creating an account and submitting a bug report at: https://bugzilla.mozilla.org/
    Thanks for the report.

  • Hello, I cannot show my video files on microsoft office program with  macair book 11 inc notebook while using projector

    I cannot show my video files on microsoft office program with  macair book 11 inc notebook while using projector

    When you next have the problem, note the exact time: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Scroll back in the log to the time you noted above. Select any messages timestamped from then until the end of the episode, or until they start to repeat, whichever comes first. Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Listener refused the connection with the following error: ORA-12500

    Hi,
    We had had some difficulties with our portal lately. All of a sudden portlets failed and started givin error messages all over our webpages.
    I tried to login to EM Console to try and restart Portal OC4J and got this error
    An error was encountered while loading page. An error occurred when attempting to connect to the Database.
    Resolution:
    Make sure that the database and listener are up.
    If the database is up, make sure that the OracleAS Repository API files ias.properties and iasschema.xml are correctly configured.
    If necessary, use the EM Console to reconfigure the host, user name and password associated with the database
    Base Exception:
    java.sql.SQLException
    Listener refused the connection with the following error:
    ORA-12500, TNS:listener failed to start a dedicated server process
    The Connection descriptor used by the client was:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PORTAL.MSS.EDUS.SI)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ASDB.MSS.EDUS.SI)))
    . Listener refused the connection with the following error:
    ORA-12500, TNS:listener failed to start a dedicated server process
    The Connection descriptor used by the client was:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PORTAL.MSS.EDUS.SI)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ASDB.MSS.EDUS.SI)))
    In ..INF/network/sqlnet.log
    Fatal NI connect error 12500, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=portal.mss.edus.si)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=asdb.mss.edus.si)(CID=(PROGRAM=I:\Oracle\INF\Apache\Apache\Apache.exe)(HOST=CLUSTER1)(USER=SYSTEM))))
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.1.0.4.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.1.0.4.0 - Production
    Time: 11-JUN-2007 13:00:24
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12564
    TNS-12564: TNS:connection refused
    ns secondary err code: 0
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    After restart everything works as normal. Any ideas what went wrong, or where to look for some additional answers?

    Ora12500 means your OS has run out of resources, so you cannot start a process on the Server Side. Post the complete error stack, the last lines show further information to troubleshoot this error.

Maybe you are looking for

  • Officejet 4630 will not connect to wifi

    Bought this printer a few months ago, set it up, no problems.  Now all of a sudden, it will connect to wifi.  Nothing with wifi has changed.  Printer finds wifi, I enter the password, and it thinks for a while, then says "Connection Failed, Cannot co

  • Adobe Acrobat 6.0 Standard

    Hello! I have Adobe Acrobat 6.0 Standard in a computer. I want to insert a word 2003 document into a pdf document. I try to do it but without any solution. It started doing something but then you see that there is nothing in the pdf document; in othe

  • How to get the variant?

    Hi, I want to save the values used in selection screen of the classical report as variant and inturn use that variant while submit the report. Please tell me how can I save that variant.

  • PO type in classic scenario

    Dear SAP gurus, We're planning to use classic scenario in SRM 7 EHP 2 with backend ECC 6 EHP 5. In my previous project, i'm using extended classic, where after accepting RFx response, I can click simulate and create PO, and I can choose the PO type t

  • Simple vector problem

    I need to add a double and a string as one element in a vector. I can add doubles by themselves, however adding a string with it, doesnt seem to work. test.addElement((new Double( 20)),(new String (star)))); Cheers for any help