AutoUpgrade Utility Configuration Files
AutoUpgrade configuration files contain all the information required to perform Oracle Database upgrades.
AutoUpgrade configuration files contain global and local configuration parameters. Global parameters by default apply to all databases addressed by the configuration file. When specified for a specific database, local configuration parameters override global parameters specified by the configuration file.
- Global Parameters for the AutoUpgrade User Configuration File
To specify a default behavior for a parameter for all Oracle Database upgrades addressed in the configuration file, you can use the optional AutoUpgrade global parameters. - Local Parameters for the AutoUpgrade Configuration File
To configure information for specific Oracle Databases for the AutoUpgrade utility upgrade, you provide information in the AutoUpgrade local parameters. - Locally Modifiable Global Parameters for AutoUpgrade Configuration File
Locally modifiable global parameters are parameters that you set both globally, and as you require, set locally, so that you can better control AutoUpgrade job processing.
Parent topic: Using AutoUpgrade for Oracle Database Upgrades
Global Parameters for the AutoUpgrade User Configuration File
To specify a default behavior for a parameter for all Oracle Database upgrades addressed in the configuration file, you can use the optional AutoUpgrade global parameters.
Usage Notes
All global parameters are optional. All global parameters take the prefix global
.
Table 3-1 Global Configuration Parameters for Oracle Database AutoUpgrade Utility
Parameter | Description |
---|---|
|
Specifies a path and file name of a Example:
|
add_during_upgrade_pfile |
Specifies a path and file name of a
|
|
Specifies a path and a file name for a custom user script that you want to have run after all the upgrade jobs finish successfully. The script that you use must be in the form of
By default, if the script fails, then AutoUpgrade continues to run. Use the Examples: If the script fails, then stop AutoUpgrade:
If the script fails, then continue AutoUpgrade:
|
|
Sets the location of the log files, and temporary files that belong to global modules, which AutoUpgrade uses. If you do not use this parameter to set a path, then the log files are placed in the current location where you run AutoUpgrade. Example:
|
|
Specifies a custom user script that you want to have run for all upgrades before starting the upgrade jobs. The script that you use must be in the form of Permitted extension options:
By default, if the script fails, then AutoUpgrade continues to run. Use the Examples: If the script fails, then stop AutoUpgrade:
If the script fails, then continue AutoUpgrade:
|
del_after_upgrade_pfile |
Specifies a path and file name of a Example:
|
del_during_upgrade_pfile |
Specifies a path and file name of a Example:
|
|
Removes underscore (hidden) parameters from Example:
|
|
(Optional) Generates a Guaranteed Restore Point (GRP) for database restoration. If you select this option, then both database backup and database restoration must be performed manually by the DBA. Options:
The default value is Example:
|
|
Sets a global target home for all of the databases specified in the configuration file. Use this option to avoid specifying the same Example:
|
|
Generates the The Example:
|
Parent topic: AutoUpgrade Utility Configuration Files
Local Parameters for the AutoUpgrade Configuration File
To configure information for specific Oracle Databases for the AutoUpgrade utility upgrade, you provide information in the AutoUpgrade local parameters.
Usage Notes
Local parameters take precedence over any global parameters set in the AutoUpgrade configuration file. Except where indicated with (Optional), all local parameters are required. All local parameters take a prefix (in examples, identified by a value you define to identify a particular database or upgrade. The prefix identifies the specific upgrade job to which the parameter applies in the configuration file.
Example: The set of parameters for the first upgrade in the configuration file uses the prefix sales
, and the set of parameters for the next upgrade in the configuration file uses the prefix employees
:
sales.dbname=hr
sales.source_home=/u01/app/oracle/11.2.0.4/dbhome1
.
.
.
employees.dbname=sales.cdb
employees.source_home-/03/app/oracle/18.0.0.0/dbhome1
Table 3-2 Local Configuration Parameters for Oracle Database AutoUpgrade Utility.
Parameter | Description |
---|---|
|
(Optional) Specifies a path and file name of a Example:
|
|
(Optional) Specifies a path and file name of a Example:
|
|
(Optional) Specifies a custom action that you want to have performed after completing the upgrade job for the database identified by the prefix address. The script that you use must be in the form of
By default, if the script fails, then AutoUpgrade continues to run. Use the In contrast to the global Examples: Run the specified script before AutoUpgrade starts processing, with the
Run the specified script before AutoUpgrade starts processing, with AutoUpgrade set to continue to run if the script fails:
|
|
(Optional) Specifies a custom action that you want to have performed before starting the upgrade job for the specific database job addressed by the prefix. If you want to have a script run before all upgrade jobs, then specify that script by using the local parameter ( The script that you use must be in the form of
By default, if the script fails, then AutoUpgrade continues to run. Use the In contrast to the global Examples: Run the specified script before AutoUpgrade starts processing, with the
Run the specified script before AutoUpgrade starts processing, with AutoUpgrade set to continue to run if the script fails:
|
|
(Optional) Specifies the path to a checklist that you can use to override the default list of fixups that AutoUpgrade performs, such as fixups that you do not want implemented automatically, due to policy or security concerns. To use this parameter during other AutoUpgrade modes, you must run AutoUpgrade in Example:
In the preceding example, |
|
Identifies the name of the database that you want to upgrade. Example:
|
|
(Optional) Specifies a path and file name of a Example:
|
|
(Optional) Specifies a path and file name of a Example:
|
|
Specifies your custom operating system environment variables, excluding ORACLE_SID, ORACLE_HOME, ORACLE_BASE, and TNS_ADMIN. Use Case: Use this parameter to provide environment setting that are indicated in the database Example:
|
|
Sets the location of log files that are generated for database upgrades that are in the set of databases included in the upgrade job identified by the prefix for the parameter. AutoUpgrade creates a hierarchical directory based on that log file path. For example, where the job identifier prefix is
You cannot use wild cards for paths, such as tilde ( Example:
|
|
(Optional) Sets a list of PDBs on which you want the upgrade to run. This parameter only applies to multitenant architecture (CDB) databases. If the database on which you are running AutoUpgrade is an on-premises Oracle Database, then the parameter is ignored. The PDB list is comma-deliminated. The list can contain either PDB names, or a star character ( Example:
|
|
(Optional) Generates a Guaranteed Restore Point (GRP) for database restoration. If you select this option, then both database backup and database restoration must be performed manually by the DBA. Options:
The default value is Example:
|
|
(Optional) Enables or disables running The Example:
|
|
Identifies the Oracle system identifier (SID) of the database that you want to upgrade. Example:
|
|
Current Oracle home (ORACLE_HOME) of the database that you want to upgrade. This parameter is particularly of use for the modes Example:
|
|
(Optional) Specifies the path to the TNS_ADMIN directory in the source database home. Example:
|
|
(Optional) Sets a future start time for the upgrade job to run. Use this parameter to schedule upgrade jobs to balance the load on your serer, and to prevent multiple jobs from starting immediately. Values must either take the form Example:
Permitted values:
If more than one job is started with the Values are invalid that use the wrong deliminator for the date or time element, or use the wrong date or hour format. Example:
|
|
(Optional) Specifies the path to the TNS_ADMIN directory in the target database home. Example:
|
|
(Optional) Enables or disables running the time zone upgrade as part of the AutoUpgrade process. To preserve data integrity, Oracle recommends that you upgrade the time zone settings at the time of your database upgrade. In particular, upgrade the timezone when you have data that depend on the time zone, such as Example:
|
|
Specifies the node on which the current user configuration is valid. The purpose of this parameter is to prevent AutoUpgrade from processing databases that are listed in the configuration file that you use with AutoUpgrade, where the value for the Use case: The configuration file Example:
|
Parent topic: AutoUpgrade Utility Configuration Files
Locally Modifiable Global Parameters for AutoUpgrade Configuration File
Locally modifiable global parameters are parameters that you set both globally, and as you require, set locally, so that you can better control AutoUpgrade job processing.
Usage Notes
Locally modifiable global parameters are required parameters. You must define these parameters in your AutoUpgrade configuration file, either globally, or locally. With locally modifiable global parameters, you can use the prefix global
to set values as global parameters for all jobs in your AutoUpgrade configuration file, but reset the same parameter with a local job prefix for a particular job in the same configuration file. You can also choose to set locally modifiable global parameters only as local parameters for each AutoUpgrade job.
When a locally modifiable global parameter is set both with a global prefix, and with a local job prefix, the locally modified parameter value overrides the global parameter values for the job identified by the prefix that you use with the parameter. The syntax you use is in the form global.target_home=Global target Oracle home, and database.target_home=local target Oracle home.
Example:
In the AutoUpgrade configuration file, the required parameter target_home
is set globally to one Oracle home path. But in the configuration file, the same parameter is set locally to a different Oracle home path. As AutoUpgrade processes the jobs in the configuration file, it uses the locally defined path for target_home
for the job defined by the prefix upgrade3
, overriding the global parameter setting:
global.target_home=/u01/app/oracle/19.0.0.0/dbhome01
upgrade3.target_home=/u03/app/oracle3/12.2.0.1/dbhome3
Table 3-3 Locally Modifiable Global Parameters for AutoUpgrade Configuration Files
Parameter | Description |
---|---|
|
(Optional) Specifies the target release version on which you want AutoUpgrade to perform the upgrade. AutoUpgrade uses the release version information that you provide in this parameter to ensure that the correct checks and fixups are used for the target Oracle Database release to which you are upgrading. The format for this parameter are period-delimited values of valid Oracle versions. Valid values
This option is only required if the target home is not present on the system, or if the target home is a 12.2 release. Otherwise, AutoUpgrade can derive the target release value. Example:
|
target_home |
Specifies the target Oracle home (ORACLE_HOME) path. Example:
|
target_base |
Specifies the target Example:
|
Parent topic: AutoUpgrade Utility Configuration Files