{"id":708,"date":"2010-01-09T16:40:48","date_gmt":"2010-01-09T20:40:48","guid":{"rendered":"http:\/\/timony.com\/mickzblog\/?p=708"},"modified":"2010-01-09T16:40:48","modified_gmt":"2010-01-09T20:40:48","slug":"install-oracle-sql-developer-on-ubuntu-karmic","status":"publish","type":"post","link":"http:\/\/timony.com\/mickzblog\/2010\/01\/09\/install-oracle-sql-developer-on-ubuntu-karmic\/","title":{"rendered":"Install Oracle SQL Developer on Ubuntu Karmic &#038; Lucid"},"content":{"rendered":"<p>If you want to install Oracle&#8217;s <a title=\"Oracle's SQL Developer\" href=\"http:\/\/www.oracle.com\/technology\/software\/products\/sql\/index.html\">SQL Developer<\/a> on Ubuntu (or another DEB based system such as Debian) you can do one of the following:<\/p>\n<ol>\n<li>Download the RPM package and install using rpm (not advisable).<\/li>\n<li>Download the RPM package and convert to a DEB package using alien<\/li>\n<li>Download the ZIP file titled &#8220;Oracle SQL Developer for other platforms&#8221; and manually install<\/li>\n<li>Use the make-sqldeveloper-package to convert the ZIP file into a DEB package<\/li>\n<\/ol>\n<p>I used the make-sqldeveloper-package, which is available for Debian and Ubuntu and it&#8217;s derivatives. However, the man page and the instructions are little unclear on how to use it. You need to download the zip file available at <a href=\"http:\/\/www.oracle.com\/technology\/software\/products\/sql\/index.html\">Oracle&#8217;s<\/a> (and not the RPM file nor any of the other packages) and then use the make-sqldeveloper-package to convert it to a DEB which you can then install using the dpkg command.<\/p>\n<p>This is preferable to using rpm or alien as you can more easily manage the package using Debian&#8217;s and Ubuntu package management tools, plus it will integrate SQL Developer into Gnome&#8217;s Menu System . Plus, when Oracle updates their version you can use make-sqldeveloper-package to create an updated DEB package and easily update the version you have installed. The procedure outlined below works on Ubuntu Karmic and should also work on any Debian version that has the make-sqldeveloper-package.<\/p>\n<p>As the man page states:<\/p>\n<blockquote><p>This utility will require you to download the &#8220;Oracle\u00a0 SQL\u00a0 Developer\u00a0 for\u00a0 other\u00a0 platforms&#8221;\u00a0 archive\u00a0 from\u00a0 &lt;<a href=\"http:\/\/otn.oracle.com\/software\/prod\u2010ucts\/sql\/\">http:\/\/otn.oracle.com\/software\/prod\u2010ucts\/sql\/<\/a>&gt; to create the Debian package from.<\/p><\/blockquote>\n<h4>1. Download the ZIP file from Oracle&#8217;s site<\/h4>\n<p>You will need to accept Oracle&#8217;s license agreement and download the ZIP file, titled &#8220;Oracle SQL Developer for other platforms&#8221;, from:<\/p>\n<p><a href=\"http:\/\/www.oracle.com\/technology\/software\/products\/sql\/index.html\">http:\/\/www.oracle.com\/technology\/software\/products\/sql\/index.html<\/a><\/p>\n<h4>2. Install the make-sqldeveloper-package package<\/h4>\n<pre style=\"padding-left: 30px;\">sudo apt-get install sqldeveloper-package<\/pre>\n<p>You will need Ubuntu&#8217;s <a title=\"Ubuntu software repositorys\" href=\"http:\/\/www.ubuntu.com\/community\/ubuntustory\/components\">multiverse<\/a> software repository. See the <a href=\"https:\/\/help.ubuntu.com\/community\/Repositories\/Ubuntu\">instructions<\/a> on how to do so.<\/p>\n<h4>2.a. Install the tofrodos package<\/h4>\n<pre style=\"padding-left: 30px;\">sudo apt-get install tofrodos<\/pre>\n<p>Create symbolic links to the tofrodos commands to allow the sqldeveloper-package to work:<\/p>\n<pre style=\"padding-left: 30px;\">sudo ln -s \/usr\/bin\/fromdos \/usr\/bin\/dos2unix<\/pre>\n<pre style=\"padding-left: 30px;\">sudo ln -s \/usr\/bin\/todos \/usr\/bin\/unix2dos<\/pre>\n<p>Thanks to <a href=\"#comment-5906\">Miles<\/a> for the tofrodos tip.<\/p>\n<h4>3. Convert the ZIP file to .DEB package<\/h4>\n<p>The format of the command is:<\/p>\n<pre style=\"padding-left: 30px;\">make-sqldeveloper-package -b BUILD_LOCATION LOCATION_OF_ZIP_FILE<\/pre>\n<p>In my example, I&#8217;m going to use \/tmp\/ORA as the build location and the ZIP file has been download to my Desktop (~Desktop).<\/p>\n<pre style=\"padding-left: 30px;\">make-sqldeveloper-package -b \/tmp\/ORA\/ ~\/Desktop\/sqldeveloper-2.1.0.63.73-no-jre.zip<\/pre>\n<p>The command will create the build directory and remove it when the command finishes. If the command completes successfully you&#8217;ll see the following output after a minute or two:<\/p>\n<pre style=\"padding-left: 30px;\">make-sqldeveloper-package: Building sqldeveloper package in \"\/tmp\".<\/pre>\n<p>The DEB file will be created in the current directory. In my example I had changed directories to \/tmp and that&#8217;s where the DEB file will be:<\/p>\n<pre style=\"padding-left: 30px;\">\/tmp\/sqldeveloper_2.1.0.63.73+0.2.3-1_all.deb<\/pre>\n<p>See the man page for more information about the tool:<\/p>\n<pre style=\"padding-left: 30px;\">man make-sqldeveloper-package<\/pre>\n<h4>4. Install the package<\/h4>\n<pre style=\"padding-left: 30px;\">sudo dpkg -i sqldeveloper_2.1.0.63.73+0.2.3-1_all.deb<\/pre>\n<h4>5. Run SQL Developer<\/h4>\n<p>After installing there should he an entry in Gnome&#8217;s menu to start the SQL Developer. It&#8217;s located under:<\/p>\n<p style=\"padding-left: 30px;\"><strong>Applications-&gt;Programming-&gt;SQL Developer<\/strong><\/p>\n<p><em>Note<\/em>: You will need a JVM installed for the tool to run.<\/p>\n<p>Obligatory Screen Shot:<\/p>\n<figure id=\"attachment_719\" aria-describedby=\"caption-attachment-719\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a rel=\"attachment wp-att-719\" href=\"http:\/\/timony.com\/mickzblog\/2010\/01\/09\/install-oracle-sql-developer-on-ubuntu-karmic\/sqldeveloper_screenshot-2\/\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-719\" title=\"Oracle SQL Developer on Ubuntu\" src=\"http:\/\/timony.com\/mickzblog\/wp-content\/uploads\/2010\/01\/sqldeveloper_screenshot1-300x248.jpg\" alt=\"\" width=\"300\" height=\"248\" srcset=\"http:\/\/timony.com\/mickzblog\/wp-content\/uploads\/2010\/01\/sqldeveloper_screenshot1-300x248.jpg 300w, http:\/\/timony.com\/mickzblog\/wp-content\/uploads\/2010\/01\/sqldeveloper_screenshot1.jpg 502w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-719\" class=\"wp-caption-text\">Oracle SQL Developer<\/figcaption><\/figure>\n<p><em>Updated September 27th 2010<\/em>. Added instructions from <a href=\"http:\/\/milespomeroy.com\/\">Miles<\/a> on installing dos2unix alternative for Ubuntu Lucid. The dos2unix command is not available in Ubuntu Lucid.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to install Oracle&#8217;s SQL Developer on Ubuntu (or another DEB based system such as Debian) you can do one of the following: Download the RPM package and install using rpm (not advisable). Download the RPM package and convert to a DEB package using alien Download the ZIP file titled &#8220;Oracle SQL Developer &hellip; <a href=\"http:\/\/timony.com\/mickzblog\/2010\/01\/09\/install-oracle-sql-developer-on-ubuntu-karmic\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install Oracle SQL Developer on Ubuntu Karmic &#038; Lucid<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[51,52,22,62,41],"tags":[190,390,457,502,561,562],"class_list":["post-708","post","type-post","status-publish","format-standard","hentry","category-database-tech","category-debian-linux","category-linux","category-oracle","category-ubuntu-linux-2","tag-debian","tag-linux","tag-oracle","tag-programming","tag-sql","tag-sql-developer"],"_links":{"self":[{"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts\/708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/comments?post=708"}],"version-history":[{"count":0,"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts\/708\/revisions"}],"wp:attachment":[{"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/media?parent=708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/categories?post=708"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/tags?post=708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}