Showing posts with label SQLDeveloper. Show all posts
Showing posts with label SQLDeveloper. Show all posts

Thursday, November 20, 2025

SQLDeveloper 23.1.1 fails on startup

Getting a long trace of errors like the following on launching SQLDeveloper?

...
oracle.ide.indexing -     org.netbeans.InvalidException: Netigso:    
C:\sqldeveloper\ide\extensions\oracle.ide.indexing.jar: Not found     bundle:oracle.ide.indexing
oracle.external.woodstox -     org.netbeans.InvalidException: Netigso:     
C:\sqldeveloper\external\oracle.external.woodstox.jar: Not found     bundle:oracle.external.woodstox
oracle.external.osdt - org.netbeans.InvalidException: Netigso: 
C:\sqldeveloper\external\oracle.external.osdt.jar: Not found bundle:oracle.external.osdt
oracle.javamodel_rt - org.netbeans.InvalidException: Netigso: 
C:\sqldeveloper\external\oracle.javamodel-rt.jar: Not found bundle:oracle.javamodel_rt
oracle.ide.macros - org.netbeans.InvalidException: Netigso: 
C:\sqldeveloper\jdev\extensions\oracle.ide.macros.jar: Not found bundle:oracle.ide.macros
oracle.javatools_jdk - org.netbeans.InvalidException: Netigso: 
C:\sqldeveloper\jdev\lib\jdkver.jar: Not found bundle:oracle.javatools_jdk
... 
(truncated for clarity)

On Windows, if the problem affects version 23.1.1, the solution is to delete the following hidden directory:

C:\Users\<username>\AppData\Roaming\sqldeveloper\23.1.1

Then restart SQLDeveloper.

Usually you need to enable a specific option in Windows File Explorer to visualize hidden directories and files or you enter manually AppData in the address bar when you are inside the directory with your username.

My best guess is that the same workaround applies for earlier or later versions, but I can't verify my assumption. 

Hope it helps

Monday, August 07, 2017

SQLDeveloper 4.2 problem with some bind variables values


I just found out that SQLDeveloper version 4.2.0.17.089 (tested on windows 10) might execute SQL or PL/SQL code containing bind variables with wrong argument values when such values are strings (VARCHAR2) containing just digits with leading zeros (i.e. international phone numbers, VAT codes, UPC codes...) entered at the bind variables prompt.

This seems to happen only with PL/SQL code or certain SQL containing statements like INSERT, not pure SELECTs.

The practical consequences of this problem range from statements ending with unexpected errors or executing a block of PL/SQL with wrong parameter values which could lead to a variety of anomalies like inserting, deleting or updating the wrong rows.

You can easily see the problem by yourself executing the following sample code:

create or replace function function_returning_collection(
   p_arg in varchar2)
   return ORA_MINING_VARCHAR2_NT
as
   l_str_tab       ORA_MINING_VARCHAR2_NT;
begin

   select str
    bulk collect into l_str_tab
    from(
      select '01234567' as str
        from dual
       union all
      select '31234567' as str
        from dual
      union all
      select '01234567' as str
        from dual)
    where str = p_arg;
   
   return l_str_tab; 
end;


create table test_bind (str varchar2(255));

insert into test_bind
select * from table(function_returning_collection(:var));

Enter 01234567 at SQLDeveloper's prompt and it will say "0 rows inserted", then execute just the SELECT portion of the query and it will return two rows instead.
Embedding the number within tick marks at the prompt won't fix the problem, SQLDeveloper is clearly taking the input value verbatim as a string.
I believe the only clean way to fix this in a future release is to allow the user to specify the data type being entered at the prompt, because looking at SQLDeveloper's statement log it's clear that SQLDeveloper is trimming the leading zero and then, owing to the implicit conversion, adding a leading blank, which transforms the initial "01234567" into a "_1234567" ( where "_" represents the blank character).

Note also that SQLDeveloper's online help makes no mistery of this "feature":

Execute Statement executes the statement at the mouse pointer in the Enter SQL Statement box. The SQL statements can include bind variables and substitution variables of type VARCHAR2 (although in most cases, VARCHAR2 is automatically converted internally to NUMBER if necessary);

Tuesday, February 09, 2016

ORA-00600: internal error code when executing trigger

Always check out the original article at http://www.oraclequirks.com for latest comments, fixes and updates.

Here is another example of ORA-00600 where probably it makes no sense at all to contact Oracle Support because you can fix the problem by yourself.
 
ORA-00600: internal error code, arguments: 
[17273], [0x07A89CBA8], [0], [1], [], [], [], [], [], [], [], []
 ORA-04088: error during execution of trigger Y
 
