Skip to content

Oracle Database 凭据#

您可以使用这些凭据对以下节点进行身份验证:

Note

这些节点不支持 SSH 隧道。 它们需要 Oracle Database 19c 或更高版本。 对于 Transparent Application Continuity (TAC) 和 Sharding 等高级 Oracle Database 功能,它们还需要 Oracle Client Libraries 19c 或更高版本

Prerequisites 前提条件#

Oracle Database 服务器上创建用户账户。

Supported authentication methods 支持的身份验证方法#

  • Database connection 数据库连接

有关该服务的更多信息,请参阅 Oracle Database 文档

Using database connection 使用数据库连接#

要配置此凭据,您需要:

  • User 用户名称。
  • 该用户的 Password 密码
  • Connection String 连接字符串: 要连接的 Oracle Database 实例。该字符串可以是 Easy Connect 字符串、来自 tnsnames.ora 文件的 TNS 别名或 Oracle Database 实例。
  • Use Optional Oracle Client Libraries 使用可选的 Oracle 客户端库: 如果您想使用 Oracle Database 高级功能,请启用此选项。此选项内部使用 node-oracledb Thick 模式。需要额外的设置来启用 node-oracledb Thick 模式。有关更多信息,请参阅启用 Thick 模式文档。此选项在官方 n8n docker 镜像中不可用。
  • Use SSL 使用 SSL: 如果您的连接字符串使用 SSL,请启用此选项并配置 SSL 身份验证的其他详细信息。
  • Wallet Password 钱包密码: 用于解密 Privacy Enhanced Mail (PEM) 编码的私有证书的密码(如果已加密)。
  • Wallet Content 钱包内容: 建立与 Oracle Database 的双向 TLS (mTLS) 连接所需的安全凭据。
  • Distinguished Name 可分辨名称: 应与证书 DN 匹配的可分辨名称 (DN)。
  • Match Distinguished Name 匹配可分辨名称: 除了执行常规证书验证外,是否还应匹配服务器证书 DN。
  • Allow Weak Distinguished Name Match 允许弱可分辨名称匹配: 是否必须执行检查侦听器和服务器证书的安全 DN 匹配行为。
  • Pool Min 池最小值: 创建池时建立到数据库的连接数。
  • Pool Max 池最大值: 连接池可以增长到的最大连接数。
  • Pool Increment 池增量: 每当连接请求超过当前打开的连接数时打开的连接数。
  • Pool Maximum Session Life Time 池最大会话生命周期: 每当连接请求超过当前打开的连接数时打开的连接数。
  • Pool Connection Idle Timeout 池连接空闲超时: 每当连接请求超过当前打开的连接数时打开的连接数。
  • Connection Class Name 连接类名称: DRCP/PRCP 连接类。有关更多信息,请参阅启用 DRCP
  • Connection Timeout 连接超时: 应用程序建立 Oracle Net 连接的超时持续时间(秒)。
  • Transport Connection Timeout 传输连接超时: 等待建立与数据库主机的连接的最大秒数。
  • Keepalive Probe Interval 保活探测间隔: 发送保活探测之间的分钟数。

要设置数据库连接凭据:

  1. 在您的 n8n 凭据中输入数据库的用户名作为 User 用户

  2. 输入用户的 Password 密码

  3. 在您的 n8n 凭据中输入数据库的连接字符串作为 Connection String 连接字符串

  4. If your database uses SSL and you'd like to configure SSL for the connection, turn this option on in the credential. If you turn it on, enter the information of your Oracle Database SSL certificate in these fields: 如果您的数据库使用 SSL 并且您想为连接配置 SSL,请在凭据中打开此选项。如果打开,请在以下字段中输入 Oracle Database SSL 证书的信息:

    1. Enter the wallet password, if any, in the Wallet Password field. 如果有,请在 Wallet Password 钱包密码字段中输入钱包密码。
    2. Enter PEM-encoded wallet file, ewallet.pem contents in the 'Expanded' layout of the Wallet Content field. This will ensure that all the whitespaces from the PEM-encoded wallet file are retained. 在 Wallet Content 钱包内容字段的"Expanded"布局中输入 PEM 编码的钱包文件 ewallet.pem 的内容。这将确保保留 PEM 编码钱包文件中的所有空格。 Direct copy-paste into the Wallet Content field will strip out the whitespaces and lead to connection errors. 直接复制粘贴到 Wallet Content 钱包内容字段将删除空格并导致连接错误。

有关使用 TLS 连接的更多信息,请参阅 node-oracledb