From kirannk007 at gmail.com Tue Mar 7 11:55:51 2017 From: kirannk007 at gmail.com (Kirankumar N) Date: Tue, 7 Mar 2017 22:25:51 +0530 Subject: [DB-SIG] ORA-12560: TNS:protocol adapter error Message-ID: <8A96AD47-2B01-4F45-B4AF-61FA15C9C655@gmail.com> Hi Folks, I?m working with cx_Oracle 5.2.1 and Python 2.7, it was all fine till my firm decided to change the DB connections from TCP to TCPS. so, i was forced to change the way we connect to DB using TNSORA file. This is how my code goes for the connection, import cx_Oracle cx_Oracle.connect(?user/pass at dbconnect?) on execution of above code snippet it throws below error. cx_Oracle.DatabaseError: ORA-12560: TNS:protocol adapter error Even my DB team are clueless as there is no issue connecting with SQLPLUS and only issue with python module I don?t see any issue connection to database using the same handler using sqlplus, which confirms all my TNS_ADMIN and ORACLE_HOME are all set right ! system123:~ Mymac$ sqlplus user/pass at dbconnect SQL*Plus: Release 12.1.0.2.0 Production on Tue Mar 7 22:21:04 2017 Copyright (c) 1982, 2016, Oracle. All rights reserved. Last Successful login time: Tue Mar 07 2017 22:15:01 +05:30 Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Advanced Analytics, Real Application Testing and Unified Auditing options SQL> Your help would be greatly appreciated here, hope i can get a solution. Thanks., Kiran -------------- next part -------------- An HTML attachment was scrubbed... URL: From phd at phdru.name Sat Mar 11 11:15:07 2017 From: phd at phdru.name (Oleg Broytman) Date: Sat, 11 Mar 2017 17:15:07 +0100 Subject: [DB-SIG] SQLObject 3.2.0 Message-ID: <20170311161507.GA19180@phdru.name> Hello! I'm pleased to announce version 3.2.0, the first stable release of branch 3.2 of SQLObject. What's new in SQLObject ======================= Contributor for this release is Neil Muller. Minor features -------------- * Drop table name from ``VACUUM`` command in SQLiteConnection: SQLite doesn't vacuum a single table and SQLite 3.15 uses the supplied name as the name of the attached database to vacuum. * Remove ``driver`` keyword from RdbhostConnection as it allows one driver ``rdbhdb``. * Add ``driver`` keyword for FirebirdConnection. Allowed values are 'fdb', 'kinterbasdb' and 'pyfirebirdsql'. Default is to test 'fdb' and 'kinterbasdb' in that order. pyfirebirdsql is supported but has problems. * Add ``driver`` keyword for MySQLConnection. Allowed values are 'mysqldb', 'connector', 'oursql' and 'pymysql'. Default is to test for mysqldb only. * Add support for `MySQL Connector `_ (pure python; `binary packages `_ are not at PyPI and hence are hard to install and test). * Add support for `oursql `_ MySQL driver (only Python 2.6 and 2.7 until oursql author fixes Python 3 compatibility). * Add support for `PyMySQL `_ - pure python mysql interface). * Add parameter ``timeout`` for MSSQLConnection (usable only with pymssql driver); timeouts are in seconds. * Remove deprecated ez_setup.py. Drivers (work in progress) -------------------------- * Extend support for PyGreSQL driver. There are still some problems. * Add support for `py-postgresql `_ PostgreSQL driver. There are still problems with the driver. * Add support for `pyfirebirdsql `_.There are still problems with the driver. Bug fixes --------- * Fix MSSQLConnection.columnsFromSchema: remove `(` and `)` from default value. * Fix MSSQLConnection and SybaseConnection: insert default values into a table with just one IDENTITY column. * Remove excessive NULLs from ``CREATE TABLE`` for MSSQL/Sybase. * Fix concatenation operator for MSSQL/Sybase (it's ``+``, not ``||``). * Fix MSSQLConnection.server_version() under Py3 (decode version to str). Documentation ------------- * The docs are now generated with Sphinx. * Move ``docs/LICENSE`` to the top-level directory so that Github recognizes it. Tests ----- * Rename ``py.test`` -> ``pytest`` in tests and docs. * Great Renaming: fix ``pytest`` warnings by renaming ``TestXXX`` classes to ``SOTestXXX`` to prevent ``pytest`` to recognize them as test classes. * Fix ``pytest`` warnings by converting yield tests to plain calls: yield tests were deprecated in ``pytest``. * Tests are now run at CIs with Python 3.5. * Drop ``Circle CI``. * Run at Travis CI tests with Firebird backend (server version 2.5; drivers fdb and firebirdsql). There are problems with tests. * Run tests at AppVeyor for windows testing. Run tests with MS SQL, MySQL, Postgres and SQLite backends; use Python 2.7, 3.4 and 3.5, x86 and x64. There are problems with MS SQL and MySQL. For a more complete list, please see the news: http://sqlobject.org/News.html What is SQLObject ================= SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to use and quick to get started with. SQLObject supports a number of backends: MySQL, PostgreSQL, SQLite, Firebird, Sybase, MSSQL and MaxDB (also known as SAPDB). Python 2.6, 2.7 or 3.4+ is required. Where is SQLObject ================== Site: http://sqlobject.org Development: http://sqlobject.org/devel/ Mailing list: https://lists.sourceforge.net/mailman/listinfo/sqlobject-discuss Archives: http://news.gmane.org/gmane.comp.python.sqlobject Download: https://pypi.python.org/pypi/SQLObject/3.2.0 News and changes: http://sqlobject.org/News.html Oleg. -- Oleg Broytman http://phdru.name/ phd at phdru.name Programmers don't die, they just GOSUB without RETURN. From python at aryehleib.com Mon Mar 27 02:11:53 2017 From: python at aryehleib.com (Aryeh Leib Taurog) Date: Mon, 27 Mar 2017 09:11:53 +0300 Subject: [DB-SIG] pgcopy 1.2.0 Message-ID: <20170327061153.GA6487@deb76.aryehleib.com> pgcopy 1.2.0 is now available! pgcopy is a small utility for fast inserts to postgresql using binary copy. Features: * Support for many datatypes * Tested with python 2.7 and 3.3 - 3.6 * Works with postgresql versions 8.4 - 9.6 * Cache data on disk or in memory * Supports explicit db schema