Skip to content

Commit 45d1e5e

Browse files
authored
Merge pull request #63 from jpmc-github/tts-backup-python-02062026
TTS-backup-python updates for 02062026
2 parents e681afb + 8698a0a commit 45d1e5e

File tree

6 files changed

+284
-73
lines changed

6 files changed

+284
-73
lines changed

migration-tools/tts-backup-python/README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ Leave these a blank unless really needed.
112112

113113
***DVREALM_USER*** - (OPTIONAL INPUT) Required only if Database Vault is enabled and configured in the source database. Specify a Database Vault realm owner or authorized user required to access objects protected by Database Vault during the backup process. If not provided and Database Vault is enabled, backup will fail with an error.
114114

115-
***DVREALM_PASSWORD*** - (OPTIONAL INPUT) Required only if Database Vault is enabled and configured in the source.Password for the specified DVREALM_USER. If not provided and Database Vault is enabled, backup will fail with an error.
116-
115+
***DVREALM_PASSWORD*** - (RUNTIME INPUT) Required only if Database Vault is enabled and configured in the source. Password for the specified DVREALM_USER. If not provided and Database Vault is enabled, backup will fail with an error. Provide as CLI runtime input when prompted. This prompt appears only if DVREALM_USER is provided.
117116

118117
**Backup Utility Sample Inputs**
119118
```
@@ -175,7 +174,6 @@ Leave these a blank unless really needed.
175174
TRANSPORT_TABLES_PROTECTED_BY_OLS_POLICIES=FALSE
176175
TRANSPORT_DB_PROTECTED_BY_DATABASE_VAULT=FALSE
177176
DVREALM_USER=
178-
DVREALM_PASSWORD=
179177
```
180178

181179
Run the TTS Backup Tool from the project directory as below. User will be prompted for database password and optional TDE wallet store password.
@@ -191,6 +189,14 @@ Run the TTS Backup Tool from the project directory as below. User will be prompt
191189

192190
The tool will take backups of the tablespace datafiles and create a metadata bundle. Both backups and the bundle will be uploaded to the provided OCI Object Storage buckets or FSS Mount Targets. Backup Utility will output an URL to OCI Object Storage metadata bundle or FSS Mount Target path for metadata bundle. User should note the given URL/Path as that will be needed as migration input when creating Autonomous AI Database for the migration.
193191

192+
**TTS Backup Utility Version**
193+
194+
To check the version of the TTS Backup Utility being used, run the command below
195+
196+
```
197+
$ python3 tts-backup.py --version
198+
```
199+
194200
### Create Dynamic Group and Policy
195201

196202
Transportable Tablespaces functionality will download metadata from OCI Object Storage metadata bucket using [OCI Resource Principal](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/resource-principal.html). Create Dynamic Group and Policy to allow access to the metadata bucket using the resource principal.
@@ -222,7 +228,7 @@ The operation will first create the database and then trigger migration operatio
222228

223229
### Incremental Migration
224230

225-
If user is performing an incremental migration operation, repeat Backup Tablespaces step at source database for each incremental using the same set of inputs. Backup Utility will output a new OCI Object Storage URL / FSS Mount Target path corresponding to that increment. Use the OCI Object Storage URL to update the Autonomous AI Database created with the first backup above. Set FINAL_BACKUP=TRUE in the input file before performing final backup.
231+
If user is performing an incremental migration operation, repeat Backup Tablespaces step at source database for each incremental using the same set of inputs. Do not alter the tablespace list during incremental backups. Use the Tablespace list provided during first backup. Backup Utility will output a new OCI Object Storage URL / FSS Mount Target path corresponding to that increment. Use the OCI Object Storage URL to update the Autonomous AI Database created with the first backup above. Set FINAL_BACKUP=TRUE in the input file before performing final backup.
226232

227233
### Modify Autonomous AI Database with Migration inputs
228234

@@ -314,7 +320,7 @@ Open tts-backup-env.txt file downloaded to the project directory and provide the
314320

