You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/storage/catalog/db2/index.md
+26-48Lines changed: 26 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,77 +15,55 @@ Warehouse and Segment in a flash.
15
15
16
16
## Getting Started
17
17
18
-
To get started, you'll need to create a Db2 user for Segment, give that user
19
-
sufficient permissions, and then create the Segment Db2 Destination.
18
+
To get started, you'll need to [create a Db2 user for Segment](#create-a-user-for-segment), [give that user sufficient permissions](#give-the-segment-user-permissions), and then [create the Segment Db2 Destination](#create-segment-db2-destination).
20
19
21
20
### Create a User for Segment
22
21
23
-
To create the user account that Segment will use to load data, open the
24
-
top-left menu and navigate to Settings → Manage Users:
22
+
In order to connect your IBM Db2 warehouse to Segment, you need to create a user account that Segment can assume. To create a user account for Segment:
3. Create a new user account with "User" priveleges. Save the username and password, as these are required to set up the Segment configuration in a later step.
36
29
37
30
### Give the Segment User Permissions
38
31
39
-
In order to load data, your new Segment Db2 user will need permissions to
40
-
load that data. Open the top-left menu and navigate to Run SQL:
Select Run → Run All to execute the `GRANT` command.
32
+
Now that you created an IBM Db2 user for Segment, you must grant the Segment user permission to connect to your database. To grant the Segment user access to your database:
33
+
1. Open the top-left menu and select **Run SQL**.
34
+
2. In the SQL input, copy the following code snippet, replacing "segment_user" with the user ID that you created above:
35
+
```json
36
+
GRANT CONNECT, CREATETAB, IMPLICIT_SCHEMA ON DATABASE TO USER <segment_user>
Click connect to test the connection. If the connection is valid, your Db2
74
-
Destination will be enabled! Segment will begin syncing data to your Db2
75
-
database shortly.
56
+
Click **Connect** to complete the setup
76
57
77
58
## Security
78
59
79
60
### Allowlisting IPs
80
61
81
-
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).
82
-
Otherwise, Segment can't load your data.
62
+
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.
83
63
84
64
### Unique User
85
65
86
-
Segment recommends you to create a unique User for the Segment Db2 Warehouse
87
-
connection to your Db2 Warehouse instance so that you can manage permissions
88
-
separately.
66
+
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.
89
67
90
68
### SSL/TLS
91
69
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