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: product_docs/docs/eprs/6.2/05_smr_operation/01_prerequisites/06_verifying_host_accessibility.mdx
+2
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,8 @@ $ hostname -i
122
122
123
123
## Postgres Server Authentication
124
124
125
+
#postgres-server-authentication
126
+
125
127
A Postgres database server uses the host-based authentication file, `pg_hba.conf`, to control access to the databases in the database server. You need to modify the `pg_hba.conf` file in the following locations:
126
128
127
129
- On each Postgres database server that contains a Postgres publication database
Copy file name to clipboardExpand all lines: product_docs/docs/eprs/6.2/05_smr_operation/02_creating_publication/04_control_schema_objects_created_for_publication.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -292,7 +292,7 @@ RREP_SYNCID_ARRAY COLLECTION
292
292
```
293
293
294
294
!!! Note
295
-
The RREP_SYNCID_ARRAY collection type is found only in an Oracle publication database.
295
+
The `RREP_SYNCID_ARRAY` collection type is found only in an Oracle publication database.
Copy file name to clipboardExpand all lines: product_docs/docs/eprs/6.2/05_smr_operation/06_performing_switchover.mdx
+5-5
Original file line number
Diff line number
Diff line change
@@ -63,9 +63,9 @@ Delete or disable these triggers on node 1.
63
63
64
64
Delete this schema from the subscription database on node 2 after the backup has been made.
65
65
66
-
**Step 8:** Restore the backups of `schemas _edb_replicator_pub`, \_edb_replicator_sub`, and`\_edb_scheduler`created in Step 5 to the subscription database on node 2. Also restore the backup of the replication triggers and trigger functions created in Step 6 to the subscription database on node 2.
66
+
**Step 8:** Restore the backups of `schemas _edb_replicator_pub`, _edb_replicator_sub`, and`_edb_scheduler`created in Step 5 to the subscription database on node 2. Also restore the backup of the replication triggers and trigger functions created in Step 6 to the subscription database on node 2.
67
67
68
-
**Step 9:** Restore the backup of schema`\_edb_replicator_sub`created in Step 7 to the publication database on node 1.
68
+
**Step 9:** Restore the backup of schema`_edb_replicator_sub`created in Step 7 to the publication database on node 1.
69
69
70
70
**Step 10:** Update the control schema objects so that the publication database definition references the new publication database (that is, the former subscription database) on node 2 and the subscription database definition references the new subscription database (that is, the former publication database) on node 1.
71
71
@@ -131,13 +131,13 @@ host=192.168.2.20
131
131
132
132
```
133
133
134
-
**Step 13:** Update the`pg_hba.conf` files of the database servers to allow access to the subscription database now on node 1 and the publication database now on node 2 in accordance with Section [Postgres Server Authentication](../06_verifying_host_accessibility/03_postgres_server_auth/#postgres_server_auth).
134
+
**Step 13:** Update the`pg_hba.conf` files of the database servers to allow access to the subscription database now on node 1 and the publication database now on node 2 in accordance with Section [Postgres Server Authentication](01_prerequisites/06_verifying_host_accessibility/#postgres-server-authentication).
135
135
136
136
**Step 14:** When using the log-based method, create a replication slot on the database server that now contains the publication database.
137
137
138
138
Use the following query to obtain the slot name from the database server that was previously running the publication database, but is now the subscription database server:
139
139
140
-
```text
140
+
```
141
141
SELECT slot_name FROM pg_replication_slots WHERE plugin = 'test_decoding';
142
142
slot_name
143
143
-------------
@@ -159,7 +159,7 @@ You may choose to keep the replication slot on the database server that now cont
159
159
160
160
Alternatively, you can delete the replication slot from the database server that now contains the subscription database. The replication slot is deleted with the following command:
Copy file name to clipboardExpand all lines: product_docs/docs/eprs/6.2/05_smr_operation/08_optimizing_performance/02_optimize_sync_replication/01_using_sql_statements.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ The `bupBatchThresholdCount` option is used in combination with the `bupBatchThr
102
102
103
103
> The default value for n is 10.
104
104
105
-
Each time the same prepared SQL statement is consecutively executed, an internal “batch” counter is incremented. If this batch count falls below bupBatchThresholdCount for the number of executions of a given prepared statement, then a second internal “repeat” counter is incremented by one. If the repeat counter eventually reaches bupBatchThresholdRepeatLimit, the update mode is switched from BUP to BUS.
105
+
Each time the same prepared SQL statement is consecutively executed, an internal `batch` counter is incremented. If this batch count falls below bupBatchThresholdCount for the number of executions of a given prepared statement, then a second internal `repeat` counter is incremented by one. If the repeat counter eventually reaches bupBatchThresholdRepeatLimit, the update mode is switched from `BUP` to `BUS`.
106
106
107
107
Thus, if there are frequent, consecutive changes of prepared SQL statements (as measured against `bupBatchThresholdRepeatLimit`), each of which is executed a small number of times (as measured against `bupBatchThresholdCount`), then the mode of execution changes back to individual SQL statements instead of prepared statements.
108
108
@@ -111,15 +111,15 @@ Thus, if there are frequent, consecutive changes of prepared SQL statements (as
111
111
112
112
The following example illustrates the processing of up dates when bupBatchThresholdCount is set to 3 and bupBatchThresholdRepeatLimit is set to 4. A change to the “query domain” referred to in this example means a different statement type (INSERT, UPDATE, or DELETE) or a different target table are encountered in the next update, thus requiring the use of a different prepared SQL statement.
113
113
114
-
```text
114
+
```
115
115
1. INSERT INTO emp
116
116
2. INSERT INTO emp
117
117
3. INSERT INTO dept
118
118
```
119
119
120
120
At this point the query domain is changed after the first two updates (change from table `emp` to `dept`) and the number of executions of the prior prepared statement (2) is less than `bupBatchThresholdCount`, so the repeat counter is set to 1.
Copy file name to clipboardExpand all lines: product_docs/docs/eprs/6.2/05_smr_operation/08_optimizing_performance/02_optimize_sync_replication/03_other_sync_configuration.mdx
Copy file name to clipboardExpand all lines: product_docs/docs/eprs/6.2/06_mmr_operation/01_pre_steps.mdx
+5-3
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ There are also two possible options available with respect to how the publicatio
82
82
- Allow the publication server to create the publication table definitions in the primary node by copying the definitions from the primary definition node at the time you add the publication database definition for the primary node.
83
83
- Define the publication tables in the primary node beforehand by running SQL `DDL` statements in the `PSQL` command line utility program or by using Postgres Enterprise Manager Client to create the tables.
84
84
85
-
If you create the table definitions “manually” as described in the second bullet point, be sure the publication tables are defined identically to the tables in the primary definition node including schema names, table names, number of columns, column names, column data types, column lengths, primary key definitions, unique constraints, foreign key constraints, etc.
85
+
If you create the table definitions `manually` as described in the second bullet point, be sure the publication tables are defined identically to the tables in the primary definition node including schema names, table names, number of columns, column names, column data types, column lengths, primary key definitions, unique constraints, foreign key constraints, etc.
86
86
87
87
The examples used throughout the rest of this user’s guide are based on the following:
88
88
@@ -112,7 +112,9 @@ If more than one computer is used to host the components of the replication syst
112
112
- For a discussion of firewalls and access to ports see [Firewalls and Access to Ports](../05_smr_operation/01_prerequisites/06_verifying_host_accessibility/#firewalls_and_access_to_ports).
113
113
- For a discussion of network IP addresses see [Network IP Addresses](../05_smr_operation/01_prerequisites/06_verifying_host_accessibility/#network_ip).
114
114
115
-
A Postgres database server uses the host-based authentication file, `pg_hba.conf`, to control access to the databases in the database server. You need to modify the `pg_hba.conf` file on each Postgres database server that contains a primary node.
115
+
A Postgres database server uses the host-based authentication file, `pg_hba.conf`, to control access to the databases in the database server.
116
+
117
+
You need to modify the `pg_hba.conf` file on each Postgres database server that contains a primary node.
116
118
117
119
In a default Postgres installation, this file is located in the directory `POSTGRES_INSTALL_HOME/data`.
118
120
@@ -193,4 +195,4 @@ See sections [Synchronization Replication with the Log-Based Method](../02_overv
193
195
194
196
Reload the configuration file after making the modifications.
195
197
196
-
Choose Reload Configuration (Expert Configuration, then Reload Configuration on Advanced Server) from the Postgres application menu. This will put the modified `pg_hba.conf` file into effect.
198
+
Choose `Reload Configuration` (Expert Configuration, then Reload Configuration on Advanced Server) from the Postgres application menu. This will put the modified `pg_hba.conf` file into effect.
Copy file name to clipboardExpand all lines: product_docs/docs/eprs/6.2/06_mmr_operation/02_creating_publication_mmr.mdx
+23-1
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ Registering a publication server is done in a manner identical to single-master
19
19
20
20

21
21
22
+
**Figure 6-1: Replication tree after registering a publication server**
23
+
22
24
After you have successfully registered a publication server, the replication tree of the xDB Replication Console displays a Publication Server node under which are the SMR and MMR type nodes.
23
25
24
26
Continue to build the multi-master replication system under the MMR type node.
@@ -45,22 +47,28 @@ You must enter database connection information such as the database server netwo
45
47
-`User`. The database user name for the primary definition node created in Step 1 of [Preparing the Primary definition node](01_pre_steps/#prepare_pdn).
46
48
-`Password`. Password of the database user.
47
49
-`Database`. Enter the database name of the primary definition node.
48
-
-`URL Options (For SSL connectivity)`. Enter the URL options to establish SSL connectivity to the primary definition node. See <spanclass="title-ref">Using Secure Sockets Layer (SSL) Connections<using_ssl_connections></span> for information on using SSL connections.
50
+
-`URL Options (For SSL connectivity)`. Enter the URL options to establish SSL connectivity to the primary definition node. See [Using Secure Sockets Layer (SSL) Connections](../07_common_operations/11_using_ssl_connections/#using_ssl_connections) for information on using SSL connections.
49
51
-`Changeset Logging (For Postgres)`. Select Table Triggers to use the trigger-based method of synchronization replication. Select WAL Stream to use the log-based method of synchronization replication. See [Synchronization Replication with the Trigger-Based Method](../02_overview/02_replication_concepts_and_definitions/09_sync_replication_trigger_based/#sync_replication_trigger_based) for information on the trigger-based method. See [Synchronization Replication with the Log-Based Method](../02_overview/02_replication_concepts_and_definitions/10_sync_replication_log_based/#sync_replication_log_based) for information on the log-based method.
50
52
-`Node Priority Level`. An integer from 1 to 10, which is the priority level assigned to this primary node for conflict resolution based on node priority. The highest priority is 1 while the lowest is 10. See [Conflict Resolution Strategies](06_conflict_resolution/04_conflict_resolution_strategies/#conflict_resolution_strategies) for information on conflict resolution strategies. The default is 1 for the primary definition node.
51
53
52
54

53
55
56
+
**Figure 6-2: Publication Service - Add Database dialog box for the primary definition node**
57
+
54
58
**Step 4:** Click the `Test` button. If `Test Result: Success` appears, click the `OK` button, then click the `Save` button.
If an error message appears investigate the cause of the error, correct the problem, and repeat steps 1 through 4.
59
65
60
66
When the publication database definition is successfully saved, a Publication Database node is added to the replication tree under the MMR type node of the Publication Server node.
61
67
62
68

63
69
70
+
**Figure 6-4: Replication tree after adding the primary definition node**
71
+
64
72
The label `PDN` appears at the end of the node in the replication tree and in addition, the `PDN` field is set to Yes in the Property window to indicate this is the primary definition node.
If you wish to use table filters during replications between primary nodes in this multi-master replication system, follow the directions in the next step to define the initial set of available table filters, otherwise go on to Step 4.
84
94
85
95
**Step 3 (Optional):** Table filters consist of a set of filter rules that control the selection criteria for rows replicated between primary nodes during a snapshot or a synchronization replication.
@@ -108,14 +118,20 @@ In the following example a filter rule is defined on the dept table so only rows
108
118
109
119

110
120
121
+
**Figure 6-6: Adding a filter rule for the dept table**
122
+
111
123
The following shows a rule added to the `emp` table by choosing `edb.emp` from the Table/View drop-down list and then entering the selection criteria for only rows with `deptno` containing 10 in the Filter dialog box.
112
124
113
125

114
126
127
+
**Figure 6-7: Adding a filter rule for the emp table**
128
+
115
129
Repeating this process, additional filter rules can be added for the `emp` table. The following shows the complete set of available filter rules defined for the `dept` and `emp` tables.
116
130
117
131

118
132
133
+
**Figure 6-8: Set of all available filter rules**
134
+
119
135
To remove a filter rule, click the primary mouse button on the filter rule you wish to remove so the entry is highlighted and then click the `Remove Filter` button.
120
136
121
137
You may also modify the filter name or filter clause of a filter rule listed in the Table Filters tab by double-clicking on the cell of the filter name or filter clause you wish to change. When the cursor appears in the cell, enter the text for the desired change.
@@ -133,6 +149,8 @@ If you wish to change the conflict resolution options from their default setting
If during synchronization replication, conflicting changes are pending against the same row from different primary nodes, the conflict resolution strategy determines which of the conflicting changes is accepted and replicated to all primary nodes. The conflicting changes that are not accepted are discarded.
137
155
138
156
If the selection from the Conflict Resolution Strategy column does not resolve the conflict, the selection from the Standby Conflict Resolution Strategy column is applied. If neither strategy resolves the conflict, the event is marked as Pending in the Conflict History tab. See [Viewing Conflict History](07_view_conflict_history/#view_conflict_history) for information on viewing conflict history.
@@ -155,6 +173,10 @@ See [Conflict Resolution Strategies](06_conflict_resolution/04_conflict_resoluti
155
173
156
174

157
175
176
+
**Figure 6-10: Publication created successfully**
177
+
158
178
Upon successful publication creation, a Publication node is added to the replication tree.
159
179
160
180

181
+
182
+
**Figure 6-11: Replication tree after adding a publication**
0 commit comments