30EA3 : Unload DATE caused truncated Time portion

Hi,
As has been explained in the following thread on which are closely related :
30EA1: unloading data seems to favor timestamp over date format
I tried the unload feature and found these annoying thing :
- Unloading DATE column from SQL Query grid, the time part is correctly given
- Unloading DATE column from table's context menu or Database Unload, both gives me 00:00:00 as the time part, truncating the time portion.
I choose 'csv' and 'insert' as the unload method.
Actually there was a workaround suggested by Raghu by disabling the mapDateToTimestamp, but this workaround caused another problem as stated on above thread.
Hope to see a safe solution to use this buggy unload feature.
Regards,
Buntoro

I have corrected this problem, thanks to the guys on Metalink.
If anyone is interested in the solution, All I had to do was copy:
%ORACLE_HOME%\jdbc\lib\classes12.jar
to
%ORACLE_HOME%\mobile_oc4j\jdbc\lib\classes12dms.jar
on the Mobile Server.

Similar Messages

  • Database Polling Strategy: Time portion of Date/Time not propogated to BPEL

    Hi,
    I have a simple BPEL process that uses a last update date polling strategy using a helper table. The table I'm going against is a simple, three column table, as defined below:
    CREATE TABLE XXSI_TEST_PRODUCTS
    ID VARCHAR2 (32) NOT NULL,
    DESCRIPTION VARCHAR2 (32),
    LAST_UPDATED DATE
    The helper table is as follows:
    CREATE TABLE XXSI_PRODUCT_SEQUENCING
    TABLE_NAME VARCHAR2 (32),
    LAST_UPDATED DATE
    The issue I am having is when the adapter picks up the updated rows from the XXSI_TEST_PRODUCTS, that it picks up the date portion of the date datatype fine. (i.e., I can see the value in the audit flow of the BPEL console) However, the time portion of the datatype is always 00:00:00.
    Could anyone suggest what the issue is here?
    Thanks
    Aashish

    To add to this earlier note. I can get this to work with the olite database connection, but not Oracle (JDBC) thin driver. Should I be using the Type 2 OCI driver? If so, what should I use?

  • Change Time Portion in a Date

    Dear Experts,
    I want to change the time portion of a date in forms6i through pl/sql, but its not changing correctly. I have tried many options but failed
    existing value = 18-FEB-2011 09:32:30. I want to fix it as 18-FEB-2011 08:00:00 through a trigger, but
    it changes either date or sets time 00:00:00. By default it shows time as 12:00:00.
    I can change it manually but not through triggers.
    Please find me a solution
    Regards
    AK

    user832095 wrote:
    Dear Experts,
    I want to change the time portion of a date in forms6i through pl/sql, but its not changing correctly. I have tried many options but failed
    existing value = 18-FEB-2011 09:32:30. I want to fix it as 18-FEB-2011 08:00:00 through a trigger, but
    it changes either date or sets time 00:00:00. By default it shows time as 12:00:00.
    I can change it manually but not through triggers. Hello, AK
    Interesting to see you are trying to convert *09:32:30* to *08:00:00* without any logic ?
    It's your business.
    try this it's return charecter
    select TO_CHAR((TO_DATE('18-FEB-2011 09:32:30','DD-MON-RRRR HH:MI:SS')),'DD-MON-RRRR')||' '||TO_CHAR(TO_DATE('08:00:00','HH:MI:SS'),'HH:MI:SS')
    FROM DUALtry this. it's return date
    select to_date(TO_CHAR((TO_DATE('18-FEB-2011 09:32:30','DD-MON-RRRR HH:MI:SS')),'DD-MON-RRRR')||' '||TO_CHAR(TO_DATE('08:00:00','HH:MI:SS'),'HH:MI:SS'),'DD-MON-RRRR HH:MI:SS')
    FROM DUALHopes this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • Adding one day to a oracle.jbo.domain.Date and truncating the time part

    JDev 11.1.1.4.0
    Hello
    I need to add a day to oracle.jbo.domain.Date and get back a oracle.jbo.domain.Date without the time part.
    So far I've got
    Date valueDate = (Date)rowCpt.getAttribute("ValueDate");                                       
    Calendar cal = Calendar.getInstance();
    cal.setTime(new java.util.Date(valueDate.timestampValue().getTime()));
    cal.add(Calendar.DATE, 1);
    Date newDate = new oracle.jbo.domain.Date(new Timestamp(cal.getTime().getTime()));This adds 1 day to the date but keeps the time part of the date.
    How do I get rid of the time part of the date ?
    Thanks
    Paul

    The Calendar class allows you to set or clear each field.
    Date valueDate = (Date)rowCpt.getAttribute("ValueDate");                                       
    Calendar cal = Calendar.getInstance();
    cal.setTime(new java.util.Date(valueDate.timestampValue().getTime()));
    cal.add(Calendar.DATE, 1);
    cal.clear(Calendar.HOUR);
    cal.clear(Calendar.MINUTE);
    cal.clear(Calendar.SECOND);
    cal.clear(Calendar.MILLISECOND);
    Date newDate = new oracle.jbo.domain.Date(cal.getTimeInMillis());should work.
    Timo

  • Data getting truncated while exporting report to a text file in crystal 10?

    Hi All,
    I am using crystal 10.When exporting report to a text file ,a dialog prompts asking for Character perinch with a default value 9.If I change the value from 9 to 16 i am getting the correct data(that means character per inch value is 16) and it update "CharPerInch" value in registry under following location to 16.
    HKEY_CURRENT_USER\Software\Crystal Decisions\10.0\Crystal Reports\Export\Text
    The dialog asked for character per inch also has option to select not to prompt again and i also selected that in first go.
    When i export the report again in text format it didn't prompt for number of character per inch but the data gets truncated.
    What i believe is even though it updates entry in registry and reads, it is not using the same value for export. It never consider the value that is in registry, if the check box is not selected then it is using the value entered in the dialog and if the check box is selected then in the next run it uses the default value as 9.
    Can anyone suggest me how to override this problem ? Is there any other setting place in registry where i can enter the number of character per inch.I don't want to crystal to prompt always for character per inch.

    Hi Venkateswaran,
    The other option to avoid truncation of the data could be
    Right click the text filed
    Click on Format Text to open the Format Editor
    On Common tab check the text box for Can Grow.
    This will prevent the data from truncating in preview as well as while exporting to text.
    Otherwise you will have to set the characters per inch to 16 each time. I donu2019t see changing the registry value causing any difference here.
    Regards,
    Aditya Joshi

  • OWB 10g R2 - Dates getting truncated in rejected records

    Hi,
    We have been using Oracle Warehouse Builder 10g R2 in a data warehouse built on a Oracle Database Server of the same version. We utilise OWB run-time repository to extract data rejects that might occur in OWB mappings and re-process them, if necessary. In particular, we used to query to RAB_RT_EXEC_ERROR_COLUMNS view in order to retrieve data rejects.
    As I have noticed, OWB stores rejected data in its run-time repository having all values transformed to VARCHAR2(2000) data type. The problem I am trying to resolve is the fact that when OWB transfers rejected DATE values to the run-time repo, it truncates all dates so the time component is lost.
    For instance, a source table contains a record with a DATE column value "26-AUG-2006 14:30:27". The source column is mapped in an OWB mapping to a target column of the same data type. When the mapping successfully processes the records, DATE values appears in the target table unchanged, with date and time components. When the mapping rejects the record, it appears in OWB run-time repository in VARCHAR2 data type, but without time component. When I query RAB_RT_EXEC_ERROR_COLUMNS, I get "26-AUG-2006" value.
    This is a real problem for us, as rejected data being re-processed can cause unique constraint violations and does not match exactly the source data.
    Any ideas how to resolve the situation are highly appreciated.

    Yes, we capture errors in row-based mode. We considered using DML error tables, but refused to be able to capture and re-process data rejects occured at any stage in a mapping, not necessarily when the data is being loaded to a destination table.
    BTW, today I tried to set up manually NLS date format
    EXECUTE IMMEDIATE 'ALTER session SET nls_date_format = ''DD/MM/YYYY HH24:MI:SS''';
    immediately before running a mapping through WB_RT_API_EXEC package (OWB API), but result was the same -- rejected dates got truncated.

  • Too much Data, not enough Time.

    Alright, So I have a problem...Guess thats why I am here.
    I have a bulk of information after digitizing a few days shoot, the problem is, Its takes so long to transfer the information in HD format and I have multiple transfers I would like set up, however the computer seems to crash when multiple transfers going. Also sometimes I need to set up transfers where the original file needs to be in 2-3 locations. Causing a time issue.
    So what I am looking for, is something along the lines that will allow me to line up a bunch of transfers individually, that can be done while I am not at the office.
    any suggestions?

    In my experience, rsync [http://rsync.samba.org> is by far the best utility for pushing data around quickly. It has a learning curve if you're not too familiar with shell commands, but is well worth the effort to learn.
    Forgot to mention, if you are running 10.4 or later, rsync already comes bundled with your os.
    Message was edited by: Wherrito

  • Last Logon date and Logon time not updating in table USR02

    Hi,
    Please help us on this. After customer successfully logged in the webshop, we are checking the table USR02 in CRM system and the Logon date and Logon time is not updated. Because of this, the customer will be locked after certain number of days. When we check it in ECC system, customer's last logon date and time is updated. Can you tell us what could be causing this? Any advise what we need to check? Thanks in advance!
    Regards,
    Mike

    Hi
    1. Please check if the USAPPLREF table in ECC has the correct mapping done between the LOGON User and the Sold-to party (Customer)
    2. Please check the validity of those user in SU01 user data.
    3. Please check the USERS data from the USERADMIN Link (if it is configured in your scenario through XCM settings for USERS)
    Hope this will help.
    Regards

  • Why is Firefox writing so much data all the time?

    I am running Windows 7 x64 and Firefox 8. In my Task Manager I display the I/O Write Bytes of all processes. I have found that Firefox is ALWAYS the Process with the largest amount of write bytes after it has been running an hour or so even though there are dozens of other processes there. The only Web page is Google and all of my plugins are disabled.
    Why is Firefox writing so much data all the time?

    Firefox may be updating the phishing protection database or do maintenance with other files like places.sqlite. It should stop at some point if that has been done.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem.
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • [svn:fx-trunk] 12077: Although Spark RichText does not support link formats , modifying compiled FXG to not generate ActionScript code that will cause compile time exceptions .

    Revision: 12077
    Revision: 12077
    Author:   [email protected]
    Date:     2009-11-20 18:16:32 -0800 (Fri, 20 Nov 2009)
    Log Message:
    Although Spark RichText does not support link formats, modifying compiled FXG to not generate ActionScript code that will cause compile time exceptions.
    Removing references to Flex Builder 3 in RPC.
    QE notes: N/A
    Doc notes: N/A
    Bugs:
    SDK-24305 - Link format property nodes cause errors on RichText in FXG 2.0
    SDK-24322 - A couple references to Flex Builder 3 in Flex 4 LangRef (and code comments)
    Reviewer: Deepa
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24305
        http://bugs.adobe.com/jira/browse/SDK-24322
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java

  • Datetime field overflow / String data right truncation

    Hi All,
    Getting the follwing erros while working with timestamp for selecting from or inserting data into DB2 through WebSphere 6.1.
    I am passing values like this: 2006-05-02-21.57.26.744341.
    The queries run fine while executing through some SQL Frontend editor.
    [IBM][CLI Driver] CLI0114E Datetime field overflow. SQLSTATE=22008
    [IBM][CLI Driver] CLI0109E String data right truncation. SQLSTATE=22001
    Please let me know the problem.

    If you are trying to convert to a java.sql.Timestamp as part off the process of inserting into DB2 then Timestamp is derived from java.util.Date which holds the time in milli-seconds but you are providing a microseconds field.
    Could this be the problem?

  • How to combine sql.Date with sql.Time into one?

    I have a database where I keep dates and times separately, and getting date only and time only out of a java.util.Date is no problem thanks to the classes java.sql.Date and java.sql.Time. However, I need to read these values back in, put them back together, and then do date comparisons with java.util.GregorianCalendar. I tried just adding the millisecond long values together but that didn't seem to work, and I've tried setting the year, month, date, hours, minutes and seconds individually into a GregorianCalendar but I haven't figured that out yet. Certain queries work out better keeping the date and time separate in the database and it takes less bytes than a timestamp, so please don't suggest I use a timestamp!
    Thanks for your help!
    Stephen

    You can add the milliseconds (ms), but you need to use just part of it. For this example, let X be one more than the maximum number of units in time and also the minimum number of units in date. If we were using hours instead of ms X would be 24.
    t = total ms from time
    d = total ms from date
    T = new combined time
    T = ((d / X) * X) + (T % X);Add (the date, rounded to the nearest day) and (the portion of time which is less than a day).

  • Msg 0, Sev 0, State 1: Unknown token received from SQL Server [SQLSTATE HY000] String data, right truncation [SQLSTATE 01004] [SQLSTATE 08S01] error

    I'm looking for some general guidance on this complete error:
    Msg 0, Sev 0, State 1: Unknown token received from SQL Server [SQLSTATE HY000]
    String data, right truncation [SQLSTATE 01004]
    Msg 16389, Sev 16, State 1: The connection is no longer usable because the server response for a previously executed statement was incorrectly formatted. [SQLSTATE 08S01]
    This error is caused by a SQL Agent Job, but it does not always occur. I understand this could be an issue with SQL dropping the connection, but what is the best way to troubleshoot this?
    Thanks,
    Phil

    Hi philliptackett77,
    It would be more helpful for troubleshooting the issue if you post the SQL Server error log and SQL Server version. Additionally, please state what purpose of using the agent job.
    Based on my research, [SQLSTATE 08S01] error means communication link failure. If the executed statement returns invalid value in the job, the connection between server and client will fail. This error could be caused by the error of [SQLSTATE HY000] and
    [SQLSTATE 01004]. I’d like to share my knowledge about these errors as below.
    Quote: String data, right truncation [SQLSTATE 01004]
    This error could occur when passing data whose length is larger than the received object,and the passed value is truncated, and returns invalid value. So please check if the data type of the objects are identical and the length of passed value is not larger
    than the received object.
    Quote: Msg 0, Sev 0, State 1: Unknown token received from SQL Server [SQLSTATE HY000]
    The error could occur in the two cases below.
    1. If you use SQL Server version 6.50, and execute the cursor in the job step, set the statement options to use a server-side cursor and prepare a select statement on a SQL Server system table. The first execution of the select creates the cursor successfully.
    After you close this cursor, if you execute the prepared statement again, the error could occur.
    I recommend you to apply the latest service pack firstly. If the error still occurs, you could change your code by using a forward-only cursor instead of a static, keyset, or dynamic cursor on the system tables. If a forward-only cursor is unacceptable,
    prepare the select statement again on the system table and execute it to create a server-side cursor. For more information about the process, please refer to the article:
    http://support.microsoft.com/kb/151693/en-us
    2. The TDS stream from the server is invalid when transfer data between a database server and a client. This error is typically caused by a problem on the server. For more information about errors above, please refer to the article:
    http://technet.microsoft.com/en-us/library/aa937531(v=sql.80).aspx
    Regards,
    Michelle Li

  • String data right truncation

    I have a PreparedStatement to insert into a 104 column table. When I run the procedure it throwing an exception
    [IBM][CLI Driver] CLI0109E String data right truncation. SQLSTATE=22001
    COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver] CLI0109E String data right truncation. SQLSTATE=22001
    How can I find out which column is doing this?
    Is there any method or a call I can use to pin point the error?
    thanks,

    And exactly how many fields do you have that can cause the problem?
    The problem is because you are passing more text than can fit into a field. So how many fields do you have like that?

  • Getting SQLSTATE:22001(Message : [Microsoft][SQL Server Native Client 11.0]String data, right truncation) in SQL Server 2012 but in SQL server 2008 R2.

    I have an application which connects to SQL through ODBC 11.
    ODBC statement is :
    SELECT PID
    FROM PENTITY PENTITY01 WHERE ((NUM1 NOT BETWEEN ? + 10.7895 AND ? + 200.6734 AND NUM2 NOT IN (5996/ 8, ? - 89.3892, ? + 80.7543))
    and the SQLBindparameter statement is :
    static UCHAR num1[12]=12.589
    rc = SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, sqlType, precision, scale,
    &num1, sizeof(num1), NULL);
    With this SQLBindparameter statement I am getting error, It is working without any error if I change the value to 12.
    The same code is working when connecting to SQL server 2008.
    Thanks in advance.

    Hi Nalsr,
    From my research, I found:
    "[Microsoft][ODBC SQL Server Driver]String
    data right truncation" error may be returned from a call to
    SQLBindParameter if the size of the string parameter being used is greater than the size of the column being compared to. In other words if the
    string size of the <expression> to the left of the <comparison_operator> is less than the
    string size of the <expression> to the
    right, ODBC may return this error.
    The resolution is to make the string size of the <expression> to the
    right of the <comparison_operator> less than or equal to the
    string size of the <expression> on the left.
    It is difficult to track down this type of problem when third party development applications are being used. ODBC Trace can be used to help determine if this problem is occuring.
    Here is an example where the customer has submitted a query "select count(*) from type1 where type1 = ?", type1 is varchar(5) and the
    data type being passed by the application is char[9].
    Here is the relevant portion of the trace. The following information from the "exit" of SQLDescribeParam
    SWORD * 0x0095e898 (12)
    UDWORD * 0x0095e880 (5)
    Maps to the following with the actual value in parenthesis - SQL_VARCHAR Size 5:
    SQLSMALLINT *DataTypePtr
    SQLUINTEGER *ParameterSizePtr
    The "exit" value from SQLBindParameter provides the following
    information:
    SWORD 1 <SQL_PARAM_INPUT>
    SWORD 1 <SQL_C_CHAR>
    SQL Data Type SWORD 12 <SQL_VARCHAR>
    Parameter Size UDWORD 5
    SWORD 0
    Value PTR 0x0181c188
    Value Buffer Size SDWORD 5
    String Length SDWORD * 0x0181c103 (9)
    The string length parameter is the length of the
    string being bound to the parameter, in this instance there is a size mismatch which results in the SQLError and the SQLErrorW with the message "[Microsoft][ODBC SQL Server
    Driver]String data
    right truncation" .
    Hope this could be helpful.
    Best regards,
    Halin Huang

Maybe you are looking for