I found out that SQLDeveloper version 4.1.1 (and later possibly, I couldn't verify), sometimes generates triggers' DDLs with one trailing (invalid) character that causes the Oracle session to crash in Oracle XE 11.

The funniest part in the story is in that such character is not to be seen anywhere when you copy and paste the DDL, so it goes through completely inadvertently and the code compiles without a hitch.
As soon as the trigger fires, the session crashes.
Luckily, when you open the trigger source code in SQLDeveloper, you'll notice a strange character in the last position.
Just remove it and recompile the trigger.

I ignore if the bug is in SQLDeveloper or at some lower level, if it affects only Oracle XE 11 or also different versions.

See message translations for ORA-00600 and search additional resources.

Monday, September 22, 2014

SQLDeveloper 4.0.3 is available for download

One more iteration in SQLDeveloper's development cycle, you can now install version 4.0.3
I am curious to see what happens with my shared SQL History on Dropbox after the update.
(it turned out that the shared SQL History folder is still working after the upgrade, cool!)

Friday, August 22, 2014

Sharing SQLDeveloper SQL history across several machines with Dropbox

Always check out the original article at http://www.oraclequirks.com for latest comments, fixes and updates.

A quick tip for keeping a single shared SQL history repository among different installations of SQLDeveloper, for the same user, on distinct computers synchronized with Dropbox.
 
This seems to be working just fine on Mac OS X and SQLDeveloper 4.0.2 however it's a totally unsupported hack, which means ** use at your own risk **.

I ignore what will happen when I'll upgrade to the next release of SQLDeveloper but I'll find out sooner or later.
(Updated September 24: No problems whatsoever after upgrading to 4.0.3, the shared SQL History folder is still there and working.)
From what I've seen, SQL Developer makes a copy of the history folder when it upgrades an existing installation, may be it crashes or may be I'll have to repeat the whole procedure, I don't know, for the moment I really appreciate the fact that I can pick up a work on a different location exactly from where I left off without having to worry about making copies of certain queries manually.

As your SQL history is going to be bigger than before, it makes sense to increase the maximum number of statements that you want to keep, to do so go to Preferences/Database/Utilities/Worksheet pane and increase the SQL history limit and remember to do so on all the machines, setting the same value *before* proceding with the next step, otherwise the installation with the shortest history will wipe out the files added by the others!


From the shell prompt, assuming you are in your home folder and SQLDeveloper is NOT running:
cd .sqldeveloper
cp -R SqlHistory ~/Dropbox/.SqlHistory
mv SqlHistory SqlHistory.old
ln -sf ~/Dropbox/.SqlHistory/ SqlHistory

SqlHistory.old is your safety net, in case something goes wrong.

Then, on the second machine you may either decide to get rid of the current history and use the history shared from the first machine or you may try to merge them.

In the former case, just execute:

cd .sqldeveloper
mv SqlHistory SqlHistory.old
ln -sf ~/Dropbox/.SqlHistory/ SqlHistory

In the latter case, in addition to the three steps above, execute also:

cp -R SqlHistory.old SqlHistory.tmp 
mv -n SqlHistory.tmp/* ~/Dropbox/.SqlHistory

Any duplicate filename (albeit with different SQL content) will remain in the SqlHistory.tmp folder, so you have a chance to decide what to do with it. If the SqlHistory.tmp is empty at the end of the operation, then get rid of it.

SQLDeveloper keeps the log as a bunch of XML files whose names are generated by prepending a pseudo random number (I ignore the details) to the fixed string "history.xml".
As I don't know if this number can be unique across different computers in virtue of some clever algorithm, I guess that occasionally there could be a conflict with an existing one, but when I merged the histories of my SQL Developer installations, there were no conflicts at all (may be the magic number is based on the timestamp, which explains why there were no conflicts as I haven't been given the gift of ubiquity...)

If there is a third machine, repeat the same steps as for the second one and so on.


Probably it could make sense to do the same with the library of connections, but this is an exercise I'll keep for another occasion.

I guess the same procedure should work also on most Linux distros as I don't see any difference under the hood.

Tuesday, January 24, 2012

Let's get it done: SQLDeveloper Database Diff ignore whitespace option

Always check out the original article at http://www.oraclequirks.com for latest comments, fixes and updates.

Recently I've spent more time than necessary in comparing identical objects in two oracle schemas, because SQLDeveloper's "Database Diff" tool doesn't offer the option to ignore whitespace.
For some reason there were objects with an extra trailing newline character beyond the end of the code and they showed up in the list of differences, even if they were perfectly identical.

If you have a handful of objects to compare, then I agree this is not a big deal, but if you have hundreds, then you do have a problem.

In view of this fact, I am asking for your cooperation to get some extra votes for this feature on the SQL Developer Exchange site, all you need to do is to sign in using your OTN account and vote for the feature (https://apex.oracle.com/pls/apex/f?p=43135:7:0::NO:RP,7:P7_ID:19501), as well as adding any relevant comment if you deem necessary, may be we can get to the bottom of it quickly if enough people support the request, considering that this request lies there since nearly 3 years.

As of SQL Developer 3.1 the database diff tool does no longer require separate licensing, so it's worth getting it to work properly.

Personally I'd like to have a ternary option:
  1. do not ignore whitespace and comments
  2. ignore whitespace
  3. ignore whitespace and comments
 And everybody will be satisfied.

Wednesday, November 16, 2011

SQLDeveloper 3.1EA2 is out

In case you missed it, the SQL Developer 3.1 Early Adopter Release 2 has been made available for download last night.

The good news for me is in that it seems they have fixed a very annoying problem that caused SQL Developer to hang when you restarted the application after closing it on Mac OS X.

Thursday, May 19, 2011

ORA-31608 when creating DDL statement in SQL Developer

Always check out the original article at http://www.oraclequirks.com for latest comments, fixes and updates.

If you are getting ORA-31608 when attemping to display the DDL for a table in SQL Developer 3.0, 2.1 and probably earlier, you should make sure that the table is not a materialized view.

ORA-31608: specified object of type INDEX not found
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_METADATA", line 2808
ORA-06512: at "SYS.DBMS_METADATA", line 4394
ORA-06512: at line 1

In SQL Developer materialized view tables show up in the table collection as ordinary tables, so you might be tempted to export the DDL or display the SQL code from there, however the request will fail with the error shown above reported in SQL Developer's error log.


The operation will succeed if you move to the materialized view node and you open the object from there.
This is why it's always a good practice to use a naming standard for tables that allows you to quickly distinguish between special tables and ordinary ones (I usually prepend the MV prefix to the object name), indeed it helped me to figure out very fast what was wrong, imagine if I had to understand it from the error message!

Note also that by default SQL Developer includes materialized view in the list, but you can filter them out by modifying the default filter as I did shortly after (right click on the Tables node and then on "apply filter" from the pop-up menu).



See message translations for ORA-31608 and search additional resources.

Wednesday, October 13, 2010

SQLDeveloper 3.0EA1 is here

Always check out the original article at http://www.oraclequirks.com for latest comments, fixes and updates.

Shortly after the release of SQLDeveloper Data Modeler, the awaited SQLDeveloper 3.0 early adopter version has been released today.

I'm very pleased to see that SQLDeveloper now includes a full fledged node for DBMS_SCHEDULER, something I've been longing for ever since and it really looks very cool!
I strongly recommend to read Kris' blog posting as he provided some nifty demo videos of the new features.

Thursday, March 25, 2010

In case SQL Developer won't start on Windows x64

Always check out the original article at http://www.oraclequirks.com for latest comments, fixes and updates.

If you install Oracle 11.1.0.7 on a Windows x64 platform, a prehistoric version of SQL Developer is also installed in ORACLE_HOME\sqldeveloper, but, according to the release notes, it's unsupported or, better said, there are a couple of bugs that prevent you from running it off-the-shelves.
Being SQL Developer's version so old, it's probably a better idea to replace it with a newer one anyway.

To make a long story short, i downloaded the latest release of SQLDeveloper (2.1.1) and i replaced the contents of the original folder under the ORACLE_HOME with the files extracted from the archive.
Thereafter i also downloaded the JDK from Sun, err... Oracle, whatever, the executable installer named:
jdk-6u18-windows-x64.exe and ran it.
As a last step, when launching sqldeveloper for the first time, located in
C:\oracle\product\11.1.0\db_1\sqldeveloper\sqldeveloper.exe
i entered the path to java.exe of the newly installed JDK, located in
C:\Program Files\Java\jdk1.6.0_18\bin\java.exe
and i finally got SQL Developer working normally on this Windows x64 virtual machine.

In the end, considering the size of the downloads and Internet Explorer "friendly" security settings that suggested me to download Firefox not 10 minutes later, it took me more or less two hours to get SQL developer up and running.

Wednesday, July 15, 2009

SQLDeveloper 1.5.5 is available

Always check out the original article at http://www.oraclequirks.com for latest comments, fixes and updates.

Just a quick note to let you know that SQL Developer 1.5.5 is available for download.
You can read some details about this in Sue's latest blog posting.

The first thing i notice after installing it on one of my Macs is that now table icons are no longer differentiated between normal (heap) tables and IOT tables.
Not a big problem, but if was nice to spot the difference visually.
Who knows if this is the outcome of some object browser "speed" enhancement.

That's all for the moment, folks.

Wednesday, July 01, 2009

SQLDeveloper Data Modeler is now production

Always check out the original article at http://www.oraclequirks.com for latest comments, fixes and updates.

Just a "quickie" to let you know that as of today you can download SQLDeveloper Data Modeler tool release 2.0.0.57.0.

After installing as suggested on the official page, in case you are running the tool on Mac OS X, you might get the following java exceptions:

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
This means that your current java environment does not point to a supported JDK version, as it was in my case.
The current JDK version is pointed to by a link, as detailed below:

cd System/Library/Frameworks/JavaVM.Framework/Versions
ls -l

lrwxr-xr-x 1 root wheel 5 Jul 1 08:52 1.3 -> 1.3.1
drwxr-xr-x 3 root wheel 102 Sep 29 2007 1.3.1
lrwxr-xr-x 1 root wheel 5 Jul 1 08:52 1.4 -> 1.4.2
lrwxr-xr-x 1 root wheel 3 Jul 22 2008 1.4.1 -> 1.4
drwxr-xr-x 8 root wheel 272 Aug 28 2007 1.4.2
lrwxr-xr-x 1 root wheel 5 Jul 1 08:52 1.5 -> 1.5.0
drwxr-xr-x 8 root wheel 272 Aug 28 2007 1.5.0
lrwxr-xr-x 1 root wheel 5 Jul 1 08:52 1.6 -> 1.6.0
drwxr-xr-x 8 root wheel 272 Jul 22 2008 1.6.0
drwxr-xr-x 8 root wheel 272 Jul 1 08:52 A
lrwxr-xr-x 1 root wheel 1 Jul 1 08:52 Current -> A
lrwxr-xr-x 1 root wheel 3 Jul 1 08:52 CurrentJDK -> 1.5
Note that you can change the current JDK pointer by using the Java Preferences utility, found in the Utilities folder:


i preferred to update the jdk.conf file located in my home directory with the following text:

System/Library/Frameworks/JavaVM.Framework/Versions/1.6.0/Home

instead of changing the current JDK pointer (just in case something else stops working...), but may be this is not the optimal solution or you have a newer version, so check out which version applies to your specific case, at any rate it must be 1.6 or better. You can navigate to the folder /System/Library/Frameworks/JavaVM.framework/Versions and find out which versions are currently installed on your Mac.

Thereafter i was able to run SQLDeveloper Data Modeler by executing:

sh datamodeler.sh from the datamodeler folder.
I haven't investigated yet if i can start the modeler from withing SQLDeveloper as it was suggested some time ago.

Hope it helps

Updated July 2: According to Roel, SQLDeveloper Data Modeler requires a license for professional use.
Indeed if you carefully read the license agreement from start to end, you'll see significant differences compared to SQL Developer, one of the most significant being that one cannot use the product for internal development unless a valid license is purchased first.

See other articles about SQLDeveloper.

Thursday, March 19, 2009

ORA-00904 when clicking on edit in SQLDeveloper 1.5.4

Always check out the original article at http://www.oraclequirks.com for latest comments, fixes and updates.

If you are wondering why you are getting the following pop-up screen when attempting to edit a procedure (or a trigger, a type or anything else that can be edited in the editor panel, but not views for instance) after upgrading to the latest version of SQL Developer (1.5.4)...


ORA-00904: "ATTRIBUTE": invalid identifier
vendor code 904


... you may ask yourself if you are trying to perform this operation on a Oracle 9i database.

Please note that the annoying pop-up message doesn't prevent you from editing the source and apparently you can still compile it successfully, although every time you hit on the compile icon you'll get the exception again.
It looks like a problem with some underlying view or table that is queried by SQL Developer and is lacking a column in oracle 9i, but this is just a speculation of mine.

Initially i had a feeling that someone had told me that as of version 1.5.x Oracle 9i was no longer supported, but when i read the release notes i read that Oracle 8.1.7 was no longer supported, so i failed to find a specific statement about Oracle 9i.
I must conclude that it is still supported or i did not search hard enough in the accompanying documentation...

If i click on EDIT using SQL Developer 1.5.1 (the previous version installed on my PC) i don't get any errors of this kind.

See message translations for ORA-00904 or read more articles about SQL Developer.

yes you can!

Two great ways to help us out with a minimal effort. Click on the Google Plus +1 button above or...
We appreciate your support!

latest articles