Exporting data problems in SQL Developer 1.1 (1.1.0.23 Build Main 23-64)

All,
I am using the new version of SQL Developer which is great but I am having a problem usig the Export Data functionality.
I have tried exporting the data from a table to a file as INSERT statements and TEXT and also to the clipboard and all I get is either a blank file or a REM statement with the name of the table.
The table I am trying to select data from is partitioned.
The database I am trying to export from is Oracle 9i and I have select privs on the data and the tables as I can see them in SQL Developer.
My O/S is Windows XP professional...I am not allowed to use Linux at work :-(
Is anyone else having such problems.
Chris
Message was edited by:
tiffer

Sorry Chris, been tied up. looked at this
1. created a PTN table. This is the DDL export of that table. Range partition on date.
-- DBMS_METADATA was unable to use TABLE_EXPORT to generate sql. Now trying to use TABLE.
CREATE TABLE "HR"."TABLE1"
(     "ID" NUMBER,
     "HIREDATE" DATE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(
BUFFER_POOL DEFAULT)
TABLESPACE "USERS"
PARTITION BY RANGE ("HIREDATE")
SUBPARTITION BY LIST ("ID")
(PARTITION "P1" VALUES LESS THAN (TO_DATE(' 2006-12-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(
BUFFER_POOL DEFAULT)
TABLESPACE "USERS"
( SUBPARTITION "SYS_SUBP21" VALUES (DEFAULT)
TABLESPACE "USERS") ,
PARTITION "P2" VALUES LESS THAN (TO_DATE(' 2007-01-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(
BUFFER_POOL DEFAULT)
TABLESPACE "USERS"
( SUBPARTITION "SYS_SUBP22" VALUES (DEFAULT)
TABLESPACE "USERS") ) ;
2. Export from Resultset tables in query. As insert statements
REM INSERTING into TABLE1
Insert into TABLE1 ("ID","HIREDATE") values (1,to_date('12-DEC-06','DD-MON-RR'));
Insert into TABLE1 ("ID","HIREDATE") values (2,to_date('21-JAN-07','DD-MON-RR'));
I'm also getting the others working well too. I 'm running the latest version that we are about to release a patch on so it should be good when it comes out.

Similar Messages

  • How to import/export data in pl/sql developer

    how to import/export data,table script in pl/sql developer.
    By using the export functionality i am getting the dump file.I want a sql file.How do i do it?
    And i want the data in csv file and table script in a sep sql file.How do i do it?

    <li>run your query in "Query Builder"
    <li>Right-Click on the Query-Results
    <li>Click "Export"
    <li>Click on the "Drop-Down" in front of "Format" and choose "insert"
    <li>Provide the location and name of ther "sql" file.
    If you want output in CSV format, choose "csv" from the "format" drop-down.
    HTH

  • Code Insight Issue - SQL Developer 1.1 (1.1.0.23 Build Main 23-64)

    Dear SQL Developer Team,
    I have a slight issue with the Code Insight.
    I have created a package with three procedures
    create or replace PACKAGE PACKAGE1 AS
    procedure test1 (inpar varchar2);
    procedure test2 (inpar varchar2);
    procedure test3 (inpr varchar2);
    END PACKAGE1;
    When I try and reference the procedures in the package code insight only shows two procedures (see this link for the screenshot http://i12.tinypic.com/3zqbuiv.gif)
    Any ideas ?
    Chris

    Sorry Chris, been tied up. looked at this
    1. created a PTN table. This is the DDL export of that table. Range partition on date.
    -- DBMS_METADATA was unable to use TABLE_EXPORT to generate sql. Now trying to use TABLE.
    CREATE TABLE "HR"."TABLE1"
    (     "ID" NUMBER,
         "HIREDATE" DATE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    STORAGE(
    BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    PARTITION BY RANGE ("HIREDATE")
    SUBPARTITION BY LIST ("ID")
    (PARTITION "P1" VALUES LESS THAN (TO_DATE(' 2006-12-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    STORAGE(
    BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    ( SUBPARTITION "SYS_SUBP21" VALUES (DEFAULT)
    TABLESPACE "USERS") ,
    PARTITION "P2" VALUES LESS THAN (TO_DATE(' 2007-01-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    STORAGE(
    BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    ( SUBPARTITION "SYS_SUBP22" VALUES (DEFAULT)
    TABLESPACE "USERS") ) ;
    2. Export from Resultset tables in query. As insert statements
    REM INSERTING into TABLE1
    Insert into TABLE1 ("ID","HIREDATE") values (1,to_date('12-DEC-06','DD-MON-RR'));
    Insert into TABLE1 ("ID","HIREDATE") values (2,to_date('21-JAN-07','DD-MON-RR'));
    I'm also getting the others working well too. I 'm running the latest version that we are about to release a patch on so it should be good when it comes out.

  • Problem upgrading SQL Developer

    OS : Windows XP
    SQL Developer Version : 1.0.0.11.84 Build MAIN-11.84
    I click Help -> Check for Update -> Click Next -> Click Next
    I see three updates available. I check all of them and click Finish. The versions that I see are 10.1.3.1215
    When I come back to updates. I see them again.
    These updates never go and they do not upgrade my tool version at all.
    Another problem was, when I upgraded my tool last time, all my connection disappeared. I imported them again, and closed SQL Developer. I lost all the connection again. So I Imported them and clicked on File -> Save All. This saved all my connections.
    -Nags

    See these posts:
    Same SQLDev updates show up repeatedly after updating
    Automatic version update - some problems
    From what you say, it sounds like you are properly on v1215.

  • Export Option of Oracle SQL Developer isn't working .

    Hi ,
    I use SQL Developer for querying Database .
    The problem is that after getting data as a result of a Search operation inside Oracle SQL Developer tool , i can't able
    to export those Data using export Option of Oracle SQL Developer .
    Could anybody please help me on this.

    Did Richard answer your question? I'm not clear if Unload isn't working for you
    I cant say whether he has answered my question or not , the problem is that , i am using different version of Oracle SQL Developer , that is Oracle SQL Developer 1.5.3 , and there is no such option in that .

  • Error using Data Miner on SQL Developer

    Dear all.
    I'm trying to use Data Miner on SQL Developer (3.1.06) with Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 -
    64bit Production, with the Partitioning, OLAP, Data Mining and Real Application Testing options.
    I created a project, a workflow, a data source, a classification model and connected them.
    I tried to show the Decision Tree generated as described in the tutorial "Using Oracle Data Miner 11g Release 2".
    But, I receive the message "It's not possible to load the data mining model because it does not exist" in a dialog box entitled "Model not found".
    It seems that something was missing either during installation or granting my user.
    Does anybody have seen this message and know what causes it?
    Any other suggestion is welcome.
    Regards,
    Duncan
    PUCRS-Brazil

    Hi Mark.
    Thank you on replying my post.
    I'm not the DBA of Oracle repository here. So, if possible, I'd like to address my issue without having to do anything in it.
    I'll try to state better what we have here.
    When I try to use latest SQL Developer version, 11.2.1.1.7.42, it got me a message stating current repository isn't compatible with this SQLDev version
    Repository version is: 11.2.1.1.3
    I don't know what type of upgrade SQL Developer wants to do...
    About your other questions.
    "Is the model not found error occurring for all models or just the DT model?" -- The error occurs for all 4 standard models: SVM, GLM, NB and DT. But, I'm able to see all other options: "show tests results", "Compare tests results".
    You did not report that the workflow failed, so you must be seeing a successful completion status for each of the nodes. -- Yes, all steps are executed and finished OK.
    Are you using a proxy user or some other connection definition other than a standard connection. -- No.
    There is currently some problems supporting proxy based connections that will be fixed in a upcoming SQL Developer release.
    So, if you can provide me some details on how your connection is defined, that will be helpful.
    How was the product installed and the user granted rights? -- I need to ask PUCRS DBA team to answer these questions.
    Was it done through the UI or by running the scripts in the dataminer/scripts directory?
    Lastly, what is your client operating system and are you using the SQL Dev 64 bit or 32 bit release? -- I tested in 2 different computers, both with Windows 7 Professional. In my notebook, it's 64 bits OS version.
    Thank you for your attention and kind reply.
    Regards,
    Duncan

  • Can we use Data Pump to export data, using a SQL query, doing a join

    Folks,
    I have a quick question.
    Using Oracle 10g R2 on Solaris 10.
    Can Data Pump be used to export data, using a SQL query which is doing a join between 3 tables ?
    Thanks,
    Ashish

    Hello,
    No , this is from expdp help=Y
    QUERY                 Predicate clause used to export a subset of a table.
    Regards

  • Oracle SQL Developer Data Modeler Versus SQL Developer

    Friends,
    I'm trying to understand the differences between Oracle SQL Developer Data Modeler and the ability to use the Data Modeler in SQL Developer.
    I've looked at both products home pages on OTN, http://www.oracle.com/technology/products/database/datamodeler/index.html & http://www.oracle.com/technology/products/database/sql_developer/index.html and would appreciate your comments on my findings so far
    1) The Oracle SQL Developer Data Modeler is a stand-a-lone chargeable product whereas the use of the Data Modeler functionality of SQL Developer is free
    2) The Data Modeler functionality within SQL Developer is basically a "viewer" I can create ERD's of my existing tables by dragging them into the modeler from the object navigator but that's about it. I can't save the diagram for later use or use it to change the structure of the table(s)
    3) If I need to have "Oracle Designer" like ERD capabilities then I need to use Oracle SQL Developer Data Modeler (after purchase!)
    4) Are there any other differences I have missed?
    Thanks in advance

    You can open any diagram created in the stand-alone product in the SQL Developer Data Modeler Viewer and navigate through all property dialogs and the full navigator, just like you can in the stand-alone product, but with no update capabilities. This allows developers to fully review the model and all properties, without making changes.
    Sue

  • Update date format in SQL developer

    I need to convert date format in SQL developer , it's varchar2 format now
    The current format is yyyy/mm/dd-hh:mm:ss:sss and I need to convert it to yyyy-mm-dd hh:mm:ss CST
    I don't really know SQL but did some research and found that I can use instr to find the string and replace it, however, no matter what I try,there is always something off :(
    Could anyone here help me with it? thanks in advance.

    create table xo_custom_date_format (mydateAsChar varchar2(100));
    table XO_CUSTOM_DATE_FORMAT created.
    insert into xo_custom_date_format
    values ('2012/03/23-09:52:24:123')
    +1 rows inserted.+
    select mydateasChar from xo_custom_date_format
    mydateaschar
    +2012/03/23-09:52:24:123+
    select to_timestamp(mydateaschar, 'YYYY/MM/DD-HH24:MI:SS:FF3') mydateAsTimestamp from xo_custom_date_format
    -- We must convert to timestamp data type, rather than date data type as you have fractions of seconds
    mydateAsTimestamp
    +23-MAR-12 09:52:24.123000000 --<-- This will probably appear differently, depending on your database NLS_ settings (i.e. what country you are in)+
    select to_char( to_timestamp(mydateaschar, 'YYYY/MM/DD-HH24:MI:SS:FF3') , 'YYYY-MM-DD HH24:MM:SS')||' CST' as myDateReformatted
    from xo_custom_date_format
    mydateReformatted
    +2012-03-23 09:03:24 CST+

  • Sort Order of Tables in Data Modeler in SQL Developer 3.0

    I have a schema with many tables and would like the Data Modeler (in SQL Developer 3.0) to create a Relational Model sorted by table name in Alphabetical Order. The default seems to be random alphabetic order.

    There's an algorithm involved, and I'm pretty sure it's related to the number of grouped objects by relations, but instead of guessing I'll ask the developer to weigh in with the 'real answer.'
    When working with larger models, I've found the #1 tip for making them easier to digest is to break them down into smaller SubViews. Have you experimented much with this feature yet? Also, you can right-click on a table in the tree and 'Go To Diagram' to find the object in the diagram.

  • Is it possible to return a data grid in sql developer from package?

    Hi, I am in need of some help in returning a datagrid rather than just a list from a package. This is my package:
    CREATE OR REPLACE PACKAGE BODY C_1
    as
    PROCEDURE COUNTING1 (C_YEARFROM IN NUMBER, C_TABLE_NAME IN VARCHAR2) is
    yearCount NUMBER;
    c_sql long;
    BEGIN
    execute immediate 'SELECT COUNT(DISTINCT SPECIES) FROM '||C_TABLE_NAME ||' WHERE year >2007' into yearCount;
    dbms_output.put_line('Distinct species count: ' ||yearCount);
    end counting1;
    end c_1;
    Is it possible to get the results of these in a table or data grid in sql developer, e.g. I would like to sort results etc rather than just a flat list? Something a bit more elegant then dbms_output.put_line?
    Thanks

    yes, I copied the wrong code into the example - what I actually want to display in a grid is the following:
    CREATE OR REPLACE PACKAGE RSET_CURSOR IS
    cursor rs_cursor is select species, location from ot;
    r_c rs_cursor%rowtype;
    end;
    create or replace package rset_cursor2
    is
    procedure printSpecies;
    end rset_cursor2;
    create or replace package body rset_cursor2
    is
    procedure printSpecies is
    begin
    open rset_cursor.rs_cursor;
    loop
    fetch rset_cursor.rs_cursor into rset_cursor.r_c;
    exit when rset_cursor.rs_cursor%notfound;
    dbms_output.put_line(rset_cursor.r_c.species);
    end loop;
    close rset_cursor.rs_cursor;
    end;
    end;
    I have also just noticed the list I am getting is only including one column of data where it should include 2, have I omitted something?
    Thanks

  • Problem connecting sql developer with a remote database MAc OSX Snow Leopar

    Hi everyone, sorry for my poor english but i don 't speak this language.
    I'm trying to connect Sql develper to a remote database and it does not work, showing this error: The Network Adapter could not establish the connection.
    Before running sql developer i install the oracle instant client and sql plus, i use the same tnsnames.ora file as my windows machine and sqlplus (in snow leopard) connect perfect.
    i set the path of my tnsnames in the setup of sql developer but i can't do it work.
    Anyone can help me please? thanks a lot.

    Duplicate thread Problem running Sql developer in Mac OSX Snow Leopard.

  • Import/export data from ms sql 7 to xml file in a particular xpdl format

    I'm trying to write java program to import/export data from ms sql 7 to xml file in a particular xpdl format. Can anyone suggest how to do it?

    take a glance at what these guys do: http://www.openbusinessengine.org/docs/guide.html

  • How to integrate the Data modeler in Sql developer

    Hi
    How can we integrate the data modeler into sql developer and use the data modeler?
    Thanks

    Integrating different oracle products (SQL Developer [Data Modeller], JDeveloper, ...) on platforms like Eclipse, Netbeans, JDeveloper Framework is a really missing feature.
    JDeveloper has a good approach for integrated Java and database development, but has not immediate benefits from from other development streams like SQL Developer.
    On daily work we must use more than three different tools for most common task
    - editing stored functions, procedures and packages with SQL-Developer (code formatter in Jdeveloper produces sometimes UNREADABLE code ( So we are using TOAD instead ). Why can't Jdeveloper use SQL-Developer formatting tools in bug fixed verrions from 1.5.5?
    - database modelling with SQL Developer Data Modeler without PLSQL package support ???
    - database development with JDeveloper, ADF and offline database model without capabilities for logical databse models
    Please put them all together!

  • Import / Export MySQL database in SQL Developer Data Modeler

    Hello,
    I have version 3.1.2.704 of SQL Developer Data Modeler and version 3.2.09 of SQL Developer installed.
    When I´m adding a new connection in SQL Developer, I can choose the MySQL tab an create a connection to a MySQL database.
    The connection test was successful and I can see all tables.
    I use the same JDBC driver for SQL Developer and SQL Developer Data Modeler (mysql-connector-java-5.0.4-bin.jar).
    But there are two problems.
    1. First there is an problem when I want to import from a MySQL database (SQL Developer -> File -> DataModeler -> Import -> DataDictionary).
    After choosing the MySQL connection and pressing the next button an error occurs: CONNECTION_TYPE
    What is the reason?
    2. In SQL Developer Data Modeler I have not the CONNECTION_TYPE problem. But when I want to export DDL, there is no MySQL type selectable, although there is working connection to the MySQL Database. It´s the same in SQL Developer.
    What is the reason?

    Hi,
    Data Modeler does not explicitly support import from MySQL databases, although you can use a JDBC connection to do this.
    Philip described how to set this up in forum message How to connect mySQL for reverve engineering
    There is no MySQL tab in Data Modeler - you should use "JDBC-ODBC Bridge" - "other third party Driver".
    Set URL like : jdbc:mysql://localhost:3306/database_name
    driver Class: com.mysql.jdbc.DriverAlso Data Modeler does not support generation of DDL for MySQL.
    David

Maybe you are looking for