19 DBCA Silent Mode Commands
This section lists all the DBCA silent mode commands along with their syntax and parameter description.
Note:
The parameters within brackets [] are optional in the DBCA command options.- addInstance
TheaddInstance
command adds a database instance to an administrator-managed Oracle RAC database. - configureDatabase
TheconfigureDatabase
command configures a database. - configureDataguard
TheconfigureDataguard
command configure Oracle Data Guard. - configurePluggableDatabase
TheconfigurePluggableDatabase
command configures a pluggable database (PDB). - convertToRAC
TheconvertToRAC
command converts a single-instance database to a one-node Oracle RAC database. - createCloneTemplate
ThecreateCloneTemplate
command creates a clone (seed) database template from an existing database. - createDatabase
ThecreateDatabase
command creates a database. - createDuplicateDB
ThecreateDuplicateDB
command creates a duplicate of an Oracle database. - createPDBSnapshot
ThecreatePDBSnapshot
command creates a snapshot from a PDB. - createPluggableDatabase
ThecreatePluggableDatabase
command creates a pluggable database (PDB) in a multitenant container database (CDB). - createTemplateFromDB
ThecreateTemplateFromDB
command creates a database template from an existing database. - createTemplateFromTemplate
ThecreateTemplateFromTemplate
command creates a database template from an existing database template. - createTrueCache
ThecreateTrueCache
command configures True Cache. Run this command on the True Cache node. - deleteDatabase
ThedeleteDatabase
command deletes a database. - deleteInstance
ThedeleteInstance
command deletes a database instance from an administror-managed Oracle RAC database. - deletePDBSnapshot
ThedeletePDBSnapshot
command deletes a PDB snapshot. - deletePluggableDatabase
ThedeletePluggableDatabase
command deletes a PDB. - deleteTemplate
ThedeleteTemplate
command deletes a database template. - executePrereqs
TheexecutePrereqs
command executes the prerequisites checks and reports the results. This command can be used to check the environment before runningdbca
to create a database. - generateScripts
ThegenerateScripts
command generates scripts, which can be used to create a database. - managePatches
ThemanagePatches
command enables you to simplify patch management for Oracle Database. - moveDatabase
ThemoveDatabase
command moves a database from one source Oracle home to the target Oracle home. - relocatePDB
TherelocatePDB
command relocates a PDB from a remote CDB to a local CDB. - unplugDatabase
TheunplugDatabase
command unplugs a pluggable database (PDB) from a multitenant container database (CDB).
addInstance
The addInstance
command adds a database instance to an administrator-managed Oracle RAC database.
Syntax and Parameters
Use the dbca -addInstance
command with the following syntax:
dbca -addInstance
-gdbName global_database_name
-nodeName database_instance_node_name
[-updateDirService {true | false}
-dirServiceUserName directory_service_user_name
-dirServicePassword directory_service_user_password]
[-instanceName database_instance_name]
[-sysDBAUserName SYSDBA_user_name]
[-sysDBAPassword SYSDBA_user_password]
[-useWalletForDBCredentials {true | false}
-dbCredentialsWalletPassword wallet_account_password
-dbCredentialsWalletLocation wallet_files_directory]
Table 19-1 addInstance Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Global database name in the form database_name.domain_name. |
|
Required |
Node name of the database instance. |
|
Optional |
Database instance name. |
|
Optional |
User name of the database user having the |
|
Optional |
Password of the database user having the |
|
Optional |
Specify When
|
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
Parent topic: DBCA Silent Mode Commands
configureDatabase
The configureDatabase
command configures a database.
Syntax and Parameters
Use the dbca
-configureDatabase
command with the following syntax:
-configureDatabase -sourceDB database_unique_name_for_RAC database_or_SID__for_single_instance_database [-addDBOption Specify any of the following DB Options as a comma-separated list: JSERVER | ORACLE_TEXT | CWMLITE | SPATIAL | OMS | DV] [-configureOML4PY Configure OML4Py in the database] [-enableOml4pyEmbeddedExecution Specify true to enable embedded Python execution] [-oml4pyConfigTablespace Specify the tablespace to be used for OracleOML4Py configuration] [-configureOracleR Configure Oracle R in the database] [-oracleRConfigTablespace Specify the tablespace to be used for Oracle R configuration] [-configureTDE true | false Specify true to configure TDE wallet] [-encryptPDBTablespaces Specify ALL to encrypt all Tablespaces or a comma separated list of name:value pairs with tablespace encryption to true/false] [-encryptTablespaces Specify ALL to encrypt all Tablespaces or A comma separated list of name:value pairs with tablespace encryption to true/false] [-primaryDBTdeWallet Specify the location for TDE wallet of primary database] [-sourceTdeWalletPassword Specify password for source database TDE wallet] [-tdeAlgorithm Specify the TDE Algorithm Type] [-tdeWalletLoginType Specify the TDE Wallet Login Type PASSWORD | AUTO_LOGIN | LOCAL_AUTO_LOGIN. Default is PASSWORD for SI and AUTO_LOGIN is default for RAC] [-tdeWalletPassword Specify password for TDE wallet] [-tdeWalletPathInTarFile value] [-tdeWalletRoot Specify the location for TDE wallet root init parameter] [-dvConfiguration true | false Specify true to configure and enable database vault] -dvUserName Specify database vault owner user name -dvUserPassword Specify database vault owner password [-dvAccountManagerName Specify separate database vault account manager] [-dvAccountManagerPassword Specify database vault account manager password] [-exportTDEKeys Export TDE master encryption keys] [-tdeKeysFilePath Location to export TDE master encryption keys] [-tdeKeysFileSecret Secret to export TDE master encryption keys] [-tdeWalletPassword Specify password for TDE wallet] [-moveDatabaseFiles Move database files from one storage location to other] -datafileDestination Destination directory for all database files -sourceDB Database unique name for RAC database or SID for single instance database [-initParams Comma separated list of name=value pairs] [-initParamsEscapeChar Specify escape character for comma when a specific initParam has multiple values] [-recoveryAreaDestination Destination directory for all recovery files] [-recoveryAreaSize Fast Recovery Area Size in MB] [-recoveryAreaSize Fast Recovery Area Size in MB] [-useOMF true | false Specify true to use Oracle-Managed Files] [-olsConfiguration true | false Specify true to configure and enable Oracle Label Security] [-prepareTrueCacheConfigFile | -configureTrueCacheInstanceService | -cleanupTrueCacheService] [-prepareTrueCacheConfigFile Option to prepare config file for creating true cache] -sourceDB Database unique name for RAC database or SID for single instance database [-tdeWalletPassword Specify password for TDE wallet] [-trueCacheBlobLocation Location to create the config file] [-configureTrueCacheInstanceService Option to configure true cache service and update database service property] -serviceName Database service name to update true cache service property -sourceDB Database unique name for RAC database or SID for single instance database -trueCacheConnectString EZCONNECT string to connect to true cache -trueCacheServiceName True cache service name [-pdbName Pluggable database name] [-cleanupTrueCacheInstanceService Option to cleanup true cache service and update primary database service property] -serviceName Database service name to update true cache service property -sourceDB Database unique name for RAC database or SID for single instance database -trueCacheConnectString EZCONNECT string to connect to true cache service. For example "host:port/servicename" -trueCacheServiceName True cache service name [-pdbName Pluggable database name] [-registerWithDirService | -unregisterWithDirService | -regenerateDBPassword] [-registerWithDirService true | false] -dirServiceUserName User name for directory service [-databaseCN Database common name] [-dirServiceCertificatePath Path to the certificate file to use when configuring SSL between database and directory service] [-dirServicePassword Password for directory service] [-dirServiceUser SamAccountName in case of configuring Oracle Active Directory] [-ldapDirectoryAccessType PASSWORD | SSL] [-useSYSAuthForLDAPAccess true | false] [-walletPassword Password for database wallet] [-unregisterWithDirService true | false] -dirServiceUserName User name for directory service [-dirServicePassword Password for directory service] [-walletPassword password for database wallet] [-regenerateDBPassword true | false] [-runDatapatch database runDatapatch - patches the database] -sourceDB database unique name for RAC database or SID for single instance database [-pdbsToRunDatapatch Option to run datapatch only on given PDBs] [-skipClosedPDBs flag to skip the datapatch on closed PDBs] [-skipPDBs comma-separated list of PDBs to be skipped for current operation] [-sysDBAPassword password for sysDBAUserName user name] [-sysDBAUserName User name with SYSDBA privileges] [-tdeWalletPassword password_for_TDE_wallet] [-useWalletForDBCredentials true | false specify true to load database credentials from wallet] -dbCredentialsWalletLocation path of the directory containing the wallet files [-dbCredentialsWalletPassword password to open wallet with auto login disabled]
Table 19-2 configureDatabase Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
The database system identifier (SID) of the database being configured. |
|
Optional |
Specify one or more of the following Oracle Database options in the form of a comma separated list:
Example:
|
-configureOML4PY |
Optional |
Specify this parameter to configure Oracle Machine Learning for Python in the database. Additionally, you specify the following parameters:
|
|
Optional |
Specify this parameter to configure Oracle R in the database. Additionally, you can specify the
|
|
Optional |
Specify When
|
|
Optional |
Specify When
|
|
Optional |
Specify this parameter to export TDE master encryption keys. Specify the following additional parameters:
|
|
Optional |
Specify this parameter to move database files from one storage location to another storage location. For example, to move database files from ASM to FS, or from FS to ASM. Specify the following additional parameters:
|
|
Optional |
Specify When |
|
Optional |
Specify |
|
Optional |
Specify When
|
|
Optional |
Password of a user having |
|
Optional |
User name of a user having |
|
Optional |
Specify When
|
|
Optional |
Specify password for TDE wallet. |
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
--prepareTrueCacheConfigFile |
Required for True Cache |
Use this option to prepare a configuration BLOB file that contains the primary database's password file or wallet. Enter the following additional parameters for this option:
|
-configureTrueCacheInstanceService |
Required for True Cache |
Use this option to configure the True Cache database application service on the primary database and start the service on True Cache. Enter the following additional parameters for this option:
|
-cleanupTrueCacheInstanceService |
Required for True Cache |
Use this option to remove the True Cache database application services from the primary database configuration if, for example, you delete True Cache. Enter the following additional parameters for this option:
|
|
Optional |
Specify the database on which to apply the data patch. The following additional parameters are required:
|
Parent topic: DBCA Silent Mode Commands
configureDataguard
The configureDataguard
command configure Oracle Data
Guard.
Syntax and Parameters
Use the dbca -configureDataguard
command with the following
syntax:
dbca -configureDataguard
-sourceDB database_unique_name_for_RAC_database_or_SID_for_single_instance_database
[-enableDGDebug option_to_enable_tracing_for dgmgrl_command]
[-switchOver switch_over to_standby_db]
[-targetStandbyDB value]
Table 19-3 configureDataguard Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Specifies the source database name. |
|
Optional |
Option to enable tracing for |
|
Optional |
Specifies the option to switchover to the standby database. |
|
Optional |
Specifies the target standby database. |
Parent topic: DBCA Silent Mode Commands
configurePluggableDatabase
The configurePluggableDatabase
command configures a pluggable database (PDB).
Syntax and Parameters
Use the dbca
-configurePluggableDatabase
command with the following syntax:
dbca -configurePluggableDatabase
-pdbName pdb_name
-sourceDB cdb_sid
[-configureOML4PY
[-oml4pyConfigTablespace tablespace_for_OML4PY_configuration]
[-enableOml4pyEmbeddedExecution {true | false}]]
[-configureOracleR
[-oracleRConfigTablespace tablespace_for_Oracle_R_configuration]]
[-dvConfiguration {true | false}
-dvUserName Database_Vault_owner_name
-dvUserPassword Database_Vault_owner_password
[-dvAccountManagerName Database_Vault_account_manager_name]
[-dvAccountManagerPassword Database_Vault_account_manager_password]]
[-lbacsysPassword LBACSYS_user_password]]
[-olsConfiguration {true | false}
[-configureWithOID configure_with_OID_flag]]
[-pdbTimezone {{+|-}hh:mi|time_zone_region}]
[-registerWithDirService | -unregisterWithDirService | -regenerateDBPassword]
[-registerWithDirService {true | false}
-dirServiceUserName directory_service_user_name
[-dirServicePassword directory_service_user_password]
[-walletPassword wallet_password]
[-databaseCN database_common_name]
[-dirServiceCertificatePath certificate_file_path]
[-dirServiceUser active_directory_account_user_name]]
[-unregisterWithDirService {true | false}
-dirServiceUserName directory_service_user_name
[-dirServicePassword directory_service_user_password]
[-walletPassword wallet_password]]
[-regenerateDBPassword true | false]
[-useWalletForDBCredentials {true | false}
-dbCredentialsWalletPassword wallet_account_password
-dbCredentialsWalletLocation wallet_files_directory]
[-configurePDBSnapshot]
[-snapshotIntervalInMins interval_in_minutes_for_automatic_snapshot_creation]
[-maxPDBSnapshots maximum_number_of_snapshots_to_be_retained_during_automatic_snapshot_creation]
[-configureTDE true | false]
[-encryptPDBTablespaces]
[-encryptTablespaces]
[-primaryDBTdeWallet location_for_TDE_wallet_of_primary_database]
[-sourceTdeWalletPassword password]
[-tdeAlgorithm TDE_algorithm_type]
[-tdeWalletLoginType TDE_wallet_login_type]
[-tdeWalletPassword password]
[-tdeWalletPathInTarFile value]
[-tdeWalletRoot location_for_TDE_wallet_root_init_parameter]
[-exportTDEKeys]
[-tdeKeysFilePath location_to_export_TDE_master_encryption_keys]
[-tdeKeysFileSecret secret_to_export_TDE_master_encryption_keys]
[-tdeWalletPassword password_for_TDE_wallet]
[-pdbInitParams comma_separated_list_of_pdb_specific_init_params]
[-initParamsEscapeChar]
Table 19-4 configurePluggableDatabase Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Name of the PDB. |
|
Required |
The database system identifier (SID) of the CDB. |
-configureOML4PY |
Optional |
Specify this parameter to configure Oracle Machine Learning for Python in the database. Additionally, you specify the following parameters:
|
|
Optional |
Specify this parameter to configure Oracle R for the PDB. Additionally, you can specify the
|
|
Optional |
Specify When
|
|
Optional |
Specify the |
|
Optional |
|
|
Optional |
Specify When |
-pdbTimezone {{+|-}hh:mi|time_zone_region} |
Optional |
Use this parameter to specify the time zone of the PDB. You can specify the time zone in two ways:
|
|
Optional |
Specify When
|
|
Optional |
Specify When
|
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
|
Optional |
Specify When
|
|
Optional |
Specify When
|
Parent topic: DBCA Silent Mode Commands
convertToRAC
The convertToRAC
command converts a single-instance
database to a one-node Oracle RAC database.
Syntax and Parameters
Use the dbca -convertToRAC
command with the following syntax:
dbca -convertToRAC
-sourceDB database_unique_name_for_RAC database_or_SID__for_single_instance_database
[-sysPassword SYS_user_password]
Table 19-5 convertToRAC Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
The database system identifier (SID) of the database being configured. |
|
Optional |
|
Parent topic: DBCA Silent Mode Commands
createCloneTemplate
The createCloneTemplate
command creates a clone (seed) database template from an existing database.
Syntax and Parameters
Use the dbca
-createCloneTemplate
command with the following syntax:
dbca -createCloneTemplate
-sourceSID source_database_sid
-sourceDB source_database_name
-templateName new_database_template_name
[-promptForWalletPassword]
[-backupTDEWalletAsAutoLogin true | false Specify true to backup the tde wallet as AUTO_LOGIN]
[-rmanParallelism parallelism_integer_value]
[-maxBackupSetSizeInMB maximum_backup_set_size_in_MB]
[-dataFileBackup {true | false}]
[-maintainFileLocations true | false]
[-datafileJarLocation data_files_backup_directory]
[-sysDBAUserName SYSDBA_user_name]
[-sysDBAPassword SYSDBA_user_password]
[-tdeWalletPassword password]
[-useWalletForDBCredentials {true | false}
-dbCredentialsWalletPassword wallet_account_password
-dbCredentialsWalletLocation wallet_files_directory]
[-uploadToCloud
-opcLibPath OPC_library_path
-opcConfigFile OPC_configuration_file_name
[-rmanEncryptionPassword rman_encryption_password ]
[-compressBackup { true | false } ]
[-walletPassword database_wallet_password]
Table 19-6 createCloneTemplate Parameters
Parameter | Required/Optional | Description |
---|---|---|
or
|
Required |
Specify either the source database system identifier (SID) or the source database name. |
|
Required |
Name of the new database template. |
|
Optional |
User name of a user having the |
|
Optional |
Password of the user having the |
|
Optional |
Maximum backup set size in megabytes. |
|
Optional |
Parallelism integer value for RMAN operations. |
|
Optional |
Complete directory path to store data files as a backup in a compressed format. |
|
Optional |
Specify |
|
Optional |
Specify |
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
-uploadToCloud |
Optional |
Creates a clone template and uploads it to Oracle Cloud Infrastructure. The structure and data of the database is stored in the template. DBCA can then use this template to create new databases. To create a template to Oracle Cloud Infrastructure, you must subscribe to the Oracle Database Backup Cloud Service and install the Oracle Database Cloud Backup Module for OCI. Recovery Manager (RMAN) creates a backup containing the details of the clone template. The backup must be encrypted, so you must provide the RMAN encryption password to encrypt backups. This option is only supported on Linux.
See Administering Oracle Database Backup Cloud Service for information about installing and configuring the backup module. |
-compressBackup |
Optional |
Compresses the backup containing the clone template files. |
-walletPassword |
Optional |
Password of the TDE wallet that contains the keys used to encrypt backups. Specify this parameter if Transparent Data Encryption (TDE) must be used to encrypt backups. |
-tdeWalletPassword |
Optional |
Password of the TDE wallet. |
-maintainFileLocations |
Optional |
Specify whether you want to maintain file locations. |
Parent topic: DBCA Silent Mode Commands
createDatabase
The createDatabase
command creates a database.
Syntax and Parameters
Use the dbca
-createDatabase
command with the following syntax:
dbca -createDatabase -gdbName global_database_name -responseFile | (-gdbName,-templateName) -responseFile response_file_directory -templateName database_template_name [-adminManaged | -managementPolicy] [-adminManaged admin_managed_database] [-managementPolicy [AUTOMATIC|RANK]] [-characterSet database_character_set] [-configureTDE true | false] [-encryptPDBTablespaces] [-encryptTablespaces] [-primaryDBTdeWallet location_for_TDE_wallet_of_primary_database] [-sourceTdeWalletPassword password] [-tdeAlgorithm TDE_algorithm_type] [-tdeWalletLoginType TDE_wallet_login_type] [-tdeWalletPassword password] [-tdeWalletPathInTarFile value] [-tdeWalletRoot location_for_TDE_wallet_root_init_parameter] [-createAsContainerDatabase {true | false} [-numberOfPDBs number_of_pdbs] [-pdbName pdb_name] [-pdbStorageMAXSizeInMB maximum_storage_size_of_the_pdb] [-pdbStorageMAXTempSizeInMB maximum_temporary_storage_size_of_the_pdb] [-useLocalUndoForPDBs {true | false}] [-pdbAdminPassword pdb_administrator_password] [-pdbOptions pdb_options]] [-skipPdbServiceCreation flag to skip the pluggable database service creation] [-createListener new_database_listener] [-customScripts list_of_custom_sql_scripts] [-databaseConfigType {SINGLE | RAC | RACONENODE} [-RACOneNodeServiceName service_name_for_RAC_One_Node_database]] [-databaseType {MULTIPURPOSE | DATA_WAREHOUSING | OLTP}] [-datafileDestination data_files_directory] [-datafileJarLocation data_files_backup_directory] [-dbOptions database_options] [-dvConfiguration {true | false} -dvUserName Database_Vault_owner_name -dvUserPassword Database_Vault_owner_password [-dvAccountManagerName Database_Vault_account_manager_name -dvAccountManagerPassword Database_Vault_account_manager_password]] [-emConfiguration {CENTRAL | NONE} [-dbsnmpPassword DBSNMP_user_password] [-omsHost Oracle_Management_Server_host_name] [-omsPort Oracle_Management_Server_port_number] [-emUser EM_administrator_user_name] [-emPassword EM_administrator_user_password] [-enableArchive {true | false} [-archiveLogMode {AUTO | MANUAL}] [-archiveLogDest archive_log_files_directory]] [-initParams initialization_parameters_list [-initParamsEscapeChar initialization_parameters_escape_character]] [-listeners listeners_list] [-memoryMgmtType {AUTO | AUTO_SGA | CUSTOM_SGA}] [-memoryPercentage | -totalMemory] [-memoryPercentage percentage_of_total_memory_to_assign_to_oracle_database] [-nationalCharacterSet database_national_character_set] [-nodelist database_nodes_list] [-olsConfiguration {true | false} [-oracleHomeUserName Oracle_Home_user_name] [-oracleHomeUserPassword Oracle_Home_user_password] [-recoveryAreaDestination recovery_files_directory [-recoveryAreaSize fast_recovery_area_size]] [-redoLogFileSize maximum_redo_log_file_size] [-registerWithDirService {true | false} [-dirServiceUserName directory_service_user_name] [-dirServicePassword directory_service_password] [-databaseCN database_common_name] [-dirServiceCertificatePath certificate_file_path] [-dirServiceUser directory_service_user_name] [-ldapDirectoryAccessType ldap_directory_access_type] [-useSYSAuthForLDAPAccess use_sys_user_for_ldap_access_flag] [-walletPassword wallet_password]] [-runCVUChecks {true | false}] [-sid database_system_identifier] [-sysPassword SYS_user_password] [-systemPassword SYSTEM_user_password] [-templateFromCloud -opcLibPath OPC_library_path -opcConfigFile OPC_config_file_name [-rmanDecryptionPassword rman_decryption_password]] [-totalMemory total_memory_to_assign_to_oracle_database_in_MB] [-useOMF {true | false}] [-useWalletForDBCredentials { true | false} -dbCredentialsWalletLocation directory_containing_wallet_files [-dbCredentialsWalletPassword password_to_open_wallet]] [-variables variables_list] [-variablesFile variables_file] [-enableForceLogging {true | false}] [-enableTwoStagePatches specify this flag to enable two stage patches] [-rmanParallelism] [-sehaNodeList node_names_separated_by_comma_for_Standard_Edition_High_Availability_database] [-sehaServiceName value] [-skipDatapatch] [-storageType FS | ASM | EXASCALE | PMEMFS] -datafileDestination | -pmemMountPointPath -datafileDestination destination_directory_for_all_database_files -pmemMountPointPath mounted_PMEM_file_store_mount_location [-pmemFSName PMEM_file_store_name] [-pmemFSSizeDefinition] [-asmsnmpPassword ASMSNMP_password_for_ASM_monitoring] [-useBigFileForTablespace true | false]
Table 19-7 createDatabase Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Global database name in the form database_name.domain_name. |
|
Required |
Absolute directory path of the response file. |
|
Required |
Name of an existing database template in the default location or the complete path to a database template that is not in the default location. |
|
Optional |
Administrator-managed database. |
|
Optional |
Character set of the database. |
|
Optional |
Specify
Note: Isolated PDBs can be deployed in customer-managed databases on customer-managed hardware, including Oracle Exadata environments. |
|
Optional |
Specify this flag to enable two stage patches. |
|
Optional |
Specify |
|
Optional |
Specify When
|
|
Optional |
Database listener to register the database in the form listener_name:port. |
|
Optional |
Specify a comma separated list of SQL scripts that needs to be run after the database creation. The scripts are run in the order they are listed. |
|
Optional |
Specify one of the following database configuration types:
|
|
Optional |
Specify Specify Specify |
|
Optional |
Complete path to the location of the database data files. |
|
Optional |
Absolute directory path of the database backup data files stored in a compressed RMAN backup format (files with .dfb extensions). |
|
Optional |
Specify database options as comma separated list of
Example: |
|
Optional |
Specify When
|
|
Optional |
Enterprise Manager configuration settings. When
|
|
Optional |
Specify When
|
|
Optional |
A comma-separated list of You can additionally provide the
|
|
Optional |
A comma-separated list of listeners for the database. |
-managementPolicy |
Optional |
Use this parameter to set the database management policy. Optionally, specify the management policy type:
The default policy is
|
|
Optional |
Specify one of the following memory management types:
Note: If the total physical
memory of a database instance is greater than 4 GB, then you cannot
specify the Automatic Memory Management option |
or
|
Optional |
Specify either
|
|
Optional |
National character set of the database. |
|
Optional |
List of database nodes separated by comma. |
|
Optional |
Specify |
|
Optional |
Oracle Home user name and password. |
|
Optional |
Destination directory for the Fast Recovery Area, which
is a backup and recovery area. Specify Additionally, you can specify the Fast Recovery Area
size in megabytes using the parameter
|
|
Optional |
Size of each online redo log in megabytes. |
|
Optional |
Specify When
|
|
Optional |
Specify |
|
Optional |
Database system identifier (SID). The SID uniquely identifies the instance that runs the database. If it is not specified, then it defaults to the database name. |
|
Optional |
Specify the storage type of either
The following additional parameters can be provided:
|
|
Optional |
|
|
Optional |
|
|
Optional |
Creates a database using the clone template that is stored in Oracle Cloud Infrastructure. This option is supported only for Linux.
See Administering Oracle Database Backup Cloud Service for information about installing and configuring the backup module. |
|
Optional |
Specify |
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
|
Optional |
A comma-separated list of |
|
Optional |
Name of the variables file with the complete directory path in the database template. |
|
Optional |
Specify |
|
Optional |
Specify the RMAN parallelism. |
|
Optional |
Specify the node names separated by comma for the Standard Edition High Availability database. Specify a value for the service name
|
|
Optional |
Specify the flag to skip data patch. |
|
Optional |
Specify Else, specify |
See Also:
Oracle Database Sample SchemasParent topic: DBCA Silent Mode Commands
createDuplicateDB
The createDuplicateDB
command creates a duplicate of an
Oracle database.
Prerequisites
The following are the prerequisites for using the createDuplicateDB
command:
-
The database to be duplicated is in the archivelog mode.
-
If the database to be duplicated is in a remote server, then there must be connectivity from the system where DBCA is running to the remote server.
Syntax and Parameters
Use the dbca
-createDuplicateDB
command with the following syntax:
dbca -createDuplicateDB -gdbName global_database_name -remoteDBConnString EZCONNECT string to connect to Source database for example "host:port/servicename" -sid database_system_identifier [-initParams initialization_parameters [-initParamsEscapeChar initialization_parameters_escape_character]] [-sysPassword SYS_user_password] [-skipPDBs comma_separated_list_of_PDBs_to_be_skipped_for_current_operation] [-systemPassword SYSTEM_user_password] [-adminManaged admin managed database] [-nodelist database_nodes_list] [-datafileDestination data_files_directory] [-recoveryAreaDestination recovery_files_directory [-recoveryAreaSize fast_recovery_area_size]] [-rmanParallelism parallelism_value] [-rmanSectionSizeInGB value] [-databaseConfigType {SINGLE | RAC | RACONENODE} [-RACOneNodeServiceName service_name_for_RAC_One_Node_database]] [-dgTNSNamesoraFilePath location to create tnsnames.ora for Oracle Data Guard configuration] [-standbyBlobFileLocFromPrimaryDB | -passwordFileFromPrimaryDB] [-standbyBlobFileLocFromPrimaryDB location of primary database blob file] [-passwordFileFromPrimaryDB password file location of primary database] [-primaryDBTdeWallet location for TDE wallet of primary database] [-standbyScanName | -standbyHostName] [-standbyScanName comma-separated list of SCAN names or SCAN IP addresses of standby database for Oracle Data Guard configuration] [-standbyHostName comma-separated list of hostnames or IP addresses of standby database host for Oracle Data Guard configuration for single-instance database] [-standbyScanPort | -standbyListenerPort] [-standbyScanPort SCAN port of standby database for Oracle Data Guard configuration] [-standbyListenerPort listener port of standby database for Oracle Data Guard configuration] [-sysPassword SYS user password] [-systemPassword SYSTEM user password] [-useWalletForDBCredentials true | false specify true to load database credentials from wallet] -dbCredentialsWalletLocation path of the directory containing the wallet files [-dbCredentialsWalletPassword password to open wallet with auto login disabled] [-createAsStandby [-dbUniqueName db_unique_name_for_standby_database]] [-customScripts custom_sql_scripts_to_run_after_database_creation] [-useWalletForDBCredentials {true | false} -dbCredentialsWalletPassword wallet_account_password -dbCredentialsWalletLocation wallet_files_directory] [-configureTDE true | false ] [-primaryDBTdeWallet value] [-encryptPDBTablespaces value] [-encryptTablespaces value] [-sourceTdeWalletPassword value] [-tdeWalletRoot tde_wallet_root_init_parameter] [-tdeWalletPathInTarFile value] [-tdeAlgorithm TDE_algorithm] [-tdeWalletLoginType type_of_wallet_login] [-tdeWalletPassword TDE_wallet_password]
Table 19-8 createDuplicateDB Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Global database name of the duplicate database in the form database_name.domain_name. |
|
Required |
Easy connection string to connect to the database to be duplicated. Easy connection string must be in the following format:
|
|
Required |
Database system identifier (SID) of the duplicate database. The SID uniquely identifies the instance that runs the database. If it is not specified, then it defaults to the database name. |
|
Optional |
A comma-separated list of You can additionally provide the |
|
Optional |
|
|
Optional |
Administrator-managed database. Note: You can specify either policy-managed database or administrator-managed database. |
|
Optional |
For administrator-managed database, specify database nodes separated by comma. |
|
Optional |
Specifies the location to create tnsnames.ora for configuration of Oracle Data Guard. |
|
Optional |
Complete directory path for database data files. |
|
Optional |
Destination directory for the Fast Recovery Area, which is a backup and recovery area. Specify Additionally, you can specify the Fast Recovery Area size in megabytes using the parameter |
|
Optional |
Specify one of the following database configuration types:
|
|
Optional |
Specify the location of primary database blob file. You
must then specify the Specify |
|
Optional |
Specify either of the options. Use the
|
|
Optional |
Specify either of the options. Use the
-standbyScanPort option to specify SCAN port of
standby database for Oracle Data Guard configuration. Use the
-standbyHostName option to specify listener port of
standby database for Oracle Data Guard configuration.
|
|
Optional |
Specifies that the duplicate database is a standby database for the primary database. Optionally, use the |
|
Optional |
A comma separated list of SQL scripts that should be run after the duplicate database is created. The scripts are run in the order listed. |
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
|
Optional |
Specify true to configure TDE during the database creation. Only software wallets are supported. You can create a wallet for the entire CDB or for a PDB.
Note: Isolated wallets are supported only in Oracle Cloud or Exadata environments. |
-tdeWalletPathInTarFile |
Optional | Specify the TDE wallet path in a tar file. |
-rmanParallelism parallelism_value |
Optional | Specify the parallelism value. |
-rmanSectionSizeInGB value |
Optional | Specify the RMAN section size. |
-skipPDBs |
Optional | Specify a comma-separated list of PDBs to be skipped for the current operation. |
-systemPassword |
Optional | Specify the SYSTEM user password. |
Related Topics
Parent topic: DBCA Silent Mode Commands
createPDBSnapshot
The createPDBSnapshot
command creates a snapshot from a
PDB.
Syntax and Parameters
Use the dbca
-createPDBSnapshot
command with the following syntax:
dbca -createPDBSnapshot
-pdbName pdb_database_name
-pdbSnapshotName pdb_snapshot_name
-sourceDB database_unique_name_for_RAC_database_or_SID_for_single_instance_database
Table 19-9 createPDBSnapshot Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Specifies the PDB database name. |
|
Required |
Specifies the PDB snapshot name. |
|
Required |
Specifies the name of the source database. |
Parent topic: DBCA Silent Mode Commands
createPluggableDatabase
The createPluggableDatabase
command creates a pluggable
database (PDB) in a multitenant container database (CDB).
Syntax and Parameters
Use the dbca
-createPluggableDatabase
command with the following syntax:
dbca -createPluggableDatabase
-pdbName name_of_the_pdb_to_create
-sourceDB cdb_sid
[-configureTDE {true | false}
[-primaryDBTdeWallet value]
[-sourceTdeWalletPassword value]
[-tdeWalletRoot tde_wallet_root_init_parameter]
[-tdeAlgorithm TDE_algorithm]
[-tdeWalletLoginType type_of_wallet_login]
[-tdeWalletPassword TDE_wallet_password]]
[-tdeWalletPathInTarFile value]
[-encryptPDBTablespaces ALL|tablespace_name:{true | false}]
[-encryptTablespaces ALL|tablespace_name:{true | false}]
[-createAsClone true | false Create PDB as clone]
[-createFromRemotePDB Create a pluggable database from Remote PDB clone operation]
-remoteDBConnString EZCONNECT string to connect to Source database for example "host:port/servicename"
-remotePDBName Name of the pluggable database to clone/relocate
[-createAsRefreshablePDB true|false]
[-refreshInterval time interval in minutes to perform automatic refresh of the PDB]
[-refreshMode AUTO|MANUAL refresh mode of the pluggable database]
[-createNewPDBAdminUser to create a new PDB Administrator user]
[-dbLinkName Name of the database link that connects to the remote CDB]
[-dbLinkUserPassword Common user password of a remote CDB, used by database link to connect to remote CDB]
[-dbLinkUsername Common user of a remote CDB, used by database link to connect to remote CDB]
[-excludePDBData value]
[-excludePDBTablespaces value]
[-pdbAdminPassword PDB Administrator user password, required only while creating new PDB]
[-pdbAdminUserName PDB Administrator user name, required only while creating new PDB]
[-pdbStorageMAXSizeInMB value]
[-pdbStorageMAXTempSizeInMB value]
[-remoteDBSYSDBAUserName User name with SYSDBA privileges of remote database]
[-remoteDBSYSDBAUserPassword Password for remoteDBSYSDBAUserName user of remote database]
[-remotePDBExportedTDEKeyFile value]
[-remotePDBExportedTDEKeyPassword value]
[-skipDatapatch Flag to skip the datapatch run]
[-sysDBAPassword Password for sysDBAUserName user name]
[-sysDBAUserName User name with SYSDBA privileges]
[-updateDBBlockCacheSize option to enable application to set db block cache size initialization parameters in order to support data copy with different block size]
[-createFromSnapshot | -snapshot]
[-createFromSnapshot Specify this property to clone pdb from a pdb snapshot]
-pdbSnapshotName Specify pdb snapshot name
[-copyDataFiles true|false]
[-snapshot Specify this property to clone pdb by thin clone]
[-createPDBFrom {DEFAULT | FILEARCHIVE | RMANBACKUP | USINGXML | PDB}
[-pdbArchiveFile pdb_archive_file_name_with_directory_path]
[-PDBBackUpfile pdb_backup_file_name_with_directory_path]
[-PDBMetadataFile pdb_metadata_file_name_with_directory_path]
[-pdbAdminUserName pdb_administrator_name]
[-pdbAdminPassword pdb_administrator_password]
[-createNewPDBAdminUser {true | false}]
[-sourceFileNameConvert method_to_locate_pdb_files]
[-fileNameConvert names_of_pdb_files]
[-pdbStorageMAXSizeInMB maximum_storage_size_for_the_pdb_in_MB]
[-sourcePDBServiceConvertList comma_separated list of source pdb services with new service name]
[-pdbStorageMAXTempSizeInMB maximum_temporary_storage_size_for_the_pdb_in_MB]
[-workArea directory_to_unzip_PDB_archive_files_for_FILEARCHIVE_option]
[-copyPDBFiles {true | false}]
[-sourcePDB name_of_the_pdb_to_clone]
[-createPDBInStandby true|false]
[-useBigFileForTablespace true | false]
[-createUserTableSpace {true | false)]
[-customScripts custom_sql_scripts_to_run_after_PDB_creation]
[-dvConfiguration {true | false}
-dvUserName Database_Vault_owner_name
-dvUserPassword Database_Vault_owner_password
[-dvAccountManagerName Database_Vault_account_manager_name]
[-dvAccountManagerPassword Database_Vault_account_manager_password]]
[-enableAutomaticSnapshot option to enable automatic backup in a pdb]
-snapshotIntervalInMins interval in minutes for automatic snapshot creation
[-maxPDBSnapshots maximum number of snapshots to be retained during automatic snapshot creation]
[-lbacsysPassword LBACSYS_user_password]
[-pdbInitParams Specify pdb specific init params.Comma separated list of name=value pairs]
[-initParamsEscapeChar Specify escape character for comma when a specific initParam has multiple values]
[-pdbNodelist value]
[-pdbReadOnlyServiceName name of the PDB read-only service to be created on Oracle Data Guard configuration]
[-pdbServiceName name of the PDB service to be created]
[-pdbDatafileDestination pdb_data_files_directory]
[-pdbStorageMAXSizeInMB maximum_storage_size_for_the_pdb_in_MB]
[-pdbStorageMAXTempSizeInMB maximum_temporary_storage_size_for_the_pdb_in_MB]
[-pdbTimezone {{+|-}hh:mi|time_zone_region}]
[-pdbUseMultipleBackup number_of_pdb_backups_to_create]
[-registerWithDirService {true | false}
-dirServiceUserName directory_service_user_name
[-dirServicePassword directory_service_user_password]
[-databaseCN directory_service_database_common_name]
[-dirServiceCertificatePath certificate_file_directory_path]
[-dirServiceUser active_directory_account_user_name]
[-walletPassword wallet_password]]
[-skipPdbServiceCreation Flag to skip the Pluggable Database service creation]
[-useMetaDataFileLocation {true | false}]
[-pdbTDEKeyTransportSecret value]
[-useWalletForDBCredentials {true | false}
-dbCredentialsWalletPassword wallet_account_password
-dbCredentialsWalletLocation wallet_files_directory]
Table 19-10 createPluggableDatabase Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Name of the new PDB to create. Note: For Oracle RAC databases, the PDB name must be unique in the cluster. |
|
Required |
The database system identifier (SID) of the CDB. |
|
Optional |
Specify
Note: Isolated wallets are supported only in Oracle Cloud or Exadata environments. |
|
Optional |
Specify Specify |
|
Optional |
Create a PDB by cloning a remote PDB. Specify the following parameters:
Note:
|
|
Optional |
Create a PDB from a snapshot. Specify the following parameters:
Specify - |
|
Optional |
Specify
Specify
Specify
Specify
Specify
Specify the following optional parameters, if required:
|
|
Optional |
Specify |
|
Optional |
Specify a list of custom SQL scripts to run after the PDB creation. |
|
Optional |
Specify When
|
|
Optional |
Specify the |
|
Optional |
Compete directory path to the new PDB data files. When this parameter is not specified, either Oracle Managed Files or the When this parameter is not specified, Oracle Managed Files is not enabled, and the |
|
Optional |
Specify the maximum storage size for the PDB in megabytes. |
|
Optional |
Specify the maximum temporary storage size for the PDB in megabytes. |
-pdbTimezone {{+|-}hh:mi|time_zone_region} |
Optional |
Use this parameter to specify the time zone of the PDB. You can specify the time zone in two ways:
|
|
Optional |
Specify the number of PDB backups to create. |
|
Optional |
Specify When
|
|
Optional |
Specify Specify |
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
|
Required |
Name of the PDB TDE key transport secret. |
Parent topic: DBCA Silent Mode Commands
createTemplateFromDB
The createTemplateFromDB
command creates a database template from an existing database.
Syntax and Parameters
Use the dbca -createTemplateFromDB
command with the following syntax:
dbca -createTemplateFromDB
-sourceDB source_database_sid
-templateName new_database_template_name
-sysDBAUserName SYSDBA_user_name
-sysDBAPassword SYSDBA_user_password
[-maintainFileLocations {true | false}]
[-connectionString easy_connect_string]
[-useWalletForDBCredentials {true | false}
-dbCredentialsWalletPassword wallet_account_password
-dbCredentialsWalletLocation wallet_files_directory]
Table 19-11 createTemplateFromDB Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
The source database system identifier (SID). |
|
Required |
Name of the new database template. |
|
Optional |
User name of a user that has |
|
Optional |
Password of the user that has |
|
Optional |
Specify Specify |
|
Optional |
Easy connect string for connecting to a remote database in the following format:
|
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
Parent topic: DBCA Silent Mode Commands
createTemplateFromTemplate
The createTemplateFromTemplate
command creates a database template from an existing database template.
Syntax and Parameters
Use the dbca -createTemplateFromTemplate
command with the following syntax:
dbca -createTemplateFromTemplate
-sourcetemplateName existing_template_name
-templateName new_template_name
[-variables variables_list]
[-characterSet database_character_set]
[-nationalCharacterSet database_national_character_set]
[-recoveryAreaDestination fast_recovery_area_directory]
-recoveryAreaSize fast_recovery_area_size]
[-datafileDestination data_files_directory]
[-useOMF {true | false}]
[-datafileJarLocation database_backup_files_directory]
[-memoryPercentage percentage_of_total_memory_to_assign_to_oracle_database]
[-totalMemory total_memory_to_assign_to_oracle_database]
[-dbOptions database_options]
[-variablesFile variables_file]
[-redoLogFileSize redo_log_file_size]
[-initParams initialization_parameters_list]
[-initParamsEscapeChar escape_character_for_initialization_parameters]
[-storageType {FS | ASM | EXASCALE | PMEMFS}
[-asmsnmpPassword ASMSNMP_password]
-datafileDestination | -pmemMountPointPath
-datafileDestination data_files_directory
-pmemMountPointPath mounted PMEM File Store mount location
[-pmemFSName PMEM File Store Name]
[-pmemFSSizeDefinition PMEM File Store Size Definition]
[-useBigFileForTablespace true | false]
[-enableArchive {true | false}
-archiveLogMode {AUTO | MANUAL}
-archiveLogDest archive_logs_directory
[-memoryMgmtType {AUTO | AUTO_SGA | CUSTOM_SGA}]
[-useWalletForDBCredentials {true | false}
-dbCredentialsWalletPassword wallet_account_password
-dbCredentialsWalletLocation wallet_files_directory]
Table 19-12 createTemplateFromTemplate Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Name of an existing database template in the default location or the complete path to a database template that is not in the default location. |
|
Required |
Name for a new database template. |
|
Optional |
A comma-separated list of |
|
Optional |
Character set of the database. |
|
Optional |
National character set of the database. |
|
Optional |
Directory path for the Fast Recovery Area, which is a backup and recovery area. |
|
Optional |
Directory path for the data files. |
|
Optional |
Specify |
|
Optional |
Location of the database offline backup (for clone database creation only). The data files for the seed database are stored in compressed RMAN backup format in a file with a .dfb extension. |
or
|
Optional |
Specify either
|
|
Optional |
Specify database options as comma separated list of Example: |
|
Optional |
File name with complete directory path to the file that contains the variables and their values in the database template. |
|
Optional |
Size of each online redo log file in megabytes. |
|
Optional |
A comma-separated list of |
|
Optional |
Specify When When
The following additional parameters can be provided:
|
|
Optional |
Specify Else, specify |
|
Optional |
Specify When
|
|
Optional |
Specify one of the following memory management types:
Note: If the total physical memory of a database instance is greater than 4 GB, then you cannot specify the Automatic Memory Management option |
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
Parent topic: DBCA Silent Mode Commands
createTrueCache
The createTrueCache
command configures True Cache. Run this
command on the True Cache node.
Syntax and Parameters
Use the dbca
-createTrueCache
command with the following syntax:
dbca -createTrueCache
-dbUniqueName true_cache_unique_name | -gdbName true_cache_global_name
-sourceDBConnectionString primary_db_easy_connect_string
-trueCacheBlobFromSourceDB true_cache_config_blob_path | -passwordFileFromSourceDB password_file_path
[-tdeWalletFromSourceDB tde_wallet_path]
[-createListener new_database_listener]
[-datafileDestination true_cache_control_file_path
[-initParams initialization_parameters_list
[-initParamsEscapeChar initialization_parameters_escape_character]]
[-listeners listener_list]
[-pgaAggregateTargetInMB pga_memory_size]
[-sgaTargetInMB sga_memory_size]
[-sid true_cache_sid]
[-sourceTdeWalletPassword primary_db_wallet_password]
[-tdeWalletLoginType {PASSWORD | AUTO_LOGIN | LOCAL_AUTO_LOGIN}]
[-tdeWalletRoot tde_wallet_root_init_parameter]
[-useWalletForDBCredentials {true | false}
-dbCredentialsWalletLocation wallet_files_directory
[-dbCredentialsWalletPassword wallet_account_password]]
Table 19-13 createTrueCache Parameters
Parameter | Required/Optional | Description |
---|---|---|
or
|
Required | Enter either the unique name for this True Cache or the global database name. |
|
Required |
Enter the Easy Connect (EZConnect) string to connect to the primary database. Example: Note:
For Oracle RAC primary databases,
set the |
or
|
Required |
Enter one of the following:
If you use
|
|
Optional | Enter a new database listener to be created and to register the database in the form LISTENER_NAME:PORT. |
|
Optional |
Enter the location where the True Cache control file, standby redo log groups, and temporary data files are to be stored. If Oracle Automatic Storage Management (ASM) storage is used for True
Cache, enter the disk group name for
|
|
Optional |
Enter a comma-separated list of You can also provide the |
|
Optional | If one or more listeners already exist, enter a comma-separated list of existing listeners that the database can be configured with. If you don't specify the existing listeners, DBCA creates a new listener. |
|
Optional | Enter a value in MB for the target aggregate Program Global Area (PGA) memory to make available to all server processes that are attached to this True Cache. |
|
Optional | Enter a value in MB for the System Global Area (SGA) memory size for this True Cache. |
|
Optional | Enter the system identifier (SID) for this True Cache. |
|
Optional | If the primary database uses a TDE wallet, enter the password for the wallet. |
|
Optional |
Oracle recommends the To learn more about wallet types, see About Oracle Database Wallets |
|
Optional | Enter the location for the True Cache TDE wallet root initialization parameter, which specifies where to place the wallet for True Cache. |
|
Optional |
If the primary database uses Oracle Wallet for database credentials,
enter If you enter
|
Parent topic: DBCA Silent Mode Commands
deleteDatabase
The deleteDatabase
command deletes a database.
Syntax and Parameters
Use the dbca
-deleteDatabase
command with the following syntax:
dbca -deleteDatabase
-sourceDB database_name_or_sid
[-sysDBAUserName SYSDBA_user_name]
[-sysDBAPassword SYSDBA_user_password]
[-forceArchiveLogDeletion]
[-deRegisterEMCloudControl
[-omsHost Oracle_Management_Server_host_name
-omsPort Oracle_Management_Server_port_number
-emUser EM_administrator_user_name
-emPassword EM_administrator_password]]
[-unregisterWithDirService {true | false}
-dirServiceUserName directory_service_user_name
[-dirServicePassword directory_service_user_password
[-walletPassword wallet_password]]
[-sid database_system_identifier]
[-tdeWalletPassword password_for_TDE_wallet]
[-useWalletForDBCredentials {true | false}
-dbCredentialsWalletPassword wallet_account_password
-dbCredentialsWalletLocation wallet_files_directory]
Table 19-14 deleteDatabase Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Database unique name for an Oracle RAC database or database system identifier (SID) for a single instance database. |
|
Optional |
User name of the user having the |
|
Optional |
Password of the user having the |
|
Optional |
Specify password for TDE wallet. |
|
Optional |
Specify this parameter to delete the database archive logs. |
|
Optional |
Specify this parameter along with the following parameters to unregister the database with Enterprise Manager Cloud Control:
|
|
Optional |
Specify this parameter along with the following parameters to unregister the database with the directory service:
|
|
Optional |
Database system identifier (SID). |
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
Parent topic: DBCA Silent Mode Commands
deleteInstance
The deleteInstance
command deletes a database instance from an administror-managed Oracle RAC database.
Syntax and Parameters
Use the dbca
-deleteInstance
command with the following syntax:
dbca -deleteInstance
-gdbName global_database_name
-instanceName database_instance_name
[-nodeName database_instance_node_name]
[-updateDirService {true | false}
-dirServiceUserName directory_service_user_name
-dirServicePassword directory_service_user_password]
[-sysDBAUserName SYSDBA_user_name]
[-sysDBAPassword SYSDBA_user_password]
[-useWalletForDBCredentials {true | false}
-dbCredentialsWalletPassword wallet_account_password
-dbCredentialsWalletLocation wallet_files_directory]
Table 19-15 deleteInstance Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Global database name in the form database_name.domain_name. |
|
Required |
Database instance name. |
|
Optional |
Node name of the database instance. |
|
Optional |
User name of the database user having the |
|
Optional |
Password of the database user having the |
|
Optional |
Specify When
|
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
Parent topic: DBCA Silent Mode Commands
deletePDBSnapshot
The deletePDBSnapshot
command deletes a PDB
snapshot.
Syntax and Parameters
Use the dbca
-deletePDBSnapshot
command with the following syntax:
dbca -deletePDBSnapshot
-pdbName pdb_database_name
-pdbSnapshotName pdb_snapshot_name
-sourceDB database_unique_name_for_RAC_database_or_SID_for_single_instance_database
Table 19-16 deletePDBSnapshot Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Specifies the PDB database name. |
|
Required |
Specifies the PDB snapshot name. |
|
Required |
Specifies the name of the source database. |
Parent topic: DBCA Silent Mode Commands
deletePluggableDatabase
The deletePluggableDatabase
command deletes a PDB.
Syntax and Parameters
Use the dbca -deletePluggableDatabase
command with the following syntax:
dbca -deletePluggableDatabase
-sourceDB database_unique_name_for_RAC_database_or_SID_for_single_instance_database
-pdbName pdb_name
[-sysDBAUserName SYSDBA_user_name]
[-sysDBAPassword SYSDBA_user_password]
[-tdeWalletPassword password_for_TDE_wallet]
[-unregisterWithDirService {true | false} ]
-dirServiceUserName directory_service_user_name
[-dirServicePassword directory_service_user_password ]
[-walletPassword wallet_password]
[-useWalletForDBCredentials {true | false} ]
-dbCredentialsWalletPassword wallet_account_password
[-dbCredentialsWalletLocation wallet_files_directory]
Table 19-17 deletePluggableDatabase Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
The database system identifier (SID) of the CDB. |
|
Required |
Name of the PDB to delete. |
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
|
Optional |
Specify password for TDE wallet. |
|
Optional |
Specify this parameter along with the following parameters to unregister the database with the directory service:
|
Parent topic: DBCA Silent Mode Commands
deleteTemplate
The deleteTemplate
command deletes a database template.
Syntax and Parameters
Use the dbca -deleteTemplate
command with the following syntax:
dbca -deleteTemplate
-templateName name_of_an_existing_database_template
[-templateFromCloud
-opcLibPath OPC_library_path
-opcConfigFile OPC_config_file_name
[-rmanDecryptionPassword rman_decryption_password]]
Table 19-18 deleteTemplate Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Name of an existing database template to delete. Specify an existing template in default location or the complete template path for database creation or provide a new template name for template creation. |
|
Optional |
Indicates that the template is a Cloud template.
|
Parent topic: DBCA Silent Mode Commands
executePrereqs
The executePrereqs
command executes the prerequisites checks and reports the results. This command can be used to check the environment before running dbca
to create a database.
Syntax and Parameters
Use the dbca -executePrereqs
command with the following syntax:
dbca -executePrereqs
-databaseConfigType {SINGLE | RAC | RACONENODE}
[-RACOneNodeServiceName RAC_node_service_name]
[-nodelist database_nodes_list]
Table 19-19 executePrereqs Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Specify one of the following database configuration types:
|
|
Optional |
List of database nodes separated by comma. |
Parent topic: DBCA Silent Mode Commands
generateScripts
The generateScripts
command generates scripts, which can be used to create a database.
Syntax and Parameters
Use the dbca
-generateScripts
command with the following syntax:
dbca -generateScripts
-templateName database_template_name
-gdbName global_database_name
[-sid database_system_identifier]
[-scriptDest sql_scripts_directory]
[-createAsContainerDatabase {true | false}
[-numberOfPDBs number_of_pdbs_to_create]
[-pdbName pdb_name]
[-pdbStorageMAXSizeInMB maximum_storage_size_of_the_pdb]
[-pdbStorageMAXTempSizeInMB maximum_temporary_storage_size_of_the_pdb]
[-useLocalUndoForPDBs {true | false}]
[-pdbAdminPassword pdb_administrator_password]
[-pdbOptions pdb_options]
[-sysPassword SYS_user_password]
[-systemPassword SYSTEM_user_password]
[-sehaNodeList node_names_separated_by_comma_for_Standard_Edition_High_Availability_database]
[-emConfiguration {CENTRAL | NONE}
[-dbsnmpPassword DBSNMP_user_password]
[-omsHost EM_Management_Server_host_name]
[-omsPort EM_Management_Server_port_number]
[-emUser EM_administrator_name]
[-emPassword EM_administrator_password]
[-dvConfiguration {true | false}
-dvUserName Database_Vault_owner_user_name
-dvUserPassword Database_Vault_owner_user_password
[-dvAccountManagerName Database_Vault_account_manager_name
-dvAccountManagerPassword Database_Vault_account_manager_password]]
[-olsConfiguration {true | false}
[-configureWithOID configure_with_OID_flag]]
[-datafileDestination data_files_directory]
[-redoLogFileSize maximum_redo_log_file_size_in_MB]
[-recoveryAreaDestination fast_recovery_area_directory
[-recoveryAreaSize fast_recovery_area_size]]
[-datafileJarLocation data_files_backup_directory]
[-responseFile response_file_directory]
[-storageType {FS | ASM}
[-asmsnmpPassword ASMSNMP_password]
-datafileDestination data_files_directory]
[-runCVUChecks {true | false}]
[-nodelist database_nodes_list]
[-enableArchive {true | false}
[-archiveLogMode {AUTO | MANUAL}]
[-archiveLogDest archive_log_files_directory]]
[-memoryMgmtType {AUTO | AUTO_SGA | CUSTOM_SGA}]
[-createListener new_database_listener_to_register_the_database_with]
[-useOMF {true | false}]
[-dbOptions database_options]
[-customScripts custom_sql_scripts_to_run_after_database_creation]
[-adminManaged]
[-databaseConfigType {SINGLE | RAC | RACONENODE}
[-RACOneNodeServiceName service_name_for_RAC_one_node_database]]
[-characterSet database_character_set]
[-nationalCharacterSet database_national_character_set]
[-registerWithDirService {true | false}
[-dirServiceUserName directory_service_user_name]
[-dirServicePassword directory_service_user_password]
[-databaseCN database_common_name]
[-dirServiceCertificatePath certificate_file_path]
[-dirServiceUser directory_service_user_name]
[-ldapDirectoryAccessType ldap_directory_access_type]
[-useSYSAuthForLDAPAccess use_sys_user_for_ldap_access_flag]
[-walletPassword wallet_password]]
[-listeners list_of_listeners_to_register_the_database_with]
[-variablesFile variables_file]
[-variables variables_list]
[-initParams initialization_parameters_list
[-initParamsEscapeChar initialization_parameters_escape_character]]
[-sampleSchema {true | false}]
[-memoryPercentage percentage_of_total_memory_to_assign_to_the_database]
[-totalMemory total_memory_to_assign_to_the_database_in_MB]
[-databaseType {MULTIPURPOSE | DATA_WAREHOUSING | OLTP}]
[-useWalletForDBCredentials {true | false}
-dbCredentialsWalletPassword wallet_account_password
-dbCredentialsWalletLocation wallet_files_directory]
[-storageType FS | ASM | EXASCALE | PMEMFS]
-datafileDestination | -pmemMountPointPath
-datafileDestination destination_directory_for_all_database_files
-pmemMountPointPath mounted_PMEM_file_store_mount_location
[-pmemFSName PMEM_file_store_name]
[-pmemFSSizeDefinition]
[-asmsnmpPassword ASMSNMP_password_for_ASM_monitoring]
[-configureTDE <true | false> ]
[-encryptPDBTablespaces Specify ALL to encrypt all Tablespaces or a comma separated list of name:value pairs with tablespace encryption to true/false]
[-encryptTablespaces Specify ALL to encrypt all Tablespaces or A comma separated list of name:value pairs with tablespace encryption to true/false]
[-primaryDBTdeWallet value]
[-sourceTdeWalletPassword value]
[-tdeWalletRoot tde_wallet_root_init_parameter]
[-tdeAlgorithm TDE_algorithm]
[-tdeWalletLoginType type_of_wallet_login]
[-tdeWalletPassword TDE_wallet_password]
[-tdeWalletPathInTarFile value]
Table 19-20 generateScripts Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Name of an existing database template in the default location or the complete path of a template that is not in the default location. |
|
Required |
Global database name in the form database_name.domain_name. |
|
Optional |
Database system identifier (SID). The SID uniquely identifies the instance that runs the database. If it is not specified, then it defaults to the database name. |
|
Optional |
Complete directory path to store the scripts. |
|
Optional |
Specify When
|
|
Optional |
|
|
Optional |
|
|
Optional |
Enterprise Manager configuration settings. When
|
|
Optional |
Specify When
|
|
Optional |
Specify When |
|
Optional |
Complete path to the location of the database's data files. |
|
Optional |
Size of each online redo log file in megabytes. |
|
Optional |
Directory for the Fast Recovery Area, which is a backup and recovery area. Specify Additionally, you can specify the Fast Recovery Area size in megabytes using the parameter |
|
Optional |
Directory of the database backup data files in a compressed RMAN backup format (files with .dfb extensions). |
|
Optional |
Directory path of the response file. |
|
Optional |
Specify the storage type of either
|
|
Optional |
Specify |
|
Optional |
List of database nodes separated by comma. |
|
Optional |
Specify When
|
|
Optional |
Specify one of the following memory management types:
Note: If the total physical memory of a database instance is greater than 4 GB, then you cannot specify the Automatic Memory Management option |
|
Optional |
Database listener to register the database with in the form listener_name:port. |
|
Optional |
Specify |
|
Optional |
Specify database options as a comma separated list of Example: |
|
Optional |
Specify a comma separated list of SQL scripts that need to be run after the database creation. The scripts are run in the order they are listed. |
|
Optional |
Administrator-managed database. |
|
Optional |
Specify one of the following database configuration types:
|
|
Optional |
Character set of the database. |
|
Optional |
National character set of the database. |
|
Optional |
Specify When
|
|
Optional |
A comma-separated list of listeners for the database. |
|
Optional |
Directory path to the file that contains the variables and their values for the database template. |
|
Optional |
A comma-separated list of |
|
Optional |
A comma-separated list of You can additionally provide the |
|
Optional |
Specify Oracle guides and educational materials contain examples based on the sample schemas. Oracle strongly recommends that you do not install the sample schemas in a production database. |
|
Optional |
The percentage of physical memory that can be used by the database. |
|
Optional |
Total amount of physical memory, in megabytes, that can be used by the database. |
|
Optional |
Specify Specify Specify |
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
|
Optional |
Specify true to configure TDE during the database creation. Only software wallets are supported. You can create a wallet for the entire CDB or for a PDB.
Note: Isolated wallets are supported only in Oracle Cloud or Exadata environments. |
|
Optional |
Specify the node names separated by comma for the Standard Edition High Availability database. Specify a value for the service name
|
|
Optional |
Specify the storage type of either
The following additional parameters can be provided:
|
Parent topic: DBCA Silent Mode Commands
managePatches
The managePatches
command enables you to simplify patch
management for Oracle Database.
Syntax and Parameters
Use the dbca -managePatches
command with the following syntax:
dbca -managePatches - Option to manage patches in the Oracle Home.
-registerUser | -unRegisterUser | -checkPatchStatus | -generateGoldImage | -downloadGoldImage
You can specify the following optional parameters with -registerUser |
-unRegisterUser | -checkPatchStatus | -generateGoldImage | -downloadGoldImage
options:
dbca -managePatches
-registerUser - Option to register SSO user in Patch Planner service.
-csiNumber value
-ssoUserName value
[-proxyServer - Proxy server IP address or name]
-proxyPort - Proxy server port number
[-proxyUserName - Proxy server user name]
[-resume Resume the previous operation]
[-sessionID Session ID of the DBCA session that you intended to revert or resume or load details]
-unRegisterUser - Option to unregister SSO user from Patch Planner service
[-proxyServer - Proxy server IP address or name]
-proxyPort - Proxy server port number
[-proxyUserName - Proxy server user name]
[-resume Resume the previous operation]
[-sessionID Session ID of the DBCA session that you intended to revert or resume or load details]
-checkPatchStatus - Option to check the health of the Oracle home
[-proxyServer - Proxy server IP address or name]
-proxyPort - Proxy server port number
[-proxyUserName - Proxy server user name]
[-requestID | -sessionID]
[-requestID - Patch Planner async request ID]
[-sessionID Session ID of the DBCA session that you intended to revert or resume or load details]
[-resume Resume the previous operation]
[-sessionID Session ID of the DBCA session that you intended to revert or resume or load details]
[-updateLag - Option to specify patch release update lag. Supported values: LATEST|LATEST-1|LATEST-2]
-generateGoldImage - Option to generate Gold Image with the required Release Update (RU).
[-proxyServer - Proxy server IP address or name]
-proxyPort - Proxy server port number
[-proxyUserName - Proxy server user name]
[-resume Resume the previous operation]
[-sessionID Session ID of the DBCA session that you intended to revert or resume or load details]
[-updateLag - Option to specify patch release update lag. Supported values: LATEST|LATEST-1|LATEST-2]
-downloadGoldImage - Option to download the newly built Gold Image to specified location
-goldImageDownloadLocation - Location to download the Gold Image on local file system
[-proxyServer - Proxy server IP address or name]
-proxyPort - Proxy server port number
[-proxyUserName - Proxy server user name]
[-requestID | -sessionID]
[-requestID - Patch Planner Async request ID]
[-sessionID Session ID of the DBCA session that you intended to revert or resume or load details]
[-resume Resume the previous operation]
[-sessionID Session ID of the DBCA session that you intended to revert or resume or load details]
Table 19-21 managePatches Parameters
Parameter | Description |
---|---|
|
Option to register SSO user in Patch Planner service. You can specify the following options with this parameter:
|
|
Option to deregister SSO user from Patch Planner service. You can specify the following options with this parameter:
|
|
Option to check the health of the Oracle home. You can specify the following options with this parameter:
|
|
Option to generate gold image with the required Release Update (RU). You can specify the following options with this parameter:
|
|
Option to download the newly-built gold image to specified location. You can specify the following options with this parameter:
|
Parent topic: DBCA Silent Mode Commands
moveDatabase
The moveDatabase
command moves a database from one source
Oracle home to the target Oracle home.
Syntax and Parameters
Use the dbca
-moveDatabase
command with the following syntax:
dbca -moveDatabase -sourceDB Database unique name for Oracle RAC database or SID for single-instance database [-continueWithDBDowntime Flag to indicate the move operation with database downtime when there is only one active instance running] [-directoryPathsToCopy A comma-separated list of absolute directory paths that are to be copied from source Oracle home to target Oracle home] [-drainTimeoutInSeconds Specify time in seconds to complete the resource draining while stopping the database] [-filePathsToCopy A comma-separated list of absolute file paths that are to be copied from source Oracle home to target Oracle home] [-listenersToMove A comma-separated list of listeners that are to be moved] [-nodeListForMove A comma-separated list of nodes if operation has to be performed on subset of nodes] [-nonRolling Flag to indicate the database move would be performed by shutting down the database] [-oracleHomeUserPassword Oracle home user password] [-postMoveScripts A comma-separated list of scripts to be run post move database. The scripts are run in the order they are listed] [-postRollbackScripts A comma-separated list of scripts to be run post move database rollback. The scripts are run in the order they are listed] [-resume Resume the previous operation] [-sessionID Session id of the failed session] [-revert Revert the previous operation] [-sessionID Session id of the previous session] [-skipClosedPDBs Flag to skip the datapatch on closed PDBs] [-skipDatapatch Flag to skip the datapatch run] [-skipPDBs A comma-separated list of PDBs to be skipped for current operation. ] [-sqlnetConfigPreference SOURCE | TARGET Specify the sqlnet.ora file move preference.] [-sysDBAPassword Password for sysDBAUserName user name] [-sysDBAUserName User name with SYSDBA privileges] [-continueWithDBDowntime Flag to indicate the move operation with database downtime when there is only one active instance running] [-doNotEnableTwoStagePatches specify this flag to not enable two stage patches] [-errorOnMissingPatches Specify this flag to stop the move operation in case of missing patches in target Oracle home] [-exceptionPatchList Specify the list of patch IDs to be ignored when checking missing patches in target Oracle home] [-skipMissingPatchValidation Specify this flag to proceed with move operation in case of missing patches in target Oracle home]
Table 19-22 moveDatabase Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Database unique name for Oracle RAC database or SID for single-instance database. |
|
Optional |
Specifies the flag to indicate the move operation with database downtime when there is only one active instance running. |
-directoryPathsToCopy |
Optional |
Specify the comma-separated list of absolute directory paths that are to be copied from source Oracle home to target Oracle home. |
|
Optional |
Specify time in seconds to complete the resource draining while stopping the database. |
|
Optional |
Specify the A comma-separated list of absolute file paths that are to be copied from source Oracle home to target Oracle home. |
|
Optional |
Specify the comma-separated list of listeners that are to be moved. |
|
Optional |
Specify the comma-separated list of nodes if operation has to be performed on subset of nodes. |
|
Optional |
Specify the flag to indicate the database move would be performed by shutting down the database. |
|
Optional |
Specify the Oracle home user password. |
|
Optional |
Specify the comma-separated list of scripts to be run post move database. The scripts are run in the order they are listed. Use the |
|
Optional |
Resume the previous operation. |
|
Optional |
Specify the session ID of the failed session. |
|
Optional |
Revert the previous operation. |
|
Optional |
Specify the flag to skip the datapatch on closed PDBs. |
|
Optional |
Specify the flag to skip the datapatch run. |
|
Optional |
Specify the flag to indicate the move operation with database downtime when there is only one active instance running. |
|
Optional |
Specify this flag to not enable two stage patches. |
|
Optional |
Specify this flag to stop the move operation in case of missing patches in target Oracle home. Use the |
|
Optional |
Specify this flag to proceed with move operation in case of missing patches in target Oracle home. |
|
Optional |
Specify the comma-separated list of PDBs to be skipped for current operation. |
|
Optional |
Specify the |
|
Optional |
Specify the password for |
|
Optional |
Specify the user name with SYSDBA privileges. |
Parent topic: DBCA Silent Mode Commands
relocatePDB
The relocatePDB
command relocates a PDB from a remote CDB to a local CDB.
Prerequisites
The following are the prerequisites for running the relocatePDB
command:
-
The database user in the local PDB must have the
CREATE PLUGGABLE DATABASE
privilege in the local CDB root container. -
The remote CDB must be in the local undo mode.
-
The remote and local PDBs must be in the archivelog mode.
-
The database user in the remote PDB that the database link connects to must have the
CREATE PLUGGABLE DATABASE
,SESSION
, andSYSOPER
privileges. -
The local and remote PDBs must have the same options installed, or the remote PDB must have a subset of the options installed on the local PDB.
Syntax and Parameters
Use the dbca
-relocatePDB
command with the following syntax:
dbca -relocatePDB
-pdbName name_of_the_local_pdb_to_create
-sourceDB database_name_of_the_local_pdb
-remotePDBName name_of_the_remote_pdb_to_relocate
-remoteDBConnString db_connection_string_of_the_remote_pdb
[-configureTDE true | false Specify true to configure TDE wallet]
[-encryptPDBTablespaces Specify ALL to encrypt all Tablespaces]
[-encryptTablespaces Specify ALL to encrypt all Tablespaces]
[-primaryDBTdeWallet Specify the location for TDE wallet of primary database]
[-sourceTdeWalletPassword Specify password for source database TDE wallet]
[-tdeAlgorithm Specify the TDE Algorithm Type]
[-tdeWalletLoginType Specify the TDE Wallet Login Type, PASSWORD | AUTO_LOGIN | LOCAL_AUTO_LOGIN Default is PASSWORD for SI and AUTO_LOGIN is default for RAC]
[-tdeWalletPassword Specify password for TDE wallet]
[-tdeWalletPathInTarFile value]
[-tdeWalletRoot Specify the location for TDE wallet root init parameter]
[-createNewPDBAdminUser Specify this argument if a new PDB Administrator user needs to be created after plugging in PDB from Archive or File Set]
[-dbLinkName Name of the database link that connects to the remote CDB]
[-dbLinkUserPassword Common user password of a remote CDB, used by database link to connect to remote CDB]
[-dbLinkUsername Common user of a remote CDB, used by database link to connect to remote CDB]
[-pdbAdminPassword PDB Administrator user Password, required only while creating new PDB]
[-pdbAdminUserName PDB Administrator user name, required only while creating new PDB]
[-pdbInitParams Specify pdb specific init paramsComma separated list of name=value pairs]
[-initParamsEscapeChar Specify escape character for comma when a specific initParam has multiple valuesIf the escape character is not specified backslash is the default escape character]
[-pdbNodelist value]
[-pdbReadOnlyServiceName Specify the name of the PDB read-only service to be created on dataguard configuration]
[-pdbServiceName Specify the name of the PDB service to be created]
[-pdbStorageMAXSizeInMB value]
[-pdbStorageMAXTempSizeInMB value]
[-remoteDBSYSDBAUserName User name with SYSDBA privileges of remote database]
[-remoteDBSYSDBAUserPassword Password for remoteDBSYSDBAUserName user of remote database]
[-skipDatapatch Flag to skip the datapatch run]
[-skipPdbServiceCreation Flag to skip the Pluggable Database service creation]
[-sourcePDBReadOnlyServices Comma-separated source PDB read only services]
[-sourcePDBServices Comma-separated source PDB services]
[-sysDBAPassword Password for sysDBAUserName user name]
[-sysDBAUserName User name with SYSDBA privileges]
[-updateDBBlockCacheSize option to enable application to set db block cache size initialization parameters in order to support data copy with different block size]
[-useWalletForDBCredentials true | false Specify true to load database credentials from wallet]
-dbCredentialsWalletLocation Path of the directory containing the wallet files
[-dbCredentialsWalletPassword Password to open wallet with auto login disabled]
Table 19-23 relocatePDB Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
Name of the local PDB to create after relocating the remote PDB. |
|
Required |
Database name of the local PDB. |
|
Required |
Name of the remote PDB to relocate. |
|
Required |
Database connection string of the remote PDB. |
|
Optional |
Name of the SYSDBA user. |
|
Optional |
Password of the SYSDBA user. |
|
Optional |
Name of the database link user of the remote PDB. |
|
Optional |
Password of the database link user of the remote PDB. |
|
Optional |
Specify When
|
|
Optional |
Specify this argument if a new PDB Administrator user needs to be created after plugging in PDB from Archive or File Set. |
|
Optional |
Name of the database that connects to the remote PDB. |
|
Optional |
Specify PDB Administrator user password, required only while creating new PDB. |
|
Optional |
Specify PDB Administrator user name, required only while creating new PDB. |
|
Optional |
Specify PDB specific initialization parameters as comma-separated list of name=value pairs.
|
|
Optional |
Specify PDB node list. |
|
Optional |
Specify the name of the PDB read-only service to be created on Oracle Data Guard configuration. |
|
Optional |
Specify the name of the PDB service. |
|
Optional |
Specify the maximum storage size for the PDB in megabytes. |
|
Optional |
Specify the maximum temporary storage size for the PDB in megabytes. |
|
Optional |
Specify the user name with SYSDBA privileges of remote database. |
|
Optional |
Specify the password for remote DB SYSDBA user of remote database. |
|
Optional |
Flag to skip the data patch run. |
|
Optional |
Flag to skip the PDB service creation. |
|
Optional |
Comma-separated source PDB read-only services. |
|
Optional |
Comma-separated source PDB services. |
|
Optional |
Option to enable application to set db block cache size initialization parameters in order to support data copy with different block size. |
|
Optional |
Specify When
|
Parent topic: DBCA Silent Mode Commands
unplugDatabase
The unplugDatabase
command unplugs a pluggable database (PDB) from a multitenant container database (CDB).
Syntax and Parameters
Use the dbca
-unplugDatabase
command with the following syntax:
dbca -unplugDatabase
-sourceDB cdb_sid
-pdbName pdb_name
[-maxBackupSetSizeInMB maximum_backup_set_size_in_MB]
[-unregisterWithDirService {true | false}
-dirServiceUserName directory_service_user_name
-dirServicePassword directory_service_user_password
-walletPassword wallet_password]
[-archiveType {TAR | RMAN | NONE}
[-rmanParallelism parallelism_integer_value]
[-pdbArchiveFile pdb_archive_file_directory]
[-PDBBackUpfile pdb_backup_file_directory]
[-PDBMetadataFile pdb_metadata_file_directory]
[-rmanParallelism parallelism_integer_value]]
[-useWalletForDBCredentials {true | false}
-dbCredentialsWalletPassword wallet_account_password
-dbCredentialsWalletLocation wallet_files_directory]
[-pdbTDEKeyTransportSecret value]
[-tdeWalletPassword password for TDE wallet]
Table 19-24 unplugDatabase Parameters
Parameter | Required/Optional | Description |
---|---|---|
|
Required |
The database system identifier (SID) of the CDB. |
|
Required |
Name of the PDB. |
|
Optional |
Specifies the maximum backup set size in MB. |
|
Optional |
Specify Specify Specify Specify any of the following parameters:
|
|
Optional |
Specify When
|
|
Optional |
Specify When
Note: If you are using Oracle Unified Directory (OUD), then the OUD passwords should be stored in the wallet using the following keys:
|
|
Required |
Name of the PDB TDE key transport secret. |
|
Required |
Specify the TDE wallet password. |
Parent topic: DBCA Silent Mode Commands