---
name: db2-saas-caas_load_cos
title: Loading data from IBM Cloud Object Storage
description: ''
last-updated: 2026-07-24
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/db2-saas?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

{:external: target="_blank" .external}
{:shortdesc: .shortdesc}
{:codeblock: .codeblock}
{:screen: .screen}
{:tip: .tip}
{:important: .important}
{:note: .note}
{:deprecated: .deprecated}
{:pre: .pre}


# Loading data from IBM Cloud Object Storage
{: #gh_loading}

This section explains how to load data from IBM Cloud Object Storage in Db2 SaaS in the new Genius Hub–enabled console. Follow these instructions if you see the updated UI. If you are still using the **legacy console**, refer to the [Loading data](https://cloud.ibm.com/docs/db2-saas?topic=db2-saas-loading&format=markdown) section for the correct steps.
{: important}

## Using Console
{: #using-gh-console}

You can load data from IBM Cloud Object Storage (COS) into IBM&reg; Db2&reg; as a Service by using the Console.

BLUUSERS cannot load data from the console.
{:important}

### Create the necessary credentials on the COS bucket to allow Console to access the data
{: #gh_bucket}

1. Access the COS Bucket on the IBMCloud Dashboard by clicking on the name

![Resource List](images/load.png "Resource List"){: caption="Resource List" caption-side="bottom"}

### Create Credentials on the COS bucket so Db2 Console can access the data.

1. Select **Service Credentials**  
2. Click on **New Credentials**  
3. Enter **Name** for the Service Credential  
4. Select the appropriate **Role**  
5. Ensure **Include HMAC Credential** is enabled  

![Create Service Credentials](images/credential.png "Create Service Credentials"){: caption="Create Service Credentials" caption-side="bottom"}

### Get the `Access key` and `Secret access key` from the Credentials

1. Expand the Credential
2. Note down the `access_key_id` and `secret_access_key`


![Get Keys](images/bucket.png "Get Access Keys"){: caption="Get Access Keys" caption-side="bottom"}

The steps for opening the db2 console to the load data page in the UI differ depending on whether you are using the legacy console or the new Genius Hub–enabled console.
{: note}

If you are still using the legacy console, refer to the [Loading data](https://cloud.ibm.com/docs/db2-saas?topic=db2-saas-loading&format=markdown#open-the-db2-console-to-the-load-data-page) section for the correct steps.
{: important}

### Open the Db2 Console to the load data page


1. Click on **Administration** > **Databases** > **select your database** > click on **Data operations** in the left menu  
2. Click on **Load Data** in the main content  
3. Click on **Cloud Object Storage**  
4. Pick the **COS Authentication Endpoint** that matches your bucket  
5. Enter the **Access key ID** from above for **Access key**  
6. Enter the **Secret access key** from above for **Secret access key**  
7. Click on **Browse Files** to select the file you want to load from  


 ![Create Service Credentials](images/new_admin.png "Create Service Credentials"){: caption="Create Service Credentials" caption-side="bottom"}


 ![Create Service Credentials](images/new_loaddata.png "Create Service Credentials"){: caption="Create Service Credentials" caption-side="bottom"}


## External Tables
{: #gh_external}

You can load data from IBM Cloud Object Storage (COS) into IBM&reg; Db2&reg; as a Service by using the built-in External Tables functionality.


Here's an example SQL statement that inserts COS data into a IBM Db2 Warehouse SaaS table by using External Tables:

```
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>'
     )
  )
```