SQL Developer Database Copy truncates DATE columns

Hope someone can help me. I want to copy all object from one schema to another schema in my Database. I have used the "tools - Database Copy" utility and it copies all of the objects and data however when I query the DATE columns in the destination schema the time element has been truncated? Why has this happened?
tab_h contains a column h_date of type DATE
Query
SELECT TO_CHAR(H_DATE, 'MM-DD-YYYY HH24:MI:SS') from tab_h;
returns
02-07-2012 09:54:14
from the source table
yet returns
02-07-2012 00:00:00
from destination schema? This is the case for all DATE columns in the tables.
I noticed this was happening in 3.0.04.34 and I upgraded to 3.1.07.42 and it still happens.
Thank you

Maybe there's a problem getting the OS settings right; try to add this to \sqldeveloper\bin\sqldeveloper.conf:
AddVMOption -Duser.region=USIf that works, you can try others closer to you.
Hope that helps,
K.

Similar Messages

  • SQL Developer database copy corrupts wrapped PL/SQL

    SQL Developer 3.0.04.34, database 11.2.0.2.2
    Database copy brings over the wrapped pl/sql DDL, but somehow corrupts the code and will not compile.
    It must be recreated from source plb file.
    expdp / impdp does not have this problem.
    This would appear to be a bug.
    Wayne Linton

    user4792902 wrote:
    Also it looks like the SQL Developer loads all the Data from sources Schema for each table in memory and copies to destination Schema.Yes
    Any idea how to over come that...Don't use it, use the database's IMPDP/EXPDP tools for copying large quantities of data or whole schemas or databases.
    Also adding the Filter or selection like the Database Export functionality in Database Copy will really be helpful in this kind of situation. The Developer team has any plans?Probably not right now, but you can request this at the SQL Developer Exchange though, so other users can vote and add weight for possible future implementation.
    Regards,
    K.

  • How to create a .mdf SQL Server database from a Data-Tier Application file that has data?

    This is a noob question, though I do use SQL Server databases all the time with Entity Framework when I code in C# using Visual Studio 2013.  The development environment is found below at [A].  I am trying to make a clone of a SQL Server 2008 R2
    database (.mdf)  that exists online.  I can read, connect and work with this database in Visual Studio 2013, but I wish to make a local copy of the database, as an .MDF file.  Somewhere in my notes I have a way of creating a local copy from
    an online database when using Visual Studio but I forgot how (it seems, reviewing my notes, that it deals with ADO.NET which is deprecated in Visual Studio 2013 these days, or so it seems).  So I'm looking for another way.  What I did was create
    (or export) a "Data-Tier Application File" from the online SQL Server database, with data, and it seems to have worked in that this Data-Tier Application file exists on my hard drive and seems to have data in it ("SQL Server Replication Snapshot"
    is the format it seems).  It contains skeleton code to create a database, but when I tried to execute it with SQL Server 2014 Management Studio, I got a bunch of errors.
    So my question is:
    1) Can I somehow create a .MDF SQL Server Database from an Data-Tier Application file that has data?  What tool do I use?  I saw this link, http://social.technet.microsoft.com/wiki/contents/articles/2639.how-to-use-data-tier-application-import-and-export-with-a-windows-azure-sql-database.aspx 
    and it relates to Azure, but is there a tool for C#Visual Studio 2013, standalone?
    2) If there's an easy way to create a .mdf SQL Server Database file from an online file, within SQL Server Management Studio?  I don't think so, since it would require Administrator permissions on the online server, which I don't have. I have permission
    to read, update, delete the online database file, but strangely not to download it (the service I use has a tool for backup, but not for download).
    3) same question as 2), but for Visual Studio 2013?  I don't think so, since I notice none of the templates even mentions ADO.NET anymore, but instead they go with Entity Framework.  Using EF I can of course do anything I want with the online database
    (CRUD), but it remains online.  Maybe there's a switch to make a local copy?  I guess I could write a short program to suck all the data out of the online database and put it into a new, duplicate database having the same tables, that I create on
    my localhost, but my question here is if there's an easier way than this, maybe a tool or command I can run from inside Visual Studio?
    Any advice on any of the above questions is appreciated.
    Thank you,
    Paul
    [A] Microsoft Visual Studio Professional 2013
    Version 12.0.21005.1 REL
    Microsoft .NET Framework
    Version 4.5.51641
    Microsoft Web Developer Tools 2013   2.0.40926.0
    SQL Server Data Tools   12.0.30919.1
    Microsoft SQL Server Data Tools
    Windows Azure Mobile Services Tools   1.0
    Windows Azure Mobile Services Tools

    Thanks but these links are too general to help.
    "2. what do you mean by online file?" - I mean the SQL Server database file is on a remote web server that I rent from, but I am not the administrator of.  I can access my database using SQL Server Authentication, but nothing more.
    Paul
    What do you mean by too general? It explains on how you can use data tier application to create and deploy databases
    May be this will help you to understand better
    http://www.databasejournal.com/features/mssql/article.php/3911041/Creating-Data-Tier-Applications--in-SQL-Server-2008-R2.htm
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SQL Developer - database connect problem

    Hello
    Just wanted to give SQL Developer a try, downloaded it, unzipped and pointed at Java SDK's java.exe.
    It started, I created a TNS connection and successfully passed test. But when I try to connect to database - it errors with following
    java.lang.ArithmeticException: / by zero
         at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:1233)
         at oracle.jdbc.driver.OracleCallableStatement.<init>(OracleCallableStatement.java:100)
         at oracle.jdbc.driver.T4CCallableStatement.<init>(T4CCallableStatement.java:27)
         at oracle.jdbc.driver.T4CDriverExtension.allocateCallableStatement(T4CDriverExtension.java:88)
         at oracle.jdbc.driver.PhysicalConnection.prepareCall(PhysicalConnection.java:3135)
         at oracle.jdbc.driver.PhysicalConnection.prepareCall(PhysicalConnection.java:3090)
         at oracle.dbtools.db.DBUtil.executeReturnOneCol(DBUtil.java:275)
         at oracle.dbtools.raptor.InitializeConnectionListener.initConnection(InitializeConnectionListener.java:137)
         at oracle.dbtools.raptor.InitializeConnectionListener$1.run(InitializeConnectionListener.java:85)
    I googled for this error and found nothing suitable
    Other development tools including SQL Plus connect an run fine.
    I have 10g client, and I connect to 9.2.0.6 database. My OS is Vista Business SP1, so I though it might be UAC issue and tried running as both standard user and administrator, also allowed java.exe and sqldeveloper.exe through firewall. Nothing helped :(
    Any settings and ideas that might help will be appreciated.
    Thanks for help
    Edited by: user8082464 on Apr 27, 2009 12:25 AM

    Duplicate post in SQL Developer - database connect problem

  • SQL Developer problem. Rows without columns on data tab

    Hello,
    I have a strange behavior in Oracle SQL Developer Version 2.1.0.63. When I'm trying to open the "Data tab" for some tables, SQL Developer shows data rows but without columns! It seems that I can select different rows but I can't see neither any data nor column names.
    Under the filter setting there are no available columns either.
    At the same time, when I'm trying to open sys tables they are displayed normally.
    From the other side, those tables which are not displayed correctly in 2.1.0.63, could be opened in Version 1.5.5 without any problems.
    Do you have any ideas?
    Thanks in advance.

    Hi,
    Refer to the SQL Developer forum: SQL Developer for SQL Developer related questions

  • Sql Developer MSSql Migration, Online data move, image to long raw mapping

    Hello,
    my task is to migrate a MSSql Server Database to Oracle 10.2.0.4 with SQL Developer Version 2.1.1.64
    and JTDS JDBC Driver oracle.sqldeveloper.thirdparty.drivers.sqlserver 11.1.1.58.17.
    Capture, convert and online data move works except data mapping from MSSql image to Oracle long raw dataype.
    I need to map MsSql image to oracle blob, to achieve online data move!
    is Sql Developer online migration MsSql image to oracle long raw possible?
    I know that long raw is outdated, but i'm dba and not responsible for the software part.
    What options should i try? offline data move? can MS Bulk Copy Program export image data and SQL*Loader import into long raw?
    Any experience or tipp?
    Thanks
    Michael

    Hi user12132314 ,
    I do not see any 'long raw' options on our current SQLServer 2005 data type mapping. (Raw is a separate 2000 byte data type).
    The usual route for SQLDeveloper is to go to Blob.
    Online - this is simple & automated.
    Offline - this actually goes via hex output in bcp to sqlldr, read in as CLOB which is then encoded to blob. (This is automated)
    (Online 'Copy to Oracle' option, right click on table, may be of use if advanced features not included in the select such as defaults are not required, it copies over a select * from table, including blobs)
    To move you from blob to long raw after migration can be done (easily enough if Oracle database >=10g so the stream does not have to be in smaller 'chunks')
    http://asktom.oracle.com/pls/asktom/f?p=100:11:3938270166267830::::P11_QUESTION_ID:702825000306
    I can look into this if you want to go down this route.
    Note however that long raw has drawbacks and blob is preferred, see
    Oracle® Database SQL Language Reference
    11g Release 2 (11.2)
    Part Number E17118-04
    Data Types
    LONG Data Type
    for example one restriction is:
    A table can contain only one LONG column.
    -Turloch
    SQLDeveloper Team

  • Database copy Move data

    Hello,
    I have a database A. of about 15GB size and want to copy the data across to database B. - same schema just a few additional tables.
    When I use Oracle Sql developer and click on tools- database copy and select my source A and destination B. truncate objects the process starts
    but..does not copy any data at all. - it takes only 3 minutes as well.
    why is that?

    well I dont just want to create a duplicate of database A. because B. contains some tables that are still important but unique to B.
    most of the tables between A. and B. are the same and I just want to copy them over from A to B.
    Using the Oracle SQL Developer seems to get the similarities between the schemas and copy those table over BUT it somehow forgets the data altough there
    is a DATA MOVE as part of the copying procedure.
    I know there is the options to create migration repositories but this all seems to complicated to me.
    metalray

  • Database copy and CLOB columns

    Hi,
    I have tried to copy a database to anoter. It just works fine.
    But, if a table has a column with CLOB datatype, the generated SQL is wrong.
    Example of generated SQL :
    insert into my_table(id, clob_col) values (1, (CLOB));
    Any workaround ?
    Stephan
    Oracle 10g

    You can not "copy a database" with SQL Developer. Are you confusing Oracle with a Microsoft product?
    A database is Oracle is not a schema and a database is not a table ... a database is a collection of physical files ... datafiles, tempfiles, control files, log files.
    When you define, in Oracle terms, what you are actually trying to do someone will likely help you.

  • SQL Developer - problems with the Data Modeller part

    Hi SQL Developer users,
    I can open the Data Modeler pane, but I can't insert any object into the logical model or into the relational model. Any ideas about what I'm doing wrong? Do I need specific privileges to the database, or do I need to install SQL Developer in a different way?
    Thanks,
    Csisz

    Hi Csisz,
    as Ivaylo wrote - it's Data Modeler Viewer into SQL Developer.
    I can't insert any object into the logical model or into the relational modelYou can drag tables from SQL Developer browser and drop them on relational model diagram. If you keep Ctrl key pressed then all child tables also will be imported and shown on diagram.
    Philip

  • SQL Developer 3.2 - Exporting data with TIMESTAMP datatype

    Hi,
    We have users that are attempting to export data with the Timestamp format to Excel (xls format) using SQL Developer 3.2.  When attempting to sort the Timestamp in either asc or desc order, Excel is having issues sorting correctly.  I suggested that the user just do all the sorting within their SQL Developer session but they require the ability to slice and dice in Excel.
    This is definitely not an issue with Excel as the users have previously exported Timestamp data from Toad and been able to sort without issue.  Any thoughts as to what might resolve this issue? 
    Thanks.

    We're not formatting timestamps in Oracle as numbers/dates in Excel. They'll need to properly format the Excel column/cells to get it to sort the way they want vs being treated as simple strings.

  • SQL Developer not migrating Sybase data

    Hi,
    I am trying to migrate data using the SQL developer tool from a Sybase database to Oracle 11g. When using the Migration Repository, I am able to recreate the schema but am not able to export the database content. (i.e. Not able to do the Data Move). I tried doing a Offline migration but the generated datamove files does not have any content. Anyone aware of any issue with the data migration tool with SQL developer ?
    I have tied exporting data from the table directly to generate SQL inserts but even this is not helping. Any suggestions ?
    Regards,
    Nelson

    Hi Nelson,
        Could you detail the exact steps you followed and what options you chose at each of the panels in the migration steps ? this will help to see where you may be having problems.
    Regards,
    Mike

  • SQL Developer - Database Export - Constraints not included in DDL

    I have used the Database Export function available in the Tools menu but have been unsuccessful in getting the referential integrety and check contraints to export. These are the steps I take:
    Environment: Windows XP Professional.
    SQL Developer 1.5.1
    Tools>Database Export
    In Source/Destination I select the filename and the database source and check:
    Show Schema
    Terminator
    Pretty Print
    Add Force to Views
    Include Grants
    In Types to Export I check all except Data.
    In Specify Objects I select the Schema I want to export.
    None of the foreign_key or check constraints are shown but I select all of the objects.
    Export Summary
    File:C:\Documents and Settings\richardk.asbury\My Documents\EER\eer3.sql
    Connection:ENVD
    DDL Options
         Show Schema
         Terminator
         Pretty Print
         Add Force to Views
         Necessary object dependencies will be included in export.
    Tables
         A_EMIS_TOXIC_DTL
         A_EMIS_TOXIC_HDR
         DSK_BLOB
         PORTAL_AI_PROFILE
         PORTAL_AI_XREF
         PORTAL_USER
         SUBJECT_ITEM_PARENT
         SUBJ_ITEM_ATTRIBUTE
         SUBJ_ITEM_COMMENTS
         SUBJ_ITEM_QUANTITIES
         SUBJ_ITEM_RELATED
    Views
         ACTIVITY_TASK_LIST_VW
         AGENCY_INTEREST_ORG_XREF_VW
         AGENCY_INTEREST_VW
         A_EMIS_TOXIC_DTL_VW
         A_EMIS_TOXIC_HDR_VW
         DSK_CENTRAL_VW
         MTB_ATTRIBUTE_DESC_VW
         MTB_ATTRIB_ATTR_DESC_XREF_VW
         MTB_MUNICIPALITY_VW
         MTB_PARAMETER_VW
         MTB_PERSON_TITLE_VW
         MTB_PORTAL_SUBMITTAL_STATUS_VW
         MTB_QUANTITY_TYPE_VW
         MTB_QUANT_METHOD_VW
         MTB_STATE_VW
         MTB_SUBJECT_ITEM_ATTRIBUTE_VW
         MTB_SUBJECT_ITEM_TYPE_VW
         MTB_UNITS_VW
         ORGANIZATION_VW
         PERSON_VW
         PORTAL_AI_PROFILE_VW
         PORTAL_AI_XREF_VW
         PORTAL_EMAIL_QUEUE_VW
         PORTAL_USER_VW
         SUBJECT_ITEM_VW
         SUBJ_ITEM_COMMENTS_VW
         SUBJ_ITEM_GENERAL_VW
         SUBJ_ITEM_LOC_LAT_LONG_VW
    Indexes
         INDX_DSK_BLOB_BLOB_TITLE
         PK_A_EMIS_TOXIC_DTL_ID
         PK_A_EMIS_TOXIC_HDR_ID
         PK_DSK_BLOB
         PK_PORTAL_USER_ID
         PK_SUBJECT_ITEM_PARENT
         PK_SUBJECT_ITEM_RELATED
         PK_SUBJ_ITEM_ATTRIB_ID
         PK_SUBJ_ITEM_COMMENTS_ID
         PK_SUBJ_ITEM_QUANT_ID
         SYS_C0017821
    Package Spec
         MNG_DATA
         MNG_USER
    Package Body
         MNG_DATA
         MNG_USER
    Procedures
    All procedures will be exported.
    Functions
    All functions will be exported.
    Triggers
         A_EMIS_TOXIC_DTL_BEFINSUPD
         A_EMIS_TOXIC_HDR_BEFINSUPD
         PORTAL_AI_PROFILE_BEFINS
         PORTAL_AI_XREF_BEFINS
         PORTAL_USER_BEFINS
         SUBJECT_ITEM_PARENT_BEFINSUPD
         SUBJ_ITEM_ATTRIBUTE_BEFINSUPD
         SUBJ_ITEM_COMMENTS_BEFINSUPD
         SUBJ_ITEM_QUANTITIES_BEFINSUPD
         SUBJ_ITEM_RELATED_BEFINSUPD
    Types
    All types will be exported.
    Sequences
         A_EMIS_TOXIC_DTL_SEQ
         A_EMIS_TOXIC_HDR_SEQ
         DSK_BLOB_SEQ
         PORTAL_AI_PROFILE_SEQ
         PORTAL_AI_XREF_SEQ
         PORTAL_USER_SEQ
         SUBJECT_ITEM_PARENT_SEQ
         SUBJ_ITEM_ATTRIBUTE_SEQ
         SUBJ_ITEM_COMMENTS_SEQ
         SUBJ_ITEM_QUANTITIES_SEQ
         SUBJ_ITEM_RELATED_SEQ
    Materialized Views
    All materialized views will be exported.
    Materialized View Logs
    All materialized view logs will be exported.
    Synonymns
    All synonyms will be exported.
    Queues
    All queues will be exported.
    Queue Tables
    All queue tables will be exported.
    Database Links
    All data base links will be exported.
    There are numerous Check and Foreign_key constraints missing in created DDL.
    Im I missing a step?
    rasberry

    Actually all tables were included and the Automatically Include Dependent Objects option was checked.
    For an example, the first table exported A_EMIS_TOXIC_DTL had the following constraints:
    FK_A_EMIS_TOXIC_DTL2HDR     Foreign_Key
    NN_A_EMIS_TOXIC_DTL_ID     Check
    PK_A_EMIS_TOXIC_DTL_ID     Primary_Key
    The primary key constraint was included in the DDL but none of the others.

  • How to get the exact sql developer which used for data migration?

    Hi all,
    Hope doing well,
    Sir i seen a link for data migration that is : http://www.oracle.com/technetwork/developer-tools/sql-developer/sql-server-connection-viewlet-swf-089886.html
    in this link when they are connecting to sql database so after clicking on new connection four tab is showing that is oracle, access, my sql, sql server.
    i downloaded latest version of sql developer which version is: 3.02.09.30 when i opened this i am not getting those option.
    and one more thing i am not getting miragation menu name in menu items.
    please help me.
    thanks and regards

    Hi,
    To connect to non-Oracle databases from SQL*Developer youneed to download the relevant JDBC driver.
    This is detailed in the documentation in the User Guide -
    http://docs.oracle.com/cd/E35137_01/appdev.32/e35117.pdf
    in the section -
    Database: Third Party JDBC Drivers
    The Third Party JDBC Drivers pane specifies drivers to be used for connections to third-party (non-Oracle) databases, such as IBM DB2, MySQL, Microsoft SQL Server, or Sybase Adaptive Server. (You do not need to add a driver for connections to Microsoft Access databases.) To add a driver, click Add Entry and select the path for the driver:
    ■For IBM DB2: the db2jcc.jar and db2jcc_license_cu.jar files, which are available from IBM
    ■For MySQL: a file with a name similar to mysql-connector-java-5.0.4-bin.jar, in a directory under the one into which you unzipped the download for the MySQL driver
    ■For Microsoft SQL Server or Sybase Adaptive Server: jtds-1.2.jar, which is included in the jtds-1.2-dist.zip download
    ■For Teradata: tdgssconfig.jar and terajdbc4.jar, which are included (along with a readme.txt file) in the TeraJDBC__indep_indep.12.00.00.110.zip or TeraJDBC__indep_indep.12.00.00.110.tar download
    To find a specific third-party JDBC driver, see the appropriate website (for example, http://www.mysql.com for the MySQL Connector/J JDBC driver for MySQL, http://jtds.sourceforge.net/ for the jTDS driver for Microsoft SQL Server and Sybase Adaptive Server, or search at http://www.teradata.com/ for the JDBC driver for Teradata). For MySQL, use the MySQL 5.0 driver, not 5.1 or later, with SQL Developer release 1.5.
    You must specify a third-party JDBC driver or install a driver using the Check for Updates feature before you can create a database connection to a third-party database of that associated type. (See the tabs for creating connections to third-party databases in the Create/Edit/Select Database Connection dialog box.)
    Regards,
    Mike

  • Can you use SQL Developer against non Oracle data bases?

    If so, then how do you define the connection for non Oracle data bases?

    Look, SQL Developer has got to be a 'gateway' into Oracle DBs from other databases. JDBC allows simple introspection and execution of SQL commands. So the 'explain' button won't be available, or some of the DDL stuff, big deal! Let them get a taste of what they are missing by not having an Oracle database.
    If we can get non-Oracle developers (especially MS SQL Server) to use SQL Developer it will expose them to the superiority of the Oracle DB server.
    If they have heterogenous services installed they are already an Oracle customer -- we have little additional DB server sale opportunity there. SQL Developer is a really sweet tool and it could be a real draw into the DB server sales.
    SQL Developer must be easily usable by non-Oracle customers in order to help us sell the DB server to them!

  • Sql developer error -No more data to read from socket

    Hi
    I have installed SQL Developer 10.5.5 on my mac os x.5
    and oracle data base is 10.2
    when i am making a new connection from sql developer i am getting this error
    NO MORE DATA TO READ FROM SCOKET
    I tried searching blogs but no luck yet.
    can any one help me....
    Thanks a lot!

    That's typically an error on the database side. When I see it it I know the database is down and once I bring it up, then all is good again. Once the database is up and running, you then start SQL Developer and create a new connection? What type of connection are you creating?
    Sue

Maybe you are looking for