参考其他文章:https://blog.csdn.net/danevc/article/details/54966443
参考官网文章:http://cx-oracle.readthedocs.io/en/latest/module.html#cx_Oracle.SessionPool
按照官网的思路比较好:
使用cx_Oracle.
SessionPool
返回一个会话池对象,这个对象调用 acquire()
就可以返回一个连接对象了。
Create and return a session pool object. Thisallows for very fast connections to the database and is of primary use in aserver where the same connection is being made mu