Skip to main content

Extending SQL Developer with Designer data

Using the Preferences of SQL Developer you can register a User Defined Extension (UDE). This UDE is just a small XML file containing a command or query. If your Oracle Designer Repository is queriable by the user you use for your connection, you can show the Table Definitions in Designer alongside the definitions in the Oracle Database. You just have to create an XML file containing this code:

Register the file as an 'EDITOR' type in SQL Developer using Tools / Preferences / Database / User Defined Extensions. Restart SQLDev and the result is something like:

Is it usefull? Not really with this query, but you can extend the query with a lot of other data, for example to list the modules a table is used in or the column definitions of that table!

Comments

Stew said…
Roel,

Since you're a SQL Developer hotshot, do you have any idea what the queries are that it uses to display the Apex data? Is it simply querying against the appropriate Apex Views?
John Flack said…
I saw Sue Harper demonstrate this feature of SQL Developer at ODTUG and I was pretty excited about it. I too want to add some selects from the Designer Repository. But I'd like to add a whole tree of Designer stuff to the navigator. Looking over the documentation, it isn't really clear to me how to do it. Your example and others like it give me some ideas about how to do it, but without good docs it is hard to make the leap from the example to what I want.