Skip to content

Commit 9f68558

Browse files
committed
[netlify-build] more fixes
1 parent cd96a3a commit 9f68558

File tree

1 file changed

+17
-13
lines changed
  • src/connections/reverse-etl/reverse-etl-source-setup-guides

1 file changed

+17
-13
lines changed

src/connections/reverse-etl/reverse-etl-source-setup-guides/db2-setup.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,57 +10,61 @@ At a high level, when you set up DB2 for Reverse ETL, the configured database us
1010

1111
## Required permissions
1212

13-
In order to run a Reverse-ETL sync in a DB2 warehouse, Segment needs the following permissions:
13+
In order to run a Reverse ETL sync in a DB2 warehouse, Segment needs the following permissions:
1414

15-
1. **Permission to read from all tables used in the model** (i.e., the tables included in your SELECT query).
16-
2. **Permission to create and manage a schema** for tracking sync metadata.
15+
* **Permission to read from all tables used in the model** (i.e., the tables included in your SELECT query).
16+
* **Permission to create and manage a schema** for tracking sync metadata.
17+
* **Permission to create tables in the database**, needed for internal metadata tables.
1718

1819

1920
> info "Use a dedicated user for Segment"
2021
> It's recommended to create a dedicated DB2 user for Segment with access limited to only the relevant schemas and tables.
2122
22-
1. Open the Db2 warehouse and navigate to **Administration > User management**.
23+
1. In IBM Cloud, go to your DB2 instance and navigate to **Administration > User management**.
2324
2. Click **Add**.
24-
3. Create a new user 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.
25+
3. Create a new user with *user* privileges. Make sure to save the username and password—these are needed to configure the Segment
26+
source connection later.
2527

2628

2729
> info ""
2830
> The `SEGMENT_REVERSE_ETL` schema will be created and managed by Segment to track the status of each sync.
2931
> You can also choose to create this schema yourself by running:
3032
> `CREATE SCHEMA SEGMENT_REVERSE_ETL`
31-
> and explicitly grant Segment privileges on it.
33+
> Then grant Segment the appropriate privileges.
3234
3335

3436

35-
Run the below SQL commands to grant Segment the required permissions:
37+
Run the following SQL commands to grant Segment the required permissions:
3638

3739
```sql
38-
-- Grant permissions to create manage objects within the SEGMENT_REVERSE_ETL schema
40+
-- Grant permissions to create and manage objects within the SEGMENT_REVERSE_ETL schema
3941
GRANT CREATEIN, DROPIN ON SCHEMA SEGMENT_REVERSE_ETL TO USER <username>;
42+
43+
-- Grant permission to create tables in the database
4044
GRANT CREATETAB ON DATABASE TO USER <username>;
4145

4246
-- Grant read access on each table used in the model
4347
GRANT SELECT ON TABLE <schema_name>.<table_name> TO USER <username>;
48+
-- Repeat the above command for all tables involved in your model
4449
```
4550

4651

47-
## Set up guide
52+
## Set Up Guide
4853

4954
To set up DB2 as your Reverse ETL source:
5055

5156
1. Make sure your DB2 database is network-accessible from [Segment's IPs](/docs/connections/storage/warehouses/faq/#which-ips-should-i-allowlist).
5257
2. Open [your Segment workspace](https://app.segment.com/workspaces){:target="_blank"}.
53-
3. Navigate to **Connections > Sources** and select the **Reverse ETL** tab.
58+
3. Navigate to **Connections > Sources** then select the **Reverse ETL** tab.
5459
4. Click **+ Add Reverse ETL source**.
5560
5. Select **DB2** and click **Add Source**.
56-
6. Enter the configuration settings for your DB2 source:
61+
6. Fill in the DB2 connection settings:
5762
* Hostname: `<hostname>`
5863
* Port: `<port>`
5964
* Database: `<db_name>`
6065
* Username: `<segment_db2_user>`
6166
* Password: `<password>`
62-
* Schema [optional]: If not specified, Segment will use the user’s default schema
6367
7. Click **Test Connection** to validate the setup.
6468
8. If the connection is successful, click **Add source**.
6569

66-
After you've successfully added your DB2 source, [add a model](/docs/connections/reverse-etl/setup/#step-2-add-a-model) and follow the rest of the steps in the Reverse ETL setup guide.
70+
After successfully adding your DB2 source, [add a model](/docs/connections/reverse-etl/setup/#step-2-add-a-model) and follow the rest of the steps in the Reverse ETL setup guide.

0 commit comments

Comments
 (0)