Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

192,890

Downloads of v 20.4.1:

2,764

Last Update:

04 Mar 2021

Package Maintainer(s):

Software Author(s):

  • Oracle

Tags:

oracle sql developer ide

Oracle SQL Developer

This is not the latest version of Oracle SQL Developer available.

  • 1
  • 2
  • 3

20.4.1 | Updated: 04 Mar 2021

Downloads:

192,890

Downloads of v 20.4.1:

2,764

Maintainer(s):

Software Author(s):

  • Oracle

Oracle SQL Developer 20.4.1

This is not the latest version of Oracle SQL Developer available.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Exemption:

Automated testing is failing because the there are required package parameters that are not being provided. In this case, Oracle requires a (free) Oracle account to download the application, so that account's Username/Password must be provided.

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Oracle SQL Developer, run the following command from the command line or from PowerShell:

>

To upgrade Oracle SQL Developer, run the following command from the command line or from PowerShell:

>

To uninstall Oracle SQL Developer, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade oracle-sql-developer -y --source="'INTERNAL REPO URL'" --version="'20.4.1'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade oracle-sql-developer -y --source="'INTERNAL REPO URL'" --version="'20.4.1'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install oracle-sql-developer
  win_chocolatey:
    name: oracle-sql-developer
    version: '20.4.1'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'oracle-sql-developer' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '20.4.1'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller oracle-sql-developer
{
    Name     = "oracle-sql-developer"
    Version  = "20.4.1"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'oracle-sql-developer':
  ensure   => '20.4.1',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved by moderator TheCakeIsNaOH on 12 Mar 2021.

Description

Oracle SQL Developer is a free, integrated development environment that simplifies the development and management
of Oracle Database in both traditional and Cloud deployments. SQL Developer offers complete end-to-end development
of your PL/SQL applications, a worksheet for running queries and scripts, a DBA console for managing the database,
a reports interface, a complete data modeling solution, and a migration platform for moving your 3rd party
databases to Oracle.

#### Notes
* This version supports both 32bit and 64bit and subsequently does not have a JDK bundled with it. It has a
dependency on the jdk8 package to meet the application's JDK requirement.
* An Oracle account is required to download this package. See the "Package Parameters" section below for
details on how to provide your Oracle credentials to the installer. If you don't have an existing account, you can
create one for free here: https://profile.oracle.com/myprofile/account/create-account.jspx

#### Package Parameters
The following package parameters are required:

* /Username: - Oracle username
* /Password: - Oracle password

To pass parameters, use --params "''" (e.g. choco install packageID [other options] --params="'/ITEM:value /ITEM2:value2 /FLAG_BOOLEAN'").
To have choco remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades.


sqldeveloper\ide\bin\product.exe.ignore
 
sqldeveloper\ide\bin\product64.exe.ignore
 
sqldeveloper\sqldeveloper.exe.gui
 
sqldeveloper\sqldeveloper\bin\sdcli.exe.ignore
 
sqldeveloper\sqldeveloper\bin\sdcli64.exe.ignore
 
sqldeveloper\sqldeveloper\bin\sql.exe.ignore
 
sqldeveloper\sqldeveloper\bin\sqldeveloper.exe.ignore
 
sqldeveloper\sqldeveloper\bin\sqldeveloper64.exe.ignore
 
sqldeveloper\sqldeveloper\bin\sqldeveloper64W.exe.ignore
 
sqldeveloper\sqldeveloper\bin\sqldeveloperW.exe.ignore
 
tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';

$packageDir = $env:ChocolateyPackageFolder
$toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition

."$toolsDir/helpers.ps1"

$params = Get-PackageParameters

$version = '20.4.1'
$zipFileName = 'sqldeveloper-20.4.1.407.0006-no-jre.zip'
$url = "https://download.oracle.com/otn/java/sqldeveloper/$zipFileName"
$sha1hash = 'df90320a3a6e15df90fafb9d0c603317f3a68b84'
$loginSubmit = 'https://login.oracle.com/oam/server/sso/auth_cred_submit'
$proxy = Get-ChocolateyProxy $url

$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  unzipLocation = $packageDir
  url           = ''
  checksum      = $sha1hash
  checksumType  = 'sha1'
}

