Lab - Qlik Replicate Oracle To Amazon AWS
Lab - Qlik Replicate Oracle To Amazon AWS
Lab - Qlik Replicate Oracle To Amazon AWS
o Execute Task
o Validate data
Introduction
Replicate Tasks are used to manage the extraction and loading from various Source Systems/Databases to
targeted Databases. Although a Replicate task can only manage one source and one target system, it does
not limit the development of multiple tasks within a project. Example: A client may have three different
Database/File Systems in their environment, (Oracle, SAP HANA, IBM VSAM files) and would like to extract all
these data into a centralized Database/Cloud Environment (ex. Amazon AWS) for Analysis. In this scenario,
three Replicate Tasks would be required.
What will surprise those who worked with other data extraction tools, is the seamlessness with which Qlik
Replicate performs these processes.
In this Lab, you will define the steps needed to configure Qlik Replicate to extract data from Oracle Database
to Amazon AWS. Below are the steps required.
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Accessing
Amazon AWS in Qlik Replicate
ReplicateEnvironment
Environment 4
4
Oracle Source Configuration
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Oracle
Amazon AWS in QlikSource
Replicate Environment
Configuration 5
5
6. Enter a meaningful Endpoint Name and Description for the Endpoint Connector.
You will notice as we proceed that the content of the configuration window is context sensitive.
8. Fill in both Source, Target Servers Storage credentials as provided by your Systems Administrator.
• Server:
• Port:
• User:
• Password:
• Security/SSL Mode:
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Oracle
Amazon AWS in QlikSource
Replicate Environment
Configuration 6
6
This tells whether your configuration is correct.
Look for the “Test Connection succeeded” message. Any other message means something may be
incorrect with your Server/Database definitions, or the Server/Database is unavailable.
3. Enter a meaningful Endpoint Name and Description for the Endpoint Connector.
i. Bucket Name:
ii. Bucket Region
iii. Access Options
iv. Security Key
v. Target Folder (This will be created dynamically once name is entered)
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Amazon
Amazon AWS in Qlik Replicate
AWS TargetEnvironment
Configuration 7
7
6. Enter File Attributes:
i. Format
ii. Field Delimiter
iii. Null Value
iv. Escape Character
v. Record Delimiter
vi. Quote Character
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Amazon
Amazon AWS in Qlik Replicate
AWS TargetEnvironment
Configuration 8
8
8. Select Test Connection.
Again, look for the “Test Connection succeeded” message. Any other message means something may be
incorrect with your Server/Database definitions, or the Server/Database is unavailable.
9. Select Save.
• A source endpoint
• A target endpoint
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Configure
Amazon AWS in Qlik Replicate Environment
Replication Task 9
9
2. Enter a meaningful Task Name.
• Unidirectional
• Full Load: enabled (Blue highlight is enabled; Select to enable / disable.)
• Apply Changes: enabled (Blue highlight is enabled; Select to enable / disable.)
• Store Changes: disabled (Blue highlight is enabled; Select to enable / disable.)
5. Select OK.
- This closes the New Task dialog box.
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Configure
Amazon AWS in Qlik Replicate Environment
Replication Task 10
10
Once completed, the following window will appear.
We will now assign the newly created endpoints - source endpoint (Oracle) and target endpoint (Amazon AWS).
At this point the Source and Target Endpoints created above will be assigned, in order for Replicate to extract and
load the data as defined.
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Configure
Amazon AWS in Qlik Replicate Environment
Replication Task 11
11
1. On the left of the Replicate Console panel, Select Source .
2. Locate the Source Endpoint created above or one which meets your Source definitions.
5. Locate the Target Endpoint created above or one which meets your Target definitions.
7. Select Save.
Replicate is ready to extract the data from Oracle into Amazon AWS S3 File Storage.
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Configure
Amazon AWS in Qlik Replicate Environment
Replication Task 12
12
Steps
1. In the Qlik Replicate Console, Select Table Selection.
2. Enter % in Table.
3. Enter HR in Schema.
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Configure
Amazon AWS in Qlik Replicate Environment
Replication Task 13
13
4. Select Search.
A list of available files/tables will appear.
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Configure
Amazon AWS in Qlik Replicate Environment
Replication Task 14
14
8. Select > icon to transfer data to the Selected Tables column.
9. Select OK.
That completes configuration of the task. We are now ready to save our task and run it.
Run Task
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Run
Amazon AWS in Qlik
TaskReplicate Environment 15
15
Replicate switches to Monitor mode to allow for monitoring of Data Loads.
After Full Load is complete, select on the Completed bar to display the tables. There
is DML activity running in the background. Select on the Change Processing tab to
see it in action.
Note: Changes to the tables occur somewhat randomly in the background. You may
need to wait a few minutes before you will see changes appear in the tables that we
selected.
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Run
Amazon AWS in Qlik
TaskReplicate Environment 16
16
View Data in Amazon S3
In this scenario, the data was extracted into Amazon S3 Storage. We will now go to view the data. The tool I will use to
browse the data, Is S3 Browser. S3 Browser is a freeware Windows Client for Amazon S3 File Storage and Amazon
CloudFront. Amazon S3 provides a simple web services interface that can be used to store and retrieve any amount of
data, at any time, from anywhere on the web.
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| View
Amazon AWS in Qlik Replicate
Data Environment
in Amazon S3 17
17
5. Select Preview contents of File.
6. Select Download.
7. Enter Folder.
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| View
Amazon AWS in Qlik Replicate
Data Environment
in Amazon S3 18
18
Tips & Tricks
Sending files AWS S3
You can send files to S3 after they are created by using a post processing script.
Linux Example:
#!/bin/sh
export AWS_ACCESS_KEY_ID=AKIAJSZCZBY3SR5J55KQ
export AWS_SECRET_ACCESS_KEY=yQtzRx28+z9/lTUUEiMqQ7aXSlmR86vhIZUR2bgH
export AWS_DEFAULT_REGION=us-east-1
res=$?
if [[ $res -ne 0 ]]
then
fi
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Tips
Amazon AWS in Qlik Replicate Environment
& Tricks 19
19
echo " " >> /aws_s3/output.txt
exit $res
Windows Example:
set AWS_ACCESS_KEY_ID=AKIAJSZCZBY3SR5J55KQ
set AWS_SECRET_ACCESS_KEY=yQtzRx28+z9/lTUUEiMqQ7aXSlmR86vhIZUR2bgH
set AWS_DEFAULT_REGION=us-east-1
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Tips
Amazon AWS in Qlik Replicate Environment
& Tricks 20
20
About Qlik
Qlik’s vision is a data-literate world, where everyone can use data and analytics to improve decision-making and solve their most challenging
problems. Qlik provides an end-to-end, real-time data integration and analytics cloud platform to close the gaps between data, insights and action.
By transforming data into active intelligence, businesses can drive better decisions, improve revenue and profitability, and optimize customer
relationships. Qlik does business in more than 100 countries and serves over 50,000 customers around the world.
qlik.com
© 2021 QlikTech International AB. All rights reserved. All company and/or product names may be trade names, trademarks and/or registered trademarks of the respective owners with which they are
associated. CODE NEEDED FOR PUBLISHING
Oracle
Lab: Qlik Replicate for Database
Oracle Databaseto
toAmazon AWS| Tips
Amazon AWS in Qlik Replicate Environment
& Tricks 21
21