{"id":794,"date":"2023-11-23T21:46:43","date_gmt":"2023-11-23T21:46:43","guid":{"rendered":"https:\/\/test.samplewebsitelink.com\/ordba\/?p=794"},"modified":"2023-11-23T21:46:45","modified_gmt":"2023-11-23T21:46:45","slug":"rman-preparing-the-auxiliary-instance","status":"publish","type":"post","link":"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/","title":{"rendered":"RMAN Preparing The Auxiliary Instance"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Preparing the Auxiliary Instance<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">RMAN uses an auxiliary instance to create the duplicate database. You must prepare the auxiliary instance before you begin the duplication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on your duplication scenario, you need to perform either some or the tasks that are described in this section. Preparing the auxiliary instance includes the following tasks:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Creating Directories for the Duplicate Database<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the destination host, you must create the directories that are used to store the duplicate database files on the destination host. This includes the directories that store the data files, control files, online redo log files, and temp files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Creating an Initialization Parameter File for the Auxiliary Instance<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Multiple methods are available to create the initialization parameter file that is required to start the auxiliary instance.<br>Use one of the following methods to create the initialization parameter file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;Create an initialization parameter file manually.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;If &nbsp;&nbsp; &nbsp;the source database does not use a server parameter file,&nbsp;<br>&nbsp;&nbsp; &nbsp;then&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;you must set all the necessary parameters for the auxiliary instance in a text-based initialization parameter &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;file<br>&nbsp;&nbsp; &nbsp;end<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Direct RMAN to use the initialization parameter file of the source database for the auxiliary instance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This technique is applicable only if the source database uses a server parameter file. Copying the initialization parameter file from the source database is useful when the duplicate database must use the same parameter settings as the source.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note:<br>&nbsp;&nbsp; &nbsp;It is recommended to use a server parameter file instead of a text-based initialization parameter file for duplication.<br>&nbsp;&nbsp; &nbsp;The client-side parameter file for the auxiliary instance must reside on the same host as the RMAN client that performs &nbsp;&nbsp; &nbsp;the duplication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is recommended that you create the initialization parameter file in the default location on&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Windows, the default initialization parameter file is&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ORACLE_HOME\\database\\intiORACLE_SID.ora<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Linux the file name is<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ORACLE_HOME\/dbs\/initORACLE_SID.ora<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;Steps to Create an Initialization Parameter File for the Auxiliary Instance<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;a. The initialization parameter file for the auxiliary instance must contain at least the DB_NAME and DB_DOMAIN &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;initialization parameters.&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;b. Additional parameters may be specified, if required.&nbsp;<br>Important:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ensure that the initialization parameter file is on the same host as the RMAN client that performs the duplication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;To create the initialization parameter file for the auxiliary instance:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;Do one of the following:<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;a. Copy the initialization parameter file from the source host to the destination host, placing it in the &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; operating system-specific default location, and then modify the DB_NAME and DB_DOMAIN initialization &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; parameters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If &nbsp;&nbsp; &nbsp;duplicating a CDB<br>then<br>&nbsp;&nbsp; &nbsp;ensure that the ENABLE_PLUGGABLE_DATABASE parameter is present and set to TRUE.<br>end<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Complete these steps:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;Using a text editor, create an empty file for use as a text-based initialization parameter file, and save it in the &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;operating system-specific default location.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;Required Parameters:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;In the parameter file, set the DB_NAME and DB_DOMAIN initialization parameters. These are the only required parameters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;Setting the DB_DOMAIN parameter enables you to connect to the default database service when you connect with a net &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;service name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;If &nbsp;&nbsp; &nbsp;the auxiliary instance is to be a CDB,&nbsp;<br>&nbsp;&nbsp; &nbsp;then&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;set the following parameter:<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ENABLE_PLUGGABLE_DATABASE=TRUE<br>&nbsp;&nbsp; &nbsp;end<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Set the various location parameters such as CONTROL_FILES and DB_RECOVERY_FILE_DEST.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;If &nbsp;&nbsp; &nbsp;necessary, set other initialization parameters&nbsp;<br>&nbsp;&nbsp; &nbsp;then<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;needed for Oracle Real Application Clusters.<br>&nbsp;&nbsp; &nbsp;end<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;Profile Environment Impacting Variables:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Set the required environment variables, such as ORACLE_HOME and ORACLE_SID.<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;(Optional)&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Set initialization parameters that specify the location of the duplicate database files if one of the following &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;conditions is satisfied:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;The source host and the destination host are the same (duplication to the local host).<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;The duplicate database uses a directory structure that is different from that of the source host to &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;store database files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Depending on the technique used to specify alternate names for duplicate database files, include one or more of &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;the following parameters in the initialization parameter file:&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;CONTROL_FILES,&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;DB_FILE_NAME_CONVERT,&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;LOG_FILE_NAME_CONVERT,&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;DB_CREATE_FILE_DEST,&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;DB_CREATE_ONLINE_FILE_DEST_n, and&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;RECOVERY_FILE_DEST.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;It is recommended that you verify that all paths specified are accessible to the destination host and to the server &nbsp;&nbsp; &nbsp;session of the auxiliary instance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;Start SQL*Plus and connect to the auxiliary instance as a user with SYSDBA or SYSBACKUP privileges.&nbsp;<br>&nbsp;&nbsp; &nbsp;Start the auxiliary instance in NOMOUNT mode. If the file is in the default location, no PFILE parameter is required on &nbsp;&nbsp; &nbsp;SQL&gt; STARTUP NOMOUNT; &nbsp;&#8212; read only initialization parameter file<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sample Initialization Parameter File for the Auxiliary Instance<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;DB_NAME=dupdb<br>&nbsp;&nbsp; &nbsp;CONTROL_FILES=(\/dup\/oracle\/oradata\/prod\/control01.ctl,dup\/oracle\/oradata\/prod\/control02.ctl)<br>&nbsp;&nbsp; &nbsp;DB_FILE_NAME_CONVERT=(\/oracle\/oradata\/prod\/,\/dup\/oracle\/oradata\/prod\/)<br>&nbsp;&nbsp; &nbsp;LOG_FILE_NAME_CONVERT=(\/oracle\/oradata\/prod\/redo,\/dup\/oracle\/oradata\/prod\/redo)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Methods of Generating Database File Names for the Duplicate Database<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Copying the Server Parameter File from the Source Database<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If &nbsp;&nbsp; &nbsp;the source database uses a server parameter file,&nbsp;<br>then &nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;including the SPFILE option in the DUPLICATE command directs RMAN to use the server parameter file from the source &nbsp;&nbsp; &nbsp;database for the auxiliary instance.<br>end<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For backup-based duplication<br>&nbsp;&nbsp; &nbsp;the server parameter file is restored from backups.&nbsp;<br>For active database duplication<br>&nbsp;&nbsp; &nbsp;the server parameter file is copied from the source database to the auxiliary instance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When the source database uses a text-based initialization parameter file&nbsp;<br>&nbsp;&nbsp; &nbsp;use the PFILE clause in the DUPLICATE command to copy the source database&#8217;s initialization parameter file to the &nbsp;&nbsp; &nbsp;auxiliary instance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Server parameter file can be modified with the values that were copied or restored from the server parameter file of the source database by using the&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PARAMETER_VALUE_CONVERT option of SPFILE or&nbsp;<br>SET clause of the DUPLICATE.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;SET clause to change the value of the DB_FILE_NAME_CONVERT parameter in the auxiliary instance&#8217;s server parameter file.<br>&nbsp;&nbsp; &nbsp;If &nbsp;&nbsp; &nbsp;the source database does not use a server parameter file&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;or&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;RMAN cannot restore a backup of the server parameter file,&nbsp;<br>&nbsp;&nbsp; &nbsp;then&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;you must manually create a text-based initialization parameter file, as described in Steps to Create an &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Initialization Parameter File for the Auxiliary Instance.<br>&nbsp;&nbsp; &nbsp;end<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. Creating a Password File for the Auxiliary Instance<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Connections to the auxiliary instance can be established by using operating system authentication or password file authentication. For backup-based duplication, you can either create a password file or use operating system authentication to connect to the auxiliary instance. For active database duplication, you must use password file authentication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To connect to a database by using password file authentication, you must create a password file for the database. When duplicating to a remote host, setting up a password file is mandatory. The default location for the password file is&nbsp;<br>&nbsp;&nbsp; &nbsp;ORACLE_HOME\\database on Windows and&nbsp;<br>&nbsp;&nbsp; &nbsp;ORACLE_HOME\/dbs on Linux and UNIX.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;When you create a standby database by using RMAN duplication, password files are always copied.&nbsp;<br>&nbsp;&nbsp; &nbsp;In all other cases,&nbsp;<br>&nbsp;&nbsp; &nbsp;password files are copied only if you specify the PASSWORD FILE option in the DUPLICATE command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use one of the following options to create a password file for the auxiliary instance on the destination host:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;1. Use operating system-specific utilities to copy the source database password file to the destination host and then &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; rename it to match the auxiliary instance name.&nbsp;<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;Important<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;This is applicable only if the source and destination hosts are on the &nbsp;&nbsp; &nbsp;same platform.<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;2. Create the password file manually. Ensure that the password for the SYSDBA and SYSBACKUP users are the same in the &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;source database and auxiliary instance.<br>&nbsp;&nbsp; &nbsp;3. Create the password file with the orapwd utility. The SYSBACKUP option creates a SYSBACKUP entry in the new password &nbsp;&nbsp; &nbsp; &nbsp; file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following example creates a password file in the 12.2 format names orapworcl that is located in the default location in an operating system file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">orapwd FILE=&#8221; FORMAT=12.2<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Specify the PASSWORD FILE option on the DUPLICATE&#8230; FROM ACTIVE DATABASE command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">RMAN copies the source database password file to the destination host and overwrites any existing password file for the auxiliary instance. This technique is useful if the source database password file has multiple passwords to make available on the duplicate database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you use active database duplication, the password file must contain at least two passwords, for the SYS user and the SYSBACKUP user. These passwords must match the passwords in the source database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note:<br>&nbsp;&nbsp; &nbsp;If you create a standby database with the FROM ACTIVE DATABASE option, then RMAN always copies the password file to the &nbsp;&nbsp; &nbsp;standby host.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>5. Establishing Oracle Net Connectivity Between the Source Database and Auxiliary Instance<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Establish a connection between the source database and auxiliary instance for certain forms of duplication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If &nbsp;&nbsp; &nbsp;any of the following conditions is true,&nbsp;<br>then<br>&nbsp;&nbsp; &nbsp;the auxiliary instance must be available through Oracle Net Services<br>&nbsp;&nbsp; &nbsp;and<br>&nbsp;&nbsp; &nbsp;The RMAN client is run from a host other than the destination host<br>end<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If&nbsp;&nbsp; &nbsp;the duplication technique chosen is active database duplication<br>Then<br>&nbsp;&nbsp; &nbsp;if &nbsp;&nbsp; &nbsp;The destination host is different from the source host<br>&nbsp;&nbsp; &nbsp;then<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;To perform active database duplication,&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;a. connect to the auxiliary instance with SYSDBA or SYSBACKUP privilege and by using a net service name.&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;b. The source database to which RMAN is connected as TARGET uses this net service name to connect directly to &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; the auxiliary database instance.<br>&nbsp;&nbsp; &nbsp;end<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. To establish Oracle Net connectivity and set up a static listener<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;Example:&nbsp;<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;Establishing Oracle Net Connectivity Between the Source Database and Auxiliary Instance<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;Assume that the DB_NAME of the source database is src and the source host is src.example.com.&nbsp;<br>&nbsp;&nbsp; &nbsp;The DB_NAME of the auxiliary instance is dup and the auxiliary instance is created on the host dup.example.com.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;Use the following steps to establish Oracle Net connectivity between the source database and the auxiliary instance:<br>&nbsp;&nbsp; &nbsp;In the tnanames.ora file of the source database, add the following entry that corresponds to the duplicate database:<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;dupdb = (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dup.example.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=dup)))<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;On the destination host, create the tnsnames.ora file in the $ORACLE_HOME\/admin\/network folder. Add the following entry &nbsp;&nbsp; &nbsp;that corresponds to the source database.<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;srcdb = (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=src.example.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=src)))<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. Starting the Auxiliary Instance<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;The initialization parameter file that you create is used to start the auxiliary instance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;RMAN shuts down and restarts the auxiliary instance as part of the duplication.&nbsp;<br>&nbsp;&nbsp; &nbsp;Hence, it is a good idea to create a server-side initialization parameter file for the auxiliary instance in the &nbsp;&nbsp; &nbsp;default location.&nbsp;<br>&nbsp;&nbsp; &nbsp;If &nbsp;&nbsp; &nbsp;no server-side initialization parameter file in the default location<br>&nbsp;&nbsp; &nbsp;then&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;you must specify the client-side initialization parameter file with the PFILE parameter on the DUPLICATE &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;command.<br>&nbsp;&nbsp; &nbsp;end<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Because the auxiliary instance does not yet have a control file, so start the instance in NOMOUNT mode.&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Do not create a control file or try to mount or open the auxiliary instance.<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;To start the auxiliary instance:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Start RMAN.<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;rman<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Connect to the auxiliary instance as a user with the SYSDBA or SYSBACKUP privilege.&nbsp;<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;The following example uses password file authentication to connect to the auxiliary instance.<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;CONNECT SYS@dupdb AS SYSDBA;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;The following example uses operating system authentication to connect to the auxiliary instance by using the &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;SYSBACKUP privilege.<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;CONNECT \/ AS SYSBACKUP;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Start the auxiliary instance in NOMOUNT mode.<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;STARTUP FORCE NOMOUNT;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>8. Making the Oracle Keystore Available to the Destination Host<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If transparent encryption is configured on the source database, then you must ensure that the Oracle software keystore from the source database is available to the auxiliary instance. Manually copy the keystore from the source database to the destination host.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Oracle software keystore contains the TDE master key that is used to:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">decrypt encrypted backups when performing backup-based duplication.<br>decrypt database or tablespace data when performing active database duplication of TDE-encrypted databases or tablespaces.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following are the requirements for the keystore at the duplicate database:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;a. The keystore must be in the default location, or in the location indicated by the sqlnet.ora file.<br>&nbsp;&nbsp; &nbsp;b. Permissions on the Oracle keystore file must be set so that the database can access the file.<br>&nbsp;&nbsp; &nbsp;c. During duplication, the auxiliary instance is restarted thereby causing the Oracle software keystore to become &nbsp;&nbsp; &nbsp; &nbsp; unavailable.&nbsp;<br>&nbsp;&nbsp; &nbsp;d. To ensure that the auxiliary instance has access to the keystore, set the ENCRYPTION_WALLET_LOCATION parameter in &nbsp;&nbsp; &nbsp; &nbsp; the sqlnet.ora file such that it points to the keystore location.<br>&nbsp;&nbsp;&nbsp; &nbsp;e. The ENCRYPTION_WALLET_LOCATION sqlnet.ora parameter is deprecated in Oracle Database Release 19c.&nbsp;<br>&nbsp;&nbsp; &nbsp;f. Use the WALLET_ROOT initialization parameter with the TDE_CONFIGURATION initialization parameter to configure the &nbsp;&nbsp; &nbsp; &nbsp; software keystore location.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With Oracle Real Application Clusters (Oracle RAC)<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;g. register the auxiliary instance statically with an Oracle Grid Infrastructure listener and use the ENVS parameter in &nbsp;&nbsp; &nbsp; &nbsp; the sqlnet.ora file of the Oracle Grid home to specify environment variables that set the keystore location and the &nbsp;&nbsp; &nbsp; &nbsp; unique name of the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following example sets the ENVS parameter in sqlnet.ora to specify the keystore location and unique database name:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;(ENVS=&#8221;ORACLE_UNQNAME=cdbrptl, ENCRYPTION_WALLET_LOCATION=(SOURCE=(METHOD=FILE)(METHOD_DATA=&nbsp;&nbsp; &nbsp;(DIRECTORY=\/etc\/ORACLE\/WALLETS\/cdbrpt1)))&#8221;)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp; &nbsp;If &nbsp;&nbsp; &nbsp;the source database uses a password-based software keystore (not an auto-login software keystore),&nbsp;<br>&nbsp;&nbsp; &nbsp;then&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;you must provide the keystore password before you begin the duplication.<br>&nbsp;&nbsp; &nbsp;end<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the SET command with the DECRYPTION WALLET OPEN IDENTIFIED BY clause to specify the password that must be used to open the keystore.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following command specifies the password used to open the keystore (where password is a placeholder for the actual password that you enter):<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">SET DECRYPTION WALLET OPEN IDENTIFIED BY password;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In an Oracle Grid Infrastructure environment, add the TNS_ADMIN and ORACLE_UNQNAME initialization parameters to both the listener.ora file and the static listener for Data Guard Broker.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The listener must be stopped and restarted after these changes are made.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following is an example of setting the TNS_ADMIN and ORACLE_UNQNAME parameters:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(SID_DESC=(GLOBAL_DBNAME=sales.example.com) (ORACLE_HOME=\/u01\/app\/oracle\/19)&nbsp;<br>(SID_NAME=sales) (ENVS=&#8221;TNS_ADMIN=\/u01\/app\/oracle\/19\/network\/admin&#8221;)&nbsp;<br>(ENVS=&#8221;ORACLE_UNQNAME=sales&#8221;))<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Preparing the Auxiliary Instance RMAN uses an auxiliary instance to create the duplicate database. You must prepare the auxiliary instance before you begin the duplication. Depending on your duplication scenario, you need to perform either some or the tasks that are described in this section. Preparing the auxiliary instance includes the &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/\"> <span class=\"screen-reader-text\">RMAN Preparing The Auxiliary Instance<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":415,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[17],"tags":[],"class_list":["post-794","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rman-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RMAN Preparing The Auxiliary Instance - Ordba<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RMAN Preparing The Auxiliary Instance - Ordba\" \/>\n<meta property=\"og:description\" content=\"&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Preparing the Auxiliary Instance RMAN uses an auxiliary instance to create the duplicate database. You must prepare the auxiliary instance before you begin the duplication. Depending on your duplication scenario, you need to perform either some or the tasks that are described in this section. Preparing the auxiliary instance includes the &hellip; RMAN Preparing The Auxiliary Instance Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/\" \/>\n<meta property=\"og:site_name\" content=\"Ordba\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-23T21:46:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-23T21:46:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/test.samplewebsitelink.com\/ordba\/wp-content\/uploads\/2023\/11\/rmantutorials.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"877\" \/>\n\t<meta property=\"og:image:height\" content=\"466\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"ordba\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ordba\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/\",\"url\":\"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/\",\"name\":\"RMAN Preparing The Auxiliary Instance - Ordba\",\"isPartOf\":{\"@id\":\"https:\/\/test.samplewebsitelink.com\/ordba\/#website\"},\"datePublished\":\"2023-11-23T21:46:43+00:00\",\"dateModified\":\"2023-11-23T21:46:45+00:00\",\"author\":{\"@id\":\"https:\/\/test.samplewebsitelink.com\/ordba\/#\/schema\/person\/7365beabb32b7aa77cf0e890ee90ea0f\"},\"breadcrumb\":{\"@id\":\"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.samplewebsitelink.com\/ordba\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RMAN Preparing The Auxiliary Instance\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/test.samplewebsitelink.com\/ordba\/#website\",\"url\":\"https:\/\/test.samplewebsitelink.com\/ordba\/\",\"name\":\"Ordba\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/test.samplewebsitelink.com\/ordba\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/test.samplewebsitelink.com\/ordba\/#\/schema\/person\/7365beabb32b7aa77cf0e890ee90ea0f\",\"name\":\"ordba\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.samplewebsitelink.com\/ordba\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dd4335bb4e225c36ce7c56a0aff84bb202ebb523ebdc5d1e1a11cc3f3e6085f3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dd4335bb4e225c36ce7c56a0aff84bb202ebb523ebdc5d1e1a11cc3f3e6085f3?s=96&d=mm&r=g\",\"caption\":\"ordba\"},\"sameAs\":[\"https:\/\/test.samplewebsitelink.com\/ordba\"],\"url\":\"https:\/\/test.samplewebsitelink.com\/ordba\/author\/ordba\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RMAN Preparing The Auxiliary Instance - Ordba","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/","og_locale":"en_US","og_type":"article","og_title":"RMAN Preparing The Auxiliary Instance - Ordba","og_description":"&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Preparing the Auxiliary Instance RMAN uses an auxiliary instance to create the duplicate database. You must prepare the auxiliary instance before you begin the duplication. Depending on your duplication scenario, you need to perform either some or the tasks that are described in this section. Preparing the auxiliary instance includes the &hellip; RMAN Preparing The Auxiliary Instance Read More &raquo;","og_url":"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/","og_site_name":"Ordba","article_published_time":"2023-11-23T21:46:43+00:00","article_modified_time":"2023-11-23T21:46:45+00:00","og_image":[{"width":877,"height":466,"url":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-content\/uploads\/2023\/11\/rmantutorials.jpg","type":"image\/jpeg"}],"author":"ordba","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ordba","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/","url":"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/","name":"RMAN Preparing The Auxiliary Instance - Ordba","isPartOf":{"@id":"https:\/\/test.samplewebsitelink.com\/ordba\/#website"},"datePublished":"2023-11-23T21:46:43+00:00","dateModified":"2023-11-23T21:46:45+00:00","author":{"@id":"https:\/\/test.samplewebsitelink.com\/ordba\/#\/schema\/person\/7365beabb32b7aa77cf0e890ee90ea0f"},"breadcrumb":{"@id":"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/test.samplewebsitelink.com\/ordba\/2023\/11\/23\/rman-preparing-the-auxiliary-instance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.samplewebsitelink.com\/ordba\/"},{"@type":"ListItem","position":2,"name":"RMAN Preparing The Auxiliary Instance"}]},{"@type":"WebSite","@id":"https:\/\/test.samplewebsitelink.com\/ordba\/#website","url":"https:\/\/test.samplewebsitelink.com\/ordba\/","name":"Ordba","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/test.samplewebsitelink.com\/ordba\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/test.samplewebsitelink.com\/ordba\/#\/schema\/person\/7365beabb32b7aa77cf0e890ee90ea0f","name":"ordba","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.samplewebsitelink.com\/ordba\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dd4335bb4e225c36ce7c56a0aff84bb202ebb523ebdc5d1e1a11cc3f3e6085f3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dd4335bb4e225c36ce7c56a0aff84bb202ebb523ebdc5d1e1a11cc3f3e6085f3?s=96&d=mm&r=g","caption":"ordba"},"sameAs":["https:\/\/test.samplewebsitelink.com\/ordba"],"url":"https:\/\/test.samplewebsitelink.com\/ordba\/author\/ordba\/"}]}},"_links":{"self":[{"href":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-json\/wp\/v2\/posts\/794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-json\/wp\/v2\/comments?post=794"}],"version-history":[{"count":1,"href":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-json\/wp\/v2\/posts\/794\/revisions"}],"predecessor-version":[{"id":795,"href":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-json\/wp\/v2\/posts\/794\/revisions\/795"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-json\/wp\/v2\/media\/415"}],"wp:attachment":[{"href":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-json\/wp\/v2\/media?parent=794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-json\/wp\/v2\/categories?post=794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.samplewebsitelink.com\/ordba\/wp-json\/wp\/v2\/tags?post=794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}