Manage the Oracle Connector
The Composer Oracle connector lets you access the data available in Oracle databases using the Composer client. The Composer Oracle connector supports Oracle versions 11.2 - 21c.
Before you can establish a connection from Composer to Oracle storage, a connector server needs to be installed and configured. See Manage Connectors and Connector Servers for general instructions and Connect to Oracle for details specific to the Oracle connector.
After the connector has been set up, you can create data source configurations that specify the necessary connection information and identify the data you want to use. See Manage Data Source Configurations for more information. After data sources are configured, they can be used to create dashboards and visuals from your data. See Create Dashboards.
Composer Feature Support
Oracle connector support for specific Composer features is shown in the following table.
Key: Y - Supported; N - Not Supported; N/A - not applicable
Feature | Supported? | Notes | ||
---|---|---|---|---|
Admin-Defined Functions | Y | |||
Box Plots | Y | |||
Custom SQL Queries | Y | If you need to access a BigQuery partition, explicitly include an alias for the built in partition column in your select clause, such as select *, _PARTITIONTIME as pt from projectId.datasetId.tableId . | ||
Derived Fields (Row-Level Expressions) | Y | |||
Distinct Counts | Y | |||
Fast Distinct Values | N/A | |||
Group By Multiple Fields | Y | |||
Group By Time | Y | |||
Group By UNIX Time | Y | |||
Histogram Floating Point Values | Y | |||
Histograms | Y | |||
Kerberos Authentication | N | |||
Last Value | Y | |||
Live Mode and Playback | Y | |||
Multivalued Fields | N/A | |||
Nested Fields | N/A | |||
Partitions | N | |||
Pushdown Joins for Fusion Data Sources | Y | |||
Schemas | Y | |||
Text Search | N/A | |||
TLS | Y | |||
User Delegation | Y | The Composer Oracle connector supports user delegation only via user credential pass-through. | ||
Wildcard Filters | Y | |||
Wildcard Filters, Case-Insensitive Mode | Y | |||
Wildcard Filters, Case-Sensitive Mode | Y |
Connect to Oracle
The Oracle connector requires a JDBC driver to be configured before you can connect to your data source. You can download the driver from the vendor's site. If you are upgrading, keep in mind you need to configure the JDBC driver- see Upgrade Composer for instructions. For more information and steps, see Add a JDBC Driver.
When setting up a connection to Oracle, provide the following.
Specify the connection name and JDBC URL. The JDBC URL for Oracle database being connected must be:
jdbc:oracle:thin@//ORACLEHOST:PORT/DATABASE_NAME
orjdbc:oracle:thin:@ORACLEHOST:PORT:SID
To connect to Oracle with TLS enabled, see Connect to Oracle with TLS Enabled.
Provide the user name and password for Oracle database.
You can use an Impersonation feature to work with Oracle data source on behalf of a proxy user. Before you begin, you must configure proxy users with the corresponding privileges in the Oracle database. To use this, select the Impersonation Enabled checkbox and specify the Impersonation Username and Impersonation Password. See Configure Settings to Use a Proxy User.
If you need to use Composer's Oracle connector to access a table that uses the XML data type, complete the additional setup steps described in Enable Access to Oracle Tables That Use the XML Data Type.
If there are any changes in the Oracle database, you must clear the Composer cache. See How Composer Caches Data.
Connect to Oracle with TLS Enabled
Before you attempt to connect to Oracle with TLS enabled, make sure you have first installed Java Cryptography Extension (JCE). See https://www.oracle.com/java/technologies/javase-jce8-downloads.html.
To connect to Oracle with TLS enabled:
Create a JDBC URL with TLS parameters. To specify TLS-related parameters, use the following template for a JDBC URL:
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=<oracle_host>) (PORT=<oracle_tls_port))CONNECT_DATA=(SID=<service_id>)))
where:
<oracle_host>
is the host of the Oracle database.<oracle_tls_port>
is the port of the Oracle database with TLS enabled<service_id>
is the Oracle service ID or database to which you want to connect
Make sure your JDBC URL uses the correct protocol. For a TLS connection, you should use
tcps
.If your Oracle database is configured with a custom certificate, you should configure a truststore for the Oracle connector, as described in the following steps:
Copy a truststore to the machine on which Composer's Oracle connector is running.
Add the following lines to file
edc-oracle.jvm
.-Djavax.net.ssl.trustStore=<path_to_truststore>
-Djavax.net.ssl.trustStorePassword=<truststore_password>- Linux: Copy the file
edc-oracle.jvm
from the/opt/zoomdata/conf
directory if a copy is not in/etc/zoomdata/
. - Windows: Copy the file
edc-oracle.jvm
from the<install-path>/conf
directory if a copy is not in<install-path>/conf-modify
.
where:
<path_to_truststore>
is the absolute path to your truststore<truststore_password>
is the password for your truststore
- Linux: Copy the file
Restart the Oracle connector microservice,
zoomdata-edc-oracle
. See Restart Composer Microservices.
Configure Settings to Use a Proxy User
To enable a Composer user work as a proxy user, specify the user attributes of corresponding oracle user (that will be used as proxy user) in the account details of a Composer user.
You must specify the user attributes for each Composer user that will access the Oracle data source as a proxy user.
Perform the following steps:
- Select Settings and then select Users & Groups.
- Select a user from the list and select the Custom Attributes tab.
- Select Add Custom Attribute. Specify credentials for a user as follows:
- Key - specify the login attribute for proxy user. Corresponding reference name is listed in the Usage column. You have to specify the value from the Usage column in the Impersonation Username field while creating a connection.
- Value - specify the actual name of the oracle user, that you want to use as proxy user.
- Select the checkbox in the Secure column to encrypt the value of the key.
If the proxy user requires a password, select Add Custom Attribute and specify the key and value for the password. You have to specify the reference name from the Usage column in the Impersonation Password field while creating the connection.
Enable Access to Oracle Tables That Use the XML Data Type
Before you enable access to Oracle tables that use the XML data type, be sure you have set up the Oracle JDBC driver. See Add a JDBC Driver.
To enable access to Oracle tables that use the XML data type:
Download the
xdb6.jar
andxmlparserv2.jar
files from Oracle to the corresponding Composer instance. You can download obtainxdb6.jar
by downloading it from https://www.oracle.com/database/technologies/jdbc-ucp-122-downloads.html. You can obtainxmlparserve2.jar
by extracting it from thelib
directory in the Oracle XML Developers Kit, which can be downloaded from https://www.oracle.com/downloads/.Place these files in the following folder:
- Linux:
/opt/zoomdata/lib/edc-oracle/
- Windows:
<install-path>/lib/edc-oracle/
Note that this is the same folder where you downloaded the Oracle JDBC driver (see Add a JDBC Driver).
- Linux:
Add the following lines to the connector JVM file:
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
- Linux:
/etc/zoomdata/edc-oracle.jvm
- Windows:
<install-path>/conf-modify/
- Linux:
Restart the Oracle connector microservice,
zoomdata-edc-oracle
. See Restart Composer Microservices.
Comments
0 comments
Please sign in to leave a comment.