Sql Developer 1.5.5 bug with large sequence start values.

We have a small table in our sql server 2005 schema (~700) rows. Its primary key is a bigint. We randomly generate ids for this table (don't ask). We have ids for this table which are larger than 2147483647. (java.lang.Integer.MAX_VALUE). I'm using a Windows 10g instance as the repository:
SQL> select * from v$version
2 ;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Capturing this model works fine.
Converting this model works fine.
When the converted model is "Generated", Sql Developer stops generating the script before the worksheet window is opened with the generated sql. If run from sqldeveloper/bin, this exception is output to the console:
java.lang.Exception: java.util.NoSuchElementException
at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressRunnable.start(AbstractMigrationProgressRunnable.java:141)
at oracle.dbtools.migration.workbench.core.GenerateInitiator.launch(GenerateInitiator.java:42)
at oracle.dbtools.raptor.controls.sqldialog.ObjectActionController.handleEvent(ObjectActionController.java:149)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:524)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:855)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:496)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
at java.awt.Component.processMouseEvent(Component.java:6134)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5899)
at java.awt.Container.processEvent(Container.java:2023)
at java.awt.Component.dispatchEventImpl(Component.java:4501)
at java.awt.Container.dispatchEventImpl(Container.java:2081)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
at java.awt.Container.dispatchEventImpl(Container.java:2067)
at java.awt.Window.dispatchEventImpl(Window.java:2458)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.util.NoSuchElementException
at oracle.dbtools.metadata.persistence.PersistableObjectIterator.next(PersistableObjectIterator.java:131)
at oracle.dbtools.migration.generate.GenerateWorker.generateSequences(GenerateWorker.java:862)
at oracle.dbtools.migration.generate.GenerateWorker.generateIndividualSchema(GenerateWorker.java:456)
at oracle.dbtools.migration.generate.GenerateWorker.generateSchema(GenerateWorker.java:365)
at oracle.dbtools.migration.generate.GenerateWorker.runGenerate(GenerateWorker.java:220)
at oracle.dbtools.migration.workbench.core.ui.GenerateRunner.doWork(GenerateRunner.java:71)
at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressRunnable.run(AbstractMigrationProgressRunnable.java:161)
at oracle.dbtools.migration.workbench.core.ui.MigrationProgressBar.run(MigrationProgressBar.java:569)
at java.lang.Thread.run(Thread.java:619)
A problem row can be viewed by issuing this query against the repository:
select * from md_sequences where seq_start > 2147483647;
We have one row returned. The oracle.dbtools.metadata.persistence.MdSequence class uses a java.lang.Integer value to store the start value for the sequence. The value stored in the repository's MD_SEQUENCE table overflows the Integer type.
Updating the SEQ_START column in the MD_SEQUENCE table fixed our problem. (Well, I can now generate the schema. I may have other problems with the sequence being off).
I've written this post to save someone else the day it took me to diagnose this problem with Sql Developer 1.5.5. At the very least Sql Developer should inform the user that it could not generate the script because of the large sequence start value. It basically swallows any error and terminates script generation without any type of feedback.

Update: I was able to recreate the problem!
1. Create a new table (I used TEST).
2. Mark first column af primary key.
3. Save the table.
Notice the name of the primary key index created: (TEST_PK in my case)
4. Edit the table.
5. Under constraints change the name of the primary key constraint.
6. Save the table.
Notice that the index still has its original name.
7. Edit the table.
8. Change something.
9. Attempt to save changes (Fails).
Conclusion:
Either SQL Developer should be aware of indexes with different name than a constraint,
or when SQL Developer changes the name of a constraint with an index, both the constraint and the index should be renamed.

