<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ishak Antony Darmawan</title>
    <description>The latest articles on DEV Community by Ishak Antony Darmawan (@ishakantony).</description>
    <link>https://dev.to/ishakantony</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F440803%2F364e9a53-2907-4293-a6fd-846863bd37b0.jpeg</url>
      <title>DEV Community: Ishak Antony Darmawan</title>
      <link>https://dev.to/ishakantony</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ishakantony"/>
    <language>en</language>
    <item>
      <title>How to Install Oracle SQL Developer on Ubuntu 20.04</title>
      <dc:creator>Ishak Antony Darmawan</dc:creator>
      <pubDate>Sun, 26 Jul 2020 09:14:50 +0000</pubDate>
      <link>https://dev.to/ishakantony/how-to-install-oracle-sql-developer-on-ubuntu-20-04-3jpd</link>
      <guid>https://dev.to/ishakantony/how-to-install-oracle-sql-developer-on-ubuntu-20-04-3jpd</guid>
      <description>&lt;p&gt;This is a fairly straightforward guide to install Oracle SQL Developer on Ubuntu 20.04&lt;/p&gt;

&lt;h1&gt;
  
  
  Gathering Files
&lt;/h1&gt;

&lt;h3&gt;
  
  
  Prerequisite
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Oracle JDK 8/11&lt;/li&gt;
&lt;li&gt;Oracle SQL Developer&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Downloading Prerequisite
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Oracle JDK 8/11
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;a href="https://www.oracle.com/java/technologies/javase-downloads.html" rel="noopener noreferrer"&gt;download Oracle JDK page&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;I will use Oracle JDK 11 because it has a .deb installation file which can be easily installed using &lt;code&gt;dpkg&lt;/code&gt;
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpjdpze3w9750w6iwugsh.png" alt="Oracle JDK Download Page"&gt;
&lt;/li&gt;
&lt;li&gt;Download Oracle JDK 11 for Debian package (at the time of this post, the version is 11.0.8), you will be prompted to sign in using oracle account to download
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5i83nb0g5h0e5zxvilw8.png" alt="Oracle JDK 11 Download Page"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  Oracle SQL Developer
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;a href="https://www.oracle.com/tools/downloads/sqldev-downloads.html" rel="noopener noreferrer"&gt;download Oracle SQL Developer page&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Download Oracle SQL Developer for Other Platforms (at the time of this post, the version is 20.2)
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fql45yhvgdb6e8l98u7zr.png" alt="Oracle SQL Developer Download Page"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Prerequisite Completed
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fsy2a8brpzpoi0kq4pcik.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fsy2a8brpzpoi0kq4pcik.png" alt="Prerequisite Completed"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Installation
&lt;/h1&gt;