315321
***DVREALM_USER*** - (OPTIONAL INPUT) Required only if Database Vault is enabled and configured in the source database. Specify a Database Vault realm owner or authorized user required to access objects protected by Database Vault during the backup process. If not provided and Database Vault is enabled, backup will fail with an error.
316322

317-
***DVREALM_PASSWORD*** - (OPTIONAL INPUT) Required only if Database Vault is enabled and configured in the source.Password for the specified DVREALM_USER. If not provided and Database Vault is enabled, backup will fail with an error.
323+
***DVREALM_PASSWORD*** - (RUNTIME INPUT) Required only if Database Vault is enabled and configured in the source. Password for the specified DVREALM_USER. If not provided and Database Vault is enabled, backup will fail with an error. Provide as CLI runtime input when prompted. This prompt appears only if DVREALM_USER is provided.
318324

319325
**Backup Utility Sample Inputs**
320326
```
@@ -371,7 +377,6 @@ Open tts-backup-env.txt file downloaded to the project directory and provide the
371377
TRANSPORT_TABLES_PROTECTED_BY_OLS_POLICIES=FALSE
372378
TRANSPORT_DB_PROTECTED_BY_DATABASE_VAULT=FALSE
373379
DVREALM_USER=
374-
DVREALM_PASSWORD=
375380
```
376381

377382
Run the TTS Backup Tool from the project directory as below. User will be prompted for database password and optional TDE wallet store password.
@@ -387,6 +392,14 @@ Run the TTS Backup Tool from the project directory as below. User will be prompt
387392

388393
The tool will take backups of the tablespace datafiles and create a metadata bundle. Both backups and the bundle will be uploaded to backup and metadata directories under the File System - Export path. Backup Utility will output an URL to FSS file path for the metadata bundle. User should note the given FSS file path as that will be needed as migration input when creating Autonomous AI Database for the migration.
389394

395+
**TTS Backup Utility Version**
396+
397+
To check the version of the TTS Backup Utility being used, run the command below
398+
399+
```
400+
$ python3 tts-backup.py --version
401+
```
402+
390403
### Create Autonomous AI Database with Migration inputs
391404

392405
Create an Autonomous AI Database from OCI Console using the steps below.
@@ -405,7 +418,7 @@ The operation will first create the database and then trigger migration operatio
405418

406419
### Incremental Migration
407420

408-
If user is performing an incremental migration operation, repeat Backup Tablespaces step at source database for each incremental using the same set of inputs. Backup Utility will output a new OCI Object Storage URL / FSS Mount Target path corresponding to that increment. Use the FSS file path to update the Autonomous AI Database created with the first backup above. Set FINAL_BACKUP=TRUE in the input file before performing final backup.
421+
If user is performing an incremental migration operation, repeat Backup Tablespaces step at source database for each incremental using the same set of inputs. Do not alter the tablespace list during incremental backups. Use the Tablespace list provided during first backup. Backup Utility will output a new OCI Object Storage URL / FSS Mount Target path corresponding to that increment. Use the FSS file path to update the Autonomous AI Database created with the first backup above. Set FINAL_BACKUP=TRUE in the input file before performing final backup.
409422

410423
### Modify Autonomous AI Database with Migration inputs
411424

migration-tools/tts-backup-python/tts-backup-env-sample.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,4 @@ EXCLUDE_STATISTICS=TRUE/FALSE
4545
TRANSPORT_TABLES_PROTECTED_BY_REDACTION_POLICIES=FALSE
4646
TRANSPORT_TABLES_PROTECTED_BY_OLS_POLICIES=FALSE
4747
TRANSPORT_DB_PROTECTED_BY_DATABASE_VAULT=FALSE
48-
DVREALM_USER=
49-
DVREALM_PASSWORD=
48+
DVREALM_USER=

migration-tools/tts-backup-python/tts-backup-env.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,3 @@ TRANSPORT_TABLES_PROTECTED_BY_REDACTION_POLICIES=
4949
TRANSPORT_TABLES_PROTECTED_BY_OLS_POLICIES=
5050
TRANSPORT_DB_PROTECTED_BY_DATABASE_VAULT=
5151
DVREALM_USER=
52-
DVREALM_PASSWORD=

0 commit comments

Comments
 (0)