Skip to content

Commit af49d68

Browse files
Merge pull request #3029 from segmentio/ibm-db2-update
IBM Db2 docs update
2 parents 5b5c997 + d907cfd commit af49d68

File tree

1 file changed

+35
-63
lines changed
  • src/connections/storage/catalog/db2

1 file changed

+35
-63
lines changed

src/connections/storage/catalog/db2/index.md

Lines changed: 35 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -5,95 +5,67 @@ redirect_from:
55
- '/connections/warehouses/catalog/db2/'
66
---
77

8-
Use [IBM Db2](https://www.ibm.com/analytics/us/en/db2/) with Segment to get
8+
Use [IBM Db2](https://www.ibm.com/analytics/us/en/db2/){:target="_blank"} with Segment to get
99
all of your event and Cloud Source data in a warehouse built by IBM. This
1010
guide will walk through what you need to know to get up and running with Db2
11-
Warehouse and Segment in a flash.
11+
Warehouse and Segment.
1212

13-
Note: This document refers specifically to [IBM Db2 Warehouse on
14-
Cloud](https://www.ibm.com/cloud/db2-warehouse-on-cloud), [IBM Db2 Warehouse](https://www.ibm.com/analytics/db2), and the [IBM Integrated
15-
Analytics System](https://www.ibm.com/products/integrated-analytics-system). For questions related to any of these products,
16-
see the [IBM Cloud Docs](https://cloud.ibm.com/docs).
17-
18-
If you notice any gaps, outdated information or simply want to leave some
19-
feedback to help us improve our documentation, [let us
20-
know](https://segment.com/help/contact)!
13+
> note " "
14+
> This document refers specifically to [IBM Db2 Warehouse on Cloud](https://www.ibm.com/cloud/db2-warehouse-on-cloud){:target="_blank"}, [IBM Db2 Warehouse](https://www.ibm.com/analytics/db2){:target="_blank"}, and the [IBM Integrated Analytics System](https://www.ibm.com/products/integrated-analytics-system){:target="_blank"}. For questions related to any of these products, see the [IBM Cloud Docs](https://cloud.ibm.com/docs){:target="_blank"}.
2115
2216
## Getting Started
2317

24-
To get started, you'll need to create a Db2 user for Segment, give that user
25-
sufficient permissions, and then create the Segment Db2 Destination.
18+
To get started, you'll need to:
19+
1. [Create a Db2 user for Segment](#create-a-user-for-segment).
20+
2. [Grant the user sufficient permissions](#grant-the-segment-user-permissions).
21+
3. [Create the the IBM Db2 Destination in the Segment app](#create-segment-db2-destination).
2622

2723
### Create a User for Segment
2824

29-
To create the user account that Segment will use to load data, open the
30-
top-left menu and navigate to Settings → Manage Users:
31-
32-
<img src="./images/db2_menu.png" style="max-width: 380px">
33-
34-
Then click on "Add":
35-
36-
<img src="./images/manage_users.png" style="max-width: 437px">
25+
In order to connect your IBM Db2 warehouse to Segment, you need to create a Db2 user account that Segment can assume. To create a user account for Segment:
3726

38-
Fill in your desired Segment user settings and make sure that their Privilege
39-
is "User". You will enter these settings in to Segment later:
27+
1. Open the Db2 warehouse and navigate to **Administration > User management**.
4028

41-
<img src="./images/add_user.png" style="max-width: 394px">
29+
2. Click **Add**.
4230

43-
### Give the Segment User Permissions
31+
3. Create a new user account with *user* privileges. Make sure you save the username and password, as these are required to set up the Segment configuration in a later step.
4432

45-
In order to load data, your new Segment Db2 user will need permissions to
46-
load that data. Open the top-left menu and navigate to Run SQL:
33+
### Grant the Segment User Permissions
4734

48-
<img src="./images/run_sql.png" style="max-width: 325px">
35+
To grant the Segment user access to your database:
4936

50-
In the SQL input, type "GRANT CONNECT, CREATETAB, IMPLICIT_SCHEMA ON DATABASE TO
51-
USER segment":, replacing "segment" with the user ID that you chose above:
52-
53-
<img src="./images/grant.png" style="max-width: 616px">
54-
55-
Select Run → Run All to execute the `GRANT` command.
37+
1. Open the top-left menu in your Db2 Warehouse and select **Run SQL**.
38+
2. In the SQL input, copy the following code snippet, and replace `segment_user` with the user ID that you created above.
39+
```json
40+
GRANT CONNECT, CREATETAB, IMPLICIT_SCHEMA ON DATABASE TO USER <segment_user>
41+
```
42+
3. Click **Run All** to execute the `GRANT` command.
5643

5744
### Create Segment Db2 Destination
5845

59-
In the Segment App, select Add Destination:
60-
61-
<img src="./images/add_destination.png" style="max-width: 682px">
62-
63-
Search for and select "Db2":
64-
65-
<img src="./images/search_results.png" style="max-width: 842px">
66-
67-
Add your credentials as follows:
68-
69-
- Host (Found in Settings → Connection Info → Connection Information)
70-
- Port (50001 is Db2 Default)
71-
- Database name
72-
- User (This is the "User ID" that you created above)
73-
- Password
74-
- Security (Enter "SSL" in this field if applicable - optional)
75-
76-
77-
<img src="./images/settings.png" style="max-width: 540px">
46+
To set up an IBM Db2 destination in the Segment app:
7847

79-
Click connect to test the connection. If the connection is valid, your Db2
80-
Destination will be enabled! Segment will begin syncing data to your Db2
81-
database shortly.
48+
1. Open the Segment app, navigate to **Connections** and click **Add Destination**.
49+
2. Search for and select **IBM Db2 Warehouse**.
50+
3. Select the sources you want to connect to the IBM Db2 warehouse, and click **Next**.
51+
4. Enter a name for your destination, and enter the following credentials:
52+
- Host (You can find this in your Db2 instance, under Administration > Connections)
53+
- Port (50001 is the default for Db2)
54+
- Database name (You can find this in your Db2 instance, under Administration > Connections)
55+
- User (This is the User ID that you created above)
56+
- Password (This is the password that you created above)
57+
- Security ([Enter "SSL" in this field](#ssltls))
58+
5. Click **Connect** to connect your Db2 warehouse to Segment.
8259

8360
## Security
8461

85-
### Whitelisting IPs
62+
### Allowlisting IPs
8663

87-
If your Db2 Warehouse is in a private network, be sure to [whitelist
88-
Segment's IP
89-
address](https://segment.com/docs/connections/storage/warehouses/faq/#which-ips-should-i-whitelist).
90-
Otherwise, Segment can't load your data.
64+
If your Db2 Warehouse is in a private network, be sure to [allowlist Segment's IP address](/docs/connections/storage/warehouses/faq/#which-ips-should-i-allowlist) when creating the Db2 user Segment assumes. Otherwise, Segment won't be able to load your data.
9165

9266
### Unique User
9367

94-
Segment recommends you to create a unique User for the Segment Db2 Warehouse
95-
connection to your Db2 Warehouse instance so that you can manage permissions
96-
separately.
68+
Segment recommends you to create a unique User for the Segment Db2 Warehouse connection to your Db2 Warehouse instance so that you can manage permissions separately.
9769

9870
### SSL/TLS
9971
Always require SSL/TLS and make sure your data warehouse can only accept secure connections. Segment only connects to your data warehouse using SSL/TLS.

0 commit comments

Comments
 (0)