Similar Messages

  • Possible SQL Developer 3.0.04 bug

    I'm currently using SQL Developer 3.0.04, using Windows XP, and connecting to an Oracle XE 10g database. I've noticed a strange problem when I export a database and use the default "export all data from all tables" option. Basically, when the rows within each table are exported as "insert" statements, any tables with "DATA" within their name are completely skipped. The statements to create the tables are exported, along with all related constraints, just not the actual table rows.
    This is what I did:
    1. Created a table named "AAA", with two columns, AAA_ID and AAA_INFO
    2. Loaded a few rows into the "AAA" table
    3. Performed an export of the database; clicked on Tools->Database Export, chose the database connection, left everything with the default values, checked the "proceed to summary" box, clicked Next, then clicked Finish
    4. Checked the export file for insert statements for the "AAA" table; they were present
    5. Renamed the table to "AAA_DATA"
    6. Performed the export again and checked the export file for insert statements for the "AAA_DATA" table; they were not present
    7. Renamed the table to "AAADATAAAA"
    8. Performed the export again and checked the export file for insert statements for the "AAADATAAAA" table; they were not present
    9. Renamed the table back to "AAA"
    10. Performed the export again and checked the export file for insert statements for the "AAA" table; they were present again.
    When I go through each of the export screens and manually select all of the database tables within the "Specify Data" section, the rows for the "DATA" tables are correctly exported; the problem only happens when I use the option to go straight to the summary and export everything.
    -Bill

    Thanks for taking the time to analyze the problem and provide steps to reproduce. I can see how the problem is caused and I have filed a bug for it.

  • SQL Developer: import from Excel bug

    SQL Developer 1.1.2.25 Build MAIN 25.79
    This is a test for import from Excel.
    Test table:
    create table bla
    (x number null,
    y varchar2(1) null);
    Excel data:
    x y
    1 a
    2 b
    3
    SQL Deveoper generates:
    Error at line 3:insert into BLA (X,Y) VALUES(3,'NULL')
    IMPORT into table BLAcomplete
    Inserted 2rows.
    Failed to insert 1rows.
    SQL Error:ORA-12899: value too large for column "BCRCEK"."BLA"."Y" (actual: 4, maximum: 1)
    I think there is a bug, because there must be generated NULL without apostrophe.
    insert into BLA (X,Y) VALUES(3,NULL);

    Hi Barry,
       That's[b] GREAT NEWS !!!.
       So, i just update current release 1.1.2.25 to 1.1.2.25.79 ?
    Thanks for the great work.
    Zack
      Oops !!! Am already using 1.1.2.25.79, same as bcrcek above. So need to wait for Patch Release ?
    Regards
    Zack
    Message was edited by:
            Zack.L                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • SQL Developer 2.1rc1 - some bugs

    Hi!
    I'd like to report some bugs I've encountered with the RC1 version of Oracle SQL Developer (Version 2.1.0.63 build MAIN-63.41).
    - The syntax error highlighting is not very good - I've successfully executed queries almost completely underlined with pink wavy lines
    - something strange happens when I hit <Enter> while the cursor is at the end of a row that reads " union all" - a new line does not get inserted, and the cursor disappears. <Backspace> and <Enter> again, and it works ok.
    - query execution - the command I entered gets modified, stripped of comments, as far as I can tell, and if I get an error report, the line number reported is off by a couple of lines. I remember this working better in 1.5.

    I found a few bugs in the first ten minutes of use:
    - The main one was that my backspace key didn't work, no idea why this was as my keyboard is pretty standard?
    - The search/highlight window changes size when adding a new highlight, and the close button then disappears until it's re-sized
    - Editing xmldata in a window works, if it's not syntax highlighted or able to be pretty printed, but clicking ok does not change the value? Should either work or warn that it doesn't work.
    - In the query result window is 'SQL' in blue, not easy to notice that it's a button'y thing to click and see the SQL that was executed. Also, why does the little bubble with the code just float in the middle and not point to anything in particular? Surely it could point to the 'SQL' button or similar?

  • View jobs with SQL Developer and export to file with delimiter

    Hi,
    is there a way to view, create and alter my database jobs with SQL developer?
    And is it possible to export tables, views or simple queries to file delimited different from the CSV standard?
    Diego.

    Hi and Welcome to the Forum!!
    To select data from a table or a view you must use the SELECT sql command. Example to get the data from your view you can
    select ZMATNUM,ZMATCUR,ZMATATTR from ZMATERIALAs you have said you are using SQL Developer just execute the above query in your sql developer and it will show the data. Right click the grid and export the data to excel file.

  • HOW TO: Open SQL Developer from a batch file with specific tables opened

    I use SQL Developer daily as I develop database intensive programs.
    ** Question **
    How can I define a specific configuration of tabs (i.e. tables, procedures, etc) to be opened upon startup of SQL Developer?
    For example, creating a .BAT file to open SQL Developer with a specific set of table tabs already opened. This will save me the time every morning I use to open SQL Developer and configure all the tables I need opened.
    NOTE: I have tried various options of appending a table name to a command line starting sqldeveloper.exe. For example: ..\sqldeveloper.exe mydatabase.mytable. However, this only opens a worksheet tab with the name "mydatabase.mytable" but does not open my actual table.
    Any help will be appreciated.
    - Gary Davis

    what version are you using? Sql Dev 1.5?
    Not an exact answer, but you could try using Table FILTER
    click on your connection
    right button on TABLES
    click apply filter
    as for your question, check out:
    Re: EA1 - Automatically open connection list at startup?
    or
    SQL Developer

  • SQL Developer 1.5 having problems with JDK 6 Update 7

    I tried to open a table using SQL Developer 1.5 but connection timed out. when using SQL developer 1.2 i don't get any problems opening it.
    i have JDK 6 update 7 installed.
    the only problem with SQL Developer 1.2 is that i get a jdbc in the error log
    how do i get to fix the SQL Developer 1.5?

    --The sql developer is connected using tnsnames.ora, with read only access
    --i'm using windows XP SP3
    --I have jdk 6 update 7 installed
    --The tables that I can't View is listed under Other Users.
    --I thought it was just because i have no permission to view it, but when i used the old sql developer 1.2, it displayed it properly.
    --The reason i want to use SQL developer 1.5 is because i don't want to see any JDBC error on log messages, which happens on the sql developer 1.2
    --i dont get to see any errors, sql developer suddenly can't view and lost the connection. it says connection is currently busy. and suddenly stops responding, the only way i can get it working again is by using the taskbar, when it close the program it gets java is not responding..
    --also when i try running sqlcli.bat i get error with it.. is it because of my java?
    --What more details do you need?
    Edited by: user10285639 on Oct 15, 2008 4:47 PM
    Edited by: user10285639 on Oct 15, 2008 4:53 PM

  • 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 asks for java.exe with the version that has java built in.

    I have a user with the following platform:
    Windows XP2
    SQL Developer Version 1.5.4
    The version they are trying to get running is the one that has the JDK built in. However, when they try and startup SQL Developer it asks for the location of java.exe.
    However, when I run the same exact version on my workstation, I do not receive the prompt for a java.exe.
    I checked the documentation, and I couldn't find anything related to this particular issue, however I may have missed it.
    Can anyone provide me with any guidance please? Thanks.

    Resolved. There was a difference of permissions on the user's machine.

  • Is SQL Developer 1.5.5 Compatible with SQL Server 2008

    We are trying to perform a database migration and we keep getting "Locating Source Plugin" failed, we have the jTDS Drivers from sourceforge, tried several versions, including 1.0, 1.2, 1.2.2, 1.2.4, 1.2.5, 1.2.7, and 1.2.8... and i came across a thread Sql Dev Third party migration issue
    and i was wondering if SQL Developer 1.5.5 is compatible with Microsoft SQL Server 2008?

    Those versions are ancient, older than SS2008 even.
    Go get version 4.0.3 and a jTDS 3.1 driver.
    Details here

  • SQL Developer 3.0 Final Available with Data MIner

    A new SQL Developer extension, Oracle Data Miner is the graphical user interface for Oracle Data Mining, an option to the Oracle Database Enterprise Edition. Oracle Data Mining provides in-database functionality that enables users to discover patterns and relationships hidden in their data to predict customer behavior, identify key factors, find new clusters and their profiles, anticipate and combat churn, detect anomalous behavior and solve a wide range of data-driven problems. For more information, visit Oracle Data Miner on OTN http://www.oracle.com/technetwork/database/options/odm/index.html

    Hi Mikka,
    Only simple PL/SQL Records are currently supported i.e. those that do not contain repeating or optional components and where all the components are themselves supported. This restriction is in place due to the fact that we use JDBC as the parameter passing mechanism which does not directly support the PL/SQL Record type.
    ANYTYPE and ANYDATA are not currently supported as they have a dynamic value type and therefore must be programmatically set. In the future, it may be possible to support these through the dynamic value and and validation features.
    This will remain so for the final version.
    Regards,
    Richard

  • 1.5.1: Bug with single keystroke bind value being displayed but ignored

    I just ran into a bug with using with bind values (run as statements) using SQL Developer 1.5.1.54.40, JDK 1.6.0_04, Win XP SP 2.
    If the bind value was previously Null (NULL checkbox checked), then typing one (and only one!) character into the Value field displays the character and deselects the NULL checkbox but is ignored when running the statement - the bind variable is treated as Null. Running the statement again redisplays the bind dialog and the NULL checkbox is deselected but there is no value in the Value field.
    For example: select rpad(dummy, :length, dummy) from dual;
    When running this as a statement and typing a value between 0 and 9 into the Value field results in null (ie select rpad(dummy, null, dummy) from dual). Running again and leaving the Null checkbox unchecked and typing the single character again produces the correct result (ie 9 produces 9 Xs). Running again and checking the Null checkbox and typing the single character again produces null again.
    This only occurs where you type a single key stroke in your bind value. If you type two characters and then delete one, the bind value is used correctly.
    theFurryOne

    Bug 7229257 - entering only one character in bind dialog value field is ignored
    logged.
    -Raghu

  • SQL Developer 4.0 EA bugs

    One bug and one improvement.
    Bug:
    Clicking the data tab on tables that include XMLTYPE columns do not display any rows or column headings. You can redproduce with the following script and then click the table in connections or schema view and then click the data tab on version "Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production":
        CREATE TABLE xml_test (
          id NUMBER
        , text VARCHAR2(100)
        , xml_data XMLTYPE
        INSERT INTO xml_test VALUES (1, 'joe', XMLELEMENT("ROOT"));
        INSERT INTO xml_test VALUES (2, 'blogs', XMLELEMENT("ROOT"));
        INSERT INTO xml_test VALUES (3, 'john', XMLELEMENT("ROOT"));
        INSERT INTO xml_test VALUES (4, 'smith', XMLELEMENT("ROOT"));
    Improvement:
    When opening package spec/body from a file on your local file system detect that both the spec and body are open as files and offer the same arrow controls in the gutter that allow you to jump between a function/procedure in the spec to the same function/procedure in the body and vice versa.

    The bug is a known issue and we're working on it, thanks.

  • SQL Developer 1.5 migration issue with MS use of reserved words

    In version 1.2 the was and advanced option that allowed the use of reserved words for column names, I can not find that option in 1.5. What happened to this option? I can not find it and I need to port those applications with out changing the column names. I know I can hand edit the scripts but I did not have to do that with 1.2.
    Any one know if this can still be done?

    n 1.2 iIt was under preferences - > Migration -> Advanced, in version 1.5 no advanced options and I searched around and could not find it else where. gulp as for the reserved words ( don't laugh I am just migrating under orders) there are date, number and some columns with embedded / that it barfs on. I am under orders to do it the way it is written.

  • SQL Developer 3.0.04 does not aks for bind values (update / delete)

    Hi there!
    When i issue a select statement like
    SELECT * FROM tablename where column = :bind;
    a window pops up asking for the bind value. It does not for similar delete or update statements.
    Background: I just migrated from Developer 2.1.1.64. In the old version I used that kind of bind a lot.
    Is there any way I can recinfigure this? Is it a bug?
    Thanks in advance.

    It's a bug: Bug EA 4 (3.0.03.97) Bind Variable Not Declared on Insert from select
    Let's hope we see improvement in next patch release,
    K.

Maybe you are looking for

  • Can you open multiple files using an advanced action?

    I have either Captivate 5.5 or Captivate 7 to work with. Currently my project is in 5.5. I have a button that I want to open three PDF files. I created an advanced action, selecting Open a new file/URL and selected the file name. Currently they are s

  • How to Carry Forward Beginning Balances for CTA

    Hi Experts, We're doing a multi-currency AppSet wherein I need to carry forward the ending balances of the cumulative translation adjustment to it's beginning balance the next year but the problem is: 1. CTA resides only in USD reporting currency(not

  • Discoverer take a long time executing reports

    Hi I have installed Discoverer with Application Server 10g R2 (both). I create my reports from a table but when i want to update my information in the Oracle Portal (executing a discoverer report with parameters) but it take a long time (up 2 or 3 mi

  • Startup Class in WebLogic server 6.1

    I Have a Java application as startup class in Weblogic server 6.1 . I need to stop the application without restarting the Weblogi server (The startup class should be removed and the change should be reflected in WebLogic server). Is it possible to ac

  • OdiInvokeWebService results in 'Cannot connect' error

    Hi, I am trying to invoke a webservice using the following command- OdiInvokeWebService "-URL=https://xyz.com/V1?wsdl" "-PORT_TYPE=P2PPort" "-OPERATION=Run" <?xml version = '1.0' encoding = 'UTF8'?> <RunRequest> <Run_Input> <pOperation>OTC08</pOperat