If the drive structure of the new database differs from the drive structure of the old database, perform the following actions: - Edit the initiwtm.ora file in the /opt/IWTM_Backup_Files/Recovery_Aid directory to reflect the drive structure of the new database.
- Copy the edited initiwtm.ora file to the $ORACLE_HOME/dbs directory on the computer that hosts the new database.
- Log on to the computer that hosts the Oracle database as the oracle user.
- Open Oracle SQL*Plus and connect as the sysdba user:
OS> sqlplus / as sysdba - Generate spfile
SQL> create spfile from pfile; - If you need to rename some files, you can use the following script:
OS> sqlplus / as sysdba
SQL> startup mount
SQL> alter database rename file '/<path_to_proddb_files>/<filename1>' to '/<path_to_clonedb_files>/<filename1>';
…
SQL> alter database rename file '/<path_to_proddb_files>/<filenameN>' to '/<path_to_clonedb_files>/<filenameN>';
SQL> shutdown immediate Here path_to_proddb_files is a path to the directory where new database files are located (to where backup is restoring), and path_to_clonedb_files is a path to the directory where backup files are located.
|