title: How to run parallel queries using multiporcessing pool and cx_oracle
body: <p>Am trying to run multiple processes using python's <code>Pool</code>, each process will be inquiring database this is why am trying to pass the connection to each process and then initiating a new cursor for query execution</p>
  
  <pre><code>db = DBConnection()
  
  sessoion_pool, cursor= db.get_session_pool()
  connection = sessoion_pool.acquire()
  
  part_list = [e for l in get_parts_list() for e in l]
  
  pool = Pool()
  pool.map(scan_part_best_model, (part_list, connection))
  </code></pre>
  
  <p>yet it keeps throwing <code>TypeError: can't pickle cx_Oracle.Connection objects</code>
  I also tried doing same for <code>Session</code> and using <code>session.acquire()</code> in the function logic, but it throws same error</p>