Feedback deferred constraint is incorrect in sql developer 2.1.0.63.41
In the earlier 2.1.0.63 the set contraint didnt work entirely in sql developer.
In this new release the set constraint can be executed and it works, however when you violate a constraint there is no feed back.
example:
I create the following table and insert 2 rows
CREATE TABLE d_orafout
( code NUMBER CONSTRAINT d_codepk PRIMARY KEY DEFERRABLE,
message VARCHAR2(50))
INSERT INTO d_orafout VALUES(904,'invalid table name')
INSERT INTO d_orafout VALUES(903,'invalid column name')
Then i execute:
set constraint d_codepk deferred;
set succeeded.
Then an update that violates the primary key:
update d_orafout set code = 903 where message = 'invalid table name';
1 rows updated
Then when i commit i should get the following error (which works fine in SQL*Plus):
ORA-02091: transaction rolled back
ORA-00001: unique constraint (NWG806.D_CODEPK) violated
However the commit gives me the following output:
commit;
commited
The transaction is not commited, it is rolledback but i dont get the error i need.
Hi <please supply your name>,
Thanks for this feedback,
I have replicated this issues and I have logged a bug.
Bug 9201183 - COMMIT REPORTING COMMIT INCORRECTLY WHEN USED WITH SET CONSTRAINT DEFERRED
Regards,
Dermot.
SQL Developer Team
Similar Messages
-
Incorrect info /SQL Developer
Hello,
Today I installed the latest SQL Developer (on my PC-XP)
In “manage database” mode (right click on database connection)=> the pane shows all databases correctly but production db.
Production is missing a good number of the largest tablespaces.
What could be a good point to start troubleshooting?
Thx,I have SQL Developer 1.5.0.53 on my laptop, and the Manage Database tab, brought up via right-click menu, does not show the TEMP (temporary) tablespace of my local 11.1 db.
Perhaps it's better to discuss this issue in the SQL Developer, where some of the developers of the tool hangs around. -
I cannot Disable a constraint in SQL Developer
Here is my issue:
I have created a table already named practice1.
Using SQL Developer PL/SQL try to run a loop as following:
DECLARE
COUNTER1 NUMBER(2);
BEGIN
COUNTER1 := 30;
ALTER TABLE practice1
DISABLE CONSTRAINT PRK1;
LOOP
COUNTER1 := 30;
INSERT INTO PRACTICE1
VALUES (COUNTER1, 'test7', 8, 9);
EXIT WHEN COUNTER1 >26;
END LOOP;
END;
In other words I Insert the COUNTER1 variable value as Primary Key in the tables field1 column.
I run the script successfully without the ALTER TABLE DISABLE CONTSRAINT.. command.
Everytime I run it I had to increase the starting value of Variable COUNTER1 so it will not attempt to insert a duplicate pre-existed value in Primary Key.
Then I decided to insert the command ALTER TABLE DISABLE CONSTRAINT in order to not have to worry to change the starting value.
I am able to disable the constraint by using the same command in isolation . If I run it as part of the script as above I get the following error:
Error report:
ORA-06550: line 5, column 1:
PLS-00103: Encountered the symbol "ALTER" when expecting one of the following:
( begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted delimited-identifier>
<a bind variable> << continue close current delete fetch lock
insert open rollback savepoint set sql execute commit forall
merge pipe purge
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
I would appreciate any suggestions.
Thank you.Your question has NOTHING to do with sql developer.
Mark this question ANSWERED and repost it in the SQL and PL/SQL forum.
https://forums.oracle.com/community/developer/english/oracle_database/sql_and_pl_sql
The problem is that you CANNOT execute DDL directly in PL/SQL. You need to use dynamic SQL to execute DDL within PL/SQL.
EXECUTE IMMEDIATE 'ALTER TABLE . . .';
If you need more help use the correct forum as shown above. -
SQL Developer 3.0 error: The parameter is incorrect
I am running a virtualized the SQL Developer 3.0 on windows XP. Today I noticed that there was an error when I created a connection profile.
Source: oracle.dbtools.raptor.navigator.folders.DatabasesFilter
Message: The parameter is incorrect
Despite of the error, I was able to connect to the target database and had no problem with any database operations. The newly added connections were not saved upon exit. Any idea?In another post on a different subject, Gravenstein posted the following:
<quote>There aren't very many files that RoboSource Control excludes. Let's see, a quick tally of my RH6 webhelp project shows the following to be excluded:
* projectname.cpd
* projectname.pss
* projectname.hhp
* projectname.trl
* ehlpdhtm.js
That's not very many, but the consequences of adding them to RSC are severe--things get very messed up, very fast. That's why I always let RH control the upload into RSC. Not an option if you're not using RSC, I realize.
</quote>
I don't work with source control but I would imagine that list applies to other source control programs and to RH8.
See www.grainge.org for RoboHelp and Authoring tips -
Constraints are missing when using unload with SQL Developer 3.0.03 .
The following message appears in the output file and no constraints are included.
Unable to render CONSTRAINT DDL for object *** with DBMS_METADATA attempting internal generator.First of all - there is no SQL Tab available (unlike earlier versions of SQL Developer)
Here are the results of the requested selects:
1 - select * from all_objects where object_name = 'LOC_CONTACTS' and owner ='PRO';
PRO LOC_CONTACTS 31282 31282 TABLE 03-MAR-11 03-MAR-11 2011-03-03:17:31:39 VALID N Y N
2 - select * from all_constraints where table_name = 'LOC_CONTACTS' and owner = 'PRO';
(Same result as select * from all_constraints where table_name = 'LOC_CONTACTS' )
PRO SYS_C003305 C LOC_CONTACTS "LOC_NUM" IS NOT NULL ENABLED NOT DEFERRABLE IMMEDIATE VALIDATED GENERATED NAME 03-MAR-11
PRO SYS_C003306 C LOC_CONTACTS "LITEM_NUM" IS NOT NULL ENABLED NOT DEFERRABLE IMMEDIATE VALIDATED GENERATED NAME 03-MAR-11
PRO SYS_C003307 C LOC_CONTACTS "TITLE" IS NOT NULL ENABLED NOT DEFERRABLE IMMEDIATE VALIDATED GENERATED NAME 03-MAR-11
PRO SYS_C003308 C LOC_CONTACTS "FIRST_NAME" IS NOT NULL ENABLED NOT DEFERRABLE IMMEDIATE VALIDATED GENERATED NAME 03-MAR-11
PRO SYS_C003309 C LOC_CONTACTS "SURNAME" IS NOT NULL ENABLED NOT DEFERRABLE IMMEDIATE VALIDATED GENERATED NAME 03-MAR-11
PRO SYS_C003310 C LOC_CONTACTS "POSITION" IS NOT NULL ENABLED NOT DEFERRABLE IMMEDIATE VALIDATED GENERATED NAME 03-MAR-11
PRO SYS_C003311 C LOC_CONTACTS "USER_NAME" IS NOT NULL ENABLED NOT DEFERRABLE IMMEDIATE VALIDATED GENERATED NAME 03-MAR-11
PRO SYS_C003312 C LOC_CONTACTS "LANGUAGE" IS NOT NULL ENABLED NOT DEFERRABLE IMMEDIATE VALIDATED GENERATED NAME 03-MAR-11
PRO SYS_C003313 C LOC_CONTACTS "ACTIVE" IS NOT NULL ENABLED NOT DEFERRABLE IMMEDIATE VALIDATED GENERATED NAME 03-MAR-11
PRO SYS_C003314 C LOC_CONTACTS "POST_TO_SUN" IS NOT NULL ENABLED NOT DEFERRABLE IMMEDIATE VALIDATED GENERATED NAME 03-MAR-11
Edited by: user470293 on 22-Mar-2011 02:04
Edited by: user470293 on 22-Mar-2011 02:04 -
Oracle SQL Developer and Errors (Line Number Incorrect)
First, I wanted to state that Oracle SQL Developer 2 is a standout job.
I wanted to report, though, that when Oracle SQL Developer 2 can't compile a block of code or a simple SQL statement has invalid syntax, it does not have an option to accurately go to the line of code in question. GOING TO the erroneous line of code doesn't need to be a feature, but often times the line no. REPORTED by Oracle SQL Developer is incorrect by 50+ lines.
Is this something I could fix on my end? I have five other developers griping about this.
Thank you!I don't know if this is the situation you are talking about, but line numbers for errors in SQL in a SQL Worksheet are not line numbers within the statement but rather line numbers in the worksheet. For example, with the following SQL in the worksheet:
select * from dual;
select * from dual;
select * from dual;
select from dual;Running the "select from dual;" statement (as either statement based on cursor position, selected statement or as script), the error is reported on Line 4, Column 7. As I show line numbers (Tools | Preferences | Code Editor | Line Gutter | Show Line Numbers), this makes sense. Without line numbers showing or having the option to go to the error and with more realistic examples with SQL statements scrolling off the page, I can see that the line number in the errors wouldn't be helpful.
I think -K- is talking about the PL/SQL code editors not reporting the correct line number based on the error line not counting the "create or replace" line at the start of a package (and more for triggers).
theFurryOne -
SQL Developer 3.0 EA2 quick feedback (outdated there is an EA3 now)
Ok, this post is outdated. Once I've tried EA3 I'll give my feedback again, hopefully not just before EA4 or the final release is released.
Since I don't see another way to give feedback about the new SQL Developer EA release, here a brief summary of my findings so far.
1. The "new and improved" SQL History is very very very slow
2. Importing my 5Mb sql history during the migration takes > 1 day, I've aborted this operation. This might be a "show stopper" for some people once the 3.0 version is released.
3. I'm missing a "keep alive" option for connections, to prevent firewalls from closing the connection while idling (true, this won't prevent firewalls from doing so when you are executing a long running query, but you should not run those from sql developer ;)
3.a. an unexpectedly closed connection shouldn't hang up the entire sql developer instance, not really needed if 3 is fixed
4. I love the schema browser, but would love if you could "open and close" the object in the same way as you can in the connection browser
4.a. It would be nice if you could default to a certain schema in the schema browser for a given connection. Perhaps a bit like what's possible with the following plugin: http://www.javaforge.com/project/schemasel
5. I love the new unload data feature, but would be nice if it still had the option to unload to clipboard
5.a. XLS export of big number columns looses precision, for example a number(38) column with all digits used.
And did I mention that the SQL History is very very very slow? This is what prevents me of using the 3.0 SQL Developer, even though I really love the schema browser, which is a great enhancement.
Edited by: user9361780 on Jan 18, 2011 7:00 AM
Edited by: Wessel van Norel on Jan 19, 2011 2:16 AM823006 wrote:
5.a. XLS export of big number columns looses precision, for example a number(38) column with all digits used.
I believe excel only holds 15 digits of precision.
Edited by: 823006 on Jan 18, 2011 8:14 AMThen it would be nice if you can define the "excel type" of each column. So you can make this number a "string" in the XLS.
Edited by: user9361780 on Jan 18, 2011 9:12 AM -
SQL Developer - Data Modeler - Trigger for FK arc constraints
In the preferences there is an option "Data Modeler > DDL > Create Triggers for FK arc constraints". I think Oracle recomments to use constraints instead of triggers where it is possible. Can anyone from the Development team tell me why here is just the option to create triggers and not also the option to create table level constraints for FK arc constraints? If it is possible I'd like to have this option. My suggetion is to use the following check constraint construction for creation: nvl2(FK_IDx,1,0)+nvl2(FK_IDy,1,0)+...+nvl2(FK_IDz,1,0)=1 or with not only single FK columns: nvl2(FK_IDx1,1,0)+nvl2(FK_IDx2,1,0)+nvl2(FK_IDy,2,0)+...+nvl2(FK_IDz,2,0)=2. Please tell me if that would be possible (and maybe available in next Version) or why it is better to user triggers instead.
Thanks
/cThe Data Modeler forum is at:
SQL Developer Data Modeler -
SQL Developer 2.1.0.63.73 not displaying constraint violation on commit
I've found an odd case where SQL Developer (2.1.0.63.73) is not displaying an error message on a constraint violation.
CREATE TABLE tmp1 ( id NUMBER, val NUMBER );
CREATE MATERIALIZED VIEW tmp2 REFRESH ON COMMIT AS
SELECT id, SUM(val) AS total FROM tmp1 GROUP BY id;
ALTER TABLE tmp2 ADD CONSTRAINT ck_tmp1 CHECK (total <= 100);
INSERT INTO tmp1 (id, val) VALUES (1, 75);
INSERT INTO tmp1 (id, val) VALUES (1, 25);
INSERT INTO tmp1 (id, val) VALUES (1, 10);
commit;
In SQL Developer I get:
CREATE TABLE succeeded.
CREATE MATERIALIZED succeeded.
ALTER TABLE tmp2 succeeded.
1 rows inserted
1 rows inserted
1 rows inserted
commited
Doing the inserts in SQLPlus, however, gives me the expected output:
SQL> INSERT INTO tmp1 (id, val) VALUES (1, 75);
1 row created.
SQL> INSERT INTO tmp1 (id, val) VALUES (1, 25);
1 row created.
SQL> INSERT INTO tmp1 (id, val) VALUES (1, 10);
1 row created.
SQL> commit;
commit
ERROR at line 1:
ORA-12008: error in materialized view refresh path
ORA-02290: check constraint (PROJECT.CK_TMP1) violated
Is this a bug in SQL Developer?
Edited by: eaolson on Jan 20, 2010 2:50 PMSimilar symptom with SQL Developer 2.1.0.63.73 and now 2.1.1.64. I know how absurd it sounds, but it's definitely happening and I don't know what to do... This must be a bug in SQL Developer!
Script:*
select id, author_id_oid from project where prj_nr = 'xy' ;
delete from project where prj_nr = '0908001' ;
select id, author_id_oid from project where prj_nr = 'xy' ;
commit;
select id, author_id_oid from project where prj_nr = 'xy' ;
SQL Developer output:*
ID AUTHOR_ID_OID 735 50
1 rows deleted
ID AUTHOR_ID_OID
commited
ID AUTHOR_ID_OID
735 50>
TOAD output:*
>
ID AUTHOR_ID_OID
735 50
1 row selected.
1 row deleted.
no rows selected.
commit
Error at line 7
ORA-02091: transaction rolled back
ORA-02292: integrity constraint (RD.PROJECTEDSAV_FK1) violated - child record found
ID AUTHOR_ID_OID
735 50
1 row selected.>
SQuirreL SQL:*
ID AUTHOR_ID_OID735 50
Query 1 of 1 elapsed time (seconds) - Total: 0.08, SQL query: 0.07, Building output: 0.01
1 Row(s) Deleted
Query 1 of 1 elapsed time (seconds) - Total: 0.06, SQL query: 0.06, Building output: 0
ID AUTHOR_ID_OID
Query 1 of 1 elapsed time (seconds) - Total: 0.09, SQL query: 0.06, Building output: 0.03
Error: ORA-02091: transaction rolled back
ORA-02292: integrity constraint (RD.PROJECTEDSAV_FK1) violated - child record found
SQLState: 40000
ErrorCode: 2091
Position: 6
ID AUTHOR_ID_OID
735 50
Query 1 of 1 elapsed time (seconds) - Total: 0.13, SQL query: 0.06, Building output: 0.07>
Thanks in advance for any suggestion!
Edited by: Victor Ott on Mar 20, 2010 2:33 AM -
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?
rasberryActually 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. -
Help: SQL Developer Feedback Forum?
I can't seem to find the appropriate place to post this -- but I recently downloaded SQL Developer v1.5 and it cannot save database connections. Error log reads as "DatabaseConnections has no JNDI context so cannot list connections"
SQL Developer
Greetings...
Sim -
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. -
SQL Developer Problems and Feature Requests
Im in the process of comparing TOAD to SQL Developer and noticed the following bugs/features in SQL Developer:
1. An error message is correctly displayed when a database password has expired, but there isnt a way to go back into the database and change the password for that account. Can this critical feature be added?
2. There is no option to connect as sysdba or sysoper.
3. In the New / Select Database Connection window, I get the following error when double clicking on an existing connection defined using a TNS Network Alias: Status: Failure no ocijdbc10 in java.library.path. Any ideas? Connection was initially defined using the Network Alias button. I can connect under the Connections window, but not in the New / Select Database Connection window. Any ideas?
4. When displaying data in a table, the filter is not user friendly. You need to enter column names and the correct SQL syntax. It also does not allow you to cut and paste in column names. It would be very helpful/useful if it was more user friendly (GUI based) such as how Sorting is done and/or how it is done in TOAD.
5. When viewing referential constraints on a child table, it shows you information on the parent, but not if the parent is a child to something else. If you were a parent, it would be nice to see all child and their childrens children. TOAD does a nice job showing parent and child tables via a tree structure.
6. Comparing metadata between schemas would also be a very nice feature.
Im not sure if this is the place to post this but thought I would start here. Any feedback would be appreciated.
Thanks,
Ken1: You can always right click and have it open an sql*plus window and that will prompt for the new password. But I do agree that support for this should be built in.
2: This is a developer tool.. Use OEM for the dba stuff. I think that the worst thing that could happen to SQL Dev is to try to become everything for everyone like TOAD tries to.
3: Search the forum. Other users ran into this and I believe there is a workaround.
4: I like the current filtering on tables. So much simpler than most tools. I do agree that maybe there should be an advanced button with a filter builder and agree that column names should be copyable but would cringe if the free-form field disappeared. How many other tools can you write an inline query into the table viewer? Great feature IMHO
Eric -
SQL Developer 3.x Disconnection Problem
We are running SQL Developer 3.1 on Windows 7 64 and connecting to a 11.2.0.3 database.
The user's can connect fine, then they can click through and see their tables. Once they click on the tables to see the columns or data, we immediately get disconnected.
We have 1 user still using SQL Developer 2.x and seems to have no problems. We were using 3.0 and couldn't get past connecting. We would click to see a list of the user's tables and would get disconnected then. Now by moving to 3.1 we at least can listing of the views, tables, etc but once we try to click deeper, we get the disconnect.
Has this happened to anyone else?Hi Chris,
Thanks for the valuable feedback. You said...
What ultimately fixed it for us was switching the DB to DEDICATED from SHARED.A close read of the full thread I referenced above (both in John's comments and the comments of others) does point to the use of shared connections as a risk factor in triggering this low-level TCP bug. Actually even if the DB is configured for shared connections, a user relying on the SQL Developer connection type=TNS (as opposed to, say, Basic), could override the shared connection usage by specifying SERVER=DEDICATED in his tnsnames.ora file.
Some other comments...
1. Out of Band break support in JDBC began with the drivers shipped with Oracle 11g (ojdbc5.jar for 11.1.0.6, ojdbc6.jar for 11.2.0.2).
2. SQL Developer 2.1 ships with ojdbc5.jar, whereas the 3.x releases ship with ojdbc6.jar. These jars are used if no Oracle client is present.
3. If the Oracle client's ORACLE_HOME jdbc\lib contains both ojdbc5 and ojdbc6, a 3.x install may incorrectly use ojdbc5.
4. Out of Band break failures are more common on Windows platforms.
5. Out of Band break failures are more common, per the forum posts and bugs I have reviewed, when using ojdbc6.
Presumably there are timing issues when the ratio of connections to shared server processes is too high. If use of DEDICATED is not feasible, possibly lowering that ratio may help.
Regards,
Gary -
Sql Developer Launcher Not Working In Linux
Hello,
System Details:
Fedora 19
Sql Developer Version: Version 4.0.0.12
Java Version: OpenJDK 1.7.0-40
I can launch Sql Developer from the command line successfully.
/opt/sqldeveloper/sqldeveloper.sh
But when I attempt to use the launcher icon, I receive a SIGSEGV error. Here is the top of the hs_error.log file.
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x000000317a062e00, pid=7680, tid=140636646749952
# JRE version: OpenJDK Runtime Environment (7.0_40-b60) (build 1.7.0_40-mockbuild_2013_10_02_16_56-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.0-b56 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x000000317a062e00
The ~/.sqldeveloper/jdk file contains the following:
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.2.7.fc19.x86_64
And my /usr/share/applications/sqldeveloper.desktop file contains the following:
[Desktop Entry]
Encoding=UTF-8
Name=SQL Developer
Comment=Oracle SQL Developer
Icon=/opt/sqldeveloper/icon.png
Exec=/opt/sqldeveloper/sqldeveloper.sh
Terminal=true
Type=Application
Categories=GNOME;Oracle;
I'm just switching from Ubuntu to Fedora so this has not worked in the past.
Thank you for any help,
AnnThe solution in https://forums.oracle.com/thread/2594033 worked. I added the 2nd line below to /opt/sqldeveloper/sqldeveloper.sh.
#!/bin/bash
unset -v GNOME_DESKTOP_SESSION_ID
cd "`dirname $0`"/sqldeveloper/bin && bash sqldeveloper $*
Previously, I incorrectly updated ~/.bashrc to unset GNOME_DESKTOP_SESSION_ID. That's why running Sql Developer from the command line worked, but not from the launcher.
Thanks su.
Maybe you are looking for
-
Insert Blank row After every Row in alv report
How to insert blank row After every row in Alv report
-
IMac 2.8 GHz Intel core i5 / Mac OSx version 10.7.2 My apple bluetooth keyboard, after one year of use, is no longer being recognized by the bluetooth assistant nor the keyboard setup assistant. The keyboard battery indicator light illuminates as doe
-
Hi, For Vendor Advance request Special GL is maintained in OBVU and GL in FBKP for Vendor Recon and Special GL. Still when I Create Vendor Request by T.code F-47. System is not allowing Please send your valuable reply.
-
Why the hell can't i make the call?
i bought a monthly plan with 400 mins to call to hk. after i have finished my minutes, i bought another monthly plan, but i couldn't make the call !!! it keeps telling me not enough credits!!! what the hell is wrong with this ????
-
After installing iTunes 7.6, whenever I open it, Windows Installer launches
I upgraded to iTunes 7.6 yesterday. Whenever I open the program now, Windows Installer launches. No idea what's causing this. I'm tried reinstalling, rebooting, but nothing helps. Anybody know how to fix this?