SQL Developer is not exporting the time part of date data types.

I need to export data from a table using sql developer. The column is a date data type but when I export the data to a csv, xls or an sql file with insert statements, sql developer only includes the date part without the time.
Please kindly advise.
Thanks,
Erika

What is your 4 digits Oracle version ?
What is your SQL Developer version ?
With Oracle XE and a schema named TEST I have:
select * from t
X                        
04-FÉVR.-2010 21:24:40  If I use Tools/Database Export with all default settings with SQL Developer 2.1.0.63 I get following SQL file:
--  Fichier créé - jeudi-février-04-2010  
--  DDL for Table T
  CREATE TABLE "T"
   (     "X" DATE
--   DATA FOR TABLE T
--   FILTER = none used
REM INSERTING into T
Insert into T (X) values (to_timestamp('04/02/10 21:24:40,000000000','DD/MM/RR HH24:MI:SS,FF'));
--   END DATA FOR TABLE T
---------------------------------------------------Edited by: P. Forstmann on 4 févr. 2010 21:26

Similar Messages

  • DST: the SQL Cluster did not change the time by itself..

    Hello,
    DST: the SQL Cluster did not change the time by itself..
    Where should I look for the issue. The time was changed manually to continue processing....
    Thanks,
    Dom
    System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager

    Hi,
    Thanks for your posting.
    For the Sql cluster issue, i think you may ask in:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver&filter=alltypes&sort=lastpostdesc
    Regards.
    Vivian Wang

  • SQL Developer does not attach the selected glossary

    I am trying to use a glossary to control abbreviations when generating the Relational Model from the LDM. I go to Tools > Preferences, then select Naming Standards, click on the + to add the glossary, select my glossary, then OK. When I follow that same path there is no sign that the glossary have been attached and certainly no abbreviating taking place when I engineer the Relational Model from the LDM. Can anyone help?

    I have resolved the issue myself. It would appear that you have to attach the glossary BEFORE you create the blank relational model that you wish to forward engineer to. Odd but there you go!

  • SQL Developer is not able to identify the Tnsnames.ora file

    Hi,
    I have installed the following in the laptop having Win XP:
    1) Oracle 10gR2 Client software in the D: drive of laptop. Tnsnames.ora is located in this clients Network\Admin path. This client is used to access the databases on the other servers.
    2) Oracle 10gR2 Database software in the E: drive of laptop. Right now there is not Tnsnames.ora file in this softwares Network\Admin path. This db software has been installed to create local databases in the laptop.
    3) Oracle SQL Developer Version 2.1.1.64 is also installed in C: drive of laptop.
    The problem which now I'm facing is that the SQL Developer is not able to identify the Tnsnames.ora file mentioned in the above point-1 which contains entries of databases on the different servers. Could you please help me out in solving this problem?
    Thanks in advance.
    MAK

    I forget what version I was using at the time, but when I had an ORACLE_HOME defined for the environment and TNSNAMES file defined in SQL Developer (different one than was in ORACLE_HOME), that I would see results from both tns files. I don't know if that is still the case. I have since dropped my ORACLE_HOME environmental variable.

  • SQL Developer does not support Oracle 8i

    Hi,
    I was waiting a tool from Oracle like SQL Developer for a long time, finally it came, but I am a little disapointed, so Why SQL Developer does not support Oracle 8i? Other free tools like SQUIRREL can do it. I also have worked in previous projects using PL/SQL Developer and it works fine...Why a native Oracle tool can not do it?
    I am in a project where we have to upgrade the Oracle database to a newer version, but I cannot have access to the old one...
    I know there are some threads in this forum, and some people can work with 8i with no issues. Can anyone who works with SQL Developer and Oracle 8i please tell me how to do it?
    Thanks,
    --Javier
    Edited by: javierlarota on Dec 9, 2009 5:40 AM
    Edited by: javierlarota on Dec 9, 2009 5:41 AM

    That's what I thought, the issue is more commercial ($$$) than technical. Anyway...I downloaded the version 1.1 but now I am getting an ORA-02248: invalid option for ALTER SESSION error. 00604. 00000 "error occurred at recursive SQL level %s".
    Thanks,
    --Javier                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Operation cancelled on SQL Developer still running on the DB

    Using either the SQL Developer 2.1.1.64.39 or .64.45 versions when a DML statement (e.g. SELECT, DELETE, etc.) is executed and few seconds after cancelled before it finishs, the SQL Dev IDE shows as the operationwas cancelled, but it still running at the database level.
    If you try to close the SQL Developer to cancell the operation, you will get a "Connection is currenly busy. Try again?", but you can only chose Abort and wait.
    Regards,
    ASCh

    SQL Developer is certainly not just cancelling statements in the user interface - I can cancel a query that normally takes two minutes to run after five seconds and then immediately run a different query in the same connection and get the results (ie the cancelled query is no longer running in the database).
    You are probably seeing the difference between the UI no longer waiting for the statement to complete and the statement actually completing in the database. Especially with DML the database needs to clean up from the cancelled statement, rolling back changes already made by the statement before it was cancelled. Even selects can allocate temporary space for sorting which would need to be cleaned up on cancelling the select.
    I would not expect closing SQL Developer to do anything more to cancel the statement in the database than it has already done - SQL Developer has already told the database to cancel the statement and it is just taking some time for the database clean up after the cancelled statement.
    theFurryOne

  • Why will a query work in SQL Developer but not in Apex?

    Here's a good one. I created a dynamic LOV with the following query.
    select
    e.DESCR d,
    ee.ENTRD_EVNT_SK r
    from
    PT_EVNT_IN_DIV eid,
    PT_ENTRD_EVNT ee,
    PT_EVNT e
    where ee.PGNT_SK = :PGNT_SK
    and ee.CNTSNT_SK = :CNTSNT_SK
    and ee.EVNT_IN_DIV_SK = eid.EVNT_IN_DIV_SK
    and eid.EVNT_SK = e.EVNT_SK
    and ee.ENTRD_EVNT_SK not in
    (select js.ENTRD_EVNT_SK
    from PT_JDG_SCR js
    where js.JDG_SK = :JDG_SK
    and js.PGNT_SK = :ai_pgnt_sk
    and js.CNTSNT_SK = :CNTSNT_SK)
    order by 1
    The query works fine in SQL Developer, but Apex gives the following error when compiling it in the LOV editor.
    "1 error has occurred
    - LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query."
    I tried rearranging the entries in the From clause, but that didn't do any good.
    Do you see what I can do to make Apex accept it?
    Thanks,
    Kim

    Kim
    Kim2012 wrote:
    select
    e.DESCR d,
    ee.ENTRD_EVNT_SK r
    from
    PT_EVNT_IN_DIV eid,
    PT_ENTRD_EVNT ee,
    PT_EVNT e
    where ee.PGNT_SK = :PGNT_SK
    and ee.CNTSNT_SK = :CNTSNT_SK
    and ee.EVNT_IN_DIV_SK = eid.EVNT_IN_DIV_SK
    and eid.EVNT_SK = e.EVNT_SK
    and ee.ENTRD_EVNT_SK not in
    (select js.ENTRD_EVNT_SK
    from PT_JDG_SCR js
    where js.JDG_SK = :JDG_SK
    and js.PGNT_SK = :ai_pgnt_sk
    and js.CNTSNT_SK = :CNTSNT_SK)
    order by 1
    The column named ENTRD_EVNT_SK is used twice in a select. Once in the main select and once in the inline query.
    The validation maybe choking on that.
    Try giving the column in the inline query an alias and see if that helps.
    Nicolette

  • SPOOLing in sql developer does not take into consideration SET ECHO OFF

    I'm running SQL Developer 3.1.07.42 on Windows 7 64 bit with java 1.7
    I have the following very simple script just to show the problem:
    SET ECHO OFF;
    SET FEEDBACK OFF;
    SET SERVEROUTPUT ON;
    SET VERIFY OFF;
    SET PAGES 0;
    SET HEAD OFF;
    SPOOL c:\test.sql
    SELECT 1, 2, 3 FROM DUAL;
    SPOOL OFF;
    /if I run it in TOAD 10.6.0.42 it creates the file with
             1          2          3This is as expected (by me)
    if I run the exact same query in SQL Developer 3.1.07.42 , it creates the file with:
    < SELECT 1, 2, 3 FROM DUAL
    1 2 3(the < above is actually ">" but the CODE formatting software is screwing ">")
    but I don't want the ECHOed command to be spooled. For the life of me, I cannot find a way to disable the ECHO from spooling in sql developer.
    Tried the same in 3.0.4 and 2.1.1 with the same (bad) result (plus some warning on some of the unsupported SET commands).
    Am I missing something obvious? Cause like this, the spool command cannot be used in sql developer to generate a CSV file for example, because of the echoed command. And windows doesn't come with SED by default so that is out. (plus that my original script is integrated into a much larger and complex set of scripts and the main script using them is executed from SQL Developer as a company policy (so that everybody uses the same tool and the code runs the same for everybody))
    Any ideas/suggestions are welcome
    Thanks.

    Hi Gary, you seem to have some extensive knowledge. I'd like to follow-up on this thread and try to understand why SQL Developer won't hide the code even though I'm already running the code as a Worksheet (I assume you mean Run Script F5 button in SQL Developer).
    I generally develop in SQL Developer that does a lot of dbms_output to echo data using a Spool command. When I'm in SQL Developer I can't get the code NOT to spool, it typically is echoed directly in the spool file at the top followed by the dbms_output data. If I save the sql file and run in in sqlplus it only outputs the data (good). If I use @C:\xyz_script.sql and hit F5 in SQL Developer it only outputs the data (per your previous answer) -- good.
    So why can't I hit F5 in SQL Developer in the script file and have it only output the data? It just doesn't work no matter how many "SETs" you turn-off.
    Looks like Echo, Term, Feed are supported in SQL Developer, maybe supported means something other than work.
    http://www.oracle.com/technetwork/developer-tools/sql-developer/sql-worksheet-commands-097146.html

  • My SQL Developer is not working correctly! help

    hello!!
    My problem here is not like I can't live or work but it is REALLY annoying, see my SQL Developer is not taking any key different from letters and the space bar, I mean, if I use the enter key, doesn't change the line, if i use the backspace key doesn't erase if I use F5/F9 doesn't execute the query(s)!!!! and so the arrow keys don't work!!!
    any ideas why is that happening? and if so howcan i fix it?

    There is a well known but still unresolved bug causing this kind of behavior, if you are on SQL Developer 1.5.X you can work around the problem by loading default accelerators from:
    Tools -> Accelerators -> Load Preset -> Default
    If you are on 2.1.X the preset can be loaded from
    Tools -> Preferences -> Accelerators -> Other Actions -> Load Keyboard
    In 2.1 this problem has not been reported so far, so if you are in 1.5.X you may consider upgrading.

  • ID not exporting to PDF part of an AI file

    Hello,
    I have an AI file linked into my ID file. The AI file is a header with my contact info and logo, it is used in multiple documents. When I export this one particular document it does not export the logo, only the text. My other documents export just fine and this one has been fine in previous iterations. I am on CS5.
    Any thoughts?
    Thank you!!!!!

    This is one of those "hard to say" problems. Try placing the art again in a new frame -- don't reuse the current frame. Any time I've seen this it usually is something wonk withthe particular frame. Copy/paste a working instance will sometimes work, too.

  • Oracle SQL Developer does not browse Sybase's objects

    I had installed and configured jtds-1.2.5.jar in Oracle SQL Developer for Sysbase connection. Oracle SQL Developer does not browse any objects. Why? Can you please provide a solution?

    Hi,
    Can you provide some more information into what you are experiencing.
    What version of SQL Developer are you using?
    Did you install the jtds jar under the
    Tools > Preferences > Database > Third Party JDBC Driver
    Is the Sybase tab available in the new connection dialog?
    Did you select the default database in the connection dialog?
    Can you run a query against the Sybase database from the SQL Developer worksheet?
    Note that JTDS 1.2 is the only supported version. There maybe issues with other versions.
    Regards,
    Dermot.
    SQL Developer Team

  • LIKE Operator to ignore the time part of DATE type?

    Hi,
    is it allowed to use the LIKE operator on DATE Type to ignore the time-part in the DATE?
    Nothing found in the manual, but seems to me that it works.
    1. SELECT * FROM test_date WHERE tst_date LIKE to_date('01.01.2003 13:33:33','DD.MM.YYYY HH24:MI:SS') ;
    2. SELECT * FROM test_date WHERE tst_date LIKE to_date('01.01.2003','DD.MM.YYYY') ;
    3. SELECT * FROM test_date WHERE tst_date LIKE trunc(to_date('01.01.2003 00:00:00','DD.MM.YYYY HH24:MI:SS'));
    4. SELECT * FROM test_date WHERE to_date('01.01.2003 13:33:33','DD.MM.YYYY HH24:MI:SS') LIKE tst_date;
    5. SELECT * FROM test_date WHERE tst_date BETWEEN to_date('01.01.2003 00:00:00','DD.MM.YYYY HH24:MI:SS') AND to_date('01.01.2003 23:23:59','DD.MM.YYYY HH24:MI:SS');
    6. SELECT * FROM test_date WHERE tst_date >= TO_DATE('01.01.2003 00:00:00','DD.MM.YYYY HH24:MI:SS') AND tst_date < TO_DATE('01.01.2003')+1;
    7. SELECT * FROM test_date WHERE TRUNC(tst_date) = TRUNC(TO_DATE('01.01.2003 00:00:00','DD.MM.YYYY HH24:MI:SS'));
    Result for 1-7 is the same.
    What is the preferred Solution?
    Solution 5 is bad, because index on TST_DATE column could not be used.
    Solution 1 - 3 is the same using the LIKE operator.
    Any comments?
    Thanks, Markus
    GEMS IT

    Oh, sorry, LIKE-Operator solutions do also not use an Index :-(. Only 5. and 6.
    Sample-Script:
    CREATE TABLE TEST_DATE
    TST_DATE DATE
    CREATE INDEX MEDVIEW.TEST_DATE_IDX
    ON MEDVIEW.TEST_DATE(TST_DATE);
    INSERT INTO TEST_DATE ( TST_DATE ) VALUES (
    TO_Date( '01/01/2003 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO TEST_DATE ( TST_DATE ) VALUES (
    TO_Date( '01/01/2003 12:45:13 PM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO TEST_DATE ( TST_DATE ) VALUES (
    TO_Date( '01/01/2003 08:11:55 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO TEST_DATE ( TST_DATE ) VALUES (
    TO_Date( '01/01/2003 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO TEST_DATE ( TST_DATE ) VALUES (
    TO_Date( '01/01/2003 09:33:16 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO TEST_DATE ( TST_DATE ) VALUES (
    TO_Date( '01/02/2003 07:45:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    INSERT INTO TEST_DATE ( TST_DATE ) VALUES (
    TO_Date( '01/02/2003 07:33:00 PM', 'MM/DD/YYYY HH:MI:SS AM'));
    COMMIT;

  • Sql developer: question about exporting data

    Hi,
    we're recently working with sql-developer. i've got a question about how we can export query results to txt/csv files for use in other applications.
    First a problem: if we start a query that looks like this:
    select * from
    select * from A where start_date = &date
    ) a,
    select * from B where start_date = &date
    ) b
    where a.name = b.name
    Sql-developer asks twice to input a value for the variable 'date', although it's the same variable and it's supposed to have the same value.
    We solve this by making a script:
    first we define the variable, then we put the query.
    When we start the script, the query runs ok and sql developer asks to input the value for the variable once.
    But now the result of the query is shown in the script output. The script output seems to be limited in number of lines and difficult to export.
    So my question is: what's the best way to export query results to txt/csv files, avoiding the problem mentioned above?
    i hope there is a solution where we can use a single query or script.
    Thanks in advance!

    Using bind variables like ":date" should solve the problem of being asked twice for the same thing.
    Executing the query normally (F9), gives you the export options you require through the context menu inside the Results grid.
    Regards,
    K.

  • Connection ... able to connect using sql developer, but not sqlplus or toad too

    Hi folks, having this issue, with only one of my so many databases, what might be the reason and how to fix/correct this, please assist.
    Able to connect using sql developer, but not sqlplus or toad too; sqlplus error: ORA-12154: TNS:could not resolve the connect identifier specified
    thanks in advance.

    SQLDEVELOPER works since it use JDBC Thin & does not use tnsnames.ora
    ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
    ORA-12154 [B]NEVER[/B] involves the listener, the database itself or anything on the DB Server.
    ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
    TNS-03505 is thrown by tnsping & is same error as ORA-12154 thrown by sqlplus or others.
    The lookup operation fails because the name provided can [B]NOT[/B] be resolved to any remote DB.
    The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
    The most frequent cause for the ORA-12154  error is when the connection alias can not be found in tnsnames.ora.
    The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
    TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
    http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/

  • CS6 PSD Could not export the clipboard because it is too big to export

    I have been getting the error "Could not export the clipboard because it is too big to export" since upgrading to CS6. The same files at the same bit depth on the same computer  do not cause this error in CS5.
    In fact, I can open a file in CS5, copy it, and paste it into CS6 with no trouble. If I then copy again within CS6 and leave the program, I am given the error. (As a note, I have not run these programs simultaneously, except to run this test.)
    This error appears regardless of whether Photoshop CS6 is running alone, or with several apps.
    The Raw files are from a Canon 5D mark ii and tend to be 20-25MB in size,
    I am running a Mac Pro 2.8GHz Quad Core Intel with 24GB of RAM. I have set the preferences to allocate 70% of this RAM, which should be sufficient. Changing the allocation to 90% or 100% has no effect, nor does adjusting the tiles configuration. My scratch disks have 130GB and 500GB free.
    How do I correct this problem?

    Hi, FYI, To duplicate a layer on top of itself, use Command+A, Command+J (jump the layer) if you need part of it, make a selection instead of a Command+A, this will also avoid the clipboard, and use Photoshop's scratch disk instead.
    (I don't know why you run into that issue in CS6 and not in CS5, so I try to give you useful workarounds)
    I'm not talking about bigger tiles, but of unlimited clipboard size that you find here for CS5: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4965
    But are not listed here for CS6: http://helpx.adobe.com/photoshop/kb/plug-ins-photoshop-cs61.html#id_68969?PID=3350462
    Maybe did you install it in CS5, but forgot all about it?

Maybe you are looking for