Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ObedVega committed Aug 30, 2023
2 parents 1bff048 + 63fc9d3 commit 66516ba
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions modules/ROOT/pages/mule.jdbc.example.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:experimental:
:page-author: Adam Tworkiewicz
:page-email: [email protected]
:page-revdate: January 6th, 2022
:page-revdate: August 30, 2023
:description: Query Teradata Vantage from a Mule service.
:keywords: data warehouses, compute storage separation, teradata, vantage, cloud data platform, object storage, business intelligence, enterprise analytics, Mule, JDBC, microservices

Expand All @@ -17,8 +17,6 @@ It demonstrates how to query a Teradata database and expose results over REST AP
* Access to a Teradata Vantage instance.
+
include::ROOT:partial$vantage_clearscape_analytics.adoc[]
* Java JDK. See installation instructions for OpenJDK: https://openjdk.java.net/install/.
* Apache Maven. See installation instructions: https://maven.apache.org/install.html.

== Example service

Expand Down Expand Up @@ -52,10 +50,16 @@ Since the HTTP connector is configured as request-response, the result is return
+
[source,bash]
----
git clone git@github.com:Teradata/mule-jdbc-example.git
git clone https://github.com/Teradata/mule-jdbc-example
----

. Edit `src/main/mule/querying-a-teradata-database.xml`, find the Teradata connection string `jdbc:teradata://localhost/user=dbc,password=dbc` and replace Teradata connection parameters to match your environment.
. Edit `src/main/mule/querying-a-teradata-database.xml`, find the Teradata connection string `jdbc:teradata://<HOST>/user=<username>,password=<password>` and replace Teradata connection parameters to match your environment.

[NOTE]
====
Should your Vantage instance be accessible via ClearScape Analytics Experience, you must replace <HOST> with the host URL of your ClearScape Analytics Experience environment. Additionally, the 'user' and 'password' should be updated to reflect your ClearScape Analytics Environment's username and password.
====

. Create a sample database in your Vantage instance.
Populate it with sample data.
+
Expand Down Expand Up @@ -94,27 +98,6 @@ Populate it with sample data.
);
----

. Download the Teradata JDBC driver and unzip it:
+
[source,bash]
----
wget https://downloads.teradata.com/download/cdn/connectivity/jdbc/17.10.00.24/TeraJDBC__indep_indep.17.10.00.24.zip
unzip TeraJDBC__indep_indep.17.10.00.24.zip
----

. Import the JDBC driver to your local Maven repository:
+
[source,bash, id="mule_first_config", role="content-editable emits-gtm-events"]]
----
mvn install:install-file \
-Dfile=terajdbc4.jar \
-DgroupId=com.teradata \
-DartifactId=terajdbc4 \
-Dversion=17.10.00.24 \
-Dpackaging=jar \
-DgeneratePom=true
----

. Open the project in Anypoint Studio.
** Once in Anypoint Studio, click on `Import projects..`:
+
Expand Down

0 comments on commit 66516ba

Please sign in to comment.