13

I am writing a small DB utility. I would like to give the user the ability to open an instance of Oracle sqldeveloper directly from this utility. Is it possible to open Oracle sqldeveloper IDE that already connected to a specific DB?

Something like sqldeveloper USERID/PASSWORD@DATABASE

4 Answers 4

4

This is now possible with a free, open-source extension as long as you're using version 20.2 or higher of SQL Developer.

I have step-by-step instructions here

A quick GIF of it working...

enter image description here

3
  • Is there option to make a connection for sys as sysdba?
    – mpapec
    Commented Jul 26 at 12:35
  • yes sql sys/password@server:port/service as sysdba Commented Jul 26 at 16:17
  • tnx, I've managed to make it work using sys/password@server:port/service#sysdba
    – mpapec
    Commented Jul 28 at 18:12
2

/? works rather than /h. There are options to override the cofiguration file so whether you can do that or not is probably determined by the facilities offered by the config file.

2

Luckily, yes. This is now possible using Oracle's ConnectionHelper extension.

It's a bit of hacky workflow, though. Hopefully they'll figure out a way to include in SQLDeveloper itself, because if management learns about adding a 'githubusercontent' repo they might misjudge the risks.

Also, be sure you make use of a pretty recent SQLDeveloper (20.2+).

But here goes:

  1. In SQLDeveloper, add the following update source, by going to Help -> Check for Updates and hitting 'Add': https://raw.githubusercontent.com/bjeffrie/sqldev-update-center/master/update-center.xml
  2. Select 'Connection Helper' and next-next-finish the wizard (you'll need to restart SQLDeveloper).
  3. Go to Tools -> Preferences and in the left pane, click the node 'Connection Helper', then in the main pane enable 'Accept command line connections'. You don't need any of the other check boxes for what you're asking.
  4. Close SQLDeveloper and start it from CLI: sqldeveloper -myCLIconnection=user/pw@host:port/service

[This is a combination of what's documented by Oracle's thatjeffsmith on his blog and what Oracle's Brian Jeffries put in Oracle's github repo.]

0

It doesn't seem so. sqldeveloper.exe /h shows us possible launch parameters, and none of them seem to have anything in common with your demand.

1
  • 1
    When I run sqldeveloper.exe /h, it opens SQL Developer with a instance with a SQL worksheet named "h".
    – WW.
    Commented Aug 1, 2011 at 23:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.