File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1324,7 +1324,7 @@ This allows you to use the exceptions for example in the following way:
1324
1324
1325
1325
import cx_Oracle
1326
1326
1327
- connection = cx_Oracle.connect("cx_Oracle/dev@localhost/orclpdb ")
1327
+ connection = cx_Oracle.connect("cx_Oracle/dev@localhost/orclpdb1 ")
1328
1328
cursor = connection.cursor()
1329
1329
1330
1330
try:
Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ Quick Start cx_Oracle Installation
86
86
87
87
import cx_Oracle
88
88
89
- # Connect as user "hr" with password "welcome" to the "orclpdb " service running on this computer.
90
- connection = cx_Oracle.connect("hr", "welcome", "localhost/orclpdb ")
89
+ # Connect as user "hr" with password "welcome" to the "orclpdb1 " service running on this computer.
90
+ connection = cx_Oracle.connect("hr", "welcome", "localhost/orclpdb1 ")
91
91
92
92
cursor = connection.cursor()
93
93
cursor.execute("""
Original file line number Diff line number Diff line change 29
29
# [//]host_name[:port][/service_name][:server_type][/instance_name]
30
30
#
31
31
# Commonly just the host_name and service_name are needed
32
- # e.g. "localhost/orclpdb1" or "localhost/XE "
32
+ # e.g. "localhost/orclpdb1" or "localhost/XEPDB1 "
33
33
#
34
34
# If using a tnsnames.ora file, the file can be in a default
35
35
# location such as $ORACLE_HOME/network/admin/tnsnames.ora or
Original file line number Diff line number Diff line change 33
33
# [//]host_name[:port][/service_name][:server_type][/instance_name]
34
34
#
35
35
# Commonly just the host_name and service_name are needed
36
- # e.g. "localhost/orclpdb " or "localhost/XE "
36
+ # e.g. "localhost/orclpdb1 " or "localhost/XEPDB1 "
37
37
#
38
38
# If using a tnsnames.ora file, the file can be in a default
39
39
# location such as $ORACLE_HOME/network/admin/tnsnames.ora or
58
58
# default values
59
59
DEFAULT_MAIN_USER = "pythontest"
60
60
DEFAULT_PROXY_USER = "pythontestproxy"
61
- DEFAULT_CONNECT_STRING = "localhost/orclpdb "
61
+ DEFAULT_CONNECT_STRING = "localhost/orclpdb1 "
62
62
63
63
# dictionary containing all parameters; these are acquired as needed by the
64
64
# methods below (which should be used instead of consulting this dictionary
You can’t perform that action at this time.
0 commit comments