TIBCO Scribe® Online Connector For Oracle Database

Use the native Oracle Database Connection to connect directly to an Oracle data source.

Connector Specifications


Agent Types

On Premise X

Replication Services

Target X

Integration Services

Source X
Target X

Migration Services

Source X
Target X


Integration X
Request-Reply X

Note:  This Connector is available from the TIBCO Scribe® Online Marketplace. See Marketplace TIBCO Scribe® Certified Connectors for more information.

Special Operations

Entity Operations





Setup Considerations

Creating The TNS_ADMIN Environment Variable

The tns_admin variable specifies the location of the tns administration files, such as tnsnames.ora and listener.ora. In the image below the location is C:\Oracle\app\MSMITH\product\11.2.0\client_1\network\admin .

  1. On the Server where the TIBCO Scribe® Online Agent is installed, navigate to the Windows Control Panel.
  2. Select System.
  3. Select Advanced System Settings.
  4. On the Advanced tab of the System Properties dialog, select the Environment Variables... button.
  5. Under User variables select New.
  6. Enter the Variable name as TNS_ADMIN.
  7. In the Variable value field enter the path to the tnsnames.ora folder.
  8. Select OK.
  9. In the Environment Variables dialog, make sure the variable and associated path display correctly, then select OK.
  10. Select OK on the System Properties dialog.

Selecting An Agent Type For Oracle

Refer to TIBCO Scribe® Online Agents for information on available Agent types and how to select the best Agent for your Solution.

Connecting To An Oracle Database

Note: Best practice is to create Connections with credentials that limit permissions in the target system, following the principle of least privilege. Using Administrator level credentials in a Connection provides Administrator level access to the target system for TIBCO Scribe® Online users. Depending on the entities supported, a TIBCO Scribe® Online user could alter user accounts in the target system.

Note: The default connection protocol is Oracle 12c, with backwards compatibility for Oracle11g.

  1. Select More > Connections from the menu.
  2. From the Connections page select Add to open the Add a New Connection dialog.
  3. Select the Connector from the drop-down list in the Connection Type field, and then enter the following information for this Connection: 
    • Name — This can be any meaningful name, up to 25 characters.
    • Alias — An alias for this Connection name. The alias is generated from the Connection name, and can be up to 25 characters. The Connection alias can include letters, numbers, and underscores. Spaces and special characters are not accepted. You can change the alias. For more information, see Connection Alias.
    • Network Alias— Information for the Oracle Server to which you want to connect. Open the tnsnames.ora file in the Service Naming folder of your Oracle Net Manager application. This file defines database addresses to allow external connections. Locate the section for your Oracle database, by looking for the database name. If you have configured an Environment Variable to this file, enter the name of the database as shown in the tnsnames.ora file. If you have not configured the variable, copy the connection information into the Network Alias field. For example:

      Database name:



      Connection information:


    • Username — The user name for this Oracle Database Connection.

      You can create multiple Connections for different Oracle users using the same network alias. For instructions on how to do so, contact your Oracle database administrator.

    • Password — The password for this Username.
    • Properties — Optionally, you can specify one or more properties to turn the ability to filter on the following objects on or off:
      • ShowSynonyms
      • ShowTables
      • ShowViews

        By default, all of these properties are set to TRUE; that is, they are available unless you explicitly change them. To turn off access or explicitly provide access to one or more objects, add them in the Properties window. For example:

        ShowSynonyms = FALSE; ShowTables = TRUE;

  4. Select Test to ensure that the Agent can connect to your database. Be sure to test the Connection against all Agents that use this Connection. See Testing Connections.
  5. Select OK to save the Connection.

Retry Logic

When a timeout occurs, the Oracle Database Connector retries three times before failing.

Metadata Notes


Connection metadata must have unique entity, relationship, and field names. If your Connection metadata has duplicate names, review the source system to determine if the duplicates can be renamed.

Data Types

The following data types are not supported: 

Oracle Database Connector As RS Target

Consider the following when using the Oracle Database Connector as a TIBCO Scribe® Online RS target.

Oracle Naming Limitations

Due to Oracle Database entity and field naming limitations, for TIBCO Scribe® Online RS, any entity or field names that are replicated into Oracle are truncated to 23 characters, followed by a $ sign and a 2-digit numeric value.

For example, for the following source field names:

The resulting field names in the Oracle target will be:

Oracle Database Connector As IS Source

Native Query

This Connector supports the Native Query Block. Use this Block to define queries using SQL statements. For more information, see Native Query Block.

When testing a Native Query in a Map, if the source datastore does not return any data, TIBCO Scribe® Online cannot build the schema for the underlying metadata and the Map cannot be saved. To allow TIBCO Scribe® Online to build the schema, do the following:

  1. Create a single temporary record in the source datastore that matches the Native Query.
  2. Test the Native Query and ensure that it is successful.
  3. Save the Map.
  4. Remove the temporary record from the source datastore.

