python-cx_Oracle/samples
Anthony Tuininga c710fb89a6 Update tutorial links. 2020-04-06 14:02:20 -06:00
..
sql Adjust samples so that they run unchanged against Oracle Cloud databases: 2019-11-13 16:43:07 -07:00
tutorial Update tutorial links. 2020-04-06 14:02:20 -06:00
AdvancedQueuingNotification.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
AppContext.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
ArrayDMLRowCounts.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
BatchErrors.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
BindInsert.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
BindQuery.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
BulkAQ.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
CQN.py Remove unnecessary imports. 2020-01-21 15:03:08 -07:00
CQN2.py Use with clause when acquiring connections from a pool so that they are 2020-04-06 13:53:26 -06:00
CallTimeout.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
DMLReturningMultipleRows.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
DRCP.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
DatabaseChangeNotification.py Remove unnecessary imports. 2020-01-21 15:03:08 -07:00
DatabaseShutdown.py Adjust copyright notices to match requirements of Oracle Legal. 2018-09-10 11:39:51 -06:00
DatabaseStartup.py Adjust copyright notices to match requirements of Oracle Legal. 2018-09-10 11:39:51 -06:00
DropSamples.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
Editioning.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
GenericRowFactory.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
ImplicitResults.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
InsertGeometry.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
LastRowid.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
ObjectAQ.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
PLSQLCollection.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
PLSQLFunction.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
PLSQLProcedure.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
PLSQLRecord.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
Query.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
QueryArraysize.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
README.md Reworked samples so that no default passwords are defined anywhere; added 2019-01-31 10:15:40 -07:00
RawAQ.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
RefCursor.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
ReturnLobsAsStrings.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
ReturnNumbersAsDecimals.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
ReturnUnicode.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
RowsAsInstance.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
SampleEnv.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
ScrollableCursors.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
SessionCallback.py Use with clause when acquiring connections from a pool so that they are 2020-04-06 13:53:26 -06:00
SessionCallbackPLSQL.py Use with clause when acquiring connections from a pool so that they are 2020-04-06 13:53:26 -06:00
SetupSamples.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
ShardingNumberKey.py Added sample demonstrating the use of sharding capabilities. 2020-04-03 13:20:55 -06:00
SodaBasic.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
SodaBulkInsert.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
SpatialToGeoPandas.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
Subclassing.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
Threads.py Use with clause when acquiring connections from a pool so that they are 2020-04-06 13:53:26 -06:00
TransactionGuard.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
TypeHandlers.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07:00
UniversalRowids.py cx_Oracle 8 when it is released will not support Python 2.7. 2019-12-04 15:06:25 -07: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 Python script SetupSamples.py. The script requires SYSDBA privileges and will prompt for these credentials as well as the names of the schemas and edition that will be created, unless a number of environment variables are set as documented in the Python script SampleEnv.py. Run the script using the following command:

    python SetupSamples.py
    

    Alternatively, the SQL script can be run directly via SQL*Plus, which will always prompt for the names of the schemas and edition that will be created.

    sqlplus sys/syspassword@hostname/servicename @sql/SetupSamples.sql
    
  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 Python script DropSamples.py. The script requires SYSDBA privileges and will prompt for these credentials as well as the names of the schemas and edition that will be dropped, unless a number of environment variables are set as documented in the Python script SampleEnv.py. Run the script using the following command:

    python DropSamples.py
    

    Alternatively, the SQL script can be run directly via SQL*Plus, which will always prompt for the names of the schemas and edition that will be dropped.

    sqlplus sys/syspassword@hostname/servicename @sql/DropSamples.sql