Fallo en SQL Developer , bugs in SQL Developer

He detectado que si hacemos clic con el botón derecho sobre una tabla y seleccionamos EXPORT ==> SQL INSERT. la exportación no se lleva a cabo.
¿Alguien ha detectado este problema?

Mucho mas tarde, doy confirmacion del problema en mi sistema Linux SuSE 10.0 con Oracle 10g release 2 y la ultima version de SQL Developer (Build 14.67). No tengo ningun dato en el fichero ni en el "clipboard". Pero si no selecciono todas las columnas, el fichero o el clipboard se rellenan normalement. Eso explica que algunos dicen que funciona y otros que no funciona.
Como solucion pratica, creo una vista (view) con una columno mas ( *, 1 as nada) y no la selecciono. Solo me queda cambiar el nombre de la tabula en el texto SQL que produce la exportacion.
A few weeks later, I certify there is a bug (en my Linux SuSE 10.0 system con Oracle 10 g release 2 and Build 14.67 of SQL Developer). I obtain an empty file or nothing in the clipboard. If I don't select all fields, the file or clipboard are full of data. This explains why some assert there is no problem and other say there is one. As a practical solution, I created a view with an extra field ( *, 1 as dummy) and didn't select it. I only have to rename the table in the exported SQL text.

Similar Messages

  • Bug report SQL DEVELOPER DATA MODELER

    Hello,
    I think i found a bug using Sql developer data modeler 2.0.0 build 584.
    When importing a DDL file to create a relational model, foreign key constraints might not be created if foreign key uses multiple-field and the fields are not referenced in the same order as the primary key was.
    ex:
    Table FOO ..... PRIMARY KEY (id_1, id_2)
    FOREIGN KEY (id_2, id_1) REFERENCES FOO (id_2, id_1)
    Benjamin
    P.S: Bellow is a portion of SQL code demonstrating the problem:
    -- "_decompte"
    CREATE TABLE "_decompte"(
    numero_rang VARCHAR2(2),
    numero_contrat VARCHAR2(13),
    id_decompte VARCHAR2(19)
    ALTER TABLE "_decompte"
    add CONSTRAINT pk_decompte PRIMARY KEY (numero_rang, numero_contrat, id_decompte);
    -- "_decompte_detail"
    CREATE TABLE "_decompte_detail"(
    numero_rang VARCHAR2(2),
    id_ligne NUMBER(4),
    numero_contrat VARCHAR2(13),
    id_decompte VARCHAR2(19)
    -- "_decompte_detail"
    -- NOT Recognized by SQL DEVELOPER DATA MODELER (fields are not in the same order as primary key definition)
    ALTER TABLE "_decompte_detail"
    add CONSTRAINT fk_decompte_detail_1 FOREIGN KEY (numero_contrat, numero_rang , id_decompte) REFERENCES "_decompte"(numero_contrat, numero_rang , id_decompte);
    -- Recognized by SQL DEVELOPER DATA MODELER
    ALTER TABLE "_decompte_detail"
    add CONSTRAINT fk_decompte_detail_2 FOREIGN KEY (numero_rang, numero_contrat, id_decompte) REFERENCES "_decompte"(numero_rang, numero_contrat, id_decompte);

    Hi,
    Well, I was recently given some database scripts and asked to correct and improve them. These scripts were not generated but rather hand made. Having no access to a DBMS I was just curious about the result of this option in Data modeler and tried it for a better DB overview. I don't need it at all, but I was surprised to discover that the result was a failure. So I tried various scripts until I found the mistake.
    regards.

  • Bug in SQL Developer relating to handling of XMLTYPE columns

    Hi,
    I have found a bug in SQL Developer relating to its handling of XMLTYPE columns.
    Given a table with the following data:
    ID, XML_DATA
    1, <xml here>
    2, <xml here>
    3, <xml here>
    And the following SQL to extract a value from the XML and also an XML fragment as an XMLTYPE:
    SELECT
    EXTRACTVALUE(t.column_value,'/*/USER_ID/text()')user_id
    , t.column_value user_data
    FROM dbuser.mytable m
    , TABLE(XMLSEQUENCE(EXTRACT(m.xml_data, '/*/USER_LIST/USER'))) t
    I get the following:
    user_id, user_data
    jsmith26, (XMLTYPE)
    mjones45, (XMLTYPE)
    sborga31, (XMLTYPE)
    Note that the user_id is correctly extracted, however the XMLTYPE column (user_data) is empty in SQL Developer.
    The same query returns the correct XML data in TOAD.
    Edited by: 1008733 on May 29, 2013 5:07 PM

    Steve,
    So your example is slightly more complex than the one documented for a table in the standard OE schema here:
    http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions052.htm
    That example works fine on an 11.2.0.1 database with SQL Developer 3.2.20.09.87. Please try the following with your case:
    Tools -> Preferences -> Database -> Advanced -> Display Struct Value In Grid (check it off if not already)If that still does not work for Run Statement (query result displayed in the grid, not as script output using Run Script), then please provide a test case based on the Warehouse table in the OE schema (or your case with DDL and DML scripts including the xml data) and I will log a bug.
    Thanks,
    Gary
    SQL Developer Team

  • Another SQL Developer bug - End of file in comment

    I found another SQL Developer bug in version 3.0.0.4.
    If I try to compile some package from file (so I open file with package body in SQL Developer and assign it to some connection) with this kind of comment: /* comment */ behind end of package, I get this error
    I got Error(1250,28): PLS-00111: end-of-file in commentFunny is, that when the package is compiled directly from the database - it works.
    When I try to compile the package from file with this kind of comment --comment behind the end of package, it also works...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi, I think I finally got it. This looks like an ugly fat bug :)
    First, we are not using the .sql extensions. For package specification - we use .pks. For package body - we use .pkb.
    Create this script:
    CREATE OR REPLACE PACKAGE TEST_xxx AS
    PROCEDURE TEST_PROCEDURE;
    END TEST_xxx; /*0123456789*/Now save this as e.g. "TEST.pks" file. Open this file in SQL Developer and compile it. You will get the "Error(3,27): PLS-00111: end-of-file in comment".
    Now look at the result in the database -> Open the package specification from the database and you see this:
    create or replace
    PACKAGE TEST_xxx AS
    PROCEDURE TEST_PROCEDURE;
    END TEST_xxx; /*0123456789*The last slash is missing...
    Now go back to the file with the package specification and delete one letter from the comment. Compile it again... it works now.
    It looks like the length of this kind of comment is limited to 9 characters.
    The limitation is there only when:
    1) Compiling from file with different extension than .sql !!! If you rename the file to "TEST.sql", SQL Developer opens it as a script file and runs it as a script, so there is no problem with it.
    2) It has to be this kind of comment: /* */. One line comments are not limited.

  • SQL Developer bug or database bug?

    This is in SQLPlus,
    SQL> alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    2006-10-12 12:31:20
    SQL> begin
    2 dbms_session.set_nls('nls_date_format','''DD-MON-YY''');
    3 end;
    4 /
    PL/SQL procedure successfully completed.
    SQL> select sysdate from dual;
    SYSDATE
    12-OCT-06
    dbms_session.set_nls works perfectly, however, in SQLDeveloper, when I run the same thing:
    alter session set succeeded.
    SYSDATE
    2006-10-12 12:30:42
    1 rows selected
    anonymous block completed
    SYSDATE
    2006-10-12 12:30:42 <-- Notice how the format is not changed.
    1 rows selected
    I am wondering if this is a SQLDeveloper bug(more likely) or database bug?

    I run the following in SQLDeveloper,
    alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS';
    select * from v$nls_parameters where parameter='NLS_DATE_FORMAT';
    select sysdate from dual;
    begin
    dbms_session.set_nls('nls_date_format','''DD-MON-YY''');
    end;
    select * from v$nls_parameters where parameter='NLS_DATE_FORMAT';
    select sysdate from dual;
    Here's the output from SQL Developer:
    alter session set succeeded.
    PARAMETER VALUE
    NLS_DATE_FORMAT YYYY-MM-DD HH24:MI:SS
    1 rows selected
    SYSDATE
    2006-10-13 12:38:06
    1 rows selected
    anonymous block completed
    PARAMETER VALUE
    NLS_DATE_FORMAT DD-MON-YY <-- This proves it's not the database.
    1 rows selected
    SYSDATE
    2006-10-13 12:38:06
    1 rows selected
    I believe this proves beyond doubt, that it's SQL Developer bug. Perhaps caching NLS settings?

  • SQL Developer BUG - ORA-00980 Synonym Translation No Longer Valid

    We have a read only database of our Production and when I try to access any data using the SQL Developer, I'm getting the following Error.
    Error at Command Line:1 Column:14
    Error report:
    SQL Error: ORA-00980: synonym translation is no longer valid
    If I access the same from SQL Plus, Toad or SQL Station, It works fine. Seems some error in SQL Developer.
    Any one with Ideas or suggestions.

    we have DB cloned from Prod everynight and is available for us on readonly access. No read /write privs to any user including DBA.
    I think the DB is opened with ALTER DATABASE OPEN READ ONLY;
    Also to mention, all the tables in the db can be accessible only by read only user who was given select permission on synonyms.
    --VB                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Can't display MS SQL datetime value in SQL Developer 1.5.1

    Hi All,
    I try to select the datetime value from MS SQL Server and the SQL Developer display strange value like this:
    oracle.sql.TIMESTAMP@f37160
    The problem does not exists in the previous version. And any body can help to solve it?
    Thanks.

    ISSUE CLARIFICATION
    ====================
    Attempting to view records in a table from a MS SQL Server 2005 schema. All fields are ok, except
    the datetime fields.
    Getting Oracle.sql.date@E4F4012
    This worked (actually still works) with SQL Developer 1.2.1. In fact, I see both on my screen and
    1.2.1 views the fields fine, 1.5.4 does not.
    ISSUE VERIFICATION
    ===================
    Verified the issue by the screen shots
    DATA COLLECTED
    ===============
    SCREEN SHOTS
    SR6930954.994_SQLDeveloper.ppt
    CAUSE DETERMINATION
    ====================
    Missing option in SQL Server 2005 default datatype mapping rules.
    CAUSE JUSTIFICATION
    ====================
    Note 458294.1
    Bug 6360558 / Bug 6378114
    PROPOSED SOLUTION(S)
    ======================
    use the workaround provided in Note: 458294.1
    PROPOSED SOLUTION JUSTIFICATION(S)
    ====================================
    Note 458294.1
    Bug 6360558 / Bug 6378114
    SOLUTION / ACTION PLAN
    =======================
    You can use the following workaround if you want SQL Server 2005 DATETIME datatype map to Oracle DATE:
    - On the Captured Model, select 'Set Data Mapping'
    - Click on Apply in the 'Set Data Map' Window, this will create a record in the Repository
    - Open a connection with the Repository database
    - Click on Tables
    - Click on table MIGR_DATATYPE_TRANSFORM_RULE
    - Click on the "Data" Tab
    - Sort on column "SOURCE_DATA_TYPE_NAME"
    - Look for "DATETIME"
    - Change the value of column "TARGET_DATA_TYPE_NAME" from TIMESTAMP to DATE
    - Change the value of column "TARGET_SCALE" from 6 to (null)
    - Commit the change.
    Remark: This workaround is only suitable if the repository contains only 1 captured model, otherwise we need to identify the proper MAP_ID.
    KNOWLEDGE CONTENT
    =================
    Platform / Port Specific? = NO
    Knowledge content not created because the following note already addresses this issue: Note.458294.1
    This problem has been identified as a bug. And it has been fixed in Version 2.0.0 (Future Release)
    For available workaround refer to the above tags and NOTE: 458294.1
    Regards,
    Srikanth
    Oracle Support Services.
    Currently Support is not having any information of the release date for sql developer V2.0.0
    Regards,
    Srikanth

  • Connect from SQL Developer to several SQL Server instances

    Our SQL Server has more than one instance, but I see only one instance of them trying to connect from SQL Developer 1.2 to SQL Server. How I should define the connection information? Usually we connect to SQL Server by <hostname>/<instancename> and then the database name as CatalogName (Initial Catalog). In the Oracle world you can give only the hostname, a port number and the database name. How I can convince the SQL Developer to choose one of our SQL Server instances?

    Hi user627927,
    Bug/Enhancement request already logged.
    We have not got this configuration in house, two people have suggested workarounds but we are unable to test them for now. The last person was unable to get these workarounds working, and we have not confirmed them in house.
    Can you get the instances connected through two different ports?
    It would be great if you could confirm either workaround.
    -Turloch
    *1/Suggestion 1 change the URL through SQLDevelopers xml connection store.
    *2/Overload the port field to have instance in the eventual url
    *1/Suggestion 1 change the url through SQLDevelopers xml connection store.
    [Note it is probably simpler to connect a dummy connection through the connection dialog as usual save it (you cannot connect) and then add the instance information rather than having to enter all the information in an unmanaged way.]
    Hi Naveen,
    I had same problem as you and user579801. I managed to resolve it by doing the following.
    1. Locate the file called IDEConnections.xml in the folder where you have installed SQL Developer (eg. c:\sql developer\sqldeveloper\system\oracle.jdeveloper.db.connection.11.1.1.0.11.42.62).
    2. Create the following entries under <connections> tag.
    <connection>
    <URL>jdbc:jtds:sqlserver://\\.\;namedPipe=true;instance=SQLDBNam;</URL>
    <ConnectionName>SQLServer</ConnectionName>
    <user>SQLUser</user>
    <ConnectionType>JDBC</ConnectionType>
    <DeployPassword>false</DeployPassword>
    <JdbcDriver>net.sourceforge.jtds.jdbc.Driver</JdbcDriver>
    <RaptorConnectionType>Microsoft SQL Server</RaptorConnectionType>
    </connection>
    3. Save the file; Close and re-open the SQL Developer and try connecting.
    Hope this will solve your problem. Good luck.
    Regards
    Raja
    *2/Overload the port field to have instance in the eventual url
    This took some figuring out but I cracked it in the end....
    SQLServer tab:
    Hostname: <servername>
    Port: <portnumber>/<databasename>;instance=<instancename>
    so for me the Port field looks like this: 1433/Gaffa;instance=SQL01
    That should now connect to a named instance SQL Server.
    Paul Fairhurst

  • Development philosphy PL/SQL vs SQL

    Hi All
    I talked to another fellow developer and both he and me both agrees that our company code base uses too much for loop in the PL/SQL.
    (1)He says if the data is in Oracle already better avoid PL/SQL all together and just use SQL statement.
    Any suggestions on (1)
    This company is really data-sensitive so perhaps in the very beginning they would do it row-by-row because of that.
    And this fellow engineer talks about we can use ON ERROR when in cases like that.
    Anyone can give an example for using this ON ERROR ?
    Or can someone show an re-startable SQL example. For example: when processing 10 million rows and it fails in the middle how we can re-start the process in SQL without re-doing the whole thing?
    -Thanks for all your inputs

    Hi,
    vxwo0owxv wrote:
    Hi All
    I talked to another fellow developer and both he and me both agrees that our company code base uses too much for loop in the PL/SQL.
    (1)He says if the data is in Oracle already better avoid PL/SQL all together and just use SQL statement.
    Any suggestions on (1).Doing things in PL/SQL shat should be done in pure SQL is definitely a common mistake. Let's call this Mistake A.
    Doing things in SQL that should be done in PL/SQL is also a mistake. Let's call it Mistake B. In practice, Mistake B is much less common mistake than Mistake A, but it's a mistake just the same.
    FOR loops are one common way people make Mistake A. SQL was designed for efficiently hanlding sets of rows, for example, executing a query and inserting its result set into a table. A common manifestation of Msitake A is to put the query in a cursor FOR loop, and INSERT the data one row at a time. (Among the mad wags, this is called Slow-by-Slow Priocessing .)
    This company is really data-sensitive so perhaps in the very beginning they would do it row-by-row because of that.What does "data-sensitive" mean?
    Whatever it means, I don't see how it can justify doing soemthing in a slow, error-prone way.
    And this fellow engineer talks about we can use ON ERROR when in cases like that.
    Anyone can give an example for using this ON ERROR ?
    Or can someone show an re-startable SQL example. For example: when processing 10 million rows and it fails in the middle how we can re-start the process in SQL without re-doing the whole thing?ON ERROR is a SQL*Plus mechanism for trapping errors.
    PL/SQL's error handling is better, so this might be an occasion for committing Mistake B. (It would be more accurate to call this Mistake C, since SQL*Plus is not the same as SQL.)
    Within PL/SQL, you can use many of the best features of SQL (for example, a multi-row INSERT rather than a FOR loop), and also take advantage of the good features of PL/SQL (such as EXCEPTION handling).

  • Copying SQL Script from Oracle SQL Developer into Excel with formatting

    I need to copy a SQL Script into Excel in order to develop some VBA code. Is there any nice way that I can copy SQL Script from Oracle SQL Developer into Excel and retain its formatting? I am a stickler for having legible, readable SQL and like to have all my columns lined up and aliases lined up. When we used to use SQL Navigator, the tab formatting seemed to copy and paste just fine. Now that we have migrated to Oracle SQL Developer, the formatting seems to get all messed up.
    And suggestions are greatly appreciated and Thanks in advance for your review and am hopeful for an answer.
    Thanks.
    PSULionRP

    I suppose you want a real tabulator instead of spaces. You can configure this in the preferences (SQL Formatter - Oracle). You have to apply it then to your existing code (e.g. CTRL-F7), but new code should get it right from the start.
    Hope that helps,
    K.

  • Oracle SQL Developer vs Oracle SQL Developer Migration Workbench

    Gurus,
    Can anybody let me know what's the difference between Oracle SQL Developer vs Oracle SQL Developer Migration Workbench tools.
    I am in the process of Migrating MS-Access Application to APEX. So the example says me to use Oracle SQL Developer Migration Workbench. Is this part of Oracle SQL Developer? If yes, I know SQL Developer is free.
    If not is Oracle SQL Developer Migration Workbench if free?
    Thanks and Regards

    Thank Oracle ;)
    (well, it's the least they can do after you paid big $$$ for the database)
    Regards,
    K.

  • SQL Developer vs. SQL*Plus Performance???

    Hi,
    DB: Oracle 10.2.0.3.0
    SQL Developer: 1.2.0
    SQL*Plus: 10.2.0.3.0
    I am running the same query once in SQL Developer (Response time 10 sec.)
    The same query in SQL*Plus takes over 20 Minutes.
    SQL*Plus is using SQL*Net right?
    Is that the reason?
    Thanks

    Hi,
    how can I check for SQL Developer?
    Does SQL Developer use SQL*Net also?
    I changed the arraysize to 1000
    but does not see any performance gain.
    The query still taking more than 6 minutes.
    The same in SQL Developer runs within 10 seconds!
    Thanks

  • Run sql statements in PL/Sql Developer without installing Oracle database?

    Hi all,
    I wish to ask is there any possibility to run Run sql statements in PL/Sql Developer without installing Oracle database?
    Regards.

    Hello Jimmy,
    this is the forum for the tool SQL Developer and, as the title says, *(Not for general SQL/PLSQL questions)*.
    PL/Sql Developer is not an Oracle tool, but from allound allroundautomations.
    And you need access to a database to run SQL statements. This does not need to be one installed by yourself.
    Regards
    Marcus

  • Which PL/SQL developer tool is best to develop the PL/SQL program?

    Hi, all, who know which PL/SQL developer tool is best to develop the PL/SQL program? it is jdeveloper or designer or third party developer tool? please let me know, Thanks!

    To be honest , I have been using only Notepad or
    a simple Textpad ..to this date.
    While these tools may be of help in indenting and beautification of code, I feel you lose your debugging skills and forget the SQL-PL/SQL syntax with them.
    Cheers
    Ashwin N.

  • SQL Developer Connection to SQL Server

    Hi,
    could some body help in connection sql developer connection to sql server 2005 please?
    thanks,
    kamalesh

    Setting Up SQL Developer for MS SQL SERVER 2000
    1) Install/Extract SQL Developer 1.2.1 in C:\Program Files\Oracle
         Making the {$sqldevhome} = C:\Program Files\Oracle\sqldeveloper
    2) Obtain the JDBC SQL SERVER Pluggin (jtds-1.2.2-dist.zip) from:
    http://sourceforge.net/project/showfiles.php?group_id=33291&package_id=25350
    3) Unzip jtds-1.2.2-dist.zip
         Creates:      jtds-1.2.2.jar
                   \x86\SSO\ntlmauth.dll
    4) Copy the jtds-1.2.2.jar into:
    {$sqldevhome}\jlib Directory.
    5) Copy the the ntlmauth.dll dll in the \x86\SSO subdir into:
    {$sqldevhome}\jdk\jre\bin\ntlmauth.dll
    6) In SQL Developer:
         Got Menu "Tools"
                   - Preferences...
                   Expand the "[+] Database
                   Choose "Third Party JDBC Drivers"
                   Click "Add Entry"
                   Then Browse for your copy of "{$sqldevhome}\jlib\jtds-1.2.2.jar"
                   Note: Use the jar filename, not its parent directory for entry.
    7) Restart SQL Developer and try your SQL Server 2000 Connection

Maybe you are looking for

  • XSLT Tranformation - XSL in a separate file?

    I'm using XSLT Tranformation service to transform an incoming XML document to a different format.  I've tested this successfully using a literal value for my XSL, but I'd like to store the XSL in a separate file rather than storing it as a literal st

  • Mulitple grid in single form

    hi all, we are developing one report. its have multiple tabs. each tab having separate grid. but its not working. when i press second tab its show the error. example:Open,closed,Completed,hold,inactive thanks & regards B.Lakshmi Narayanan

  • Quota is not displaying in IT 2006

    Hello Experts, First of all thank you for your replies which ressolev more than half of my issues. Please help me again to solve my new query where my quota is generating(PT60) and not transsfering in 2006 means it is displaying in pt 50 but not in I

  • Onscreen Keyboard and GMail (and other sites)

    Couldn't find anything on this in my search - but my onscreen keyboard pops up when i touch the screen (in regular notepad mode when I'm using the physical keyboard).  It seems to happen only for certain textboxes on certain pages.   One place for su

  • Samsung galaxy tab2 not opening pdf, used to but now wont !!!

    Any help please, from email if I try to open pdf , it just goes back to log into my email server. It used to work but not for ages??