{"id":9956,"date":"2017-04-16T16:54:33","date_gmt":"2017-04-16T14:54:33","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/"},"modified":"2017-04-16T16:54:33","modified_gmt":"2017-04-16T14:54:33","slug":"sqlcl-on-bash-on-ubuntu-on-windows","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/","title":{"rendered":"SQLcl on Bash on Ubuntu on Windows"},"content":{"rendered":"<h2>By Franck Pachot<\/h2>\n<p>.<br \/>\nI&#8217;m running my laptop on Windows, which may sound weird, but Linux is unfortunately not an option when you exchange Microsoft Word documents, manage your e-mails and calendar with Outlook and present with Powerpoint using dual screen (I want to share on the beamer only the slides or demo screen, not my whole desktop). However, I have 3 ways to enjoy GNU\/Linux: Cygwin to operate on my laptop, VirtualBox to run Linux hosts, and Cloud services when free trials are available.<\/p>\n<p>Now that Windows 10 has a Linux subsystem, I&#8217;ll try it to see if I still need Cygwin.<br \/>\nIn a summary, I&#8217;ll still use Cygwin, but may prefer this Linux subsystem to run SQLcl, the SQL Developer command line, from my laptop.<\/p>\n<h3>Bash on Ubuntu on Windows<\/h3>\n<p>In this post I&#8217;ll detail what I had to setup to get the following:<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash000.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash000.png\" alt=\"CaptureWin10bash000\" width=\"1024\" height=\"585\" class=\"alignnone size-large wp-image-15915\" \/><\/a><br \/>\nBash on Windows 10 is available for several months, but with no interaction with the Windows system except accessing to the filesystems. I didn&#8217;t try that. This month, Microsoft has released a new update, called &#8216;Creator Update&#8217; for whatever reason.<\/p>\n<h3>Creator Update<\/h3>\n<p>You will probably have no choice to update to &#8216;Creator Update&#8217; soon but for the moment you have to download Windows10Upgrade9252.exe from <a href=\"https:\/\/www.microsoft.com\/en-us\/software-download\/windows10\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.microsoft.com\/en-us\/software-download\/windows10<\/a><\/p>\n<h3>Windows Subsystem for Linux<\/h3>\n<p>You enable the feature from Control Panel -&gt; Programs and Features -&gt; Turn Windows features on and off:<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash002.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash002.png\" alt=\"CaptureWin10bash002\" width=\"984\" height=\"614\" class=\"alignnone size-full wp-image-15916\" \/><\/a><\/p>\n<p>This requires a reboot. Windows is not yet an OS where you can install or enable features without closing everything. But at least in Windows 10 the reboot is very fast.<\/p>\n<h3>Developer mode<\/h3>\n<p>This is a beta feature and requires to enable developer mode:<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash003.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash003.png\" alt=\"CaptureWin10bash003\" width=\"614\" height=\"206\" class=\"alignnone size-full wp-image-15918\" \/><\/a><\/p>\n<p>You do that on the Setup -&gt; Update and Security -&gt; For developers:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash001.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash001.png\" alt=\"CaptureWin10bash001\" width=\"1024\" height=\"665\" class=\"alignnone size-large wp-image-15919\" \/><\/a><\/p>\n<h3>Bash<\/h3>\n<p>Now, when you run it (type Bash in the start menu) it installs a subset of Ubuntu (downloaded from the web):<br \/>\n<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash005.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash005.png\" alt=\"CaptureWin10bash005\" width=\"873\" height=\"403\" class=\"alignnone size-full wp-image-15921\" \/><\/a><br \/>\nIt asks for a user and password. You will need the password to sudo to root.<br \/>\nYou are in Windows\/System32 here, which is ugly, so better exit and run again &#8216;Bash on Ubuntu on Windows&#8217;.<\/p>\n<h3>HOME<\/h3>\n<p>All my customization (.bash_profile .bashrc .vimrc .tmux.conf .ssh\/config &#8230; ) is in my cygwin environment and I want to share it for the time I&#8217;ll run both Cygwin and Bash on Ubuntu on Windows. For this, I sudo and change the entry in \/etc\/passwd to have my home where I have my cygwin.home:<\/p>\n<pre><code>fpa:x:1000:1000:\"\",,,:\/mnt\/d\/Dropbox\/cygwin-home\/:\/bin\/bash<\/code><\/pre>\n<h3>Mount<\/h3>\n<p>Here are the mount points I have on Cygwin<\/p>\n<pre><code>$ mount\nC:\/cygwin64\/bin on \/usr\/bin type ntfs (binary,auto)\nC:\/cygwin64\/lib on \/usr\/lib type ntfs (binary,auto)\nC:\/cygwin64 on \/ type ntfs (binary,auto)\nC: on \/cygdrive\/c type ntfs (binary,posix=0,user,noumount,auto)\nD: on \/cygdrive\/d type ntfs (binary,posix=0,user,noumount,auto)<\/code><\/pre>\n<p>My C: and D: windows drives are mounted in \/cygdrive<\/p>\n<p>Here are the mounts I have on the Windows Subsystem for Linux:<\/p>\n<pre><code>root@dell-fpa:\/mnt# mount\nrootfs on \/ type lxfs (rw,noatime)\ndata on \/data type lxfs (rw,noatime)\ncache on \/cache type lxfs (rw,noatime)\nmnt on \/mnt type lxfs (rw,noatime)\nsysfs on \/sys type sysfs (rw,nosuid,nodev,noexec,noatime)\nproc on \/proc type proc (rw,nosuid,nodev,noexec,noatime)\nnone on \/dev type tmpfs (rw,noatime,mode=755)\ndevpts on \/dev\/pts type devpts (rw,nosuid,noexec,noatime)\nnone on \/run type tmpfs (rw,nosuid,noexec,noatime,mode=755)\nnone on \/run\/lock type tmpfs (rw,nosuid,nodev,noexec,noatime)\nnone on \/run\/shm type tmpfs (rw,nosuid,nodev,noatime)\nnone on \/run\/user type tmpfs (rw,nosuid,nodev,noexec,noatime,mode=755)\nC: on \/mnt\/c type drvfs (rw,noatime)\nD: on \/mnt\/d type drvfs (rw,noatime)\nroot on \/root type lxfs (rw,noatime)\nhome on \/home type lxfs (rw,noatime)\nbinfmt_misc on \/proc\/sys\/fs\/binfmt_misc type binfmt_misc (rw,noatime)<\/code><\/pre>\n<p>Because I have scripts and configuration files that mention \/cygdrive, I&#8217;ve created symbolic links for them:<\/p>\n<pre><code>fpa@dell-fpa:\/mnt$ sudo su\n[sudo] password for fpa:\nroot@dell-fpa:\/mnt# mkdir \/cygdrive\nroot@dell-fpa:\/# ln -s \/mnt\/c  \/cygdrive\/c \nroot@dell-fpa:\/# ln -s \/mnt\/d  \/cygdrive\/D <\/code><\/pre>\n<h3>chmod<\/h3>\n<p>The first thin I do from my bash shell is to ssh to other hosts:<\/p>\n<pre><code>\nfpa@dell-fpa:\/mnt\/c\/Users\/fpa$ ssh 192.168.78.104\nBad owner or permissions on \/mnt\/d\/Dropbox\/cygwin-home\/\/.ssh\/config\n<\/code><\/pre>\n<p>Ok, permissions of .ssh was set from cygwin, let&#8217;s try it from Bash On Ubuntu on Linux:<\/p>\n<pre><code>\nfpa@dell-fpa:\/mnt\/c\/Users\/fpa$ chmod 644 \/mnt\/d\/Dropbox\/cygwin-home\/\/.ssh\/config\nfpa@dell-fpa:\/mnt\/c\/Users\/fpa$ ls -ld \/mnt\/d\/Dropbox\/cygwin-home\/\/.ssh\/config\n-rw-rw-rw- 1 root root 5181 Mar  5 16:56 \/mnt\/d\/Dropbox\/cygwin-home\/\/.ssh\/config\n<\/code><\/pre>\n<p>This is not what I want. With 644 I expect -rw-r&#8211;r&#8211;<\/p>\n<p>Let&#8217;s try 444:<\/p>\n<pre><code>\nfpa@dell-fpa:\/mnt\/c\/Users\/fpa$ chmod 444 \/mnt\/d\/Dropbox\/cygwin-home\/\/.ssh\/config\nfpa@dell-fpa:\/mnt\/c\/Users\/fpa$ ls -ld \/mnt\/d\/Dropbox\/cygwin-home\/\/.ssh\/config\n-r--r--r-- 1 root root 5181 Mar  5 16:56 \/mnt\/d\/Dropbox\/cygwin-home\/\/.ssh\/config\nfpa@dell-fpa:\/mnt\/c\/Users\/fpa$ ssh 192.168.78.104\nLast login: Sun Apr 16 15:18:07 2017 from 192.168.78.1\n...\n<\/code><\/pre>\n<p>Ok, this works but there&#8217;s a problem. It seems that the Bash On Ubuntu on Linux doesn&#8217;t allow to set permissions differently for user, group and others.<\/p>\n<h3>SQLcl<\/h3>\n<p>The second thing I do from bash in my laptop is to connect to databases with SQLcl. For Cygwin I had an alias that run the sql.bat script because Cygwin can run .bat files. When I run SQLcl from Cygwin, I run the Windows JDK. This doesn&#8217;t work in Bash on Ubuntu on Windows because we are in a Linux subsystem. But we don&#8217;t need to because SQLcl can be run directly from the sql bash script, calling the Linux JDK from the Linux subsystem. There&#8217;s only one thing to do: download the Linux JDK and  set JAVA_HOME to the directory.<\/p>\n<p>In my .bashrc I have the following to set the &#8216;sql&#8217; alias depending on which environment I am<\/p>\n<pre><code>\nif [[ $(uname -a) =~ CYGWIN ]]\nthen\n alias sql='\/cygdrive\/D\/Soft\/sqlcl\/bin\/sql.bat'\nelse\n alias sql='JAVA_HOME=\/mnt\/d\/Soft\/jdk1.8.0-Linux \/cygdrive\/D\/Soft\/sqlcl\/bin\/sql'\nfi\n<\/code><\/pre>\n<p>What I observe here is that it is much faster (or less slower&#8230;) to start the JVM from the Linux subsystem.<br \/>\nHere 4 seconds to start SQLcl, connect and exit:<\/p>\n<pre><code>\nfpa@dell-fpa:\/tmp$ time sql sys\/oracle@\/\/192.168.78.104\/pdb1 as sysdba &lt;&lt;\n&nbsp;\nreal    0m4.684s\nuser    0m3.750s\nsys     0m2.484s\n&nbsp;\nfpa@dell-fpa:\/tmp$ uname -a\nLinux dell-fpa 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU\/Linux\n<\/code><\/pre>\n<p>Here the same from Windows (Cygwin to time &#8211; but it&#8217;s running on Windows):<\/p>\n<pre><code>\n$ time sql sys\/oracle@\/\/192.168.78.104\/pdb1 as sysdba &lt;&lt;\nDisconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production\n&nbsp;\nreal    0m16.261s\nuser    0m0.000s\nsys     0m0.015s\n&nbsp;\nfpa@dell-fpa ~\n$ uname -a\nCYGWIN_NT-10.0 dell-fpa 2.7.0(0.306\/5\/3) 2017-02-12 13:18 x86_64 Cygwin\n<\/code><\/pre>\n<h3>So what?<\/h3>\n<p>The Linux subsystem on Windows is not yet ready. The only thing I proved here is that it is faster to start a Java application from Linux, but for this I always have a VirtualBox VM started on my laptop, and this is where it is faster to run it, and have a real Linux system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Franck Pachot . I&#8217;m running my laptop on Windows, which may sound weird, but Linux is unfortunately not an option when you exchange Microsoft Word documents, manage your e-mails and calendar with Outlook and present with Powerpoint using dual screen (I want to share on the beamer only the slides or demo screen, not&hellip;&nbsp;<\/p>\n","protected":false},"author":27,"featured_media":9957,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4133],"tags":[1075,673,487],"class_list":["post-9956","post","type-post","status-publish","format-standard","has-post-thumbnail","category-database","tag-bash","tag-sqlcl","tag-windows-10"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>SQLcl on Bash on Ubuntu on Windows - dbi services Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQLcl on Bash on Ubuntu on Windows\" \/>\n<meta property=\"og:description\" content=\"By Franck Pachot . I&#8217;m running my laptop on Windows, which may sound weird, but Linux is unfortunately not an option when you exchange Microsoft Word documents, manage your e-mails and calendar with Outlook and present with Powerpoint using dual screen (I want to share on the beamer only the slides or demo screen, not&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-16T14:54:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash000.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1069\" \/>\n\t<meta property=\"og:image:height\" content=\"611\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\"},\"headline\":\"SQLcl on Bash on Ubuntu on Windows\",\"datePublished\":\"2017-04-16T14:54:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/\"},\"wordCount\":778,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/CaptureWin10bash000.png\",\"keywords\":[\"Bash\",\"SQLcl\",\"Windows 10\"],\"articleSection\":[\"Database\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/\",\"name\":\"SQLcl on Bash on Ubuntu on Windows - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/CaptureWin10bash000.png\",\"datePublished\":\"2017-04-16T14:54:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/CaptureWin10bash000.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/CaptureWin10bash000.png\",\"width\":1069,\"height\":611},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/sqlcl-on-bash-on-ubuntu-on-windows\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQLcl on Bash on Ubuntu on Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"caption\":\"Oracle Team\"},\"description\":\"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/oracle-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"SQLcl on Bash on Ubuntu on Windows - dbi services Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/","og_locale":"en_US","og_type":"article","og_title":"SQLcl on Bash on Ubuntu on Windows","og_description":"By Franck Pachot . I&#8217;m running my laptop on Windows, which may sound weird, but Linux is unfortunately not an option when you exchange Microsoft Word documents, manage your e-mails and calendar with Outlook and present with Powerpoint using dual screen (I want to share on the beamer only the slides or demo screen, not&hellip;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2017-04-16T14:54:33+00:00","og_image":[{"width":1069,"height":611,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash000.png","type":"image\/png"}],"author":"Oracle Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5"},"headline":"SQLcl on Bash on Ubuntu on Windows","datePublished":"2017-04-16T14:54:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/"},"wordCount":778,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash000.png","keywords":["Bash","SQLcl","Windows 10"],"articleSection":["Database"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/","url":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/","name":"SQLcl on Bash on Ubuntu on Windows - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash000.png","datePublished":"2017-04-16T14:54:33+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash000.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/CaptureWin10bash000.png","width":1069,"height":611},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/sqlcl-on-bash-on-ubuntu-on-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"SQLcl on Bash on Ubuntu on Windows"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","caption":"Oracle Team"},"description":"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.","url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/9956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=9956"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/9956\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/9957"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=9956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=9956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=9956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}