SQL History and timestamp order

Hi, I have SQL Developer 12.84 (4.0.0.12).
Sql history forces MM/DD/RR format in Timestamp instead of NLS format: DD.MM.YYYY HH24:MI:SS.
As a consequence the sort order fails.
Played with  C:\Users\<user>\AppData\Roaming\SQL Developer\SqlHistory files but each new entry ignores manual date changes and writes timestamp in strange format.
Any idea?

Already identified by developer team as:
Bug 17740406 - SQL HISTORY TIMESTAMP NOT SORTED AS DATE FOR NON-US LOCALES
Info based on: https://forums.oracle.com/thread/2601066 (why new thread)
This is important drawback in SQL Developer 4 for non US users. BTW, still not fixed in build 13.30 (4.0.0.13)

Similar Messages

  • SQL*Loader and timestamp values

    I'm loading timestamp values (among other data) from a text file into Oracle using SQL*Loader.
    The data I load is formatted like the following:
    2008/11/13 23:55:21.366
    2008/11/13 23:55:22.782
    2008/11/13 23:55:25.879
    Hence my control file look like this:
    TSTAMP TIMESTAMP "YYYY/MM/DD HH24:MI:SS.FF",
    The timestamp data in the input file are in UTC, however I load into a column that is of type "TIMESTAMP(3)", i.e. in server time. This is on purpose. I do not want the data to be in UTC when I look at them.
    Therefore after the load I have to manually do
    UPDATE mytable
    SET tstamp = tstamp + (tstamp - sys_extract_utc(tstamp));
    This update-after-loading actually takes quite some time due to the amount of records. I would like to avoid it and instead do it as part of the load. Is this possible somehow?
    I'm on Oracle 10.2.
    Thanks.

    Hi
    What about setting a special Time Zone in your database?
    You have two options when setting which time zone the database belongs to. You can either qualify it as a displacement from GMT/UTC in the format of 'hh:mm' or you can specify it as a name that has an entry in the V$TIMEZONE table.
    select tzname,tzabbrev from V$TIMEZONE_NAMES;
    select DBTIMEZONE from dual;
    ALTER database SET TIME_ZONE = 'Denmark/Copenhagen';
    select SESSIONTIMEZONE from dual;
    select CURRENT_TIMESTAMP from dual;
    See that link
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref319
    Edited by: Hub on Dec 7, 2008 3:58 PM

  • SQL Loader and record order

    I am using sqlloader utility to load data from a CSV file in to a table.
    My .ctl file looks as below
    ------- 8< -------
    options (errors=5,SILENT=(HEADER, FEEDBACK),direct=true)
    load data
    infile "mytest.csv"
    discardmax 0
    into table owneruser.MY_TABLE
    fields terminated by "," optionally enclosed by "##"
    (ID, ID1, VAL, VAL2)
    ------- 8< -------
    sqlldr tool is run with this ctl file by another database user who has sufficient privileges to insert this data in to mytest.csv has about 400000 entries each entry maps to one row in MY_TABLE. Before loading data using the sqlldr MY_TABLE is truncated.
    In mytest.csv, the value for ID field is a number starting at 1 which keeps incrementing by 1 for the next entry. The records are ordered by ID in the csv file.
    After loading the data using sqlldr, when we query MY_TABLE (select * from MY_TABLE), so far the records are returned in same order in which they were inserted (i.e. ordered by ID). But off late they are not being returned in random order. This happens only on one database instance. On other test instances the the resultset is ordered. I agree that the only way the order can be guaranteed is by using the ORDER BY clause.
    But, I was wondering why this has worked even when ORDER BY is not used.
    This is the only way in which MY_TABLE is manipulated. Rest all use it only for querying.
    ID is the primary key column in MY_TABLE and there is an index on (ID, ID1).
    Thanks in advance.
    S

    There are any number of reasons that the data would be coming back in a different order since you're not using an ORDER BY. My guess is that the most likely reason is that you have one or more extents in your table that is physically before another extent that it is logically after, in which case a full scan would read that extent first. You may also be seeing differences in how ASSM happens to choose which block to insert into, in the use of parallelism, etc.
    Justin

  • SQL History not sorting by timestamp; new v4 TS format ?

    I was worried that  my SQL History was not accumulating post upgrade, as it did not appear as I expected.
    I typically sort it by descending timestamp, but I'm finding that since installing the 4.0 production version that a different timestamp format on SQL History has taken hold, ignoring the NLS settings that I put in my preferences (which were not the default ones by the way for my territory and language, by the way).  
    I migrated all my settings from the previous installation I had ...sqldev4 ea3.  previous migrations from v3 to v4 ea1 to v4 ea2 to v4 ea3 never disrupted my SQL History.
    Now my recent entries are buried in the SQL History and won't show on top anymore, and the sorting by timestamp seems erratic making it impossible to see a chronological order of SQLs executed before and after the migration.
    Is there a control for formatting the SQL History timestamps or do I need to go spelunking through xml files to alter a setting ?
    Curiously,
    Steve 

    A timestamp found inside one of my older  "history.xml"  files looks like this:
    <timestamp><![CDATA[12/11/13 2:18 PM]]></timestamp>
    A newer one looks like this:
    <timestamp><![CDATA[12/17/13 20:54]]></timestamp>
    It would probably give Xquery fits reconciling the different formats, sorting, eliminating older SQLs in the history according to one's preferences inside SQL Developer 4, etc.
    I'm going back to the last early adopter release just to preserve history and sequence until the tool makers resolve the timestamp and the weird sort order problem.

  • Migrating SQLDeveloper 1.0 archive sql history to 1.1

    I am having trouble migrating the SQLs to 1.1. When I first installed sqldeveloper 1.1 it prompted to migrate user info so I did that and it successfully migrated db connections but the history showed up blank as far as the sql statements. All I saw was the connection and timestamp info.
    I tried to follow the instructions on setting the env variable in Windows to point to the c:\document and settings><user>\.sqldeveloper\tmp where I have the sql history and it didn't work either.
    I'm wondering if anyone experienced this problem and how they resolved it.
    Thanks,
    Kuljit

    This limitation stems from the way the POI library works. Few relevant links:-
    http://www.nabble.com/Write-a-(very)-huge-Excel-file.-td21368980.html
    http://mail-archives.apache.org/mod_mbox/poi-user/200901.mbox/%[email protected]%3E

  • SQL History change???

    I am running SQL Developer 4.0.0.12 (EA 2).
    When I highlight an entry in SQL History and click or double-click, shouldn't this entry be placed in the Worksheet area??
    I believe that this was the behaviour in 3.2.x versions.
    Murray

    Hi Murray,
    For me, SQL History append into a Worksheet works fine with double-click, but not single-click, on both 3.2.2 and 4.0EA2.  The Append and Replace icons in the SQL History toolbar also work fine for both versions (even for selections of multiple SQL History lines). 
    So if double-click does not work for you, you might try:
    1. Running ...\bin\sqldeveloper.exe from the command line to see if any errors or warnings appear in the console.
    2. Try to reproduce the issue after a remove or rename of the SQL Developer\system4.0.0.12.84 directory in your user's home directory.
    Regards,
    Gary
    SQL Developer Team 

  • How do I save browser and download history with timestamps?

    I want to be able to have access to and be able to export all my browser and download history on Firefox with timestamps. From the looks of it, Firefox doesn't place permanent time-stamps on browser history, and begins removing download data from the main download window after it reaches a certain volume. I'm mainly interested in knowing whether I can retrieve and export history and/or download data which is months old for forensic reasons. Basically, I just want to have a day-by-day breakdown of the sites I visited over the last year on Firefox instead of a month-by-month one and '6 months or older' pile.
    It would be nice if someone could clarify whether or not Firefox supports or can be made to support any of this, and if months-old browser history still has original time data associated with it that I can use to categorize it day-by-day.

    You can open the downloads.sqlite file in a program or extension that can handle SQLite database files.
    * SQLite Manager: https://addons.mozilla.org/firefox/addon/sqlite-manager/
    # Open Profile Directory -> XXX.sqlite -> Go
    # Hit the Execute SQL tab
    # Use a Select like this:
    <pre><nowiki>SELECT datetime(startTime/1000000,'unixepoch') AS startTime,name,source AS url,target,currBytes AS bytes,((endTime-startTime)/1e6) AS time,currBytes/((endTime-startTime)/1e6) AS speed,mimeType
    FROM moz_downloads
    ORDER By startTime DESC
    </nowiki></pre>
    If you need more (or less) data then add open the XXX table to see the names of the available columns and add them to (or remove them from) the SELECT line separated by commas.

  • EA3/EA2 - SQL History Timestamp column

    The formatting of the Timestamp column in the SQL History now uses the NLS Timestamp Format (yay!), but unfortunately does not cope with the seconds component of the format:
    NLS Timestamp Format is DD-Mon-YYYY HH24:MI:SSXFF
    Timestamp column in the SQL History displays as 25-Feb-2008 15:03:.
    I assume from what has previously shown in the SQL History timestamp column (2/25/08 3:03 PM) that we do not record seconds in the SQL History timestamp. I don't really have a problem with that, but can we please trim the second and sub-second components from the format?
    theFurryOne

    Just to add, this specific problem has been fixed. Hiding of sec/mill-sec information is handled by ignoring 'S/F', '.X', ':X' fields . But keeping the bug open so that a more generic fix is made which will handle symbols like '#SSXFF' in time field.

  • 4.0 EA3 - SQL History TIMESTAMP format

    Timestamp in SQL history is incorrectly showing the dates. Seems like a mismatch between the Timestamp format; looks like in some case the is showing the dar as month and month as day; have some other scenarios where also the year is wrong.
    This issue was also reported here: https://forums.oracle.com/thread/2593880

    Hi Gary,
    Is possible that it may be a "Locale" related issue, but I don't know where is the Locale value comming from, since my Windows and SQLDeveloper are in English. See screenshot... http://img822.imageshack.us/img822/5097/6jbq.jpg
    Nevertheless, is true that I'm located in Spain, and in previous versions of  SQL Developer, the IDE was in Spanish by default, and I had to edit the sqldeveloper.conf file, adding the following option (I like my tools in English)
    AddVMOption -Duser.language=en
    SQL Developer 4 is correctly showing in English without editing the file.
    Regards

  • I had ordered a photo book print two years back. I want to reorder the same book again now. However, I have lost the album project in iphoto. Is there any way to see my print order history and reorder the same book for print ?

    I had ordered a photo book print two years back. I want to reorder the same book again now. However, I have lost the album project/photos from iphoto.
    Is there any way to see my print order history and reorder the same book for print ?

    No.  Apple only keeps the pdf file for a book for 30 days.  Without the library and book project you won't be able to reorder the same book.
    Even though the horse is out of the barn the following tutorial might be of help for future books, i.e. create a new library for each book): iP08 - Archiving an iPhoto Book for Editing and/or Ordering at a Later Date
    OT

  • Production Order Change Date and Timestamp

    Hi, While trying to change the quantity and date of a production order I want to capture the date and timestamp of the change time.
    Please let me know which table or function module can be used for this. Thanks.

    Check AUFK-->AEDAT
    Regards
    AM

  • EA1 - SQL History Timestamp format

    Feature Request "SQL History Timestamp - NLS Date format" (Use the current NLS Date or Timestamp Format preference for formatting the Timestamp displayed in the SQL History window) is listed as Scheduled for 1.5 but has not been included.

    Rakesh,
    Thanks for the update. I assumed that it hadn't been done yet, as it is using a different "default" NLS date format from the results tab, which also is not picking up the NLS date format preference.

  • Hi, I just installed CS6 master collection from order history and when I try to enter Serial Number it tells me that: Serial number you provided is valid, but qualifying product can not be found on this computer. Then it gives me options under drop down m

    Hi, I just installed CS6 master collection from order history and when I try to enter Serial Number it tells me that: Serial number you provided is valid, but qualifying product can not be found on this computer. Then it gives me options under drop down menu but Master Collection CS6 is the only one not appearing in a drop down menu.

    Your CS6 must have been purchased as an upgrade.  What it is asking you to select/provide is the name/serial number of the previous version you purchased that qualifies you to install and activate the CS6 upgrade version... this would be likely be one of CS3 thru CS5.5.
    Error "This serial number is not for a qualifying product" | CS6, CS5.5, CS5
    http://helpx.adobe.com/creative-suite/kb/error-serial-number-qualifying-product.html

  • BAPI to bring TAX INFO, ORDER HISTORY and PAYMENT DETAILS of a PO ??

    Hi All,
    Is there any BAPI that brings
    TAX INFO
    ORDER HISTORY and
    PAYMENT DETAILS of a PO ?
    Please let me know.
    Thnx.
    Regards,
    Nandha

    Hi,
    The BAPI exports all details required however I am not sure whether this exports payment details as well.  Kindly let me know if this exports payment details or is there any other BAPI that provide these details.
    Thnx.

  • Reading Dates and Timestamps created by PL/SQL

    Hello,
    This is probably a FAQ (or stating the obvious) but I want to make sure I've got the right idea about things...
    I recently noticed that our Java app reads dates/timestamps incorrectly from the database. Any date set using 'SYSDATE' in PL/SQL is an hour out when read by Java. This is because we are now in BST and the object read back by the JDBC driver thinks the timezone is GMT.
    From reading around it seems that the DATE and TIMESTAMP types in Oracle don't persist timezone information. Fair enough, but to me this makes it dangerous to use SYSDATE at all in PL/SQL procedures.
    Previously I've never relied on the database itself to generate timestamps so dates have always been stored as UTC. I'm currently using SYS_EXTRACT_UTC(SYSTIMESTAMP) when inserting data in to tables and basically wondering if this is the common way of achieving accuracy.
    (using types such as "TIMESTAMP WITH LOCAL TIME ZONE" seem to have their own annoyances in JDBC so I've opted to avoid those)
    Thanks.

    Tom,
    This may be helpful...
    http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-time.html
    Good Luck,
    Avi.

Maybe you are looking for