Skip to content

Commit ff25784

Browse files
Use most recent default connect string in tutorial.
1 parent b104d40 commit ff25784

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

samples/SampleEnv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# [//]host_name[:port][/service_name][:server_type][/instance_name]
3030
#
3131
# Commonly just the host_name and service_name are needed
32-
# e.g. "localhost/orclpdb" or "localhost/XE"
32+
# e.g. "localhost/orclpdb1" or "localhost/XE"
3333
#
3434
# If using a tnsnames.ora file, the file can be in a default
3535
# location such as $ORACLE_HOME/network/admin/tnsnames.ora or
@@ -53,7 +53,7 @@
5353
DEFAULT_MAIN_USER = "pythondemo"
5454
DEFAULT_EDITION_USER = "pythoneditions"
5555
DEFAULT_EDITION_NAME = "python_e1"
56-
DEFAULT_CONNECT_STRING = "localhost/orclpdb"
56+
DEFAULT_CONNECT_STRING = "localhost/orclpdb1"
5757

5858
# dictionary containing all parameters; these are acquired as needed by the
5959
# methods below (which should be used instead of consulting this dictionary

samples/tutorial/Python-and-Oracle-Database-Scripting-for-the-Future.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ <h2><a name="preface">Preface</a></h2>
126126
<p>To create the schema run:</p>
127127

128128
<pre>
129-
sqlplus sys/yoursyspassword@localhost/orclpdb as sysdba @sql/SetupSamples
129+
sqlplus sys/yoursyspassword@localhost/orclpdb1 as sysdba @sql/SetupSamples
130130
</pre>
131131

132132
<h2><a name="connectioninformation">Connection Information</a></h2>
@@ -139,11 +139,11 @@ <h2><a name="connectioninformation">Connection Information</a></h2>
139139
</p>
140140

141141
<p>The username is "pythonhol" with
142-
the password "welcome". The connect string is "localhost/orclpdb".
142+
the password "welcome". The connect string is "localhost/orclpdb1".
143143
See <code>sql/SampleEnv.sql</code>.</p>
144144

145145
<p>It is easist to have a local pluggable database with the service
146-
'orclpdb' configured. If your database is not local, or has a
146+
'orclpdb1' configured. If your database is not local, or has a
147147
different service, you will need to modify the connection information in db_config.py and db_config.sql.</p>
148148

149149
<p>The following sections may need adjusting, depending on how you
@@ -183,16 +183,16 @@ <h4>1.1 Review the connection credentials</h4>
183183
<pre>
184184
user = "pythonhol"
185185
pw = "welcome"
186-
dsn = "localhost/orclpdb"
186+
dsn = "localhost/orclpdb1"
187187
</pre>
188188
<code>db_config.sql</code>
189189
<pre>
190190
def user = "pythonhol"
191191
def pw = "welcome"
192-
def connect_string = "localhost/orclpdb"
192+
def connect_string = "localhost/orclpdb1"
193193
</pre>
194194

195-
<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>
195+
<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>
196196

197197
</li>
198198

@@ -216,7 +216,7 @@ <h4>1.2 Creating a basic connection</h4>
216216
the db_config.py module. In this case, Oracle's Easy Connect connection
217217
string syntax is used. It consists of the hostname of your
218218
machine, <code>localhost</code>, and the database service name
219-
<code>orclpdb</code>. </p>
219+
<code>orclpdb1</code>. </p>
220220

221221
<p>Open a command terminal and change to the <code>tutorial</code> directory:</p>
222222

@@ -1137,7 +1137,7 @@ <h4>2.5 More DRCP investigation</h4>
11371137
<p>In a terminal window, start SQL*Plus using the lab credentials and connection string, such as:</p>
11381138

11391139
<pre>
1140-
sqlplus pythonhol/welcome@localhost/orclpdb
1140+
sqlplus pythonhol/welcome@localhost/orclpdb1
11411141
</pre>
11421142

11431143
<p>Use the SQL*Plus DESCRIBE command to look at the SDO definition:</p>

samples/tutorial/db_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
user = "pythonhol"
22
pw = "welcome"
3-
dsn = "localhost/orclpdb"
3+
dsn = "localhost/orclpdb1"

samples/tutorial/db_config.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
def user = "pythonhol"
22
def pw = "welcome"
3-
def connect_string = "localhost/orclpdb"
3+
def connect_string = "localhost/orclpdb1"

0 commit comments

Comments
 (0)