&lt;h3&gt;
  
  
  Install Oracle JDK 11 and Oracle SQL Developer
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Oracle JDK 11
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Open your terminal, go to directory where your prerequisite files are located (in my case it's in &lt;code&gt;~/Downloads&lt;/code&gt;)
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fswmchn3i7n34gd98apf7.png" alt="Files"&gt;
&lt;/li&gt;
&lt;li&gt;Install Oracle JDK 11 by using command &lt;code&gt;sudo dpkg -i [YOUR_ORACLE_JDK_PACKAGE.deb]&lt;/code&gt;, in my case it's &lt;code&gt;sudo dpkg -i jdk-11.0.8_linux-x64_bin.deb&lt;/code&gt;
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6s5qpgn31w6mvn9q1rq0.png" alt="Install Oracle JDK 11"&gt;
&lt;/li&gt;
&lt;li&gt;Verify your installation by listing the directory of &lt;code&gt;/usr/lib/jvm&lt;/code&gt;
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fnghlpkb7ou106dxjkcu7.png" alt="Verify Oracle JDK 11"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  Oracle SQL Developer 20.2
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Open your terminal, go to &lt;code&gt;/opt&lt;/code&gt; directory. This is where i will store the sqldeveloper application, you can choose other directory, but this my preference (and i read also that &lt;code&gt;/opt&lt;/code&gt; is for 3rd party apps that we cannot install via &lt;code&gt;apt&lt;/code&gt; package manager)
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F696229jqwfbfdifs8t2g.png" alt="Go To opt"&gt;
&lt;/li&gt;
&lt;li&gt;Unzip Oracle SQL Developer with command &lt;code&gt;sudo unzip [YOUR_SQL_DEVELOPER_FILE_WITH_LOCATION].zip&lt;/code&gt;, in my case it's &lt;code&gt;sudo unzip ~/Downloads/sqldeveloper-20.2.0.175.1842-no-jre.zip&lt;/code&gt;. By default the &lt;code&gt;unzip&lt;/code&gt; program will extract the zip file into the current directory, since we are in &lt;code&gt;/opt&lt;/code&gt; now, we don't need to specify target directory.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fudcxhfd0ytqej3jdcmkf.png" alt="Successfully Unzip"&gt;
&lt;/li&gt;
&lt;li&gt;Locate your Oracle JDK installation under &lt;code&gt;/usr/lib/jvm&lt;/code&gt;, we'll need this location to tell Oracle SQL Developer where our Oracle JDK is located. In my case it's &lt;code&gt;/usr/lib/jvm/jdk-11.0.8&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Go inside the &lt;code&gt;sqldeveloper&lt;/code&gt; directory
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fx3lo577hxako3astu2ok.png" alt="Inside sqldeveloper Directory"&gt;
&lt;/li&gt;
&lt;li&gt;You can see that &lt;code&gt;sqldeveloper.sh&lt;/code&gt; has executable permission so that we can run it by doing &lt;code&gt;./sqldeveloper.sh&lt;/code&gt; or &lt;code&gt;sh sqldeveloper.sh&lt;/code&gt; in the current directory.&lt;/li&gt;
&lt;li&gt;Run the &lt;code&gt;sqldeveloper.sh&lt;/code&gt; file, you will be prompted to enter the Oracle JDK location, just paste it in and press enter
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvfpbfft36otm9tj3ys3o.png" alt="Fill in JDK Path"&gt;
&lt;/li&gt;
&lt;li&gt;You will see Oracle SQL Developer starting
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fp9y5kjz4utirvdr5phq8.png" alt="Loading"&gt;
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fi9nvdas8xu8gp8xbb1p9.png" alt="Started"&gt;
&lt;/li&gt;
&lt;li&gt;Installation done! You can use the application by executing the &lt;code&gt;sqldeveloper.sh&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;At this point, the installation process is done and we can use the application. But it's quite troublesome for us to always open the terminal and execute the script to run the application.&lt;/p&gt;

&lt;h1&gt;
  
  
  Create a Shortcut
&lt;/h1&gt;

&lt;h4&gt;
  
  
  Create a link to our &lt;code&gt;sqldeveloper.sh&lt;/code&gt;
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Open your terminal and type command &lt;code&gt;sudo ln -s [YOUR_SQLDEVELOPER.SH_PATH] /usr/local/bin/sqldeveloper&lt;/code&gt;, in my case it's &lt;code&gt;sudo ln -s /opt/sqldeveloper/sqldeveloper.sh /usr/local/bin/sqldeveloper&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Verify that link has been created.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5995i0p1x822qcz3iyna.png" alt="Link has been created"&gt;
&lt;/li&gt;
&lt;li&gt;Now we can execute our application with command &lt;code&gt;sqldeveloper&lt;/code&gt; from any directory. The reason why we put our link inside &lt;code&gt;/usr/local/bin&lt;/code&gt; is so that it's available globally.&lt;/li&gt;
&lt;li&gt;Go to your &lt;code&gt;$HOME&lt;/code&gt; directory and execute the command &lt;code&gt;sqldeveloper&lt;/code&gt;. You will get an error like this.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjraiy7uz1d3jx2az9e04.png" alt="Executing sqldeveloper error"&gt;
&lt;/li&gt;
&lt;li&gt;The error happened because it's trying to execute a syntax inside &lt;code&gt;sqldeveloper.sh&lt;/code&gt; that uses relative path to navigate the directory. To fix this problem, what we need to do is edit the &lt;code&gt;sqldeveloper.sh&lt;/code&gt; to execute the sqldeveloper binary&lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;sqldeveloper.sh&lt;/code&gt; with your text editor. In my case, i will use &lt;code&gt;vim&lt;/code&gt;. Remember to use &lt;code&gt;sudo&lt;/code&gt; because this file belongs to &lt;code&gt;root&lt;/code&gt;. Your file content should look like this now.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkuk3v3ylxyb2r6mum64a.png" alt="Old"&gt;
&lt;/li&gt;
&lt;li&gt;We will tell this script to execute the sqldeveloper binary directly without navigating to other directory by using this command &lt;code&gt;/opt/sqldeveloper/sqldeveloper/bin/sqldeveloper $*&lt;/code&gt;, your file should look like this now.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fqxnlrxm0m8sk38o6topg.png" alt="New"&gt;
&lt;/li&gt;
&lt;li&gt;Save the file and try &lt;code&gt;sqldeveloper&lt;/code&gt; command again, you should be able to start Oracle SQL Developer now.&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  Create a desktop shortcut
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Desktop shortcuts are stored in &lt;code&gt;/usr/share/applications&lt;/code&gt; with &lt;code&gt;.desktop&lt;/code&gt; extension. So we will create a new file in that directory with the name &lt;code&gt;sqldeveloper.desktop&lt;/code&gt;.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fshlt3g5olr36n7bj6u51.png" alt="Create Desktop File"&gt;
&lt;/li&gt;
&lt;li&gt;Inside your file should look like this.
```
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;[Desktop Entry]&lt;br&gt;
Name=Oracle SQL Developer&lt;br&gt;
Comment=SQL Developer from Oracle&lt;br&gt;
GenericName=SQL Tool&lt;br&gt;
Exec=/usr/local/bin/sqldeveloper&lt;br&gt;
Icon=/opt/sqldeveloper/icon.png&lt;br&gt;
Type=Application&lt;br&gt;
StartupNotify=true&lt;br&gt;
Categories=Utility;Oracle;Development;SQL;&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;3. Save your file
4. Verify that your shortcut is available to use by searching in application menu.
![Shorcut](https://dev-to-uploads.s3.amazonaws.com/i/oz9au239m5ej0zkxtqr2.png)

And that's it. You have completed the installation and created shortcut for Oracle SQL Developer.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ubuntu</category>
      <category>sql</category>
      <category>oracle</category>
      <category>sqldeveloper</category>
    </item>
  </channel>
</rss>
