Downloads:

2,299

Downloads of v 18.4.0:

2,299

Last Update:

3/3/2019

Package Maintainer(s):

Software Author(s):

  • Oracle

Tags:

oracle sql developer ide

Oracle SQL Developer

18.4.0 | Updated: 3/3/2019

Downloads:

2,299

Downloads of v 18.4.0:

2,299

Maintainer(s):

Software Author(s):

  • Oracle

Oracle SQL Developer 18.4.0

This Package Contains an Exempted Check

1 Test Passing and 1 Exempted Test


Validation Testing Passed


Verification Testing Exempt:

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.

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:

>

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

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • 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://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. Enter your internal repository url

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

4. Choose your deployment method:


choco upgrade oracle-sql-developer -y --source="'STEP 3 URL'" [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="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Ensure oracle-sql-developer installed
  win_chocolatey:
    name: oracle-sql-developer
    state: present
    version: 18.4.0
    source: STEP 3 URL

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

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'oracle-sql-developer' do
  action    :install
  version  '18.4.0'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: oracle-sql-developer,
    Version: 18.4.0,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller oracle-sql-developer
{
   Name     = 'oracle-sql-developer'
   Ensure   = 'Present'
   Version  = '18.4.0'
   Source   = 'STEP 3 URL'
}

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


package { 'oracle-sql-developer':
  provider => 'chocolatey',
  ensure   => '18.4.0',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install oracle-sql-developer version="18.4.0" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator mkevenaar on 3/4/2019.

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

  (e.g. `choco install oracle-sql-developer --params "'/Username:MyUsername /Password:MyPassword'"`)

  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
#Requires -Version 3

$ErrorActionPreference = 'Stop';

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

. "$toolsDir/helpers.ps1"

$pp = Get-PackageParameters

$version = '18.4.0'
$zipFileName = 'sqldeveloper-18.4.0-376.1900-no-jre.zip'
$url = "https://download.oracle.com/otn/java/sqldeveloper/$zipFileName"
$sha1hash = '2536dad95e0390f7202f0c5962a1af99ee3de787'
$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(!$pp['Username'] -or !$pp['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 = $pp['Username']
$loginFormFields.password = $pp['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('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

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.

Version Downloads Last Updated Status
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