tests. Although the two are aliases of one another, it makes sense to be consistent and to use the one that the DB API prefers as well.
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.sqlThe script will create users
pythondemoandpythoneditionsand will create an edition calledpython_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.
-
Run a Python script, for example:
python Query.py -
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