title: cx_Oracle.DatabaseError: ORA-00933: SQL command not properly ended
body: <p>I am getting the error <code>cx_Oracle.DatabaseError: ORA-00933: SQL command not properly ended</code> when trying to run the following code. I have used</p>
  
  <pre><code>import cx_Oracle
  ip = '127.0.0.1'
  port = 1234
  SID = 'abcd'
  dsn_tns = cx_Oracle.makedsn(ip, port, SID)
  
  conn = cx_Oracle.connect('username', 'password', dsn_tns)
  curs = conn.cursor()
  curs.execute('select sysdate from dual;')  # Error is here
  curs.close()
  conn.close()
  </code></pre>
  
  <p>Running the following works as expected:</p>
  
  <pre><code>conn = cx_Oracle.connect('username', 'password', dsn_tns)
  print (conn.version)
  conn.close()
  </code></pre>