Oracle Query Post-run Action
Plugin version: 1.10.0
Runs an Oracle query at the end of the pipeline run. Can be configured to run only on success, only on failure, or always at the end of the run.
For example, you might have a pipeline that imports data from a database table to HDFS files. At the end of the run, you might want to run a query that deletes the data that was read from the table.
Configuration
Property | Macro Enabled? | Version Introduced | Description |
---|---|---|---|
Run Condition | Yes | Â | Optional. When to run the action. Must be 'completion', 'success', or 'failure'. Defaults to 'success'. If set to 'completion', the action will be executed regardless of whether the pipeline run succeeded or failed. If set to 'success', the action will only be executed if the pipeline run succeeded. If set to 'failure', the action will only be executed if the pipeline run failed. Default is success. |
Driver Name | No | Â | Required. Name of the JDBC driver to use. Default is oracle. |
Host | Yes | Â | Required. Host that Oracle is running on. Default is localhost. |
Port | Yes | Â | Required. Port that Oracle is running on. Default is 1521. |
Connection Type | No | Â | Required. Whether to use an SID, Service Name, or TNS Connect Descriptor when connecting to the database. |
SID/Service Name/TNS Connect Descriptor | Yes | Â | Required. Oracle connection point (Database name, Service name, or a TNS Connect Descriptor). When using TNS, place the full TNS Connect Descriptor in the text field. For example: |
Query | Yes | Â | Required. Query to run. |
Username | Yes | Â | Optional. User identity for connecting to the specified database. |
Password | Yes | Â | Optional. Password to use to connect to the specified database. |
Connection Arguments | Yes | Â | Optional. A list of arbitrary string key/value pairs as connection arguments. These arguments will be passed to the JDBC driver as connection arguments for JDBC drivers that may need additional configurations. |
Default Batch Value | No | Â | Optional. The default batch value that triggers an execution request. Default is 10. |
Example
Suppose you want to delete all records from Oracle table userEvents
of database (service name) XE
running on localhost
, port 3306
, without authentication using driver oracle
if the pipeline completes successfully. Ensure that the driver for Oracle is installed. You can also driver name for some specific driver, otherwise oracle
will be used, and then configure the plugin with:
Property | Value |
---|---|
Run Condition |
|
Driver Name |
|
Host |
|
Port |
|
Connection Type |
|
SID/Service Name/TNS Connect Descriptor |
|
Query |
|
Username |
|
Password |
|
Default Batch Value |
|
Â
Created in 2020 by Google Inc.