ORA-01878: specified field not found in datetime or interval

I have TIME_SOLD field which is a date data type. WHen I run a simple query against this table with the where clause below, I get ORA-01878: specified field not found in datetime or interval. Please help?
and to_char(from_tz(cast(time_sold as timestamp), 'Australia/Sydney') at time zone 'US/Pacific', 'yyyymmdd') >= '20091001'
and to_char(from_tz(cast(time_sold as timestamp), 'Australia/Sydney') at time zone 'US/Pacific', 'yyyymmdd') < '20091101'

just to give an exampe I've created a table called your_table with a date field (time_sold).
I've inserted 100 random values plus this one: 20090329 02:30:00 (read it using the format yyyymmdd hh24:mi:ss).
It's a non valid time in Rome because on March 29 we went to the DST so time skipped from 02.00 to 03.00.
Here's my script's result:
SQL> declare
  2    x varchar2(100);
  3    cursor c is
  4      select time_sold from your_table;
  5  begin
  6    for r in c loop
  7      begin
  8       x:= to_char(from_tz(cast(r.time_sold as timestamp), 'Europe/Rome') at time zone 'US/Pacific', 'yyyym
mdd');
  9      exception
10        when others then
11           DBMS_OUTPUT.PUT_LINE(SQLCODE||' '||to_char(r.time_sold,'yyyymmdd hh24:mi:ss'));
12      end;
13    end loop;
14  end;
15  /
-1878 20090329 02:30:00Max

Similar Messages

  • Java.sql.SQLDataException: ORA-01878: specified field not found in datetime

    I am getting the exception mentioned in the subject field. Here is the query
    select * from tabel_abc where from_tz(cast(LAST_RECEIVED_TIME + timeout_duration/86400 as timestamp),'UTC') <systimestamp at time zone 'UTC';
    This is happening only for the during the daylight saving, because the date operation is returning the incorrect time value.
    timeout_duration holds the value in terms of number of seconds.
    Please suggest how to resolve the issue.
    Caused by: java.sql.SQLDataException: ORA-01878: specified field not found in
    datetime or interval
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
    at
    oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
    at
    oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.ja
    va:1079)
    at
    oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1
    293)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1
    419)
    at
    oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedState
    ment.java:3752)
    at
    oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatemen
    t.java:3806)
    at
    oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedS
    tatementWrapper.java:1667)
    at
    weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:13
    5)
    at

    >
    When I run the following expression on this value I get the ORA-01878 error:
    (EXTRACT(DAY FROM ((ETD_ZULU - 4/24) - SYSTIMESTAMP)))
    >
    That isn't the same as the snippet you first posted
    This works
    select EXTRACT(DAY FROM ((ETD_ZULU - 4/24) - SYSTIMESTAMP)) from
    (select cast (systimestamp as timestamp(6)) etd_zulu from dual)The first snippet you posted was
    >
    select * from tabel_abc where from_tz(cast(LAST_RECEIVED_TIME + timeout_duration/86400 as timestamp),'UTC') <systimestamp at time zone 'UTC';
    >
    And it includes time zone. All of the web references I have found indicate the problem is either a missing timezone or a timezone mismatch.
    I can't reproduce the problem with the last snippet you used. Are you certain that ETD_ZULE is timestamp and does not include timezone?
    Do you have a complete query that fails? If so, try to narrow the query down to one record that is causing the problem. If you have to you can use brute force approach. Assume that 60 records should be produced. Add
    WHERE ROWNUM < 30to the query. If it runs clean the problem is in the second half so use '< 40', and keep testing until you know which record. Then examine the contents of the field for that record.
    Without some code to try to reproduce the problem there isn't much other help to offer.

  • Specified workbook not found (Discoverer 4i with Ora Apps)

    I am using Discoverer 4i with Oracle 11i.
    When I try to open any workbook via any responsibility (of Oracle Apps) I get Error
    ‘Specified workbook not found: <workbook name>’
    When I click OK on error, all my work books are listed.
    I have made sure users and responsibility have security access for Business Area
    Also made sure the workbook is shared with users and responsibility
    Any idea how I get rid of this error.
    Thanks in advance for any help

    Hi,
    The Oracle Apps uses the workbook developer key to locate and open the workbook. The Oracle Apps function that opens the workbook contains the developer key in the parameters for the function. This must match the developer key for the workbook shown in the Discoverer Manager Workbook -> Properties -> Identifier.
    Hope that helps,
    Rod West

  • ORA-01882: timezone region not found  in NetBeans 7.0.1

    Please how do I solve ORA-01882: timezone region not found in Netbeans 7.0.1 ?

    no such TZNAME as Africa/Luanda Version 4 of the timezone patch doesn't have that one either, and if you don't have at least version 3 the DST rules won't be correct for the 2007 DST changes. v4 does have Africa/Windhoek if that's close enough, can't tell if that one is in v2 we don't have anything on a patch earlier than v4.
    Might be able to work around it by specifying an offset (i.e. +1:00) instead of a named time zone, patch files for the base 10.2.0.1 aren't even listed in support note 412160.1. There is also note 396387.1, "Workarounds when Database time zone patches are not available for your patchset" that one might be helpful.

  • ORA-01882: timezone region not found  in Windows 2003 Server System

    Hi,
    I am using windows server 2003 and the IDE jdeveloper 11.1.1.1.0. I have this error ORA-01882: timezone region not found .
    To resolve it, I added -Duser.timezone=GMT in my project properties. It doesn't work in windows server 2003. I tried the same thing in windows xp it works well.
    So, what's the problem concerning windows server 2003 ??
    please help me.
    thanks a lot.

    no such TZNAME as Africa/Luanda Version 4 of the timezone patch doesn't have that one either, and if you don't have at least version 3 the DST rules won't be correct for the 2007 DST changes. v4 does have Africa/Windhoek if that's close enough, can't tell if that one is in v2 we don't have anything on a patch earlier than v4.
    Might be able to work around it by specifying an offset (i.e. +1:00) instead of a named time zone, patch files for the base 10.2.0.1 aren't even listed in support note 412160.1. There is also note 396387.1, "Workarounds when Database time zone patches are not available for your patchset" that one might be helpful.

  • Cross Platform migration AIX to linux (ERROR IN CONVERSION ORA-19994: Message 19994 not found)

    I am performing a cross platform migration aix to Linux from release 11.2.0.2 to 11.2.0.4. I am using this doc
    Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 1389592.1).
    I am using the db_file_transer method and I have hit this error
    Error:
    /home/oracle/local/db_convert/dest_rman/xxttconv_i3q0t1ha_1_1_4.sql execution failed
    ERROR IN CONVERSION ORA-19994: Message 19994 not found;  product=RDBMS;
    facility=ORA
    ORA-19600: input file is backup piece
    (/oraback/nfclpat1/i2q0t1ha_1_1)
    ORA-19601: output file is backup piece
    (/oraback/nfclpat1_tmp/xib_i2q0t1ha_1_1_5_28)
    CONVERTED BACKUP PIECE/oraback/nfclpat1_tmp/xib_i2q0t1ha_1_1_5_28
    PL/SQL procedure successfully completed.
    I have searched and do not have anything to go on.
    Can anyone who has seen this give me some direction?

    As per Oracle documentation on given error code, Please see if following action helps.
    ORA-19994: cross-platform backup of compressed backups to different endianess is not supported
    Cause: A cross-platform backup was requested for a compressed backup to a different endianess from the current platform.
    Action: Do not specify a compressed backup or specify the same endian platform.

  • ERROR in JDEVELOPER: ORA-01882: timezone region not found

    Hello All,
    When i create new database connection with HR database (XE), I'm getting ORA-01882: timezone region not found error in jdeveloper.
    Database Navigator->Create Database Connection
    How to i fix this problem?
    - JDeveloper 11.1.1.4
    - Oracle Expression Edition 10g.
    Thank you,
    Erdenebayar.

    Hi Erdenebayar,
    How did u add the line in jdev.conf i tried by adding below variants but none worked. Can you please print exact line that you've added to jdev.conf and added to projects (I'm using jdev 11.1.1.4):
    Variant 0)
    -Duser.timezone="+05:30" (each projects run profile)
    Variant 1)
    AddVMOption -Duser.timezone='05.30' (line added to jdev.conf)
    -Duser.timezone='05.30' (each projects run profile)
    Variant 2)
    AddVMOption -Duser.timezone='+05.30' (line added to jdev.conf)
    -Duser.timezone='+05.30' (each projects run profile)
    Variant 3)
    AddVMOption -Duser.timezone='+05.30' (line added to jdev.conf)
    -Duser.timezone='+05.30' (each projects run profile)
    Variant 4)
    AddVMOption -Duser.timezone="+05:30" (line added to jdev.conf)
    -Duser.timezone="+05:30" (each projects run profile)
    Variant 5)
    AddVMOption -Duser.timezone="05:30" (line added to jdev.conf)
    -Duser.timezone="05:30" (each projects run profile)
    But none are resolving the issue.

  • ORA-01023: Cursor context not found (Invalid cursor number)

    hello guys.
    when i'm trying to make a regular recover, i get this error:
    RMAN> run
    2> {
    3> restore database;
    4> recover database;
    5> alter database open;
    6> }
    Starting restore at 09-MAR-07
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 03/09/2007 10:23:41
    ORA-01023: Cursor context not found (Invalid cursor number)
    what am i doing wrong and how could i open this cursor?
    sorry, that i'm clueless.
    thank you.

    TAF is not supported with RMAN according to Metalink note

  • Displaying "ORA-20502: Automation context not found." error message

    Hi all,
    I am implementing functionality in OSM 7 to read jms message sent by external system.I am setting default jmscorrelationid as "test" in order to identify message.I have implemented an automated task as xslt automator and having external event receiver.but when i get the message on the queue from external system weblogic console start giving error message as -
    "ORA-20502: Automation context not found.
    Can you please tell me what could be the reason for this??

    The trick is that OSM needs to initiate the communication. It is depicted in the diagrams in OSM Developer's Guide in the automation plugin section (however not very clear - in my opinion).
    My experience is that you need to correlate messages to OSM by using the (JMS)correlation id sent by the initiating message from OSM. If this can't be sent directly to the external system, a component (e.g. JMS queue + MDB) needs to be placed between the systems and handle the correlation between the messages from the external systems and the OSM "request for reply".

  • URGENT: ORA-12514: Message 12514 not found;

    Hi, I have a big problem:
    I have a PC (PC1) with an Oracle 9.2.0.5 database.
    I have other PC (client=PC2) with Oracle forms and reports runtime installed.
    I try to execute my .fmx from PC2 and everything was ok.
    After that, I installed again in another server (PC3) the Oracle database, and when I tried to connect from my client (PC2) to the new database, it appears the error:
    ORA-12514: Message 12514 not found; Product=RDBMS80; Facility=ORA
    Why is giving this error? May be the PC3 needs an ORACLE_HOME environment variable or similar?
    I've seen the following in relation with oracle_home:
    In the PC server (PC3) the ora_home variable in regedit (it doesn't exists as windows environment variable) is e:\oracle\ora92
    It's different from oracle_home in PC2 (Pc client) , in which is: c:\orant
    Is it important?
    Is this error possible because of the TNSNAMES configuration?
    Please help me, is very urgent for me.
    Thanks a lot

    Hi guys,
    I've solved the problem: It was in the TNSNAMES. The service_name was incorrect. I changed it and it worked.

  • Error: The channel class 'mx.messaging.channels.AMFChannel' specified was not found

    Hi guys. I'm stuck with the class not found error trying to use remote objects with BlazeDS. I'm building the application using flex sdk 3, Ant flexTasks.jar (without FlexBuilder) and Tomcat 5.5.17. The result after clicking on the Remote service button is a window with the following error message: <br />[MessagingError message='The channel class 'mx.messaging.channels.AMFChannel' specified was not found.']<br /><br />In my code, I have in main.mxml:<br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="vertical"><br /><mx:Script>..CDATA[import mx.controls.Alert;..</mx:Script><br /><mx:RemoteObject id="remObj" destination="product" result="Alert.show(event.result.toString());" fault="Alert.show(event.fault.faultString);"/><br /><mx:Button id="remoteService" label="Remote Service" click="remObj.getResults('MyName');"/><br /></mx:Application><br /><br />In remoting-config.xml:<br /><?xml version="1.0" encoding="UTF-8"?><br /><service id="remoting-service" class="flex.messaging.services.RemotingService"><br />    <adapters><br />        <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/><br />    </adapters><br />    <default-channels><br />        <channel ref="my-amf"/><br />    </default-channels><br />     <destination id="product" channels="my-amf"><br />         <properties><br />           <source>flex.example.ProductService</source><br />             <scope>application</scope><br />         </properties><br />         <adapter ref="java-object"/><br />     </destination><br /></service><br /><br />In java:<br />package flex.examples.ProductService;<br />public class ProductService{     <br />public String getResults(String name)<br />{<br />     String result = null;<br />     result = "Hi " + name + ", this is a service and the time now is : " + new Date();<br />     return result;<br />     }<br />}<br /><br />The services-config.xml is a standard like delivered within blazeds.war.<br /><br />My guess is that something is wrong is with the compilation. My Ant compile task looks like:<br /> <target name="compile_flex_examples"><br />     <mxmlc file="${param1}" keep-generated-actionscript="true"<br />           context-root="${app.name}"  <br />         services="${webinf}/flex/services-config.xml"><br />                   <compiler.library-path dir="${FLEX_HOME}/frameworks" <br />                 append="true"><br />                         <include name="${webinf}/lib/" /><br />                   </compiler.library-path><br />                   <compiler.library-path dir="${FLEX_HOME}/frameworks"       <br />                 append="true"><br />                        <include name="libs/flex.swc" /><br />                      <include name="libs/rpc.swc" /><br />                      <include name="libs/utilities.swc" /><br />                      <include name="libs/fds.swc" /><br />                   </compiler.library-path><br />         <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/><br />         <source-path path-element="${FLEX_HOME}/frameworks"/><br />     </mxmlc><br /> </target><br /><br />Any idea why Flex can not find the mx.messaging.channels.AMFChannel class? Any hint very appeciated.<br /><br />Thanks in advance.<br /><br />Devus

    Did you have figure out the problem to this?
    I am getting the same error message. I had two interdependant applications that were working fine when I specify a service-config.xml file at compire time. However when I try to dynamiclly configure the services at runtime, one application works, but the other doesn't. I'm not sure why mx.messaging.channels.AMFChannel is available in the one app, but not the other.
    Any pointers???

  • ORA-12514: Message 12514 not found;  product=RDBMS80; facility=ORA

    Hi,
    I have installed 10g's OracleEXE version and Oracle forms 6i on my machine.
    I am able to log on trough oracle 10g without using tnsnames.ora or sid.
    But when I am trying to connect 10g database through command prompt by using
    sqlplus username/password@xe then it is showing me below mentioned error.
    ORA-12514: Message 12514 not found; product=RDBMS80; facility=ORA
    I have tried tnsping xe on command prompt it is taking only 30msec. But still I am getting this error.
    Could anybody please help me out of it.
    Thanks in advance.
    Chandrakant.

    Hi to all,
    Is any knowledgable person is available in this group who can help me out of this problem.
    I have done following things.
    1) Installed Oracle XE version.
    2) Installed Forms 6i
    I am able to connect OracleXE through sqlplus system/abcd command but not with system/abcd@XE i.e. (with SID).
    Hence I am not able to connect OracleXE through Oracle Forms.
    Checked with tnsping xe at Dos Prompt.
    Getting connected through 30 seconds.
    Listener is up & Running and it is in started mode.
    netstat command is showing me the port 1521 (as opened)
    But Still I am not able to connect Forms 6i with OracleXE version.
    Please suggest me what should I do.
    Chandrakant.

  • Specified anchor not found in the model in SAP Records Management

    Hi Experts,
    We are on SRM 7.0 SP 8 PPS with ECC 6.0 Ehp 4  with RM.
    I have managed to Integrate SRM with RM with some issues.
    The issues are:
    RFx with attachment is not displayed in RM through related links.
    Whereas RFx without attachments are visible.
    Contract and PO with attachment are also visible in RM.
    The only piece remaining is the RFx with attachments:
    Errors in SLG1 RM client are:
    Source: CL_SRM_POID===================CP , CL_SRM_POID===================CM012 ,        28
    Message no. SRM_REGISTRY151
    Invalid Service Provider Space ID
    CL_SRM_POID_DIRECTORY=========CP , CL_SRM_POID_DIRECTORY=========CM001 ,        56
    Message no. SRM_REGISTRY151
    The interface reference transferred for the POID object is invalid
    Message no. BL001
    Source: CL_SRM_SP_RECORD==============CP , CL_SRM_SP_RECORD==============CM00J ,        12
    Message no. SRM_REGISTRY151
    Back End: Anchor Not Found
    Message no. BL001
    Error during Records Management update for SRM/EBP element Object ID: 4000000700 Logical System: LS_SRD600 Processing mode: CREATE
    Message no. /SAPPSPRO/RM_UPD_ERR000
    Error with creation of an attachment POID. SPS ID
    Message no. /SAPPSPRO/RM_UPD_ERR017
    Could not add elements to record
    Message no. /SAPPSPRO/RM_UPD_ERR006
    Could not update POID relationship directory
    Message no. /SAPPSPRO/RM_UPD_ERR007
    The SRMCALLMON XML errors are:
    Application Error:
    SRM_GENERIC_SP</ID>    <NUMBER>820</NUMBER>
      <MESSAGE>An internal error has occurred -- check application log</MESSAGE>
    SRM_GENERIC_SP</ID>   <NUMBER>812</NUMBER>
      <MESSAGE>Specified anchor not found in the model
    This is happening only to RFx with attachments.  If i save an RFx without attachment, then its displayed in RM.  If i add attachments later to the RFx still its not displayed in RM.
    Kindly help me out, Gurus.
    with regards,
    Freemindmind.

    anybody?

  • ORA-00923:FROM KEYWORD NOT FOUND WHERE EXPECTED

    I have nade a oracle ODBC TO MS-EXCEL.While writting query in microsoft query editor I got the error msg
    ORA-00923:FROM KEYWORD NOT FOUND WHERE EXPECTED
    The following query runs fine on sql plus editior
    wht could be the reason ,pls guide me
    select ORDR_H.ORDERDT,ordR_h.orderno,ordr_h.partycd "CODE",
    DECODE (PARTY_M.PARTY_TY,1,'TRADE',2,'NTR'),
    party_m.party_n1,c1.citee_nm "Stockist Place",
    c.citee_nm "CONSIGNEE PLACE"
    from citee_m c,citee_m c1,ordr_h,ordr_d,party_m
    where
    ordr_h.orderno=ordr_d.orderno
    and c.citee_cd=ordr_h.destncd
    and c1.citee_cd=party_ct
    and ordr_h.partycd=party_m.party_cd
    and ordr_h.orderdt>='01-jan-09'
    order by 2,3

    One thing that comes to mind is that ODBC does not allow Oracle-specific syntax.

  • Specified database not found

    Hi!
    Well, one old subject, I recall (had this written here long time ago) -- ZCM 10.3.4, trying to backup db from command-line, but ...
    SQL Anywhere Backup Utility Version 10.0.1.3960
    Specified database not found
    DB is there and accessible and running and ZCC is ok and ZCM does work and db is via Sybase Central accessible etc. and probably when I restart ZCM services on server it will be backed up also with utility, but ... any ideas how to accomplish this wo services restart. Can't dbping server. Server name is also written ok in command etc.
    More thanks, Alar.

    NovAlf,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

Maybe you are looking for

  • Short dump "EXSORT_NOT_Enough_MEMORY" in production system

    Hi, "EXSORT_NOT_Enough_MEMORY" dump occuring in production system,Could any one please tell me how to fix this dump. Please refer the error message below What happened?     The current ABAP program had to be terminated because the     ABAP processor

  • I feel so stupid - I can't drag my "pin it" icon on my ipad

    Pinterest tells me to drag the "pin it" icon to the toolbar on my new IPad 2 - we can't make that happen.  Any tips ?

  • Part delivery of component

    DearAll, My client manufacture Tower. In the sales order the FG is tower with qty 1. But while delivering client deliver the component of the tower (such as angle, channels etc) as soon as they are available. It continue as multiple delivery. Finally

  • The stock consumption as per expiry date and not as per availability date

    Hi All, We had a requirement like below for our client: While creating batch in ECC we put the expiry date for the batch as per the business requirement. Suppose batch creation date: 01.01.2011 If in case the SKU shelf life is 1 year the logical expi

  • Extensions on Supplier Reminders

    Is there any reason why the extensions I have added to Supplier reminders / SRM acivities would not be showing up on the UI?  I have created a few and they have not come through?  They were created a few days ago so I don't believe it is to do with t