{"id":112,"date":"2006-01-24T15:52:33","date_gmt":"2006-01-24T20:52:33","guid":{"rendered":"http:\/\/bitpost.com\/news\/2006\/01\/24\/setting-up-eclipse-sqlexplorer-to-access-oracle\/"},"modified":"2007-10-19T07:00:32","modified_gmt":"2007-10-19T12:00:32","slug":"setting-up-eclipse-sqlexplorer-to-access-oracle","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2006\/setting-up-eclipse-sqlexplorer-to-access-oracle\/","title":{"rendered":"Setting up Eclipse SQLExplorer to access Oracle"},"content":{"rendered":"<p>I can&#8217;t believe SQL*Plus has survived for 5 minutes, let alone decades. And for some other equally unanswerable reason, free replacements are hard to come by. Toad is the most popular, but it&#8217;s this so-called &#8220;freeware&#8221; that expires every month.<\/p>\n<p>Anyway, I think I&#8217;ve found an open-source tool with a past, and hopefully a future. Eclipse has a plugin called SQLExplorer that uses JDBC to connect to Oracle databases. <\/p>\n<p>UPDATE: This seems to be still alive, I updated it today to version 3.5.0RC2.  I had to download the plugin from <a href=\"http:\/\/sourceforge.net\/projects\/eclipsesql\/\">sourceforge<\/a>, extract to the Eclipse 3.3 directory, then re-set up the Oracle drivers, as detailed below&#8230;<br \/>\n<!--more--><\/p>\n<p>Here&#8217;s a screenshot:<\/p>\n<p align=\"center\"><a href=\"https:\/\/i0.wp.com\/thedigitalmachine.com\/images\/SQLExplorer.jpg\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/thedigitalmachine.com\/images\/SQLExplorer_tn.jpg\" \/><\/a><\/p>\n<p>There are <a href=\"http:\/\/www.onjava.com\/pub\/a\/onjava\/2005\/05\/11\/sqlexplorer.html\">minimal docs<\/a> for this stuff, so here&#8217;s a two-minute setup HOWTO.<\/p>\n<ol>\n<li>Download and install Eclipse.<\/li>\n<li>Run Eclipse, select Help->Software Updates->Find and Install, and install the Graphical Editing Framework (GEF).<\/li>\n<li>Download SQLExplorer and unzip to the eclipse directory (using the paths in the zip file, it should unzip into the eclipse\/plugins directory).<\/li>\n<li>Restart Eclipse and click the &#8220;Open Perspective&#8221; button (top right). Select Other->SQLExplorer. You&#8217;re now looking at the SQLExplorer interface!<\/li>\n<li>To connect to an Oracle database, right-click on Oracle Thin Driver in the Drivers list and select &#8220;Change the selected driver&#8221; (copy doesn&#8217;t seem to work at this time :< ).<\/li>\n<li>Update the example URL to use a valid JDBC path.  Mine was &#8220;jdbc:oracle:thin:@trek:1521:trek92&#8221;.<\/li>\n<li>You now have to add the Oracle driver to the class path. Select the &#8220;Extra Class Path&#8221; tab, hit Add, and browse under your Oracle client directory for this file: [oracle\\product\\10.2.0\\client_1\\jdbc\\lib\\ojdbc14.jar]<br \/>\nThen press &#8220;List Drivers&#8221;, it should fill in the Driver Class Name field.  Hit OK, and with any luck your Oracle Thin Driver should now have an enabled check next to it.<\/li>\n<li>You can repeat this for the Oracle OCI driver, using a different Example URL.<\/li>\n<li>Click on the Aliases tab, right-click, and select &#8220;Create New Alias&#8221;.  Fill in the fields, they should be self-evident.<\/li>\n<li>Right-click the new alias, and select &#8220;Open&#8221;. SQLExplorer should now read in the metadata for the whole database, and you should be good to go. Have fun!<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I can&#8217;t believe SQL*Plus has survived for 5 minutes, let alone decades. And for some other equally unanswerable reason, free replacements are hard to come by. Toad is the most popular, but it&#8217;s this so-called &#8220;freeware&#8221; that expires every month. Anyway, I think I&#8217;ve found an open-source tool with a past, and hopefully a future. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[10],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-tricks-tips-tools"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-1O","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":0,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}