Use most recent default connect string in tutorial.
This commit is contained in:
parent
b104d40016
commit
ff25784c21
|
@ -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/orclpdb" or "localhost/XE"
|
# e.g. "localhost/orclpdb1" or "localhost/XE"
|
||||||
#
|
#
|
||||||
# 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
|
||||||
|
@ -53,7 +53,7 @@ except NameError:
|
||||||
DEFAULT_MAIN_USER = "pythondemo"
|
DEFAULT_MAIN_USER = "pythondemo"
|
||||||
DEFAULT_EDITION_USER = "pythoneditions"
|
DEFAULT_EDITION_USER = "pythoneditions"
|
||||||
DEFAULT_EDITION_NAME = "python_e1"
|
DEFAULT_EDITION_NAME = "python_e1"
|
||||||
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
|
||||||
|
|
|
@ -126,7 +126,7 @@
|
||||||
<p>To create the schema run:</p>
|
<p>To create the schema run:</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
sqlplus sys/yoursyspassword@localhost/orclpdb as sysdba @sql/SetupSamples
|
sqlplus sys/yoursyspassword@localhost/orclpdb1 as sysdba @sql/SetupSamples
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h2><a name="connectioninformation">Connection Information</a></h2>
|
<h2><a name="connectioninformation">Connection Information</a></h2>
|
||||||
|
@ -139,11 +139,11 @@ sqlplus sys/yoursyspassword@localhost/orclpdb as sysdba @sql/SetupSamples
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>The username is "pythonhol" with
|
<p>The username is "pythonhol" with
|
||||||
the password "welcome". The connect string is "localhost/orclpdb".
|
the password "welcome". The connect string is "localhost/orclpdb1".
|
||||||
See <code>sql/SampleEnv.sql</code>.</p>
|
See <code>sql/SampleEnv.sql</code>.</p>
|
||||||
|
|
||||||
<p>It is easist to have a local pluggable database with the service
|
<p>It is easist to have a local pluggable database with the service
|
||||||
'orclpdb' configured. If your database is not local, or has a
|
'orclpdb1' configured. If your database is not local, or has a
|
||||||
different service, you will need to modify the connection information in db_config.py and db_config.sql.</p>
|
different service, you will need to modify the connection information in db_config.py and db_config.sql.</p>
|
||||||
|
|
||||||
<p>The following sections may need adjusting, depending on how you
|
<p>The following sections may need adjusting, depending on how you
|
||||||
|
@ -183,16 +183,16 @@ sqlplus sys/yoursyspassword@localhost/orclpdb as sysdba @sql/SetupSamples
|
||||||
<pre>
|
<pre>
|
||||||
user = "pythonhol"
|
user = "pythonhol"
|
||||||
pw = "welcome"
|
pw = "welcome"
|
||||||
dsn = "localhost/orclpdb"
|
dsn = "localhost/orclpdb1"
|
||||||
</pre>
|
</pre>
|
||||||
<code>db_config.sql</code>
|
<code>db_config.sql</code>
|
||||||
<pre>
|
<pre>
|
||||||
def user = "pythonhol"
|
def user = "pythonhol"
|
||||||
def pw = "welcome"
|
def pw = "welcome"
|
||||||
def connect_string = "localhost/orclpdb"
|
def connect_string = "localhost/orclpdb1"
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>By default they connect to the 'orclpdb' database service on the same machine as Python. You can modify the values in both files to match the connection information for your environment.</p>
|
<p>By default they connect to the 'orclpdb1' database service on the same machine as Python. You can modify the values in both files to match the connection information for your environment.</p>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ print("Database version:", con.version)
|
||||||
the db_config.py module. In this case, Oracle's Easy Connect connection
|
the db_config.py module. In this case, Oracle's Easy Connect connection
|
||||||
string syntax is used. It consists of the hostname of your
|
string syntax is used. It consists of the hostname of your
|
||||||
machine, <code>localhost</code>, and the database service name
|
machine, <code>localhost</code>, and the database service name
|
||||||
<code>orclpdb</code>. </p>
|
<code>orclpdb1</code>. </p>
|
||||||
|
|
||||||
<p>Open a command terminal and change to the <code>tutorial</code> directory:</p>
|
<p>Open a command terminal and change to the <code>tutorial</code> directory:</p>
|
||||||
|
|
||||||
|
@ -1137,7 +1137,7 @@ print(res)
|
||||||
<p>In a terminal window, start SQL*Plus using the lab credentials and connection string, such as:</p>
|
<p>In a terminal window, start SQL*Plus using the lab credentials and connection string, such as:</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
sqlplus pythonhol/welcome@localhost/orclpdb
|
sqlplus pythonhol/welcome@localhost/orclpdb1
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>Use the SQL*Plus DESCRIBE command to look at the SDO definition:</p>
|
<p>Use the SQL*Plus DESCRIBE command to look at the SDO definition:</p>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
user = "pythonhol"
|
user = "pythonhol"
|
||||||
pw = "welcome"
|
pw = "welcome"
|
||||||
dsn = "localhost/orclpdb"
|
dsn = "localhost/orclpdb1"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
def user = "pythonhol"
|
def user = "pythonhol"
|
||||||
def pw = "welcome"
|
def pw = "welcome"
|
||||||
def connect_string = "localhost/orclpdb"
|
def connect_string = "localhost/orclpdb1"
|
||||||
|
|
Loading…
Reference in New Issue