python-cx_Oracle/samples
Anthony Tuininga 3e2dd725ad Change default connectstring to localhost/orclpdb to be consistent with the
default value used in the Oracle Database installer.
2017-08-08 15:39:02 -06:00
..
sql Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
AdvancedQueuing.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
AppContext.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
ArrayDMLRowCounts.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
BatchErrors.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
BindInsert.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
BindQuery.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
DMLReturningMultipleRows.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
DRCP.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
DatabaseChangeNotification.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
DatabaseShutdown.py Add comment to each sample indicating minimum version of cx_Oracle that is 2017-03-20 11:11:25 -06:00
DatabaseStartup.py Add comment to each sample indicating minimum version of cx_Oracle that is 2017-03-20 11:11:25 -06:00
Editioning.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
GenericRowFactory.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
ImplicitResults.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
InsertGeometry.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
PLSQLCollection.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
PLSQLFunction.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
PLSQLProcedure.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
PLSQLRecord.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
Query.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
QueryArraysize.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
QueryChangeNotification.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
README.md Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
ReturnLongs.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
ReturnNumbersAsDecimals.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
ReturnUnicode.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
RowsAsInstance.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
SampleEnv.py Change default connectstring to localhost/orclpdb to be consistent with the 2017-08-08 15:39:02 -06:00
ScrollableCursors.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
Subclassing.py Added samples that were originally created for Open World 2016. 2017-07-14 17:18:57 -06:00
Threads.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
TransactionGuard.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
TypeHandlers.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00
UniversalRowids.py Rework test suite and samples so that they are independent of each other and 2017-07-14 16:50:41 -06:00

README.md

This directory contains samples for cx_Oracle.

The schemas and SQL objects that are referenced in the samples can be created by running the SQL script sql/SetupSamples.sql. The syntax is:

sqlplus / as sysdba @sql/SetupSamples.sql

The script will create users pythondemo and pythoneditions and will create an edition called python_e1. If you wish to change the names of the users or the name of the edition you can edit the file sql/SampleEnv.sql. You will also need to edit the file SampleEnv.py or set environment variables as documented in SampleEnv.py.

After running the samples, the schemas and SQL objects can be dropped by running the SQL script sql/DropSamples.sql. The syntax is

sqlplus / as sysdba @sql/DropSamples.sql