Skip to content

Commit 9f611a7

Browse files
authored
Merge pull request #6036 from EnterpriseDB/release-2024-09-09a
Release 2024 09 09a
2 parents 2e6bc74 + dc548c3 commit 9f611a7

File tree

21 files changed

+395
-209
lines changed

21 files changed

+395
-209
lines changed

advocacy_docs/edb-postgres-ai/console/using/organizations/identity_provider/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ On the Set Up Identity Provider page:
5959

6060
For example:
6161

62-
![](../images/nameID.png)
62+
![](images/nameID.png)
6363
3. In the **SAML settings** section, enter the configuration information for your preferred SAML identity provider:
6464

6565
| Field | Description |

product_docs/docs/migration_toolkit/55/07_invoking_mtk/08_mtk_command_options.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The command options that work with Migration Toolkit are grouped by their behavi
3333
<div id="offline_migration" class="registered_link"></div>
3434

3535
!!!note
36-
If you are using several options for a migration, or have to specify a long list of objects for an option, consider using the `-optionsFile` option to specify the values in a separate text file. See [Specifying options using a file](mtk_command_options_in_file) for more information.
36+
If you're using several options for a migration or have to specify a long list of objects for an option, consider using the `-optionsFile` option to specify the values in a separate text file. See [Specifying options using a file](mtk_command_options_in_file) for more information.
3737
!!!
3838

3939
## Offline migration options

product_docs/docs/migration_toolkit/55/07_invoking_mtk/mtk_command_options_in_file/creating_txt_file.mdx

+33-27
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,39 @@ navTitle: "Creating the options file"
44
deepToC: true
55
---
66

7-
To specify a text file that contains command line options and values, you must create a `<example.options>` file with the options you want to execute, and then run the `runMTK.sh` command with the `-optionsFile <example.options>` argument.
7+
To specify a text file that contains command line options and values, create an `<options_textfile>` file with the options you want to execute. Then run the `runMTK.sh` command with the `-optionsFile <options_textfile>` argument.
88

99
!!!note
10-
You can store the `<example.options>` file in the same folder as the MTK utility, or in a directory of your choice.
10+
You can store the `<options_textfile>` file in the same folder as the Migration Toolkit utility or in a directory of your choice.
1111
!!!
1212

1313
## Creating the text file - guidelines
1414

15-
Create a text file on a location that is accessible by the user performing the migration. Then, add an option per line following these guidelines:
15+
Create a text file in a location that's accessible by the user performing the migration. Then, add one option per line following these guidelines.
1616

1717
### Skip the dash
1818

19-
Use the same option syntax as in the command line options without the dash sign (-). The options file recognizes each line as a new parameter and doesn't require a dash as a delimiter.
19+
Use the same option syntax as in the command line options without the dash (-). The options file recognizes each line as a new parameter and doesn't require a dash as a delimiter.
2020

2121
| Option in CLI | Supported syntax for the option in file |
2222
|----------------|-----------------------------------------|
2323
| `-tables hr` | tables hr |
2424

2525
### Use a line per option
2626

27-
Use a new line for each option. Use a line per key-value pair.
27+
Use a new line for each option. Use one line per key-value pair.
2828

2929
| Option in CLI | Supported syntax for the option in file |
3030
|----------------------------------------------------------------|---------------------------------------------------------------|
3131
| `-tables hr -allViews` <br/> `-excludeViews all_emp,acct_list` | tables hr <br/> allViews <br/> excludeViews all_emp,acct_list |
3232

33-
### Specify values for an option in a single or multiple lines
33+
### Specify values for an option in a single line or multiple lines
3434

3535
You can add a single line with an option and multiple values for that option.
3636

3737
You can add several lines for the same option, each time with a different value.
3838

39-
And you can combine both approaches, because MTK will combine all lines that have the same option.
39+
And you can combine both approaches, because Migration Toolkit combines all lines that specify the same option.
4040

4141
| Option in CLI | Supported syntax for the option in file |
4242
|--------------------------|-------------------------------------------------|
@@ -45,64 +45,70 @@ And you can combine both approaches, because MTK will combine all lines that hav
4545
| | tables TAB1 <br/> tables TAB2,TAB3 |
4646

4747
!!!note
48-
The duplication of options is only supported for the options file. <br/>
49-
When using `-tables` in the command line more than one time, only the last parameter is executed. For example, `./runMTK.sh -tables TAB2 -tables TAB3` only includes the _TAB3_ table in the migration.
48+
Duplicating options is supported only for the options file. <br/>
49+
When using `-tables` at the command line more than one time, only the last parameter is executed. For example, `./runMTK.sh -tables TAB2 -tables TAB3` includes only the `TAB3` table in the migration.
5050
!!!
5151

5252
### Use a space or equal sign to provide values
5353

54-
For options that require values (key-value pairs), separate the option from the value with a space or an equal sign (=). Both options are supported.
54+
For options that require values (key-value pairs), separate the option from the value with a space or an equal sign (=). Both syntaxes are supported.
5555