Oracle Database Connector As IS Target

Batch Processing

Batch processing is not supported.

Notes On Standard Entities


Used with the Execute Block to run the ADO.NET SqlCommand ExecuteNonQuery. This method is used to execute SQL statements that do not return any results, such as update data. It does return the number of records affected by the statement.


Used with the Execute Block to run the ADO.NET SqlCommand ExecuteScalar. This method is used to execute SQL statements that return a single value from a database after the execution of a SQL statement, such as "select SysDate from Dual" to return the current system date.

Note: The Execute NonQuery and Execute Scalar do not support executing Stored Procedures.


Installing The TIBCO Scribe® Online Agent On A Remote Computer

When the TIBCO Scribe® Online Agent is installed on the same computer as the Oracle Database server, no additional setup is required. However, if your TIBCO Scribe® Online Agent is installed on a different computer, some configuration changes are required, as follows:

Configuring The Oracle Database Server Computer

Set the listener to IP address, as follows:

  1. Launch the Oracle Net Manager application.
  2. Select the Listeners folder.
  3. Change the Host IP address of the existing LISTENER to
  4. The default port is 1521.

    This configures the Oracle Database server to listen to any computer where the TIBCO Scribe® Online Agent is installed.

  5. Disable the firewall configuration for your server to allow access to computers with remote TIBCO Scribe® Online Agents.

Configuring The Computer Where The TIBCO Scribe® Online On-Premise Agent Is Installed

  1. Install the Oracle Client Application for theTIBCO Scribe® Online supported Oracle Database version that you are using on this computer.
  2. After installing the Oracle client, configure the Network Alias for this Oracle client computer, as follows:
    1. Launch the Oracle Net Manager.
    2. Select the Service Naming node and click on the + icon to add a new service name.
    3. Enter the Service Name and IP Address of the Oracle Database Server to which you are connecting. The default port is 1521.

      Note: TIBCO recommends that you use the same service name as the Oracle Server to which you are connecting, for example: orcl.

    4. Test the Connection with a valid username and password.
    5. When you are done, select Save Network Configuration from the File menu to save the new configuration.
  3. When you configure the Oracle Database Connection, use the net service name that you just defined as the Network Alias in the TIBCO Scribe® Online Connection dialog.

Connection Errors

Follow the steps below to troubleshoot connection errors.

Note: Any changes you make to your Oracle configuration require you to stop and restart your TIBCO Scribe® Online Agent Windows service before testing your Connection again. If you do not restart your Agent, the following errors are generated:

Test Connection error:

Connection test failed: Length cannot be less than zero. Parameter name: length

Query or Target Runtime error:

ERROR: Exception Type : ArgumentOutOfRangeException
Message : Length cannot be less than zero.
Parameter name: length

Correct Agent

Fields for configuring the Connection to Oracle do not display on the Add a New Connection dialog unless either the Oracle Database server or the Oracle Client is installed on the same computer as the TIBCO Scribe® Online Agent. The following error message is generated.

Unable to display this connection's properties. Please contact Scribe Support.

Test The Service

If you are using a remote server, review Installing The TIBCO Scribe® Online Agent On A Remote Computer.

  1. Launch the Oracle Net Manager application.
  2. Select the Service Naming node and expand it.
  3. Select the Oracle Database Server to which you are connecting.
  4. Test the connection with a valid username and password.

Ping The Oracle Service

From a command prompt, you should be able to ping the Oracle service you have created on the machine, which connects to the Oracle database/Oracle server Service. This should return the TNSNAMES adapter used to resolve the alias.

Example: tnsping orcl

Verify Variables

Make sure that your Environmental Variables are correct.

Note: Changing Environmental Variables may affect other services running on that machine.

Error Number

See the following Knowledge Base Article for additional trouble-shooting information: Using Oracle With TIBCO Scribe® Online.

TIBCO Scribe® Online API Considerations

To create Connections with the TIBCO Scribe® Online API, the native Oracle Connector requires the following information:

Connector Name


Connector ID


TIBCO Scribe® Online Connection Properties

In addition, this Connector uses the Connection properties shown in the following table.

Note: Connection property names are case-sensitive.

Name Data Type Required Secured Usage

Network Alias



















Add a field to receive miscellaneous connection properties.

License Agreement

The TIBCO Scribe® Online End User License Agreement for the Oracle Connector describes TIBCO and your legal obligations and requirements. TIBCO suggests that you read the End User License Agreement.

More Information

For additional information on this Connector, refer to the Knowledge Base and Discussions in the TIBCO Community.