python-cx_Oracle/samples
Anthony Tuininga 980f3d491c Added support for indicating if the subscription is still registered with the
database when a notification is received.
2018-06-19 11:00:53 -06:00
..
sql Added support for receiving notifications when AQ messages are available to be 2018-05-29 21:54:06 -06:00
tutorial Modified the solutions of the HoL for Collaborate (#170) 2018-04-21 10:08:04 -07:00
AdvancedQueuing.py Added support for receiving notifications when AQ messages are available to be 2018-05-29 21:54:06 -06:00
AdvancedQueuingNotification.py Added support for receiving notifications when AQ messages are available to be 2018-05-29 21:54:06 -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 Adjust data values to clarify distinction between "parent" and "child" values. 2018-05-18 14:23:54 -06:00
BatchErrors.py Adjust data values to clarify distinction between "parent" and "child" values. 2018-05-18 14:23:54 -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
CQN.py Added support for indicating if the subscription is still registered with the 2018-06-19 11:00:53 -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 Correct name of data dictionary view for DRCP sample. 2017-11-17 21:38:59 -07:00
DatabaseChangeNotification.py Added support for indicating if the subscription is still registered with the 2018-06-19 11:00:53 -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 Add missing import; clarify example. 2018-05-09 19:33:26 -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
README.md Various improvements to installation documentation. 2018-01-30 15:26:48 -07:00
RefCursor.py Added sample demonstrating the use of REF cursors. 2018-05-18 14:25:20 -06:00
ReturnLobsAsStrings.py Rename sample and adjust documentation in sample to clarify use. 2018-05-18 14:24:52 -06:00
ReturnNumbersAsDecimals.py Simplify sample for returning numbers as decimal objects. 2017-10-24 22:04:17 -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
SpatialToGeoPandas.py Add a more explicit note about the dependency on GeoPandas. 2018-04-30 13:12:06 -06:00
Subclassing.py Adjust data values to clarify distinction between "parent" and "child" values. 2018-05-18 14:23:54 -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 Remove unnecessary line. 2017-11-17 21:40:28 -07: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.

  1. 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 it.

  2. Run a Python script, for example:

     python Query.py
    
  3. After running cx_Oracle 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