5656
| Option in CLI | Supported syntax for the option in file |
5757
|------------------|-----------------------------------------|
5858
| `-views all_emp` | views=all_emp |
5959
| | views all_emp |
6060

61-
### Don't specify an option in the file and command line
61+
### Don't specify an option in the file and at the command line
6262

63-
Don't include an option in the options file if you're specifying it as a flag in the command line.
63+
Don't include an option in the options file if you're specifying it as a flag at the command line.
6464

65-
Specifying an option in both the command line and in the text file will cause the migration to fail.
65+
Specifying an option both at the command line and in the text file causes the migration to fail.
6666

6767
## Order of processing
6868

69-
Migration Toolkit reads command line options and option files in the order you provide them when running the command.
69+
Migration Toolkit reads command line options and option files in the order you provide them when running the command. Ensure you add the [schema scope](executing_migration_with_txt/#provide-the-scope-for-the-schema-migration) (`schema_name` or `-allSchemas`) as the last parameter at the command line.
7070

71-
For example, if you run the following command, MTK first recognizes the `-sourcedbtype oracle` option, then reads the contents of `example.options` in order from top to bottom. Last parameter is always `schema_name`.
71+
For example, if you run the following command, Migration Toolkit first recognizes the `-sourcedbtype oracle` option, and then reads the contents of `options_textfile` in order from top to bottom. The last parameter is the schema scope (`<schema_name>` or `-allSchemas`).
7272

7373
```shell
74-
runMTK.sh -sourcedbtype oracle -optionsFile example.options schema_name
74+
runMTK.sh -sourcedbtype oracle -optionsFile options_textfile schema_name
7575
```
7676

77-
If you want an option to be executed last, you can either put it at the end of the `example.options` file and add no further options after `-optionsFile` in the command line.
77+
Using an options file means that you can employ different syntaxes to perform a migration where parameters are executed in the same way. The following alternatives perform the same migration.
7878

79-
Schema definition (`schema_name` or `-allSchemas`) must always be the last parameter on the command line.
79+
**Alternative 1**
8080

8181
```shell
82-
runMTK.sh -sourcedbtype oracle -optionsFile example.options schema_name
82+
runMTK.sh -sourcedbtype oracle -optionsFile <options_textfile> <schema_name>
8383
```
8484

85-
Where the content of the `example.options` file is:
85+
Where the content of the `<options_textfile>` file is:
8686

8787
```
8888
tables=TAB1
8989
dataOnly
9090
```
9191

92-
Or you can place the options flag (-dataOnly in this case) in the command line after specifying the `-optionsFile`:
92+
**Alternative 2**
9393

9494
```shell
95-
runMTK.sh -sourcedbtype oracle -optionsFile example.options -dataOnly schema_name
95+
runMTK.sh -sourcedbtype oracle -optionsFile <options_textfile> -dataOnly <schema_name>
96+
```
97+
98+
Where the content of the `<options_textfile>` file is:
99+
100+
```
101+
tables=TAB1
96102
```
97103

98104
## Other considerations
99105

100-
- **Commenting out**: Use a pound sign (#) to comment out a line. MTK won’t execute that line.
106+
- **Commenting out** &mdash; Use a pound sign (#) to comment out a line. Migration Toolkit doesn't execute lines that are commented out.
101107

102-
- **Limitations**: Do not use quote marks.
108+
- **Limitations** &mdash; Don't use quote marks.
103109

104-
- **Space processing**: MTK removes spaces between an option and its value. When you separate an option from its value with a space, only one space is treated as a delimiter.
110+
- **Space processing** &mdash; Migration Toolkit removes spaces between an option and its value. When you separate an option from its value with a space, only one space is treated as a delimiter.
105111

106-
For example, to run the `-views all_emp, mgmt_list, acct_list` command line option, you can add _views all_emp,mgmt_list,acct_list_ OR _views = all_emp,mgmt_list,acct_list_ in the options file.
112+
For example, to run the `-views all_emp, mgmt_list, acct_list` command line option, you can add `views all_emp,mgmt_list,acct_list` or `views = all_emp,mgmt_list,acct_list` in the options file.
107113

108-
After you have created the options file, [execute the migration with the options file](executing_migration_with_txt).
114+
After you create the options file, [execute the migration with it](executing_migration_with_txt).

product_docs/docs/migration_toolkit/55/07_invoking_mtk/mtk_command_options_in_file/executing_migration_with_txt.mdx

+18-18
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@ navTitle: "Executing a migration with the options file"
44
deepToC: true
55
---
66

7-
After you have created the options file, execute the migration command by referencing the options file:
7+
After you create the options file, reference it when executing the migration command:
88

99
```shell
10-
./runMTK.sh -optionsFile <example.options>
10+
./runMTK.sh -optionsFile <options_textfile> <schema_name>
1111
```
1212

1313
!!!note
14-
Provide the full path for `<example.options>` if you are running the MTK command from a different folder than where you have stored the file.
14+
Provide the full path for `<options_textfile>` if you're running the Migration Toolkit command from a different folder from where you stored the file.
1515
!!!
1616

17-
You can specify all options in the file, or use a mix of command line and options file to specify the migration parameters.
17+
You can specify all options in the file or use a mix of the command line and the options file to specify the migration parameters.
1818

1919
## Provide the scope for the schema migration
2020

21-
You must specify the scope of the schemas to be migrated.
21+
Specify the scope of the schemas to migrate:
2222

23-
- If you want to migrate all schemas: Add the `-allSchemas` option in the command line or add `allSchemas` in your options file. Regardless of which method you use, this option must be the last parameter.
23+
- If you want to migrate all schemas, add the `-allSchemas` option at the command line or add `allSchemas` in your options file. For both methods, this option must be the last parameter.
2424

25-
- If you want to specify one or several schemas: Specify the schemas you want to migrate in the command line with no preceding option. They have to be the last parameter in the command line.
25+
- If you want to specify a subset of schemas, specify the schemas you want to migrate at the command line with no preceding option and as a comma-separated list. Schema specifications must be the last parameter at the command line.
2626

27-
Here are some examples for specifying all options in the file:
27+
Here are some examples for specifying all options in the file.
2828

2929
## Migrate a schema with specific tables
3030

31-
Content of the `<example.options>` text file:
31+
Content of the `options_textfile` text file:
3232

3333
```
3434
tables comp_schema.emp,comp_schema.dept,finance_schema.acctg
@@ -37,7 +37,7 @@ tables comp_schema.emp,comp_schema.dept,finance_schema.acctg
3737
Syntax of the migration command:
3838

3939
```shell
40-
./runMTK.sh -optionsFile example.options schema_name
40+
./runMTK.sh -optionsFile options_textfile schema_name
4141
```
4242

4343
Command line equivalent:
@@ -46,15 +46,15 @@ Command line equivalent:
4646
./runMTK.sh -tables comp_schema.emp,comp_schema.dept,finance_schema.acctg schema_name
4747
```
4848

49-
## Use Options File to exclude tables and include functions
49+
## Use options file to exclude tables and include functions
5050

51-
The options file can be used to separate table names from configuration options.
52-
It may also contain comments to clarify why parameters are used.
51+
You can use the options file to separate table names from configuration options.
52+
You can also use comments to clarify why parameters are used.
5353

54-
In this example we are excluding tables and including functions.
55-
It shows some extra comments, to explain why tables are excluded.
54+
This example excludes tables and includes functions.
55+
It shows some comments to explain why tables are excluded.
5656

57-
Content of the `<excludeInclude.options>` text file:
57+
Content of the `excludeInclude.options` text file:
5858

5959
```
6060
# finances
@@ -84,7 +84,7 @@ Command line equivalent:
8484

8585
Run an offline migration with all schemas.
8686

87-
Content of the `<example.options>` text file:
87+
Content of the `options_textfile` text file:
8888

8989
```
9090
offlineMigration file_dest
@@ -95,7 +95,7 @@ schemaOnly
9595
Syntax of the migration command:
9696

9797
```shell
98-
./runMTK.sh -optionsFile example.options -allSchemas
98+
./runMTK.sh -optionsFile options_textfile -allSchemas
9999
```
100100

101101
Command line equivalent:

product_docs/docs/migration_toolkit/55/07_invoking_mtk/mtk_command_options_in_file/index.mdx

+4-7
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ navTitle: "Specifying options using a file"
44
deepToC: true
55
---
66

7-
EDB supports using a text file to specify several [database migration options](../08_mtk_command_options.mdx) instead of manually entering them in the command line. This is particularly helpful when:
7+
EDB supports using a text file to specify several [database migration options](../08_mtk_command_options.mdx) instead of manually entering them at the command line. This is particularly helpful when:
88

9-
- You have to specify a large number of command line options for complex migration scenarios. Entering all options in the command line becomes troublesome, or you might have even reached command line length limits.
9+
- You have to specify a large number of command line options or a large number of values for complex migration scenarios. Entering all options or values at the command line becomes cumbersome, or you might reach command line length limits.
1010

11-
- You have to specify a large number of values for a command line option for complex migration scenarios. Entering all values in the command line becomes troublesome, or you might have even reached command line length limits.
11+
- You want to apply the same migration options and values to several different databases, or you might want to automate database migration. Running `runMTK.sh` with several options and values repeatedly at the command line becomes prone to errors.
1212

13-
- You want to apply the same migration options and values to several different databases, or you might even consider automating the migration of databases. Running `runMTK.sh` with several options and values repeatedly in the command line becomes prone to errors.
14-
15-
The `-optionsFile <example.options>` argument allows you to reference a text file with all options and values, making the migration process easier.
13+
The `-optionsFile <options_textfile>` argument allows you to reference a text file with options and values, making the migration process easier.
1614

1715
## Execute a migration using an options file
1816

@@ -21,4 +19,3 @@ To perform a migration with a file that specifies the command options:
2119
1. [Create a text file with the command options](creating_txt_file).
2220

2321
1. [Perform a migration by invoking the file with the command options](executing_migration_with_txt).
24-

0 commit comments

Comments
 (0)