ROracle with Date fields

I am trying to switch over to ROracle for performance reasons and yes it is much faster than RODBC. However, whenever I query and return a column that is in an Oracle date/time format the dbGetQuery kicks an error:
[1] "Error in .oci.GetQuery(conn, statement, ...) : \n Error in try({ : ORA-01455: converting column overflows integer datatype\n\n\n"
attr(,"class")
[1] "try-error"
attr(,"condition")
<simpleError in .oci.GetQuery(conn, statement, ...): Error in try({ : ORA-01455: converting column overflows integer datatype
Is there a way to avoid the conversion or to have it instead convert to a character field?
Thanks,
sd

Denis,
The query is a straight forward select * from my_table. to_char does fix the issue, but since the number of columns in most the tables I query from is significant, I don't want to put the to_char into the sql or have to create views to use ROracle.
Below is the column classification table return from rociResInfo call. I've blinded the column and table names since this is company data. All the columns with field precision = 16 were date fields and were set to integer.
-sd
statement     isSelect     rowsAffected     rowCount     completed     fields.name     fields.Sclass     fields.type     fields.len     fields.precision     fields.scale     fields.nullOK
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN1     integer     NUMBER     22     20     0     FALSE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN2     character     VARCHAR2     1000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN3     character     VARCHAR2     255     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN4     character     VARCHAR2     40     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN5     integer     NUMBER     22     16     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN6     character     VARCHAR2     255     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN7     character     VARCHAR2     255     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN8     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN9     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN10     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN11     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN12     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN13     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN14     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN15     integer     NUMBER     22     10     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN16     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN17     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN18     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN19     integer     NUMBER     22     16     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN20     integer     NUMBER     22     16     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN21     character     VARCHAR2     400     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN22     character     VARCHAR2     400     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN23     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN24     character     VARCHAR2     400     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN25     integer     NUMBER     22     16     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN26     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN27     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN28     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN29     character     VARCHAR2     1000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN30     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN31     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN32     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN33     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN34     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN35     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN36     integer     NUMBER     22     10     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN37     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN38     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN39     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN40     integer     NUMBER     22     10     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN41     integer     NUMBER     22     10     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN42     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN43     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN44     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN45     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN46     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN47     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN48     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN49     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN50     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN51     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN52     integer     NUMBER     22     10     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN53     integer     NUMBER     22     10     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN54     integer     NUMBER     22     10     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN55     integer     NUMBER     22     16     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN56     integer     NUMBER     22     10     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN57     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN58     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN59     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN60     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN61     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN62     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN63     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN64     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN65     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN66     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN67     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN68     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN69     character     VARCHAR2     200     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN70     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN71     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN72     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN73     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN74     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN75     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN76     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN77     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN78     character     VARCHAR2     40     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN79     integer     NUMBER     22     19     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN80     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN81     character     VARCHAR2     40     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN82     integer     NUMBER     22     1     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN83     integer     NUMBER     22     1     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN84     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN85     character     VARCHAR2     4000     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN86     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN87     numeric     NUMBER     22     0     -127     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN88     integer     NUMBER     22     20     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN89     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN90     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN91     integer     NUMBER     22     10     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN92     integer     NUMBER     22     10     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN93     integer     NUMBER     22     10     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN94     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN95     character     VARCHAR2     100     0     0     TRUE
Select * from MYTABLE     TRUE     0     0     FALSE     COLUMN96     character     VARCHAR2     100     0     0     TRUE

Similar Messages

  • Problem with date fields in where clause after changing driver

    Hi,
    We have changed the oracle driver we use to version 10
    and now we have some trouble with date-fields.
    When we run this SQL query from our Java program:
    select *
    from LA_TRANS
    where LA_TRANS.FROM_DATE>='20040101' AND LA_TRANS.FROM_DATE<='20041231'
    We get this error code:
    ORA-01861: literal does not match format string
    The query worked fine whit the previous driver.
    Is there some way I can run a SQL query with date fields
    as strings in the where clause?
    Thanks!

    Keeping the argument of standard SQL or not aside, comparing DATE columns to a constant string (which looks like a date in one of the thousands of the formats available, but not in others) is NOT one of the best programming practices and leads to heartburn and runtime errors (as you have seen yourself).
    I would rather compare a DATE to a DATE.
    Also, constants like that would be another issue to fix in your code:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:6899751034602146050::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:528893984337,

  • Problem with Date fields in Search panel

    Hi all,
    I use TP2 and in my jspx page I have a search panel with two date fields and table where the results is displayed. But there is a problem with these date fields, because when I search dates the results is nothing even I retype the date from table. Also I have other pages where this problem exist with same structure.
    Could somebody help me with some advice?
    Thanks in advance!

    Hi Frank,
    Thanks for the answer.
    I use the standart method to make search panel with drag and drop the data control to the page. The other search panel fileds work fine, only the date fileds are problem. Maybe something in view object doesn't work properly.
    Here I post the code from my page.
    <table border="1" style="margin:5px;">
    <tr>
    <td>
    <af:showDetailHeader text="ТЪРСЕНЕ" disclosed="true"
    inlineStyle="width:780px;">
    <table cellspacing="2" cellpadding="3" border="0">
    <tr align="left">
    <td align="right">
    <af:outputLabel value="#{bindings.EGN.hints.label}"/>
    </td>
    <td align="left">
    <af:inputText value="#{bindings.EGN.inputValue}"
    label="#{bindings.EGN.hints.label}"
    columns="#{bindings.EGN.hints.displayWidth}"
    maximumLength="#{bindings.EGN.hints.precision}"
    simple="true"/>
    </td>
    <td align="right">
    <af:outputLabel value="#{bindings.LNC.hints.label}"/>
    </td>
    <td align="left">
    <af:inputText value="#{bindings.LNC.inputValue}"
    label="#{bindings.LNC.hints.label}"
    columns="#{bindings.LNC.hints.displayWidth}"
    maximumLength="#{bindings.LNC.hints.precision}"
    simple="true"/>
    </td>
    <td align="right">
    <af:outputLabel value="#{bindings.AccPersonID.hints.label}"/>
    </td>
    <td align="left">
    <af:inputText value="#{bindings.AccPersonID.inputValue}"
    label="#{bindings.AccPersonID.hints.label}"
    columns="#{bindings.AccPersonID.hints.displayWidth}"
    maximumLength="#{bindings.AccPersonID.hints.precision}"
    simple="true"/>
    </td>
    </tr>
    <tr align="left">
    <td align="right">
    <af:outputLabel value="#{bindings.PersonName.hints.label}"/>
    </td>
    <td align="left" colspan="5">
    <af:inputText value="#{bindings.PersonName.inputValue}"
    label="#{bindings.PersonName.hints.label}"
    columns="#{bindings.PersonName.hints.displayWidth}"
    maximumLength="#{bindings.PersonName.hints.precision}"
    simple="true"/>
    </td>
    </tr>
    <tr align="left">
    <td align="right">
    <af:outputLabel value="#{bindings.DateFrom.hints.label}"/>
    </td>
    <td align="left">
    <af:inputDate value="#{bindings.DateFrom.inputValue}"
    label="#{bindings.DateFrom.hints.label}"
    simple="true">
    <af:convertDateTime pattern="#{bindings.DateFrom.format}"/>
    </af:inputDate>
    </td>
    <td align="right">
    <af:outputLabel value="#{bindings.DateTo.hints.label}"/>
    </td>
    <td align="left">
    <af:inputDate value="#{bindings.DateTo.inputValue}"
    label="#{bindings.DateTo.hints.label}"
    simple="true">
    <af:convertDateTime pattern="#{bindings.DateTo.format}"/>
    </af:inputDate>
    </td>
    </tr>
    <tr>
    <td align="right">
    <af:commandButton actionListener="{bindings.Execute.execute}"
    text="#{bundle.FindBtn_LABEL}"
    disabled="#{!bindings.Execute.enabled}"
    icon="/images/find.png"/>
    </td>
    <td align="left">
    <af:commandButton text="#{bundle.FindClearBtn_LABEL}"
    icon="/images/find_clear.png"
    action="#{PeopleBean.onClearVCBtn}"/>
    </td>
    </tr>
    </table>
    </af:showDetailHeader>
    </td>
    </tr>
    </table>
    Also I have a result table for the search panel, but I don't believe the problem can be there because it works fine when I search in fields different by inputDate.
    Do you have any suggestions?

  • Problem with Date-Field

    Hi,
    I have a problem with a date-field. Maybe I must describe the problem more detailled, but first I just want to ask you, if you know the following error-message: "21.10.2010 kommt nicht in der Menge der erlaubten Werte vor". I don't know the correct translation but it must be something like this: "21.10.2010 does not occur in the quantity of the permitted values". I don't find the position in the sourcecode of this message. And I know, that this message isn't thrown by a functionblock from SAP. So what is the describtion of this message?

    Yes I have a date field in my form. Ok I must describe it more detailled. I have an employee searchfield. After select an employee you see a form. After filling the form you click on "Send". It creates a ticket and sends the data to the Backend and jumps back to the employee search field. Untill this point everything works fine. There is no problem with the datefield. Now I want to create the form. I choose an employee and fill the form. But now it comes this message. But not after clicking the "send" button. The message comes after changing some data (e.g. change a radio button). So it looks like a validationproblem, but only at the second creationprocess. Maybe the first date is in some cache? I don't know...

  • Writing query to Oracle DB with DATE field in it.

    When I try to execute the following query on Oracle DB I get an exception. I know that the problem is with Date representation on the query string. Please, if anyone knows how to make it work help me.
    query = "INSERT INTO MYTABLE (NAME , BIRTHDAY ) VALUES ('" + person.getName() +" ' , " + person.getBirthday() + " )";
    statment.executeUpdate(query);
    getBirthday() returns java.sql.Date object.
    Please, please, help to work it out!

    Thank you, very much.
    I've put the record into DB!!!! Hurray!
    But now I have another problem. I've got a ResultSet & I'd like to extract the DATE from it. But how?
    The Exception text states that the name of the field (Birthday) is incorrect.
    My code:
    Date birthday = resultSet.getDate("Birthday");
    All other fields are perfectly well extracted, but they are Strings.

  • Error with date field when inserting records into sql server from webdynpro

    Dear SDN's,
    I am trying to insert the records into sql server through my webDynpro program.
    I have created a date field in a dictionary with the datatype date.
    In my webdynpro program to insert the date i am following the below format.
    String dateString = "2006/12/10";
          java.util.Date d=new java.util.Date(dateString);
          java.sql.Date <b>date</b> = new java.sql.Date(d.getTime());
    int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,<b>REQDT</b>,ADVCE,ETADV,PURTR) values(21, '555-1212', '" + <b>date</b> + "', 5000, '20060501','hi')");
    when i try to execute it, it gives the following error.
    <b>com.sap.sql.log.OpenSQLException: The SQL statement "INSERT INTO "TRAVEL_HEADER" ("TRQID","PROJECTID","REQDT","ADVCE","ETADV","PURTR") VALUES (21,'555-1212','2006-12-10',5000,'20060501','hi')" contains the semantics error[s]: - type check error: new value (element number 3 (CHAR)) is not assignable to column  >>REQDT<< (DATE)</b>
    Please correct me.
    Your help will be appreciated.
    Regards,
    Sireesha.B

    Hi,
    int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,REQDT,ADVCE,ETADV,PURTR) values(21, '555-1212', 'date', 5000, '20060501','hi')");
    try like this.
    I Think in SQL the general format to take date as input like this.
    INSERT INTO X VALUES ('10/30/56')
    thaks,
    Lohi.

  • MOdify with Date field giving error

    Hi,
    I have to modifuy an internal table using modify statement.
    After using the modify statement my date field in the internal table is replace by *.
    heres a sample code i have used to depict the scenario(with the test values:)
    DATA: BEGIN OF t_arcs_source OCCURS 0,
          premise(10) type c,
        key_date TYPE sy-datum,
      END OF t_arcs_source.
      DATA: wa_arcs_source LIKE LINE OF t_arcs_source.
    t_arcs_source-premise = '1001'.
    t_arcs_source-key_date = '20080101'.
    APPEND t_arcs_source.
    t_arcs_source-premise = '1001'.
    t_arcs_source-key_date = '20090101'.
    APPEND t_arcs_source.
      sort t_arcs_source by premise ascending key_date descending.
      clear t_arcs_source.
      loop at t_arcs_source into wa_arcs_source.
        at new premise.
           modify t_arcs_source from wa_arcs_source transporting key_date where premise = wa_arcs_source-premise.
        endat.
      endloop.
    please test the code and see the  error and help me out.
    Regards,
    Anand

    Hi.
    I have modify ur above given code and make it changed for ur need meanz according ur nedd and it is working accurately.
    check it and then tell me.
    DATA: BEGIN OF t_arcs_source OCCURS 0,
          premise(10) type c,
        key_date TYPE sy-datum,
      END OF t_arcs_source.
    " New code of loines i appended
      data: wa_t_arcs_source like t_arcs_source.
      data: t_arcs_source_1 LIKE STANDARD TABLE OF t_arcs_source WITH HEADER LINE.
      data: wa_t_arcs_source_1 like t_arcs_source.
    " End of new code of line
      DATA: wa_arcs_source LIKE LINE OF t_arcs_source. " I change this work area by wa_t_arcs_source
    t_arcs_source-premise = '1001'.
    t_arcs_source-key_date = '20080101'.
    APPEND t_arcs_source.
    t_arcs_source-premise = '1001'.
    t_arcs_source-key_date = '20090101'.
    APPEND t_arcs_source.
      sort t_arcs_source by premise ascending key_date descending.
      clear t_arcs_source.
      loop at t_arcs_source into wa_t_arcs_source. " Used the new work area
        wa_t_arcs_source_1 = wa_t_arcs_source.
        append wa_t_arcs_source_1 to t_arcs_source_1.
        at new premise.
           modify t_arcs_source_1 from wa_t_arcs_source_1 transporting key_date where premise = wa_t_arcs_source-premise.
        endat.
      endloop.
    Just copy paste in editor and check it.
    Edited by: tahir naqqash on Feb 2, 2009 11:24 AM

  • View criteria with date field in ADF

    Hi ADF Experts,
    I have a requirement like.I have a VO with query let say  "Select * from Employee"
    I have created viewCriteria in that VO like "HireDate between 'abc' and 'XYZ'.
    In AMImpl class I have written, one fuction to apply viewcriteria on VO and execute query.
    Expose that function as service method, and execution form backing bean.
    It is working properly for all other column except the date field.(May be beause of date format, as we cannot apply To_Char, or ToDate in view criterai for date format)
    Tried all possible combination but no luck
    Please help

    Hi,
    The below link might be helpful for you
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/59-table-filter-by-data-range-176653.pdf
    Thanks
    Prabhat

  • Materialized view fast refresh with date field

    I have a situation where I need to create a materialized view worth of 6 months of data with fast refresh option from the master table. Somehow whenever I have the where clause added with the date field then it craps out with "ORA-12015: cannot create a fast refresh materialized view from a complex query".
    Here is what I am trying to do. Please let me know if there is any other way to accomplish this.
    create table test (id number, date_time DATE);
    CREATE MATERIALIZED VIEW LOG ON test WITH ROWID;
    CREATE MATERIALIZED VIEW cms.scoreboard_statistics_mv
    BUILD IMMEDIATE
    REFRESH FAST
    WITH ROWID
    AS
    SELECT * from test
    WHERE date_time >= sysdate - 180;
    ORA-12015: cannot create a fast refresh materialized view from a complex query
    Thanks,
    Raj

    It's crazy but a new time Metalink help us into the Note:179466.1
    The restrictions that prevent snapshots from being fast refreshed depend on
    the version of Oracle being used, a full list of these by version is included
    in section 3. In all cases the snapshot defining query should:
    - refer to fully qualified table names rather than to partial table names.
    - refer to remote tables only, not to remote master views or synonyms.
    - not generate context sensitive data. For example, do not create a simple
    snapshot with a query that uses the SQL functions :SYSDATE, UID or USER.

  • Email Notification with date field

    Hi,
    i marked the a field as Display field this way it is displayed in the Email notification. (%Records%).
    But i can see the letral date field displayed in email as 2010:03:09:00:00:00:000
    Why is the ''00:00:00:000'' displayed when i have a date field??
    Did anyone face this issue..
    KR
    John

    HI John,
    Date field in MDM is 18 characters long and has date as well as time component to it.
    You can use assignment to trim this and transfer its value to another field and make that field as DF,so that it is displayed in the mail as date.
    Otherwise you can also create a calculated field for this purpose.
    Please go through this very useful link to create expressions/validations with dates:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b025fab3-b3e9-2910-d999-a27b7a075a16?quicklink=index&overridelayout=true
    Thanks,
    Ravi

  • Problem with date field (truncation)

    Hi guys!
    I have an interface between Oracle and Oracle. My LKM is SQL to SQL and my IKM is SQL Control Append.
    In the source table i have a date with a hour but after executing the interface in the target date field I receive only date without hour...
    Do you know where it can be truncated ?
    With regards,
    PsmakR

    This an Oracle JDBC Driver error...
    Try this to fix the issue:
    Go to Topology Manager and from the Physical Architecture > Technologies > Oracle > your Data Server > Properties tab, add the oracle.jdbc.V8Compatible property and set its value to true.
    Doing that you can loose the millisecond precision for timestamps format.
    You can also have a try with the Oracle JDBC Driver version 11.1

  • Working with Data Field (XMLTYTPE)

    XMLTYPE is a new type of data element I have yet to work with and I am seeking some guidance as how best to approach
    this in order to display the contents of these fields.
    I have the XSD available to me which I believe I will have to query the contents withing this field and within a outter query.
    This may not be an easy task to explain, but if some one is willing to take a stab at it, i'd greatly appreciate any advice given.
    Enjoy your Day,
    Sincerely,
    George

    Check this link
    http://docs.oracle.com/cd/B10500_01/appdev.920/a96620/xdb04cre.htm
    If helps pls mark

  • Can i Use a time stamp vale  in where condition with date field?

    HI,
    In a where condition the table field vale is of type timestamp and select options value is of type date.
    How do i select data?

    Define a range for r_dt for timestamp field.
    Initailize the range with the below values.
    r_dt-sign = 'I'.
    r_dt-option = 'CP'.
    concatenate r_date-low '*' into r_dt-low.
    concatenate r_date-high '*' into r_dt-high.
    append r_dt.
    Use r_dt in your select query where clause.
    Note - r_date is the select-option for your date field.
    Regards
    Anurag

  • Trouble to use COOIS with date fields

    Hi,
    Some trouble to use Tcode COOIS, which could provide a lot of information on Production Workflow. When
    indicating a date in one of the date fields, datas pulled do not fit with the criteria. For example, if the 08082011
    is entered, the report provides informations on postings created the 08082011 and lateru2026 Is there any idea to
    fix the problem or to understand why.
    Thks
    sb
    Edited by: STANISLAS BRESIN on Aug 25, 2011 11:46 AM
    Edited by: STANISLAS BRESIN on Aug 25, 2011 11:47 AM

    Hi,
    Please note that In COOIS, yes you donot have creation date / confirmation posting date.
    You can sort the production orders wrt basic start dates / finish dates.
    Select the basic start date column, rt click and click sort in ascending or descending order
    Refer the OSS note Note 434123 and 615206 - Filling and displaying own fields in information system
    Regards,
    sankaran

  • Help with Date Field Value

    I have only used livecycle for a few months, so sorry if this questions seems basic, just beyond my knowledge at the moment.
    I need a little assistance with a date issue I am having on one of my forms.
    I have the display pattern of a date field set to --    date{MM/DD/YYYY}
    The issue I am having is some users are entering the date using the  " - "symbol instead.
    Example  01-01-2000
    and other are using the correct  01/01/00 format with the " / " as the divider.
    This is causing calculations in the next field to fail because the date it formatted incorrectly.
    How can I make the field convert the " - " to the the correct symbol of " / " and still allow others to use the " / " as they are now.
    Thanks

    I was able to figure it out using the edit pattern page

Maybe you are looking for