@@ -127,7 +127,8 @@ limitations under the License.
127
127
- 8.1 [ Connection Strings] ( #connectionstrings )
128
128
- 8.1.1 [ Easy Connect Syntax for Connection Strings] ( #easyconnect )
129
129
- 8.1.2 [ Net Service Names for Connection Strings] ( #tnsnames )
130
- - 8.1.3 [ JDBC and Node-oracledb Connection Strings Compared] ( #notjdbc )
130
+ - 8.1.3 [ Embedded Connection Strings] ( #embedtns )
131
+ - 8.1.4 [ JDBC and Node-oracledb Connection Strings Compared] ( #notjdbc )
131
132
- 8.2 [ Connections and Number of Threads] ( #numberofthreads )
132
133
- 8.3 [ Connection Pooling] ( #connpooling )
133
134
- 8.3.1 [ Connection Pool Cache] ( #connpoolcache )
@@ -2608,6 +2609,21 @@ variable and put the file in `$TNS_ADMIN/tnsnames.ora`. For more
2608
2609
information on ` tnsnames .ora ` files see [General Syntax of
2609
2610
tnsnames.ora][18] in the Oracle documentation.
2610
2611
2612
+ Some older databases may use a 'SID' instead of a 'Service Name'. A
2613
+ connection string for these databases could look like:
2614
+
2615
+ ` ` `
2616
+ sales =
2617
+ (DESCRIPTION =
2618
+ (ADDRESS = (PROTOCOL = TCP )(HOST = mymachine .example .com )(PORT = 1521 ))
2619
+ (CONNECT_DATA =
2620
+ (SERVER = DEDICATED )
2621
+ (SID = orcl)
2622
+ )
2623
+ )
2624
+ ` ` `
2625
+
2626
+ #### <a name="embedtns"></a> 8.1.3 Embedded Connection Strings
2611
2627
2612
2628
Full connection strings can be embedded in applications:
2613
2629
@@ -2623,7 +2639,7 @@ oracledb.getConnection(
2623
2639
. . .
2624
2640
` ` `
2625
2641
2626
- #### <a name="notjdbc"></a> 8.1.3 JDBC and Node-oracledb Connection Strings Compared
2642
+ #### <a name="notjdbc"></a> 8.1.4 JDBC and Node-oracledb Connection Strings Compared
2627
2643
2628
2644
Developers familiar with Java connection strings that reference a
2629
2645
service name like:
0 commit comments