-params
argument. In order to remember name and password for future upgrades, … feature enable -n=useRememberedArgumentsForUpgrade
might be executed first: choco feature enable -n=useRememberedArgumentsForUpgrades choco install -y oracle-sql-developer --params "/Username:whoAmI /Password:andWhatIsMyPassword"
C:\ProgramData\chocolatey\bin\sqldeveloper.exe
. Not sure if this is expected? zipfile=$(ls -1 ~/Downloads/sqldeveloper*no-jre.zip | tail -1) if [[ ! -f $zipfile ]]; then echo no zip file found exit 1 fi destdir=~/bin if [[ ! -d $destdir ]]; then echo creating directory $destdir mkdir -p $destdir fi echo unzipping $zipfile to $destdir unzip -d $destdir $zipfile
$ ~/bin/sqldeveloper/sqldeveloper.sh &
Found /usr/lib/jvm/java-11-openjdk-amd64 to run this product, and the major version of this Java is 11. The mandatory minimum major version to run this product is 17. This product cannot run with this Java.
$ java --version | head -1 openjdk 11.0.25 2024-10-15
$ sudo apt install openjdk-17-jdk $ java --version | head -1 openjdk 17.0.13 2024-10-15
--verbose | Show JNI options and verbose progress of launcher (this option deprecates -verbose |
-client | Use Client as the Java VM |
-server | Use Hotspot Server as the Java VM |
--<directive>=<value> | Override a directive from the configuration file |
-J<flag> | Pass <flag> directory to the runtime system |
-conf[igure] <file.conf> | Use the specified configuration file |
-multi | Start a new instance |
-migrate | Migrate user settings from a previous installation |
ctrl+space
. "%appdata%\SQL Developer\CodeTemplate.xml"
. ctrl+enter | executes the (one) statement under or «behind» the cursor. |
F5 | on the other hand runs all statements in the worksheet. |
ctrl+space | expands column names |
shift+alt+F8 | enters splitter moving mode. When in this mode, home shows the entire SQL-panel and hides the query output, end does the opposite, and the up/down arrows move the splitter between these panes. |
alt+pageDown / alt+pageUp | cycles through tabs |
ctrl+up/down arrow | replaces the content of the SQL Worksheet with SQL statements from the SQL history. |
ctrl+shift+n | creates an unshared (that is: dedicated) worksheet. |
ctrl+shift+enter | is supposed to show only the editor (but does not work on my installation) |
ctrl+F7 | Format text of SQL statement. See also Tools -> Preferences -> Code Editor -> Format -> Advanced Format |
SystemV.W.X.Y.Z/o.ide.x.x.x.x.x.x/settings.xml
. dbms_output
by default. It can be turned on as follows: dbms_output
by default by putting the following line in the SQL Developer startup script: set serveroutput on
ctrl
+ shift
+ n
to open an unshared worksheet. (null)
in the query result window for null
values: ctrl+arrowKey
or shift+backspace
jumps over or deletes an entire word (as opposed to stopping at an underscore). java -jar ords.war user adminlistener "Listener Administrator"
with params as ( select 0 min_ , 100 max_ , 33 low_ , 67 high_ from dual ), val as ( select 80 ue from dual union all select 11 ue from dual union all select 42 ud from dual union all select 98 ue from dual union all select 27 ue from dual ) select 'SQLDEV:GAUGE:' || p.min_ || ':' || p.max_ || ':' || p.low_ || ':' || p.high_ || ':' || val.ue "Column name for a wide output." from params p cross join val val;
create table tq84_sqldev_gauge ( vc varchar2(10), num number ); insert into tq84_sqldev_gauge values('ABC', 66); insert into tq84_sqldev_gauge values('DEF', 42); insert into tq84_sqldev_gauge values('GHI', 17); insert into tq84_sqldev_gauge values('JKL', 100); insert into tq84_sqldev_gauge values('MNO', 24); select vc, 'SQLDEV:GAUGE:0:101:33:67:' || num from tq84_sqldev_gauge order by vc;
%APPDATA%\SQL Developer\systemV.W.X.Y.Z\o.sqldeveloper
and that preferences, such as the NLS date format are stored in the file product-preferences.xml
. select
statement to be exported in various text based formats. /*insert*/
creates insert
statements: select /*insert*/ col_1, col_2, col_3 from xyz;
F5
. select col_1, col_2, col_3 /*insert*/ from xyz;
/*ansiconsole*/ | SQLcl only? |
/*csv*/ | Comma-separated values (same as /*delimited*/ ) |
/*fixed*/ | Fixed-width fields with trailing blanks (When testing it, SQL Developer chose an arbitrary width, thus the result was not fixed-width) |
/*html*/ | Export as HTML (<table><tr><td>…</td>…</table> ) |
/*insert*/ | Insert statements |
/*json*/ | JSON |
/*loader*/ | Pipe (not column) separated. Apparently suitable for SQL*Loader |
/*text*/ | |
/*xml*/ | XML (similar to HTML) |
begin dbms_lock.sleep(10); end; / host powershell -noProfile -c $sapi = new-object -com sapi.spVoice; $null = $sapi.speak('The script has finished')
system_cache
directory needs to be removed. remove-SQLDeveloperSystemCache
Powershell cmdLet. info+ TABLE_NAME
include "std.arbori" prelude: runOnce -> { print("Hello"); var ConnectionResolver = Java.type('oracle.dbtools.db.ConnectionResolver'); var connectionList = ConnectionResolver.getConnectionNames(); for (var i in connectionList ) { print(connectionList[i]); } // Connection conn = (Connection) DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ORA19", "rene", "rene"); var conn = ConnectionResolver.getConnection('IdeConnections%23Ora19'); if (conn == null) { print("conn == null"); } else { var stmt = conn.createStatement(); var rs = stmt.executeQuery("select object_name, created from user_objects"); while( rs.next() ) { print(rs.getString(1) + ": " + rs.getString(2)); } } }
<inst-dir>\sqldeveloper\bin\sqldeveloper64.exe
, not …sqldeveloper64W.exe
or …\sqldeveloper.exe
.