title: cx_Oracle: Format output
body: <p>Hello I'm writing a script which will get data from a Oracle DB.</p>
  
  <pre><code>#!/usr/bin/python
  
  #add paths for additional libraries
  import sys
  sys.path.append('/app/zhunix/python/lib')
  import cx_Oracle
  
  user = '*****'
  passwd = '******'
  sid = '*******'
  host = '**********'
  port = '*******'
  dsn_tns =  cx_Oracle.makedsn(host, port, sid)
  
  db = cx_Oracle.connect(user, passwd, dsn_tns)
  print("Database Version: " +  db.version)
  fqdn = raw_input("Hostname: ")
  
  
  var = """select USY_MAIN_FQDN,USY_SYS_ID,USY_SYS_NAME,USY_SYS_MEMORY,USY_SYS_PROCESSORS from IFC_UNIXINFRA.IFC_UNIXINFRA_SYSTEM_V where USY_SYS_NAME like ('%s')""" % fqdn
  
  cur = db.cursor()
  
  dbora = cur.execute(var)
  
  for row in dbora:
          print (row)
  
  cur.close()
  db.close()
  </code></pre>
  
  <p>Now when I print " row " it comes out like this (censored):</p>
  
  <pre><code>('servername.com', 1390863, 'servername', 147456, 8)
  </code></pre>
  
  <p>How I can make a print which looks like that?</p>
  
  <pre><code>FQDN:       servername.com
  ID:         1390863
  Hostname:   servername
  Memory:     147456
  Processors: 8
  </code></pre>
  
  <p>Thanks in advance for help :)</p>