SQB-connect-oracle
Oracle connection adapter for SQB.
Configuring
Authentication options
Internal Authentication
Applications using internal authentication stores credentials manually and passes user
and password
properties in configuration object.
sqb;const pool = sqb
External Authentication
External Authentication allows applications to use an external password store (such as Oracle Wallet), the Secure Socket Layer (SSL), or the operating system to validate user access. One of the benefits is that database credentials do not need to be hard coded in the application.
To use external authentication, set the externalAuth
property to true. (Default false)
sqb;const pool = sqb
Connection configuration options
Configure using connection parameters
sqb;const pool = sqb
host
: Hostname to connect toport
: Port to connect to (default: 1521)database
: Database (service name) to connect to (Optional)serverType
: Type of server (Optional)instanceName
: Instance name (Optional)
Configure using easy connection syntax
An Easy Connect string is often the simplest to use. With Oracle Database 12c the syntax is:
[//]host[:port][/database][:serverType][/instanceName]
sqb;const pool = sqb
Configure using Net service name
A Net Service Name, such as sales in the example below, can be used to connect:
sqb;const pool = sqb
This could be defined in a directory server, or in a local tnsnames.ora file, for example:
sales =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mymachine.example.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
Configure using full connection strings
sqb;const pool = sqb
Additional parameters
sqb;const pool = sqb
schema
: Sets default schema for session
Node Compatibility
- node (LTE only)
>= 6.x
;