|
3 | 3 | This directory contains samples for [cx_Oracle][6]. Documentation is [here][7].
|
4 | 4 |
|
5 | 5 | 1. The schemas and SQL objects that are referenced in the samples can be
|
6 |
| - created by running the Python script [SetupSamples.py][1]. The script |
| 6 | + created by running the Python script [setup_samples.py][1]. The script |
7 | 7 | requires SYSDBA privileges and will prompt for these credentials as well as
|
8 | 8 | the names of the schemas and edition that will be created, unless a number
|
9 | 9 | of environment variables are set as documented in the Python script
|
10 | 10 | [sample_env.py][2]. Run the script using the following command:
|
11 | 11 |
|
12 |
| - python SetupSamples.py |
| 12 | + python setup_samples.py |
13 | 13 |
|
14 | 14 | Alternatively, the [SQL script][3] can be run directly via SQL\*Plus, which
|
15 | 15 | will always prompt for the names of the schemas and edition that will be
|
16 | 16 | created.
|
17 | 17 |
|
18 |
| - sqlplus sys/syspassword@hostname/servicename @sql/SetupSamples.sql |
| 18 | + sqlplus sys/syspassword@hostname/servicename @sql/setup_samples.sql |
19 | 19 |
|
20 | 20 | 2. Run a Python script, for example:
|
21 | 21 |
|
22 | 22 | python Query.py
|
23 | 23 |
|
24 | 24 | 3. After running cx_Oracle samples, the schemas and SQL objects can be
|
25 |
| - dropped by running the Python script [DropSamples.py][4]. The script |
| 25 | + dropped by running the Python script [drop_samples.py][4]. The script |
26 | 26 | requires SYSDBA privileges and will prompt for these credentials as well as
|
27 | 27 | the names of the schemas and edition that will be dropped, unless a number
|
28 | 28 | of environment variables are set as documented in the Python script
|
29 | 29 | [sample_env.py][2]. Run the script using the following command:
|
30 | 30 |
|
31 |
| - python DropSamples.py |
| 31 | + python drop_samples.py |
32 | 32 |
|
33 | 33 | Alternatively, the [SQL script][5] can be run directly via SQL\*Plus, which
|
34 | 34 | will always prompt for the names of the schemas and edition that will be
|
35 | 35 | dropped.
|
36 | 36 |
|
37 |
| - sqlplus sys/syspassword@hostname/servicename @sql/DropSamples.sql |
| 37 | + sqlplus sys/syspassword@hostname/servicename @sql/drop_samples.sql |
38 | 38 |
|
39 |
| -[1]: https://github.com/oracle/python-cx_Oracle/blob/master/samples/SetupSamples.py |
40 |
| -[2]: https://github.com/oracle/python-cx_Oracle/blob/master/samples/SampleEnv.py |
41 |
| -[3]: https://github.com/oracle/python-cx_Oracle/blob/master/samples/sql/SetupSamples.sql |
42 |
| -[4]: https://github.com/oracle/python-cx_Oracle/blob/master/samples/DropSamples.py |
43 |
| -[5]: https://github.com/oracle/python-cx_Oracle/blob/master/samples/sql/DropSamples.sql |
| 39 | +[1]: https://github.com/oracle/python-cx_Oracle/blob/master/samples/setup_samples.py |
| 40 | +[2]: https://github.com/oracle/python-cx_Oracle/blob/master/samples/sample_env.py |
| 41 | +[3]: https://github.com/oracle/python-cx_Oracle/blob/master/samples/sql/setup_samples.sql |
| 42 | +[4]: https://github.com/oracle/python-cx_Oracle/blob/master/samples/drop_samples.py |
| 43 | +[5]: https://github.com/oracle/python-cx_Oracle/blob/master/samples/sql/drop_samples.sql |
44 | 44 | [6]: https://oracle.github.io/python-cx_Oracle/
|
45 | 45 | [7]: http://cx-oracle.readthedocs.org/en/latest/index.html
|
0 commit comments