Update defaults to 19c and XE 18c defaults.
This commit is contained in:
parent
202d48b9dc
commit
bb84eecc5c
@ -1324,7 +1324,7 @@ This allows you to use the exceptions for example in the following way:
|
|||||||
|
|
||||||
import cx_Oracle
|
import cx_Oracle
|
||||||
|
|
||||||
connection = cx_Oracle.connect("cx_Oracle/dev@localhost/orclpdb")
|
connection = cx_Oracle.connect("cx_Oracle/dev@localhost/orclpdb1")
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
@ -86,8 +86,8 @@ Quick Start cx_Oracle Installation
|
|||||||
|
|
||||||
import cx_Oracle
|
import cx_Oracle
|
||||||
|
|
||||||
# Connect as user "hr" with password "welcome" to the "orclpdb" service running on this computer.
|
# Connect as user "hr" with password "welcome" to the "orclpdb1" service running on this computer.
|
||||||
connection = cx_Oracle.connect("hr", "welcome", "localhost/orclpdb")
|
connection = cx_Oracle.connect("hr", "welcome", "localhost/orclpdb1")
|
||||||
|
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
# [//]host_name[:port][/service_name][:server_type][/instance_name]
|
# [//]host_name[:port][/service_name][:server_type][/instance_name]
|
||||||
#
|
#
|
||||||
# Commonly just the host_name and service_name are needed
|
# Commonly just the host_name and service_name are needed
|
||||||
# e.g. "localhost/orclpdb1" or "localhost/XE"
|
# e.g. "localhost/orclpdb1" or "localhost/XEPDB1"
|
||||||
#
|
#
|
||||||
# If using a tnsnames.ora file, the file can be in a default
|
# If using a tnsnames.ora file, the file can be in a default
|
||||||
# location such as $ORACLE_HOME/network/admin/tnsnames.ora or
|
# location such as $ORACLE_HOME/network/admin/tnsnames.ora or
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
# [//]host_name[:port][/service_name][:server_type][/instance_name]
|
# [//]host_name[:port][/service_name][:server_type][/instance_name]
|
||||||
#
|
#
|
||||||
# Commonly just the host_name and service_name are needed
|
# Commonly just the host_name and service_name are needed
|
||||||
# e.g. "localhost/orclpdb" or "localhost/XE"
|
# e.g. "localhost/orclpdb1" or "localhost/XEPDB1"
|
||||||
#
|
#
|
||||||
# If using a tnsnames.ora file, the file can be in a default
|
# If using a tnsnames.ora file, the file can be in a default
|
||||||
# location such as $ORACLE_HOME/network/admin/tnsnames.ora or
|
# location such as $ORACLE_HOME/network/admin/tnsnames.ora or
|
||||||
@ -58,7 +58,7 @@ except NameError:
|
|||||||
# default values
|
# default values
|
||||||
DEFAULT_MAIN_USER = "pythontest"
|
DEFAULT_MAIN_USER = "pythontest"
|
||||||
DEFAULT_PROXY_USER = "pythontestproxy"
|
DEFAULT_PROXY_USER = "pythontestproxy"
|
||||||
DEFAULT_CONNECT_STRING = "localhost/orclpdb"
|
DEFAULT_CONNECT_STRING = "localhost/orclpdb1"
|
||||||
|
|
||||||
# dictionary containing all parameters; these are acquired as needed by the
|
# dictionary containing all parameters; these are acquired as needed by the
|
||||||
# methods below (which should be used instead of consulting this dictionary
|
# methods below (which should be used instead of consulting this dictionary
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user