@@ -174,9 +174,10 @@ limitations under the License.
174
174
- 8.3.4 [ Connection Pool Pinging] ( #connpoolpinging )
175
175
- 8.4 [ Database Resident Connection Pooling (DRCP)] ( #drcp )
176
176
- 8.5 [ External Authentication] ( #extauth )
177
- - 8.6 [ Securely Encrypting Network Traffic to Oracle Database] ( #securenetwork )
178
- - 8.7 [ Connections and High Availability] ( #connectionha )
179
- - 8.8 [ Optional Client Configuration Files] ( #tnsadmin )
177
+ - 8.6 [ Privileged Connections] ( #privconn )
178
+ - 8.7 [ Securely Encrypting Network Traffic to Oracle Database] ( #securenetwork )
179
+ - 8.8 [ Connections and High Availability] ( #connectionha )
180
+ - 8.9 [ Optional Client Configuration Files] ( #tnsadmin )
180
181
9 . [ SQL Execution] ( #sqlexecution )
181
182
- 9.1 [ SELECT Statements] ( #select )
182
183
- 9.1.1 [ Fetching Rows with Direct Fetches] ( #fetchingrows )
@@ -524,10 +525,10 @@ oracledb.BIND_OUT // (3003) Direction for OUT binds
524
525
525
526
#### <a name =" oracledbconstantsprivilege " ></a > 3.1.5 Privileged Connection Constants
526
527
527
- Constants for [ ` getConnection() ` ] ( #getconnectiondb ) ` privilege `
528
- properties.
528
+ Constants for [ ` getConnection() ` ] ( #getconnectiondb )
529
+ [ ` privilege ` ] ( #getconnectiondbattrsprivilege ) properties.
529
530
530
- These specify what [ privilege] ( #getconnectiondbattrsprivilege ) should
531
+ These specify what privilege should
531
532
be used by the connection that is being established.
532
533
533
534
```
@@ -1192,7 +1193,7 @@ console.log("Driver version is " + oracledb.versionString);
1192
1193
readonly String versionSuffix
1193
1194
```
1194
1195
1195
- This readonly property gives a string representing the version suffix (e.g. "-dev" or "-beta") or the value undefined if no version suffix is present.
1196
+ This readonly property gives a string representing the version suffix (e.g. "-dev" or "-beta") or an empty string if no version suffix is present.
1196
1197
1197
1198
##### Example
1198
1199
@@ -1581,6 +1582,8 @@ The privilege to use when establishing connection to the database. This
1581
1582
optional property should be one of the
1582
1583
[ privileged connection constants] ( #oracledbconstantsprivilege ) .
1583
1584
1585
+ See [ Privileged Connections] ( #privconn ) for more information.
1586
+
1584
1587
Note only non-pooled connections can be privileged.
1585
1588
1586
1589
See the [ Database Administrators Guide] [ 90 ] for information on
@@ -3490,7 +3493,37 @@ of open connections exceeds `poolMin` and connections are idle for
3490
3493
more than the [` poolTimeout` ](#propdbpooltimeout) seconds, then the
3491
3494
number of open connections does not fall below ` poolMin` .
3492
3495
3493
- ### <a name="securenetwork"></a> 8.6 Securely Encrypting Network Traffic to Oracle Database
3496
+ ### <a name="privconn"></a> 8.6 Privileged Connections
3497
+
3498
+ Database privileges such as ` SYSDBA ` can be obtained when using
3499
+ standalone connections. Use one of the [Privileged Connection
3500
+ Constants](#oracledbconstantsprivilege) with the connection
3501
+ [` privilege` ](#getconnectiondbattrsprivilege) property, for example:
3502
+
3503
+ ` ` `
3504
+ oracledb .getConnection (
3505
+ {
3506
+ user : ' sys' ,
3507
+ password : ' secret' ,
3508
+ connectString : ' localhost/orclpdb' ,
3509
+ privilege : oracledb .SYSDBA
3510
+ },
3511
+ function (err , connection ) {
3512
+ if (err)
3513
+ console .error (err);
3514
+ else
3515
+ console .log (' I have power' );
3516
+ }
3517
+ );
3518
+ ` ` `
3519
+
3520
+ Administrative privileges can allow access to a database instance even
3521
+ when the database is not open. Control of these privileges is totally
3522
+ outside of the database itself. Care must be taken with
3523
+ authentication to ensure security. See the [Database Administrators
3524
+ Guide][90] for information.
3525
+
3526
+ ### <a name="securenetwork"></a> 8.7 Securely Encrypting Network Traffic to Oracle Database
3494
3527
3495
3528
Data transferred between Oracle Database and the Oracle client
3496
3529
libraries used by node-oracledb can be [encrypted][30] so that
@@ -3556,7 +3589,7 @@ manual also contains information about other important security
3556
3589
features that Oracle Database provides, such Transparent Data
3557
3590
Encryption of data-at-rest in the database.
3558
3591
3559
- ### <a name="connectionha"></a> 8.7 Connections and High Availability
3592
+ ### <a name="connectionha"></a> 8.8 Connections and High Availability
3560
3593
3561
3594
For applications that need to be highly available, you may want to
3562
3595
configure your OS network settings and Oracle Net (which handles
@@ -3573,7 +3606,7 @@ setting [`ENABLE=BROKEN`][36].
3573
3606
Other [Oracle Network Services][37] options may also be useful for
3574
3607
high availability and performance tuning.
3575
3608
3576
- ### <a name="tnsadmin"></a> 8.8 Optional Client Configuration Files
3609
+ ### <a name="tnsadmin"></a> 8.9 Optional Client Configuration Files
3577
3610
3578
3611
Optional Oracle Client configuration files are read when node-oracledb
3579
3612
is loaded. These files affect connections and applications. Common
0 commit comments