if(!$params['Username'] -or !$params['Password']) {
  throw @'
  An Oracle account is required to download SQL Developer

  * Provide your Oracle credentials as package params to the installer and
    retry the installation:

    choco install oracle-sql-developer --params "'/Username:{userName} /Password:{password}'"

  * If you do not have an Oracle account, you can register for one here (it's free):
    https://profile.oracle.com/myprofile/account/create-account.jspx

'@
}

Write-Host 'Redirecting to Oracle Login...'
$loginPage = Invoke-WebRequest -Uri $url -SessionVariable session @proxy

Write-Host 'Logging in...'

$licenseAcceptCookie = New-Object System.Net.Cookie -ArgumentList 'oraclelicense', 'accept-sqldev-cookie', '/', 'oracle.com'
$session.Cookies.Add($licenseAcceptCookie)

$loginFormFields = $loginPage.Forms['LoginForm'].Fields
$loginFormFields.ssousername = $params['Username']
$loginFormFields.password = $params['Password']

try {
  Invoke-WebRequest -Uri $loginSubmit -Method Post -WebSession $session -Body $loginFormFields -MaximumRedirection 2 @proxy
}
catch {
  $msg = $_.ErrorDetails.Message
  if($msg -inotmatch 'AuthParam') {
    throw "Oracle login unsuccessful: $_"
  }
  $packageArgs.url = [regex]::Match($msg, '.*(http.*)\.').Groups[1].Value
  $packageArgs.url = $packageArgs.url.Replace('https', 'http')
  $packageArgs.url = $packageArgs.url.Replace('http', 'https')
}

Write-Host 'Oracle login successful'
Write-Debug "Authenticated download URL: $($packageArgs.url)"

Install-ChocolateyZipPackage @packageArgs

Write-Host 'Setting JDK path in product config...'
Write-Debug "JDK Path: $(Get-JdkPath)"

$productConfDir = Join-Path "$($env:APPDATA)" "sqldeveloper/$version"
$productConfPath = Join-Path $productConfDir 'product.conf'
$templatePath = Join-Path $toolsDir 'product.conf'
$template = Get-Content -Path $templatePath -Raw
$template = $template.Replace('%JdkPath%', $(Get-JdkPath))
New-Item -ItemType Directory -Path $productConfDir -ErrorAction SilentlyContinue
try {
  $template | Out-File -FilePath $productConfPath -Encoding 'UTF8' -NoClobber
}
catch {
  Write-Warning @"
  Could not update SQL Developer product config file. It may already exist from a previous install or not be writable.
  Check the file to ensure the 'SetJavaHome' path is set correctly. If no file exists at this path, it will
  be created upon the first run of SQL Developer

  Path: $productConfPath

"@
}

Write-Host 'Creating shortcuts...'

$exePath = Join-Path $packageDir 'sqldeveloper/sqldeveloper.exe'
$desktop = [Environment]::GetFolderPath([Environment+SpecialFolder]::Desktop)
$startMenu = [Environment]::GetFolderPath([Environment+SpecialFolder]::StartMenu)
$shortcut = 'Oracle SQL Developer.lnk'
Install-ChocolateyShortcut -ShortcutFilePath $(Join-Path $desktop $shortcut) -TargetPath $exePath
Install-ChocolateyShortcut -ShortcutFilePath $(Join-Path $startMenu "Programs/$shortcut") -TargetPath $exePath
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop';

Write-Host 'Removing shortcuts...'

$desktop = [Environment]::GetFolderPath([Environment+SpecialFolder]::Desktop)
$startMenu = [Environment]::GetFolderPath([Environment+SpecialFolder]::StartMenu)
$shortcut = 'Oracle SQL Developer.lnk'

Remove-Item -Path $(Join-Path $desktop $shortcut) -Force -ErrorAction Ignore
Remove-Item -Path $(Join-Path $startMenu "Programs/$shortcut") -Force -ErrorAction Ignore
tools\helpers.ps1

function Get-ChocolateyProxy {
  param(
    [string] $url
  )

  $proxy = $null
  $proxyInfo = @{}
  $creds = [System.Net.CredentialCache]::DefaultCredentials

  $webclient = new-object System.Net.WebClient
  if ($creds -ne $null) {
    $webClient.Credentials = $creds
  }

  $explicitProxy = $env:chocolateyProxyLocation
  $explicitProxyUser = $env:chocolateyProxyUser
  $explicitProxyPassword = $env:chocolateyProxyPassword

  if ($explicitProxy -ne $null) {

	  $proxy = New-Object System.Net.WebProxy($explicitProxy, $true)
	  if ($explicitProxyPassword -ne $null) {
      $passwd = ConvertTo-SecureString $explicitProxyPassword -AsPlainText -Force
	    $proxy.Credentials = New-Object System.Management.Automation.PSCredential ($explicitProxyUser, $passwd)
	  }

 	  Write-Host "Using explicit proxy server '$explicitProxy'."
  }
  elseif ($webclient.Proxy -and !$webclient.Proxy.IsBypassed($url)) {
    if ($creds -eq $null) {
      Write-Debug "Default credentials were null. Attempting backup method"
      $creds = Get-Credential
    }

    $proxyaddress = $webclient.Proxy.GetProxy($url).Authority

    $proxy = New-Object System.Net.WebProxy($proxyaddress)
    if($creds.UserName) {
      $proxy.Credentials = $creds
    }

    Write-Host "Using system proxy server '$proxyaddress'."
  }

  if($proxy) {
    $proxyInfo.Proxy = $proxy.Address;
    $proxyInfo.ProxyCredential = $proxy.Credentials;
  }

  return $proxyInfo
}

function Get-JdkPath() {
  try {
    $jdkReg = Get-ItemProperty -Path 'HKLM:SOFTWARE\JavaSoft\Java Development Kit\1.8\' -ErrorAction Stop
    return $jdkReg.JavaHome
  }
  catch {
    throw 'Could not find installation required dependency JDK8'
  }
}
tools\product.conf
##############################################################################
#
# The format of this file is:
#
# Directive  Value
#
# with one or more spaces between the directive and the value. This file
# can be in either UNIX or DOS format for end of line terminators. Use UNIX
# style '/' path separators, although on Windows some directives, such as
# SetJavaHome, can take '\' path separators.
#
##############################################################################

#
# By default, the product launcher will search for a JDK to use, and if none
# can be found, it will ask for the location of a JDK and store its location
# in this file. If a particular JDK should be used instead, uncomment the
# line below and set the path to your preferred JDK.
#
SetJavaHome %JdkPath%

#
# Specify the initial size, in bytes, of the memory allocation pool. This
# value must be a multiple of 1024 greater than 1MB. Append the letter k
# or K to indicate kilobytes, or m or M to indicate megabytes, or g or G
# to indicate gigabytes. The default value is chosen at runtime based on
# the system configuration.
# Examples:  -Xms6291456
#            -Xms6144k
#            -Xms6m
#
# You can specify one value for any JDK using AddVMOption, OR you can specify
# separate values for 32-bit and 64-bit JDK's.
#
# AddVMOption -Xms128m
# Add32VMOption -Xms128m
# Add64VMOption -Xms128m

#
# Specify the maximum size, in bytes, of the memory allocation pool. This
# value must be a multiple of 1024 greater than 2MB. Append the letter k
# or K to indicate kilobytes, or m or M to indicate megabytes, or g or G
# to indicate gigabytes. The default value is chosen at runtime based on
# the system configuration.
# Examples:  -Xmx83886080
#            -Xmx81920k
#            -Xmx80m
# On Solaris 7 and Solaris 8 SPARC platforms, the upper limit for this value
# is approximately 4000m minus overhead amounts. On Solaris 2.6 and x86
# platforms, the upper limit is approximately 2000m minus overhead amounts.
# On Linux platforms, the upper limit is approximately 2000m minus overhead
# amounts.
#
# If you are getting the 'Low Memory Warning' Message Dialog while running
# the product, please increase the -Xmx value below from the default 800M to
# something greater, like 1024M or 1250M.  If after increasing the value,
# the product is no longer starting up because it fails to create a virtual
# machine, then please reduce the modified -Xmx value, or use a 64bit JDK
# which allows for very very large value for -Xmx.
#
# You can specify one value for any JDK using AddVMOption, OR you can specify
# separate values for 32-bit and 64-bit JDK's.
#
# AddVMOption -Xmx800m
# Add32VMOption -Xmx800m
# Add64VMOption -Xmx800m

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Oracle SQL Developer 20.4.1 2764 Thursday, March 4, 2021 Approved
Oracle SQL Developer 18.4.0 19638 Sunday, March 3, 2019 Approved
Discussion for the Oracle SQL Developer Package

Ground Rules:

  • This discussion is only about Oracle SQL Developer and the Oracle SQL Developer package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Oracle SQL Developer, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus