Hello Guys,
At the beginning, I would like to say that I wanted to escalate this case to the Commvault suppot, but I do not know if it will not be closed due to the specific behavior of the Commvault system and possible problems with the Oracle database itself.
Jobs performed from CommCell Console finish without errors, but errors appear at the Oracle database level. Oracle 11.2.0.4 database on a linux server (Oracle Linux Enterprise 7.9) in the Oracle Grid 18.3 Standalone environment.
There were two problems:
- Restore an Oracle backup to disk (image_001.png)
The restore job is running correctly and Commvault saves files to the location specified during the job configuration. The next step is the duplication of the database (contained in the copy on disk) to the target database using the RMAN script, ended with an error (status failed).
oracle@xyz$rman auxiliary /
Recovery Manager: Release 11.2.0.4.0 - Production on Fri Oct 29 14:02:38 2021
Copyright 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to auxiliary database: xyz (not mounted)
RMAN> @/home/oracle/scripts/dupl_xyz.rman
RMAN> run {
2> allocate auxiliary channel ch1 device type 'sbt_tape' PARMS="SBT_LIBRARY=/opt/commvault/Base/libobk.so,ENV=(BACKUP_DIR=/u01/app/oracle/bkp,CV_media=FILE)";
3> set controlfile autobackup format for device type disk to '/u01/app/oracle/bkp/%F';
4> duplicate database to xyz backup location '/u01/app/oracle/bkp' pfile '/u01/app/oracle/product/11.2.0.4/dbhome_1/dbs/initxyz.ora'
5> nofilenamecheck
6> ;
7> }
allocated channel: ch1
channel ch1: SIDa5 device type=SBT_TAPE
channel ch1: CommVault Systems for Oracle: Version 11.0.0(BUILD80)
executing command: SET CONTROLFILE AUTOBACKUP FORMAT
Starting Duplicate Db at 29-OCT-21
contents of Memory Script:
{
sql clone "create spfile from memory";
}
executing Memory Script
sql statement: create spfile from memory
contents of Memory Script:
{
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 8551575552 bytes
Fixed Size 2270360 bytes
Variable Size 1442843496 bytes
Database Buffers 7096762368 bytes
Redo Buffers 9699328 bytes
allocated channel: ch1
channel ch1: SIDF2 device type=SBT_TAPE
channel ch1: CommVault Systems for Oracle: Version 11.0.0(BUILD80)
contents of Memory Script:
{
sql clone "alter system set control_files ''+DATA/xyz/controlfile/current.471.1087221811'', ''+FRA/xyz/controlfile/current.996.1087221811'' comment''Set by RMAN'' scope=spfile";
sql clone "alter system set db_name ''RPPROD'' comment''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name ''XYZ' comment''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
restore clone primary controlfile from '/u01/app/oracle/bkp/c-3252878235-20211029-05';
alter clone database mount;
}
executing Memory Script
sql statement: alter system set control_files = ''+DATA/xyz/controlfile/current.471.1087221811'', ''+FRA/xyz/controlfile/current.996.1087221811'' comment= ''Set by RMAN'' scope=spfile
sql statement: alter system set db_name = ''RPPROD'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''xyz'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 8551575552 bytes
Fixed Size 2270360 bytes
Variable Size 1442843496 bytes
Database Buffers 7096762368 bytes
Redo Buffers 9699328 bytes
allocated channel: ch1
channel ch1: SIDF2 device type=SBT_TAPE
channel ch1: CommVault Systems for Oracle: Version 11.0.0(BUILD80)
Starting restore at 29-OCT-21
restarting auxiliary database without server parameter file
Oracle instance started
Total System Global Area 8551575552 bytes
Fixed Size 2270360 bytes
Variable Size 1426066280 bytes
Database Buffers 7113539584 bytes
Redo Buffers 9699328 bytes
RMAN-00571: ======================================================RMAN-00569: =========== ERROR MESSAGE STACK FOLLOWS ==========RMAN-00571: ======================================================RMAN-03002: failure of Duplicate Db command at 10/29/2021 14:03:46
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
RMAN> end-of-file
RMAN>
- Oracle database duplication from the active database. (image_002.png)
The Commvault job ends with success, but there is an error in the duplicate Oracle database, the spfile initialization file for the duplicate database is not created and after the database is opened after the task is completed by Commvault, an error appears in the database log:
“ORA-01565: Unable to open Spfile /u01/app/oracle/product/11.2.0.4/dbhome_1/dbs/spfiledevawe2.ora”
If you know the answer what could be the cause of the described problem, please help, if not, let me know if the case escalates if it will be closed due to potential problems on the side of the Oracle database.
Thanks&Regards,
Kamil