Skip to content

Commit 3e2dd72

Browse files
Change default connectstring to localhost/orclpdb to be consistent with the
default value used in the Oracle Database installer.
1 parent f13a9de commit 3e2dd72

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/src/module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ This allows you to use the exceptions for example in the following way:
11441144

11451145
import cx_Oracle
11461146

1147-
connection = cx_Oracle.Connection("cx_Oracle/dev@localhost/orcl")
1147+
connection = cx_Oracle.Connection("cx_Oracle/dev@localhost/orclpdb")
11481148
cursor = connection.cursor()
11491149

11501150
try:

samples/SampleEnv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# [//]host_name[:port][/service_name][:server_type][/instance_name]
2929
#
3030
# 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"
3232
#
3333
# If using a tnsnames.ora file, the file can be in a default
3434
# location such as $ORACLE_HOME/network/admin/tnsnames.ora or
@@ -44,7 +44,7 @@
4444
DEFAULT_EDITION_USER = "pythoneditions"
4545
DEFAULT_EDITION_PASSWORD = "welcome"
4646
DEFAULT_EDITION_NAME = "python_e1"
47-
DEFAULT_CONNECT_STRING = "localhost/orcl"
47+
DEFAULT_CONNECT_STRING = "localhost/orclpdb"
4848

4949
# values that will be used are the default values unless environment variables
5050
# have been set as noted above

test/TestEnv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# [//]host_name[:port][/service_name][:server_type][/instance_name]
3636
#
3737
# 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"
3939
#
4040
# If using a tnsnames.ora file, the file can be in a default
4141
# location such as $ORACLE_HOME/network/admin/tnsnames.ora or
@@ -50,7 +50,7 @@
5050
DEFAULT_MAIN_PASSWORD = "welcome"
5151
DEFAULT_PROXY_USER = "cx_Oracle_proxy"
5252
DEFAULT_PROXY_PASSWORD = "welcome"
53-
DEFAULT_CONNECT_STRING = "localhost/orcl"
53+
DEFAULT_CONNECT_STRING = "localhost/orclpdb"
5454
DEFAULT_ENCODING = "UTF-8"
5555
DEFAULT_NENCODING = "UTF-8"
5656
DEFAULT_ARRAY_SIZE = 5

0 commit comments

Comments
 (0)