File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1144,7 +1144,7 @@ This allows you to use the exceptions for example in the following way:
1144
1144
1145
1145
import cx_Oracle
1146
1146
1147
- connection = cx_Oracle.Connection("cx_Oracle/dev@localhost/orcl ")
1147
+ connection = cx_Oracle.Connection("cx_Oracle/dev@localhost/orclpdb ")
1148
1148
cursor = connection.cursor()
1149
1149
1150
1150
try:
Original file line number Diff line number Diff line change 28
28
# [//]host_name[:port][/service_name][:server_type][/instance_name]
29
29
#
30
30
# Commonly just the host_name and service_name are needed
31
- # e.g. "localhost/orcl " or "localhost/XE"
31
+ # e.g. "localhost/orclpdb " or "localhost/XE"
32
32
#
33
33
# If using a tnsnames.ora file, the file can be in a default
34
34
# location such as $ORACLE_HOME/network/admin/tnsnames.ora or
44
44
DEFAULT_EDITION_USER = "pythoneditions"
45
45
DEFAULT_EDITION_PASSWORD = "welcome"
46
46
DEFAULT_EDITION_NAME = "python_e1"
47
- DEFAULT_CONNECT_STRING = "localhost/orcl "
47
+ DEFAULT_CONNECT_STRING = "localhost/orclpdb "
48
48
49
49
# values that will be used are the default values unless environment variables
50
50
# have been set as noted above
Original file line number Diff line number Diff line change 35
35
# [//]host_name[:port][/service_name][:server_type][/instance_name]
36
36
#
37
37
# Commonly just the host_name and service_name are needed
38
- # e.g. "localhost/orcl " or "localhost/XE"
38
+ # e.g. "localhost/orclpdb " or "localhost/XE"
39
39
#
40
40
# If using a tnsnames.ora file, the file can be in a default
41
41
# location such as $ORACLE_HOME/network/admin/tnsnames.ora or
50
50
DEFAULT_MAIN_PASSWORD = "welcome"
51
51
DEFAULT_PROXY_USER = "cx_Oracle_proxy"
52
52
DEFAULT_PROXY_PASSWORD = "welcome"
53
- DEFAULT_CONNECT_STRING = "localhost/orcl "
53
+ DEFAULT_CONNECT_STRING = "localhost/orclpdb "
54
54
DEFAULT_ENCODING = "UTF-8"
55
55
DEFAULT_NENCODING = "UTF-8"
56
56
DEFAULT_ARRAY_SIZE = 5
You can’t perform that action at this time.
0 commit comments