Skip to content

Commit f564da5

Browse files
committed
Spelling and related small changes
1 parent b12f100 commit f564da5

File tree

3 files changed

+37
-37
lines changed

3 files changed

+37
-37
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
- Fixed writing of multi-byte characters to CLOBs when multiple writes
130130
are required.
131131

132-
- Fixed a crash occuring when draining the connection pool ([ODPI-C
132+
- Fixed a crash occurring when draining the connection pool ([ODPI-C
133133
change](https://github.com/oracle/odpi/commit/https://github.com/oracle/odpi/commit/7666dc3208087383f7f0f5e49c1ee423cb154997)).
134134

135135
- Corrected `pool.status` to be read-only, as was documented.
@@ -146,7 +146,7 @@
146146
([ODPI-C change](https://github.com/oracle/odpi/issues/96)).
147147

148148
- Fixed a CQN race condition to prevent a crash when a multiple
149-
`conn.unsubscribe()` calls are made on the same subscription.
149+
`connection.unsubscribe()` calls are made on the same subscription.
150150

151151
- Improved validation of `executeMany()` arguments to prevent a crash.
152152

INSTALL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ guaranteed to be available or usable in your environment.
7373

7474
Node-oracledb 4.0 was refactored to use [N-API][53] version 2. On
7575
each operating system, a node-oracledb binary will work with a number
76-
of Node.js versions from Node.js 8.16 and Node.js 10.16 onwards,
76+
of Node.js versions from Node.js 8.16 and Node.js 10.16 onward,
7777
dependent on N-API compatibility. This means that when upgrading
7878
Node.js, you may not need to reinstall node-oracledb.
7979

8080
If compiling from source code, the compiler no longer needs C++11
8181
compatibility. The node-oracledb source code is now pure C.
8282

83-
#### <a name="mig31"></a> 1.1 Installion Changes in node-oracledb version 3.1
83+
#### <a name="mig31"></a> 1.1 Installation Changes in node-oracledb version 3.1
8484

8585
Pre-built binaries are now contained in the package downloaded from
8686
npm. This removes the previous internally executed step of
@@ -876,7 +876,7 @@ Download the free 64-bit Instant Client **Basic** ZIP file from
876876
node %*
877877
```
878878

879-
Invoke this batch file everytime you want to run Node.js.
879+
Invoke this batch file every time you want to run Node.js.
880880

881881
Alternatively use `SET` to change your `PATH` in each command prompt
882882
window before you run node.

doc/api.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ async function run() {
604604
connection = await oracledb.getConnection( {
605605
user : "hr",
606606
password : mypw,
607-
connectString : "localhost/orclpdb"
607+
connectString : "localhost/orclpdb1"
608608
});
609609

610610
// Create a new (or open an existing) document collection
@@ -872,7 +872,7 @@ Constant Name | Value |Description
872872
--------------------------------------------|-------|-----------------------------------------------
873873
`oracledb.SUBSCR_EVENT_TYPE_AQ` | 100 | Advanced Queuing notifications are being used
874874
`oracledb.SUBSCR_EVENT_TYPE_DEREG` | 5 | A subscription has been closed or the timeout value has been reached
875-
`oracledb.SUBSCR_EVENT_TYPE_OBJ_CHANGE` | 6 | Object-level notications are being used (Database Change Notification)
875+
`oracledb.SUBSCR_EVENT_TYPE_OBJ_CHANGE` | 6 | Object-level notifications are being used (Database Change Notification)
876876
`oracledb.SUBSCR_EVENT_TYPE_QUERY_CHANGE` | 7 | Query-level notifications are being used (Continuous Query Notification)
877877
`oracledb.SUBSCR_EVENT_TYPE_SHUTDOWN` | 2 | The database is being shut down
878878
`oracledb.SUBSCR_EVENT_TYPE_SHUTDOWN_ANY` | 3 | An instance of Oracle Real Application Clusters (RAC) is being shut down
@@ -914,7 +914,7 @@ Refer to [Advanced Queuing documentation][129] for more details about attributes
914914

915915
Constant Name | Value | Description
916916
--------------------------------------------------------|------------|---------------------------------------------------
917-
`oracledb.AQ_DEQ_MODE_BROWSE` | 1 | Read amessage without acquiring a lock.
917+
`oracledb.AQ_DEQ_MODE_BROWSE` | 1 | Read a message without acquiring a lock.
918918
`oracledb.AQ_DEQ_MODE_LOCKED` | 2 | Read and obtain write lock on message.
919919
`oracledb.AQ_DEQ_MODE_REMOVE` | 3 | Read the message and delete it.
920920
`oracledb.AQ_DEQ_MODE_REMOVE_NO_DATA` | 4 | Delete message without returning payload.
@@ -2078,7 +2078,7 @@ Callback function parameter | Description
20782078

20792079
Callback:
20802080
```
2081-
getConnection([String poolAlias | Object connAttrs], function(Error error, Connection conn){});
2081+
getConnection([String poolAlias | Object connAttrs], function(Error error, Connection connection){});
20822082
```
20832083
Promise:
20842084
```
@@ -2317,7 +2317,7 @@ proxy authentication.
23172317
##### Prototype
23182318

23192319
```
2320-
function(Error error, Connection conn)
2320+
function(Error error, Connection connection)
23212321
```
23222322

23232323
##### Parameters
@@ -3777,7 +3777,7 @@ The `message` parameter in the notification callback is an object containing the
37773777
- `queueName` - the name of the Advanced Queue. Undefined for CQN. This was added in node-oracledb 4.0.
37783778
- `queries` - an array of objects specifying the queries which were affected by the Query Change notification. This is only defined if the `type` key is the value [`oracledb.SUBSCR_EVENT_TYPE_QUERY_CHANGE`](#oracledbconstantssubscription). It contains the following key:
37793779
- `tables` - an array of objects identical to the objects created for Database Change Notification (see the `tables` property below).
3780-
- `registered` - a boolean indicating whether the subscription is registerd with the database. Will be *false* if `type` is [`oracledb.SUBSCR_EVENT_TYPE_DEREG`](#oracledbconstantssubscription) or if the subscription was created with the [`qos`](#consubscribeoptqos) property set to [`oracledb.SUBSCR_QOS_DEREG_NFY`](#oracledbconstantssubscription).
3780+
- `registered` - a boolean indicating whether the subscription is registered with the database. Will be *false* if `type` is [`oracledb.SUBSCR_EVENT_TYPE_DEREG`](#oracledbconstantssubscription) or if the subscription was created with the [`qos`](#consubscribeoptqos) property set to [`oracledb.SUBSCR_QOS_DEREG_NFY`](#oracledbconstantssubscription).
37813781
- `tables` - an array of objects specifying the tables which were affected by the notification. This is only defined if `type` is [`oracledb.SUBSCR_EVENT_TYPE_OBJ_CHANGE`](#oracledbconstantssubscription). It contains the following properties:
37823782
- `name` - the name of the table which was modified in some way.
37833783
- `operation` - an integer mask composed of one or more values of the following constants:
@@ -3794,7 +3794,7 @@ The `message` parameter in the notification callback is an object containing the
37943794
- `type` - the type of notification sent. This will be the value of one of the following constants:
37953795
- [`oracledb.SUBSCR_EVENT_TYPE_AQ`](#oracledbconstantssubscription) - One or more Advanced Queuing messages are available to be dequeued.
37963796
- [`oracledb.SUBSCR_EVENT_TYPE_DEREG`](#oracledbconstantssubscription) - the subscription has been closed or the timeout value has been reached.
3797-
- [`oracledb.SUBSCR_EVENT_TYPE_OBJ_CHANGE`](#oracledbconstantssubscription) - object-level notications are being used (Database Change Notification).
3797+
- [`oracledb.SUBSCR_EVENT_TYPE_OBJ_CHANGE`](#oracledbconstantssubscription) - object-level notifications are being used (Database Change Notification).
37983798
- [`oracledb.SUBSCR_EVENT_TYPE_QUERY_CHANGE`](#oracledbconstantssubscription) - query-level notifications are being used (Continuous Query Notification).
37993799
38003800
###### <a name="consubscribeoptgroupingclass"></a> 4.2.16.2.3 `groupingClass`
@@ -4041,7 +4041,7 @@ Attribute Name | Description
40414041
------------------------|------------
40424042
`deliveryMode` | An integer defining the delivery mode when enqueuing messages. It can be one of the following constants: [`oracledb.AQ_MSG_DELIV_MODE_PERSISTENT`](#oracledbconstantsaq), [`oracledb.AQ_MSG_DELIV_MODE_BUFFERED`](#oracledbconstantsaq), [`oracledb.AQ_MSG_DELIV_MODE_PERSISTENT_OR_BUFFERED`](#oracledbconstantsaq)
40434043
`transformation` | A string defining the transformation that will take place when messages are enqueued.
4044-
`visibility` | An integer value that defines whether the enqueue occurs in the current transaction or as a separate transction. It can be one of the following constants: [`oracledb.AQ_VISIBILITY_IMMEDIATE`](#oracledbconstantsaq), [`oracledb.AQ_VISIBILITY_ON_COMMIT`](#oracledbconstantsaq).
4044+
`visibility` | An integer value that defines whether the enqueue occurs in the current transaction or as a separate transaction. It can be one of the following constants: [`oracledb.AQ_VISIBILITY_IMMEDIATE`](#oracledbconstantsaq), [`oracledb.AQ_VISIBILITY_ON_COMMIT`](#oracledbconstantsaq).
40454045
40464046
See [Oracle Advanced Queuing Documentation][129] for more information about attributes.
40474047
@@ -4150,7 +4150,7 @@ undefined if no message is available.
41504150
##### <a name="aqmessageclass"></a> 5.2.2.1 AqMessage Class
41514151
41524152
Dequeued messages are returned as AqMessage objects. Note AqMessage
4153-
objectss are not used for enqueuing.
4153+
objects are not used for enqueuing.
41544154
41554155
Attribute Name | Description
41564156
----------------|--------------
@@ -4159,7 +4159,7 @@ Attribute Name | Description
41594159
`deliveryMode` | An integer containing the delivery mode the messages was enqueued with.
41604160
`exceptionQueue`| A String containing the name of the exception queue defined when the message was enqueued.
41614161
`expiration` | The number of seconds until expiration defined when the message was enqueued.
4162-
`msgId` | A Buffer containing the unique identifier of the messsage.
4162+
`msgId` | A Buffer containing the unique identifier of the message.
41634163
`numAttempts` | An integer containing the number of attempts that were made to dequeue the message.
41644164
`originalMsgId` | A Buffer containing the unique identifier of the message in the last queue that generated it.
41654165
`payload` | A Buffer or DbObject containing the payload of the message, depending on the value of `queue.payloadType`. Note that enqueued Strings are returned as UTF-8 encoded Buffers.
@@ -4817,7 +4817,7 @@ The `drainTime` parameter was added in node-oracledb 3.0.
48174817
48184818
Callback:
48194819
```
4820-
getConnection([Object poolAttrs,] function(Error error, Connection conn){});
4820+
getConnection([Object poolAttrs,] function(Error error, Connection connection){});
48214821
```
48224822
Promise:
48234823
```
@@ -4885,7 +4885,7 @@ pools.
48854885
discussion of these attributes.
48864886
48874887
- ```
4888-
function(Error error, Connection conn)
4888+
function(Error error, Connection connection)
48894889
```
48904890
48914891
The parameters of the callback function are:
@@ -5886,7 +5886,7 @@ This method was added in node-oracledb 3.0.
58865886
Callback function parameter | Description
58875887
----------------------------|-------------
58885888
*Error error* | If `getDataGuide()` succeeds, `error` is NULL. If an error occurs, then `error` contains the error message.
5889-
*SodaDocument document* | The SodaDocument containining JSON content which can be accessed from the document as normal with [`sodaDocument.getContent()`](#sodadocgetcontent), [`sodaDocument.getContentAsString()`](#sodadocgetcontentasstring) or [`sodaDocument.getContentAsBuffer()`](#sodadocgetcontentasbuffer).
5889+
*SodaDocument document* | The SodaDocument containing JSON content which can be accessed from the document as normal with [`sodaDocument.getContent()`](#sodadocgetcontent), [`sodaDocument.getContentAsString()`](#sodadocgetcontentasstring) or [`sodaDocument.getContentAsBuffer()`](#sodadocgetcontentasbuffer).
58905890
58915891
#### <a name="sodacollinsertmany"></a> 10.2.6 `sodaCollection.insertMany()`
58925892
@@ -7012,7 +7012,7 @@ asynchronous call that uses the thread pool otherwise the default size
70127012
of 4 will still be used.
70137013

70147014
Note the '[libuv][21]' library used by Node.js limits the number of
7015-
threads to 128. This implies the maxiumum number of connections
7015+
threads to 128. This implies the maximum number of connections
70167016
opened, i.e. `poolMax`, should be less than 128.
70177017

70187018
Connections can handle one database operation at a time. Node.js
@@ -8000,7 +8000,7 @@ pool you could do:
80008000
```javascript
80018001
const myproxyuserpw = ... // the password of the 'myproxyuser' proxy user
80028002
8003-
const pool = await oracledb.createPool({ connectString: "localhost/orclpdb", homogeneous: false });
8003+
const pool = await oracledb.createPool({ connectString: "localhost/orclpdb1", homogeneous: false });
80048004
const connection = await pool.getConnection({ user: 'myproxyuser[hr]', password: myproxyuserpw});
80058005
80068006
. . . // connection has access to the HR schema objects
@@ -8052,7 +8052,7 @@ of existing connections or pools.
80528052
For a standalone connection:
80538053
80548054
```javascript
8055-
const config = { connectString: "localhost/orclpdb", externalAuth: true };
8055+
const config = { connectString: "localhost/orclpdb1", externalAuth: true };
80568056
const connection = await oracledb.getConnection(config);
80578057
80588058
. . . // connection has access to the schema objects of the externally identified user
@@ -8069,7 +8069,7 @@ then to specify that the session user of the connection should be
80698069
`HR`, use:
80708070
80718071
```javascript
8072-
const config = { connectString: "localhost/orclpdb", user: "[hr]", externalAuth: true };
8072+
const config = { connectString: "localhost/orclpdb1", user: "[hr]", externalAuth: true };
80738073
const connection = await oracledb.getConnection(config);
80748074
80758075
. . . // connection has access to the HR schema objects
@@ -8078,7 +8078,7 @@ const connection = await oracledb.getConnection(config);
80788078
For a *Pool*, you can authenticate as an externally identified user like:
80798079
80808080
```javascript
8081-
const config = { connectString: "localhost/orclpdb", externalAuth: true };
8081+
const config = { connectString: "localhost/orclpdb1", externalAuth: true };
80828082
const pool = await oracledb.createPool(config);
80838083
const connection = await pool.getConnection();
80848084
@@ -8092,7 +8092,7 @@ externally identified user, then to specify that the session user of
80928092
the connection should be `HR`, use:
80938093
80948094
```javascript
8095-
const config = { connectString: "localhost/orclpdb", externalAuth: true };
8095+
const config = { connectString: "localhost/orclpdb1", externalAuth: true };
80968096
const pool = await oracledb.createPool(config);
80978097
const connection = await pool.getConnection({ user: "[hr]" });
80988098
@@ -8131,7 +8131,7 @@ works on it for a relatively short duration, and then releases it.
81318131
81328132
To use DRCP in node-oracledb:
81338133
8134-
1. The DRCP pool must be started in the database: `SQL> execute dbms_connection_pool.start_pool();`
8134+
1. The DRCP pool must be started in the database: `SQL> EXECUTE DBMS_CONNECTION_POOL.START_POOL();`
81358135
2. 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, and the statistic views will record large values for `NUM_MISSES`.
81368136
3. The `pool.createPool()` or `oracledb.getConnection()` property `connectString` (or its alias `connectionString`) must specify to use a pooled server, either by the Easy Connect syntax like [`myhost/sales:POOLED`](#easyconnect), or by using a [`tnsnames.ora`](#tnsnames) alias for a connection that contains `(SERVER=POOLED)`.
81378137
@@ -8166,7 +8166,7 @@ try {
81668166
{
81678167
user : 'sys',
81688168
password : 'secret',
8169-
connectString : 'localhost/orclpdb',
8169+
connectString : 'localhost/orclpdb1',
81708170
privilege : oracledb.SYSDBA
81718171
});
81728172
@@ -8282,7 +8282,7 @@ const connection = await oracledb.getConnection(
82828282
{
82838283
user : "hr",
82848284
password : currentpw,
8285-
connectString : "localhost/orclpdb"
8285+
connectString : "localhost/orclpdb1"
82868286
});
82878287
82888288
await connection.changePassword('hr', currentpw, newpw);
@@ -8299,7 +8299,7 @@ const connection = await oracledb.getConnection(
82998299
{
83008300
user : "system", // a privileged user
83018301
password : mypw, // mypw contains the hr schema password
8302-
connectString : "localhost/orclpdb"
8302+
connectString : "localhost/orclpdb1"
83038303
});
83048304
83058305
await connection.changePassword('hr', '', newpw);
@@ -8324,7 +8324,7 @@ const connection = await oracledb.getConnection(
83248324
user : "hr",
83258325
password : oldpw,
83268326
newPassword : newpw,
8327-
connectString : "localhost/orclpdb"
8327+
connectString : "localhost/orclpdb1"
83288328
});
83298329
```
83308330

@@ -8655,7 +8655,7 @@ metadata is available via a `metadata` event. The `end` event
86558655
indicates the end of the query results.
86568656
86578657
Query results should be fetched to completion to avoid resource leaks,
8658-
or (from Node.js 8 onwards) the Stream [`destroy()`][92] method can be
8658+
or (from Node.js 8 onward) the Stream [`destroy()`][92] method can be
86598659
used to terminate a stream early. For older Node.js versions use a
86608660
[ResultSet with callbacks](#resultsethandling) if you need to stop a
86618661
query before retrieving all data. Note the previous, experimental
@@ -9098,13 +9098,13 @@ Query data is commonly broken into small sets for two reasons:
90989098
- 'Web pagination' that allows moving from one set of rows to a next,
90999099
or previous, set.
91009100
9101-
- Fetching of consectitive small sets of data for processing. This
9101+
- Fetching of consecutive small sets of data for processing. This
91029102
happens because the number of records is too large for Node.js to
91039103
handle at the same time.
91049104
91059105
The latter can be handled by [ResultSets](#resultsethandling) or
91069106
[`queryStream()`](#querystream) with one execution of the SQL query as
9107-
discsussed in those links.
9107+
discussed in those links.
91089108
91099109
How to do 'web pagination' is discussed in this section. For each
91109110
'page' of results, a SQL query is executed to get the appropriate set
@@ -9607,7 +9607,7 @@ const connection = await oracledb.getConnection(
96079607
{
96089608
user: 'nodedemo',
96099609
password: mypw,
9610-
connectString: 'localhost/orclpdb'
9610+
connectString: 'localhost/orclpdb1'
96119611
}
96129612
);
96139613

@@ -9640,7 +9640,7 @@ const connection = await oracledb.getConnection(
96409640
{
96419641
user: 'nodedemo',
96429642
password: mypw, // mypw contains the nodedemo schema password
9643-
connectString: 'localhost/orclpdb',
9643+
connectString: 'localhost/orclpdb1',
96449644
edition: 'e2'
96459645
}
96469646
);
@@ -12121,7 +12121,7 @@ SQL> GRANT CHANGE NOTIFICATION TO hr;
1212112121
1212212122
Below is an example of CQN that uses object-level notification and
1212312123
grouped notifications in batches at 10 second intervals. After 60
12124-
seconds, the notification callback is unregisted and no more
12124+
seconds, the notification callback is unregistered and no more
1212512125
notifications will occur. The quality of service flags indicate
1212612126
ROWIDs should be returned in the callback:
1212712127
@@ -12613,7 +12613,7 @@ const connection = await oracledb.getConnection(
1261312613
{
1261412614
user : "hr",
1261512615
password : mypw, // mypw contains the hr schema password
12616-
connectString : "localhost/orclpdb"
12616+
connectString : "localhost/orclpdb1"
1261712617
}
1261812618
);
1261912619

@@ -13440,7 +13440,7 @@ statement execution.
1344013440
Database statement tracing is commonly used to identify performance
1344113441
issues. Oracle Database trace files can be analyzed after statements
1344213442
are executed. Tracing can be enabled in various ways at a database
13443-
system or individal session level. Refer to [Oracle Database Tuning
13443+
system or individual session level. Refer to [Oracle Database Tuning
1344413444
documentation][95]. Setting a customer identifier is recommended to
1344513445
make searching for relevant log files easier:
1344613446

0 commit comments

Comments
 (0)