title: Connect Oracle database with SQLcl
body: <p>I am using sqldeveloper to query database and export results to csv file. I need this file on daily basis so thought of creating bat file which can be scheduled on windows task scheduler. I was researching it and found I can use SQLcl to run my script to export the query data. But somehow I can't connect it and it gives me and error 'ORA-01017: invalid username/password;logon denied. Here is my connection properties from sql developer</p>
  <p><a href="https://i.stack.imgur.com/3UMBy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3UMBy.png" alt="enter image description here" /></a></p>
  <p>Here is my command line:</p>
  <pre><code>sql testuser1/mypass@tstwd2.myhost.internal:1521/tst.internal
  </code></pre>
  <p>I have java development kit installed</p>
  <p><a href="https://i.stack.imgur.com/yasuk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yasuk.png" alt="enter image description here" /></a></p>
  <p>Do I need anything for java? Or do I need any special rights to run sql command line?</p>