Regarding the timestamp usage in oracle 11g

Hi All,
I am using the following query in 11g.
SELECT DISTINCT TO_DATE(SHIP_DTTM,'mm/dd/yyyy') FROM PS_IN_DEMAND WHERE SHIP_DTTM BETWEEN TO_DATE(fromdate,'mm/dd/yyyy') AND TO_DATE(todate,'mm/dd/yyyy')
The error i am getting is
System.Data.Odbc.OdbcException: ERROR [22007] [Microsoft][ODBC driver for Oracle][Oracle]ORA-01858: a non-numeric character was found where a numeric was expected
at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
at System.Data.Odbc.OdbcDataReader.Read()
at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping)
at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)
at System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
After my analysys i am getting the problem with the column SHIP_DTTM column and its datatype is Timestamp.
Please help me out in resolving this issue.
Thanks in advance

Hi,
This is an Oracle Database specific error, ORA-01858.
You posted on the wrong forum, this is the Berkeley DB (Core) forum.
Your question should probably be best posted on General Database Discussions.
Regards,
Andrei

Similar Messages

  • Where can I find the syntax guide for Oracle 11g?

    Sooooo frustrating...I've perused the Oracle site, have done Google searches, and cannot seem to find the syntax guide for Oracle 11g. Can someone provide me the URL or clue me in as to where it might be buried? Am I just being stupid???
    Thanks in advance for your review and am hopeful for a reply.
    PSULionRP

    the syntax guide for Oracle 11gWhat does that mean exactly ? Maybe the Reference guide ?

  • Doubt's regarding the Hierarchial Queries in Oracle

    Hi,
    i have a doubt regarding the Hierarchial Queries in Oracle.
    SELECT * FROM TMP_TEST;
    ID     NUMVAL     STRVAL
    1     100     Hello
    1     -100     World
    2     1     Concatenate
    2     2     In String
    2     3     using Connect By
    2     4     Using SYS_CONNECT_BY_PATH
    i am clear with my execution of IN_Line view (mechanism how it work's) .
    But i have also read about the Hierarchial queries in the Oracle product documentation's. i am also aware of the
    SYS_CONNECT_BY_PATH , LEVEL & START WITH , CONNECT BY Keywords.
    But i couldnot able to Manually work out as how this below Query works.
    Can you please explain me how this Hieracial query works ?
    SELECT ID, (SYS_CONNECT_BY_PATH(STRVAL,',')),LEVEL
    FROM
    SELECT ID,STRVAL,ROW_NUMBER() OVER(PARTITION BY ID ORDER BY ID) RNUM,
    COUNT(*) OVER(PARTITION BY ID ORDER BY ID) CNT,NUMVAL
    FROM TMP_TEST
    START WITH RNUM = 1
    CONNECT BY PRIOR RNUM = RNUM - 1
    Many Thanks,
    Rajesh.

    Hi, Rajesh,
    My first message was in response to your first message.
    In your latest message, the query is:
    SELECT  ID, (SYS_CONNECT_BY_PATH(STRVAL,',')),LEVEL
    FROM    (
            SELECT  ID,STRVAL,ROW_NUMBER() OVER(PARTITION BY ID ORDER BY ID) RNUM,
                    COUNT(*) OVER(PARTITION BY ID ORDER BY ID) CNT,NUMVAL
            FROM TMP_TEST
    WHERE   RNUM = CNT
    START WITH  RNUM = 1
    CONNECT BY  PRIOR RNUM = RNUM - 1;It looks like you lost the second CONNECT BY condition:
    AND PRIOR ID = IDPut it back: it's important.
    Now you're confused about the output row:
    2    ,Hello,World,using Connect By,Using SYS_CONNECT_BY_PATH   4It doesn't seem to correspond to anything results that you got when you ran the sub-query alone.
    That's because the resutls from your sub-query may change every time you run it, even though the data doesn't change. The ORDER BY clauses in both of the analytic functions do not result in a complete ordering. In fact, they're completely meaningless. It never makes any sense to PARTITON BY and ORDER BY the same value; "PARTITION BY id" means that only rows with the same id will be compared to each other; you might as well say "ORDER BY 0" or "ORDER BY dmbs_random.value".
    The ORDER BY clause of ROW_NUMBER whould reflect that way in which you want the results to appear within each id, for example:
    ROW_NUMBER () OVER (PARTITION BY id ORDER BY UPPER (strval))Note that this is very similar to what was in my first reply.
    In the COUNT function, why do you want an ORDER BY clause at all? Just say:
    COUNT (*) OVER (PARTITION BY id)

  • Regarding installation and usage of oracle forms 11g on windows 7

    dear all,
    i am new to the oracle forms and reports feature. i tried installing forms and reports following certain steps which i could find from the internet, but it could not be installed.
    i ended up crashing my system.can anyone of you help me in providing the step by step installation of oracle 11g forms and reports on windows 7 64 bit.
    regards,
    sreejith

    When I was cleaning my email account i noticed message from OTN forum. I forgot to reply :/
    I followed instructions from the message above and it worked. Oracle XE + PPRD (only forms to save disk space and RAM) + weblogic, i have also installed APEX 3.2.1. It all works at my win 7 system
    There where one bug in forms builder database connector, solution was to replace it with the file from SQL*Plus (AFAIR it was tnsnames.ora file)
    So thank you Chris999, you helped me a lot.

  • Tablespace usage in Oracle 11g

    Hi Guys,
    Not sure if this has been asked before.
    I have created a couple of table spaces in my database and one of these tables is holding all my data. For that table space, I have added at least 8 data files so far and it seems that Oracle uses the free space very quickly. I would like to know following things
    1. Is there anyway to know that usage of data files with respect to table stored in it? In other words - would I be able to know if Table-A stored in datafile 1?
    2. Is there anyway to reuse the old data files?
    3. I am not sure if it is an Oracle instance, but it seems to be that Oracle 11g uses the free space very quickly (I can understand that it depends on the data) so just curious to know if there is anyway to minimize the usage.
    Any information on this would be useful and appreciated.
    Thanks
    Regards
    Jiggy

    Is there anyway to know that usage of data files with respect to table stored in it? In other words - would I be able to know if Table-A stored in datafile 1? The tables are actually stored in the tablespaces itself , spanned to multiple datafiles. Query dba_segments and dba_extents to find out that in which tablespace and datafile(s) , your tables are spread across.
    Is there anyway to reuse the old data files?In what way? If it is a Locally Managed Tablespace, Oracle would reuse the space becoming free automatically within the tablespace for the subsequent data.
    I am not sure if it is an Oracle instance, but it seems to be that Oracle 11g uses the free space very quickly (I can understand that it depends on the data) so just curious to know if there is anyway to minimize the usage. No such thing at least in my knowledge. Space being used would solely depend on the incoming data and not on the release of the db.
    Aman....

  • Not able to create a database link using the database gateway of oracle 11g

    HI,
    While trying to create a database link to SQL server from Oracle ,using the database gateway provided with 11g, i am getting the following error while making use of it in selecting columns from tables :
    Error starting at line 1 in command:
    select * from test1@dblink
    Error at Command Line:1 Column:20
    Error report:
    SQL Error: ORA-28513: internal error in heterogeneous remote agent
    ORA-02063: preceding line from DBLINK
    These are the steps i have followed for setting up:
    1.Ran the set up for the Database gateway.and mentioned the SQL server name and database .ALos set up a listener.
    2. Added the following in the Listener.ora of Oraclehome 11/NETWORK/ADMIN:
    LISTENER_SQL_FCD =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost) (PORT = 1541)
    SID_LIST_LISTENER_SQL_FCD =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME=dg4msql)
    (ORACLE_HOME= D:\app\20537\product\11.1.0\db_3)
    (PROGRAM=dg4msql)
    3.Added the following in tnsnames.ora inOracle home/NETWORK/ADMIN:
    dg4msql=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1541))
    (CONNECT_DATA=(SID=dg4msql))
    (HS=OK)
    4. Following is the entry in initdg4msql.ora in C:\product\11.1.0\tg_5\dg4msql\admin:
    HS_FDS_CONNECT_INFO=10.148.45.242:1433//SalesDemo
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    5. Created the database link :
    create database link dblink
    connect to "sa" identified by "<pswd>"
    using 'dg4msql'
    On running :select * from test1@dblink i get the following error:
    Error starting at line 1 in command:
    select * from test1@dblink
    Error at Command Line:1 Column:20
    Error report:
    SQL Error: ORA-28513: internal error in heterogeneous remote agent
    ORA-02063: preceding line from DBLINK
    Is there any issue with the set or definition that I get the above error?

    What is the version of the Oracle database in which you have specified/and use the database link?
    If it is for example 10.2.0.3.0 you need to apply the mandatory patch for RDBMS bug 5965763 first before being able to use an 11g gateway. Have a look at MetaLink note 457808.1 for details about this patch.
    Regards,
    Ed

  • How to find the size of a Oracle 11g table

    I want to find the size of a table in Oracle 11g.
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regards

    --- List all tables sorted by size
    set lines 100 pages 999
    col     segment_name     format a40
    col      mb           format 999,999,999
    select     segment_name
    ,     ceil(sum(bytes) / 1024 / 1024) "MB"
    from     dba_segments
    where     segment_type = 'TABLE'
    group     by segment_name
    order      by ceil(sum(bytes) / 1024 / 1024) desc
    --- List all tables owned by a user sorted by size
    set lines 100 pages 999
    col     segment_name     format a40
    col      mb           format 999,999,999
    select     segment_name
    ,     ceil(sum(bytes) / 1024 / 1024) "MB"
    from     dba_segments
    where     owner like '&user'
    and     segment_type = 'TABLE'
    group     by segment_name
    order      by ceil(sum(bytes) / 1024 / 1024) desc
    /

  • I am not able to install the toad version for Oracle 11g

    Hi,
    1] I am not able to install the "Toad for Oracle 11.5 Freeware" it's expire in Oct-2013.Now i am trying to download the new version but the same s/w downloaded and at the time installation it's shown me that this s/w is expire and install new version
    2] Also installed "Toad for Oracle Version 9.0" vesrion it's installed Successfully but when i am trying to start the toad it's shown msg as "Oracle Instant client is not installed.
    3] In "Toad for Oracle Version 9.0" can i exceute the queryies from Oracle 11g database.
    Kindly suggest to way out,
    Regards,
    Sachin

    user7197586 wrote:
    Hi
    Thanks for update.
    If i want to use the Toad,can you please suggest
    Regards,
    Sachin
    Re-asking won't help you to get help, especially when it's for non-Oracle product.
    You've been advised to look at Toad side. Please go ahead.
    -- locking thread --
    Nicolas (moderator).

  • Problem with getting started with the SQL Developer in oracle 11g

    I downloaded the oracle 11g from the oracle site and installed it on my machine.Now i want to write the sql queries and practise them......so i tried this:start\oracle11gHome\ApplicationDevelopment\Sqldeveloper . But I get a messagebox with a browse button asking me to "Enter the full pathname for java.exe"
    what is this all about?Do i need to install jave in my host machine?
    how to solve this problem?

    hi
    If you are asked to enter the full pathname for java.exe, click Browse and find java.exe. For example, the path might have a name similar to C:\Program Files\Java\jdk1.5.0_06\bin\java.exe.
    http://download.oracle.com/docs/cd/E10405_01/doc/install.120/e10407/install.htm
    hope this helps
    zekeriya

  • Urgent help!!!!!!Regarding the Credit Memo for oracle project customer invoices

    Hi,
    Can somebody help me in this issue
    we have a requirement from the users that they dont want the system to apply
    the credit memo automatically on the invoice when it released from the projects
    Scenario1: Invoice already been paid now they want to create a credit memo,
    system dont allow them to cancel the invoice the only way as per the theory is
    create a negative invoice and adjust it but the issue here is when ever you
    create a negative invoice it creates as invoice not credit memo which will be
    confusing to the users.
    in this case can we use billing extension to create the transaction type as
    credit memo when ever the invoice has negative amount?
    Or let me know if there is a way to perform this step?
    Scenario2: Invoice is created but they dont want to create a credit memo
    against that invoice since it gets applied automatically, the customer
    requirment will be they want to apply the credit memo for any future invoices
    as requested
    Is there a wya to have a credit memo created with out auto applying to an
    invoice, so that user can apply when ever they want
    what is credit memo on accoutn how it works with these above scenarios.
    sicne i tried setting up but the credit meo or concession is getting appled to
    the particular invoice automatically
    need urgent help required on this issue !!!!!
    Regards
    Lavanya

    Hi,
    For Scenario 1 you have two options:
    1) Update the AR transaction type extension for project invoice- Identify negative amount invoice and change the transaction type to project credit memo. This will update the transaction type on negative invoices before they are interfaced to Oracle AR.
    This is preferred option
    2) Update AR invoice Pre-processor to do the same thing.
    There is no standard setup which will allow you to change trx type of negative invoices.
    For Scenario2 - I dont think there is any direct way to create a credit invoice from Projects and keep it unapplied (again, apart from creating a negative amount invoice). You can create a credit memo in AR and use it to apply against future invoices.
    Regards
    Kaushal

  • During the installation of the rpm package of Oracle 11g XE,  Error occur "cpio:digest mismatch"

    It is not possible to install the following error occurs.
    [root @ localhost Disk1] # rpm -ivh --nodigest oracle-xe-11.2.0-1.0.x86_64.rpm
    preparing... ################################# [100%]
    Updating / Installing ...
        1: oracle-xe-11.2.0-1.0 ################################# [100%]
    error : fails to extension of the archive : File /u01/app/oracle/product/11.2.0/xe/bin/oracle;54091d3a: cpio: Digest mismatch
    Error: oracle-xe-11.2.0-1.0.x86_64: Installation failed
    Error "Digest mismatch" will have occurred from the very beginning,
    I tried to specify the installation options "--nodigest".
    But Phenomenon does not improve.
    I tried to check the version of the rpm package.
    It seems the latest version of rpm-4.11.2-2.fc20.x86_64.
    Would you have a good workaround?
    Installation OS: fedora20 64bit
    Installation package: oracle-xe-11.2.0-1.0.x86_64.rpm
    メッセージ編集者: user10993108
    Has been translated into English.

    This is a global forum - you will have to post in English. There are alternate language forums available - Other Languages
    Looks like your OS is Fedora - which is not a supported/certified OS for 11g XE - Oracle® Database Express Edition
    So things may or may not work as expected.

  • How to install the user_lock package for Oracle 11g(11.2.0.1.0)

    Hi,
    I have installed Oracle DB 11g(11.2.0.1.0) on Windows 2003 server. According to my product requirement its say "you must install the user_lock package.".
    Can you Please help me how to install the user_lock package.
    Thanks
    Krishna

    provided link is very good and i installed the user_lock package successfully.
    Thanks
    Krishna

  • Need some help regarding the component usage

    Dear ALL,
    I have one scenario something like this .
    I have a main component say ZComp1  and in it i have created one view in which we two drop downs and i have 28 view containers depending upon the drop down values these view containers will be visible here all the view container i am using for displaying by means of component usage (i.e 28 compoenents i am calling into my main ). So now when i run my main application it is taking minimu of 2 mins to display the screen .  To test whats the problem i have written some code in the handle default of main window and  set the break point what i observed is quite surprising that when i run the apllication it takes hardly 2 mins of time to reach my handledefault method (which is the first one to trigger when i run the apllicatin) . Please suggest me what can be doen to overcome this issue. or suggest some alternative to improve  performance.
    Note : When there is less amount of data in the screen then it takes less time to execute or else it takes hell lot of time plz suggest :(.
    Awaiting for your valuable suggestions.
    Regards,
    Sana.

    Hi Misbah,
    28 VCO are too much in  a view.
    So, try to revamp teh design and reduce the VCO's in a view.
    Another thing would be, Every WDDOINIT, and WDDOMODIFY view of the used components would be called when you try to load the component at first.
    In your case that is happening, and please check and confirm it.
    A proper modular design would be a better approach in handling the situation.
    Good day!
    Regards,
    Shashikanth. D

  • Help regarding the calling of a oracle function from the OTL.

    Hi,
    I created a Oracle function like get_employee_id() which will return the employee id if the name and department exists.
    If not exists it will insert the record and return the emp_id.
    get_employee_id(name,department)
    if name and department exists id will be returned
    else record will be inserted and emp id will be returned.
    emp_id is a sequence which will be triggered to auto increment.
    Problem is::
    Not getting a correct way to access get_employee_id() from OTL interface.
    I am trying like
    query << "BEGIN :3<int> := get_employee_id(:1<char[128]>,:2<char[1024]>); END;" ;
    otl_stream oos(1, query.str().c_str(), db());
    oos << emp_name ;
    oos << emp_dept ;
    while(true){
    oos >> emp_id ;
    if(!oos) break ;
    Please let me know what is the correct way of accessing this.Thanks for the help in advance.

    Sorry, I posted this on another forum. C++ Call Interface (OCCI)
    Thanks,
    Jagdish.

  • There have been 195 failed login attempts in the last 30 minutes Oracle 11g

    Hi guys,
    What could be causing this? My dbsnmp user in not locked.
    Thank you.

    Target Name=prod
    Target Type=Database Instance
    Host=db02
    Metric=Status
    Metric Value=0
    Timestamp=2011/07/11 3:38:18 PM EET
    Severity=Critical
    Message=Failed to connect to database instance: ORA-12519: TNS:no appropriate service handler found (DBD ERROR: OCIServerAttach).
    Notification Rule Name=Database Availability and Critical States
    Notification Rule Owner=SYSMAN
    Notification Count=1

Maybe you are looking for

  • Error Handling On a Page with a Report

    Hi guys. I have a page with a report region on it. The report is based on an External Table. If i load a file that does not conform to the format the External Table definition is expecting, I Get an 'ORA-29913: error in executing ODCIEXTTABLEFETCH ca

  • How to download Adobe Acrobat 9

    Hello, I bought Adobe Acrobat 9 a few years ago and I cannot find the link to re-download it. It doesn't appear in my account. I'm changing PC as my old MPC crashed and I need to reinstall Adobe Acrobat 9 on my new PC. Thanks!

  • Full width responsive layout in Muse

    I'm working on a website for a client and they want a site that has full browser width content however I can't seem to get my objects to span the whole browser and resize properly in relation to browser window size. I figured out how to make a rectan

  • Larger backups for cumulative incremental level 1 backups

    I am noticing some strange behaviour for backup of data files in the RMAN cumulative incremental level 1 backup for certain days. I would explain that with an elaboration- the cumulative backup sizes are around 2GB, 19GB, 19GB, 1GB for the dates of 1

  • Alt-click no longer saves target as

    I just upgraded to Firefox 13.0 on Windows and noticed that alt-click no longer triggers the "Save target as" function. Does this now need to be configured by the user?