You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enables database resource sharing for applications that run in
1349
+
multiple client processes or run on multiple middle-tier application
1350
+
servers. DRCP reduces the overall number of connections that a
1351
+
database must handle.
1352
+
1353
+
DRCP is distinct from node-oracledb's local
1354
+
[connection pool](#poolclass). The two pools can be used separately,
1355
+
or together.
1356
+
1357
+
DRCP is useful for applications which share the same credentials, have
1358
+
similar session settings (for example date format settings and PL/SQL
1359
+
package state), and where the application gets a database connection,
1360
+
works on it for a relatively short duration, and then releases it.
1361
+
1362
+
To use DRCP in node-oracledb:
1363
+
1364
+
1. The DRCP pool must be started in the database: `execute dbms_connection_pool.start_pool();`
1365
+
2. The `getConnection()` property `connectString` must specify to use a pooled server, either by the Easy Connect syntax like `myhost/sales:POOLED`, or by using a `tnsnames.ora` alias for a connection that contains `(SERVER=POOLED)`.
1366
+
3. The [`connectionClass`](#propdbconclass) should be set by the node-oracledb application. If it is not set, the pooled server session memory will not be reused optimally.
1367
+
1368
+
The DRCP 'Purity' value is NEW for
1369
+
[`oracledb.getConnection()`](#getconnection1) connections that do not
1370
+
use a local connection pool. These connections reuse a DRCP pooled
1371
+
server process (thus avoiding the costs of process creation and
1372
+
destruction) but do not reuse its session memory. The 'Purity' is
1373
+
SELF for [`pool.getConnection()`](#getconnection2) connections,
1374
+
allowing reuse of the pooled server process and session memory, giving
1375
+
maximum benefit from DRCP. See the Oracle documentation on
1376
+
[benefiting from scalability](http://docs.oracle.com/database/121/ADFNS/adfns_perf_scale.htm#ADFNS506).
0 commit comments