Notices: This section not yet converted to new layout. Download stats are rolling back out.

Oracle SQL Developer

18.4.0

This package skips automatic verification:

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.


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

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.

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

C:\> choco install oracle-sql-developer

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

C:\> choco upgrade oracle-sql-developer

Files

Hide
  • 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 Show
    #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 Show
    $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 Show
    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 Show
    ##############################################################################
    #
    # 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
    

Virus Scan Results

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.

Dependencies

Package Maintainer(s)

Software Author(s)

  • Oracle

Copyright

2019 Oracle

Tags

Release Notes

https://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/sqldev-relnotes-v184-5231669.html

Version History

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
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok