| copyright |
|
||
|---|---|---|---|
| lastupdated | 2018-11-20 | ||
| keywords | |||
| subcollection | Db2whc |
{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:codeblock: .codeblock} {:screen: .screen} {:tip: .tip} {:important: .important} {:note: .note} {:deprecated: .deprecated} {:pre: .pre}
{: #migration}
You can load data from a data file in a delimited format (CSV or TXT) located on a local network or in an object store (Amazon S3 or {{site.data.keyword.Bluemix_notm}} Object Storage) to {{site.data.keyword.dashdblong}}. You can even migrate your data from an on-premises system. {: shortdesc}
{: #cos}
To load data from Amazon S3, select one of the following methods:
-
{{site.data.keyword.dashdbshort_notm}} web console. Load > Amazon S3.
-
External Tables directly. The following is an example SQL statement:
INSERT INTO <table-name> SELECT * FROM EXTERNAL '<mys3file.txt>' USING (CCSID 1208 s3('s3.amazonaws.com', '<S3-access-key-ID>', '<S3-secret-access-key>', '<my_bucket>' ) )
To load data from {{site.data.keyword.Bluemix_notm}} Object Storage by using External Tables directly, the following is an example SQL statement:
INSERT INTO <table-name> SELECT * FROM EXTERNAL '<mys3file.txt>' USING
(CCSID 1208 s3('s3-api.us-geo.objectstorage.softlayer.net',
'<S3-access-key-ID>',
'<S3-secret-access-key>',
'<my_bucket>'
)
)
For {{site.data.keyword.Bluemix_notm}} Object Storage, to create HMAC credentials when creating new service credentials, specify {"HMAC:true"} in the Add Inline Configuration Parameters field. {: note}
For a guided demo about loading data from {{site.data.keyword.Bluemix_notm}} Object Storage, see: {{site.data.keyword.dashdblong}} guided demo: Explore data loading {:new_window}
{: #onprem}
To migrate your data from an on-premises system, choose one of the following methods depending on the size of your data set:
- Less than 25 TB of data: IBM Lift
- 25 TB of data and greater: {{site.data.keyword.Bluemix_notm}} Mass Data Migration Service
{: #lift}
The Lift is an application that you can use without charge to migrate your data to the {{site.data.keyword.Bluemix_notm}} from the various data sources listed in Table 1.
| Target database on {{site.data.keyword.Bluemix_notm}} | Data source |
|---|---|
| IBM Db2 Warehouse on Cloud | IBM Db2 |
| IBM Db2 Warehouse | |
| IBM Integrated Analytics System | |
| IBM PureData System for Analytics | |
| Oracle Database | |
| Microsoft SQL Server | |
| CSV file format | |
| {: caption="Table 1. Migration data sources" caption-side="top"} |
To download and install Lift, see: Download Lift {:new_window}.
For step-by-step instructions about migrating your data to the {{site.data.keyword.Bluemix_notm}} by using Lift, see: Migrate data to {{site.data.keyword.dashdblong}} {:new_window}.
{: #mdms}
The {{site.data.keyword.Bluemix_notm}} Mass Data Migration Service (MDMS) can be used to migrate data from large IBM PureData Systems for Analytics (Netezza) databases of about 25 TB and greater to a fully-managed {{site.data.keyword.dashdblong}} database on {{site.data.keyword.Bluemix_notm}}.
MDMS offers a fast, simple, secure way to physically transfer terabytes to petabytes of data to the {{site.data.keyword.Bluemix_notm}}. The MDMS is a mobile storage device with 120 TB of usable storage capacity. This device gives you the ability to overcome common transfer challenges like high costs, long transfer times, and security concerns – all in a single service.
For more information about the MDMS device, see:
For information about migrating your data from an IBM PureData System for Analytics (Netezza) database to an {{site.data.keyword.dashdblong}} database by using the MDMS device, see:
{: #tutorial}
This tutorial demonstrates how to migrate data from on-premises relational databases into {{site.data.keyword.dashdbshort_notm}} for business analytics applications.
Hybrid data warehousing with {{site.data.keyword.dashdbshort_notm}} {:new_window}