python-oracledb/samples
Anthony Tuininga 6caccf9b51 Support for enhanced metadata. 2023-08-10 15:10:33 -06:00
..
data Added sample for loading CSV data. 2022-11-10 15:53:44 -07:00
sample_container Enable per-PDB DRCP for the sample container. 2022-06-22 15:32:55 -06:00
sql Move Oracle Database 21 and higher objects to its own schema file for 2023-04-21 11:47:23 -06:00
tutorial Support for enhanced metadata. 2023-08-10 15:10:33 -06:00
README.md Initial commit. 2022-05-20 16:08:18 -06:00
app_context.py Improvement to samples. 2022-06-08 11:14:24 -06:00
aq_notification.py Added support for getting the message id of the AQ message which generated 2022-06-17 13:32:22 -06:00
array_dml_rowcounts.py Improvement to samples. 2022-06-08 11:14:24 -06:00
batch_errors.py Improvement to samples. 2022-06-08 11:14:24 -06:00
bind_insert.py Improvement to samples. 2022-06-08 11:14:24 -06:00
bind_query.py Improvement to samples. 2022-06-08 11:14:24 -06:00
bulk_aq.py Improvement to samples. 2022-06-08 11:14:24 -06:00
call_timeout.py Improvement to samples. 2022-06-08 11:14:24 -06:00
connection_pool.py Usage updates for Flask demos. 2022-11-19 10:35:39 -07:00
cqn.py Update CQN samples to use client_initiated. 2022-10-26 17:37:16 -06:00
cqn_pool.py Update CQN samples to use client_initiated. 2022-10-26 17:37:16 -06:00
create_schema.py Move Oracle Database 21 and higher objects to its own schema file for 2023-04-21 11:47:23 -06:00
database_change_notification.py Update CQN samples to use client_initiated. 2022-10-26 17:37:16 -06:00
database_shutdown.py Initial commit. 2022-05-20 16:08:18 -06:00
database_startup.py Initial commit. 2022-05-20 16:08:18 -06:00
dbms_output.py Improvement to samples. 2022-06-08 11:14:24 -06:00
dml_returning_multiple_rows.py Improvement to samples. 2022-06-08 11:14:24 -06:00
drcp_pool.py Usage updates for Flask demos. 2022-11-19 10:35:39 -07:00
drop_schema.py Initial commit. 2022-05-20 16:08:18 -06:00
editioning.py Initial commit. 2022-05-20 16:08:18 -06:00
generic_row_factory.py Support for enhanced metadata. 2023-08-10 15:10:33 -06:00
implicit_results.py Improvement to samples. 2022-06-08 11:14:24 -06:00
insert_geometry.py Add Oracle object pretty-printing example. 2023-04-21 11:46:59 -06:00
json_blob.py Added support for fetching older style JSON columns as JSON. 2023-07-27 16:09:40 -06:00
json_direct.py Support added to thin mode for reading/writing OSON (JSON data type in 2023-03-21 17:24:40 -06:00
last_rowid.py Improvement to samples. 2022-06-08 11:14:24 -06:00
load_csv.py Added sample for loading CSV data. 2022-11-10 15:53:44 -07:00
multi_consumer_aq.py Improvement to samples. 2022-06-08 11:14:24 -06:00
object_aq.py Improvement to samples. 2022-06-08 11:14:24 -06:00
object_dump.py Add Oracle object pretty-printing example. 2023-04-21 11:46:59 -06:00
oracledb_upgrade.py Be more consistent with init_oracle_client usage. 2023-01-26 10:51:41 -07:00
plsql_collection.py Added support for binding and fetching data of type DB_TYPE_OBJECT 2022-11-01 14:33:39 -06:00
plsql_function.py Improvement to samples. 2022-06-08 11:14:24 -06:00
plsql_procedure.py Improvement to samples. 2022-06-08 11:14:24 -06:00
plsql_record.py Added support for binding and fetching data of type DB_TYPE_OBJECT 2022-11-01 14:33:39 -06:00
query.py Support for enhanced metadata. 2023-08-10 15:10:33 -06:00
query_arraysize.py Improvements to documentation and samples. 2023-03-21 17:23:13 -06:00
query_strings_as_bytes.py Support for enhanced metadata. 2023-08-10 15:10:33 -06:00
raw_aq.py Improvement to samples. 2022-06-08 11:14:24 -06:00
ref_cursor.py Improvement to samples. 2022-06-08 11:14:24 -06:00
return_lobs_as_strings.py Improvement to samples. 2022-06-08 11:14:24 -06:00
return_numbers_as_decimals.py Improvement to samples. 2022-06-08 11:14:24 -06:00
rows_as_instance.py Improvement to samples. 2022-06-08 11:14:24 -06:00
sample_env.py Move Oracle Database 21 and higher objects to its own schema file for 2023-04-21 11:47:23 -06:00
scrollable_cursors.py Improvement to samples. 2022-06-08 11:14:24 -06:00
session_callback.py Add session state example without tagging. 2023-02-14 10:45:53 -07:00
session_callback_plsql.py Add session state example without tagging. 2023-02-14 10:45:53 -07:00
session_callback_tagging.py Add session state example without tagging. 2023-02-14 10:45:53 -07:00
sharding_number_key.py Initial commit. 2022-05-20 16:08:18 -06:00
soda_basic.py Improvement to samples. 2022-06-08 11:14:24 -06:00
soda_bulk_insert.py Improvement to samples. 2022-06-08 11:14:24 -06:00
spatial_to_geopandas.py Support for enhanced metadata. 2023-08-10 15:10:33 -06:00
sqlp.py Clarify the unsupported type example comment. 2022-06-01 14:32:22 -06:00
subclassing.py Improvement to samples. 2022-06-08 11:14:24 -06:00
transaction_guard.py Initial commit. 2022-05-20 16:08:18 -06:00
type_handlers_json_strings.py Support for enhanced metadata. 2023-08-10 15:10:33 -06:00
type_handlers_objects.py Support for enhanced metadata. 2023-08-10 15:10:33 -06:00
universal_rowids.py Improvement to samples. 2022-06-08 11:14:24 -06:00

README.md

This directory contains samples for python-oracledb.

  1. The schemas and SQL objects that are referenced in the samples can be created by running the Python script create_schema.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 sample_env.py. Run the script using the following command:

    python create_schema.py
    
  2. Run a Python script, for example:

    python query.py
    
  3. After running python-oracledb samples, the schemas and SQL objects can be dropped by running the Python script drop_schema.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 sample_env.py. Run the script using the following command:

    python drop_schema.py