Skip to content

Commit 8fc7f28

Browse files
committed
Mention SIDs. Give embedded connect strings a title
1 parent 71c6853 commit 8fc7f28

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

doc/api.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ limitations under the License.
127127
- 8.1 [Connection Strings](#connectionstrings)
128128
- 8.1.1 [Easy Connect Syntax for Connection Strings](#easyconnect)
129129
- 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)
131132
- 8.2 [Connections and Number of Threads](#numberofthreads)
132133
- 8.3 [Connection Pooling](#connpooling)
133134
- 8.3.1 [Connection Pool Cache](#connpoolcache)
@@ -2608,6 +2609,21 @@ variable and put the file in `$TNS_ADMIN/tnsnames.ora`. For more
26082609
information on `tnsnames.ora` files see [General Syntax of
26092610
tnsnames.ora][18] in the Oracle documentation.
26102611
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
26112627
26122628
Full connection strings can be embedded in applications:
26132629
@@ -2623,7 +2639,7 @@ oracledb.getConnection(
26232639
. . .
26242640
```
26252641
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
26272643
26282644
Developers familiar with Java connection strings that reference a
26292645
service name like:

0 commit comments

Comments
 (0)