Sample Header Ad - 728x90

Database Administrators

Q&A for database professionals who wish to improve their database skills

Latest Questions

0 votes
1 answers
1208 views
Delete backup directories using RMAN
Is there any way RMAN can delete empty backup directories?
Is there any way RMAN can delete empty backup directories?
Rajat Saxena (75 rep)
Jun 20, 2013, 07:32 AM • Last activity: Aug 5, 2025, 01:06 AM
4 votes
2 answers
643 views
RMAN-06169, but only when backing up via OEM 13c
When running a Level 1 or Level 0 backup via OEM 13c, the following RMAN error causes the run to fail. (The RMAN script is being ran with proper sysdba credentials from OEM 13c.) RMAN-06169: could not read file header for datafile 2 error reason 5 Oracle documentation suggests reason 5 indicates 'Un...
When running a Level 1 or Level 0 backup via OEM 13c, the following RMAN error causes the run to fail. (The RMAN script is being ran with proper sysdba credentials from OEM 13c.) RMAN-06169: could not read file header for datafile 2 error reason 5 Oracle documentation suggests reason 5 indicates 'Unable to open file'. However, if I execute the exact same RMAN statement directly on the server, the backup runs fine. We have removed the database from OEM and decommissioned the agent, the redeployed the agent as well as reinstated the database in OEM, but the error still occurred.
ca_elrod (61 rep)
Aug 7, 2018, 06:18 PM • Last activity: Aug 3, 2025, 02:06 AM
0 votes
1 answers
980 views
Oracle database 12C restore script
i'm trying to create backup restore script . in short my backup script creating new directory every day from the operating system level and then backup the database using the directory created i tried the below script but it seems RMAN doesn't recognize the controlfiles here is my script **#RMAN RES...
i'm trying to create backup restore script . in short my backup script creating new directory every day from the operating system level and then backup the database using the directory created i tried the below script but it seems RMAN doesn't recognize the controlfiles here is my script **#RMAN RESTORE SCRIPT** #!/bin/bash #Environment Variables ORACLE_HOME=/u01/app/oracle/product/12.2.0.1/dbhome_1 ORACLE_SID=cdb11 PATH=$PATH:$ORACLE_HOME/bin DD=date +%Y-%m-%d-%H-%M export ORACLE_HOME ORACLE_SID PATH DD controlfile backupsets controlfile=/ArchiveDBBackup/DAILY_RMAN/${DD}/CDB1_CONTROLFILE backupsets=/ArchiveDBBackup/DAILY_RMAN/${DD}/ export controlfile backupsets LOGFILE=/RMAN/log/DAILY_FULLBKP_RESTORE_date +%Y%m%d.log rman target / LOG $LOGFILE RMAN-03002: failure of restore command at 07/04/2021 09:35:57 RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece any idea how can RMAN recognize linux variables ? or anyway to achieve the restore with those variables ?
Seif Hassan (11 rep)
Jul 4, 2021, 08:51 AM • Last activity: Jul 29, 2025, 02:02 AM
0 votes
1 answers
629 views
Does an Oracle incremental level 1 backup need archive logs to identify the differences since the last incremental level 0 (full) backup?
Let's say we do a full incremental level 0 backup (full database backup) and then, for some reason, we need to delete some archive logs (generated after the full database backup) and then run an incremental level 1 backup (incremental backup). Will this incremental backup be okay without the deleted...
Let's say we do a full incremental level 0 backup (full database backup) and then, for some reason, we need to delete some archive logs (generated after the full database backup) and then run an incremental level 1 backup (incremental backup). Will this incremental backup be okay without the deleted archive logs? Or does it need those archives to know the differences since the level 0 (full) backup? (I know we must have the archives logs **after** incremental level 1 to do a full recovery). If no, how Oracle track those differences since incremental level 0 (without block change tracking)?
Astora (841 rep)
Apr 8, 2023, 01:44 AM • Last activity: Jul 16, 2025, 05:21 PM
0 votes
1 answers
166 views
Oracle 19 recover table with remap and constraints issue
I have a Oracle 19 DB that I am testing table restores from RMAN backups. I am using this code. ``` recover table "HR".REGIONS OF PLUGGABLE DATABASE 'pdb' until time "to_date('06/26/2024 08:00:00','mm/dd/yyyy hh24:mi:ss')" auxiliary destination '+DATA' REMAP TABLE 'HR'.'REGIONS':'REGIONS_NEW'; ``` I...
I have a Oracle 19 DB that I am testing table restores from RMAN backups. I am using this code.
recover table "HR".REGIONS OF PLUGGABLE DATABASE 'pdb'
                 until time "to_date('06/26/2024 08:00:00','mm/dd/yyyy hh24:mi:ss')"
                 auxiliary destination '+DATA'
                 REMAP TABLE 'HR'.'REGIONS':'REGIONS_NEW';
I get this error.
Performing import of tables...
   IMPDP> Master table "SYS"."TSPITR_IMP_fyrs_soEh" successfully loaded/unloaded
   IMPDP> Starting "SYS"."TSPITR_IMP_fyrs_soEh":
   IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE
   IMPDP> ORA-39083: Object type TABLE:"HR"."REGIONS_NEW" failed to create with error:
ORA-02264: name already used by an existing constraint

Failing sql is:
CREATE TABLE "HR"."REGIONS_NEW" ("REGION_ID" NUMBER CONSTRAINT "REGION_ID_NN" NOT NULL ENABLE, "REGION_NAME" VARCHAR2(25 BYTE)) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255  NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS"
I am not sure why this is happening. According to the documentation the remap should not allow the indexes and constraints to be restored. How do I exclude them in my recover table statement > When you use the REMAP TABLE clause, named constraints and indexes cannot be imported.
cptkirkh (13 rep)
Jun 27, 2024, 06:36 PM • Last activity: Jul 9, 2025, 05:06 AM
0 votes
1 answers
166 views
Oracle 11g migration to AWS
I have an on premise oracle 11g database that i have to migrate to an EC2 instance hosting Oracle 11g in AWS. I have three options to achieve this 1. Use Oracle Data guard to replicate the on premise database to cloud database 2. Using RMAN to backup the existing database and restore it on Cloud 3....
I have an on premise oracle 11g database that i have to migrate to an EC2 instance hosting Oracle 11g in AWS. I have three options to achieve this 1. Use Oracle Data guard to replicate the on premise database to cloud database 2. Using RMAN to backup the existing database and restore it on Cloud 3. Using expdp and impdp commands to export and import the database My database size is approximately 2 TB. I have following doubts Q1: What is the best way among the three options? Q2: Using data guard means that the AWS and the on premise database should be connected the entire time until the data is replicated on cloud, what if there is a network disconnect in between the process? Do i have to restart the replication process or will it continue from where it stopped? Edit: We have a 2 day downtime window in which the data has to be migrated and restored on cloud. The on premise database is hosted on Solaris Operating System and Operating System on the AWS cloud will be RedHat Linux since Solaris in not available in AWS. Will Oracle Data guard or RMAN support the change in the Operating system on the servers?
Vishesh (33 rep)
Aug 20, 2020, 12:52 PM • Last activity: Jul 9, 2025, 01:02 AM
0 votes
1 answers
181 views
Backup files not found in ASM
I have an Oracle database 11gr2 and I have installed Oracle Grid on Oracle Linux 5.9. I have two disk groups. /etc/init.d/oracleasm listdisks : flash_recovery_area DATA The first disk group is mounted on `/u01` and the second is mounted on `/flash_recovery_area`. The value of fra parameters are: db_...
I have an Oracle database 11gr2 and I have installed Oracle Grid on Oracle Linux 5.9. I have two disk groups. /etc/init.d/oracleasm listdisks : flash_recovery_area DATA The first disk group is mounted on /u01 and the second is mounted on /flash_recovery_area. The value of fra parameters are: db_recovery_file_dest = /+flash_recovery_area db_recovery_file_dest_size = 30G When I want to connect to rman and get backup from current database, I can but I can not find anything in /flash_recovery_area destination. Can any one help me?
saeed.sh (216 rep)
Apr 1, 2015, 06:35 AM • Last activity: Jul 1, 2025, 07:08 AM
2 votes
1 answers
192 views
Blocked listener service
It seems that I cannot connect via tns alias on my auxiliary, I know I could bypass it by either connection locally with auxiliary e.g. `auxiliary /` or adding a `(UR=A)` parameter. The DB is in nomount. I want to know why, because I have explicitly created two static listener registrations, to use...
It seems that I cannot connect via tns alias on my auxiliary, I know I could bypass it by either connection locally with auxiliary e.g. auxiliary / or adding a (UR=A) parameter. The DB is in nomount. I want to know why, because I have explicitly created two static listener registrations, to use it for the dataguard and for the duplicate, but I have following issue. Here is firstly the configuration. listner.ora [oracle@server-salzburg admin]$ cat /u01/app/19/grid/network/admin/listener.ora #Backup file is /u01/app/oracle/crsdata/server-salzburg/output/listener.ora.bak.server-salzburg.oracle line added by Agent # listener.ora Network Configuration File: /u01/app/19/grid/network/admin/listener.ora # Generated by Oracle configuration tools. LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server-salzburg)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) ) SID_LIST_LISTENER= (SID_LIST= (SID_DESC= (GLOBAL_DBNAME=graz_DGMGRL) (SID_NAME=graz) (ORACLE_HOME=/u01/app/oracle/product/19/dbhome_1) ) (SID_DESC= (GLOBAL_DBNAME=salzburg_DGMGRL) (SID_NAME=salzburg) (ORACLE_HOME=/u01/app/oracle/product/19/dbhome_1) ) ) ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent VALID_NODE_CHECKING_REGISTRATION_LISTENER=ON # line added by Agent tnsnames.ora [oracle@server-salzburg admin]$ cat tnsnames.ora SALZBURG = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server-salzburg)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = salzburg) ) ) graz_DGMGRL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server-graz)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = graz) ) ) salzburg_DGMGRL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server-salzburg)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = salzburg) ) ) listener output [oracle@server-salzburg admin]$ lsnrctl status LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 09-JUN-2025 20:27:36 Copyright (c) 1991, 2019, Oracle. All rights reserved. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production Start Date 09-JUN-2025 20:24:03 Uptime 0 days 0 hr. 3 min. 33 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/19/grid/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/server-salzburg/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=server-salzburg)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) Services Summary... Service "+ASM" has 1 instance(s). Instance "+ASM", status READY, has 1 handler(s) for this service... Service "+ASM_DG_DATA" has 1 instance(s). Instance "+ASM", status READY, has 1 handler(s) for this service... Service "+ASM_DG_FRA" has 1 instance(s). Instance "+ASM", status READY, has 1 handler(s) for this service... Service "graz_DGMGRL" has 1 instance(s). Instance "graz", status UNKNOWN, has 1 handler(s) for this service... Service "salzburg" has 1 instance(s). Instance "salzburg", status BLOCKED, has 1 handler(s) for this service... Service "salzburg_DGMGRL" has 1 instance(s). Instance "salzburg", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully rman error: [oracle@server-salzburg admin]$ rman target sys/*******@graz_DGMGRL auxiliary sys/******@salzburg_DGMGRL Recovery Manager: Release 19.0.0.0.0 - Production on Mon Jun 9 20:28:00 2025 Version 19.3.0.0.0 Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved. connected to target database: GRAZ (DBID=3282927897) RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-00554: initialization of internal recovery manager package failed RMAN-04006: error from auxiliary database: ORA-12528: TNS:listener: all appropriate instances are blocking new connections
paganini (138 rep)
Jun 9, 2025, 06:28 PM • Last activity: Jun 9, 2025, 08:41 PM
0 votes
2 answers
224 views
Oracle: Corrupt datafile will not turn back online?
need immediate assistance on an issue... Oracle Support is taking way too long to respond back on. We have a corrupt datafile in one of our tablespaces, I attempted to shut the datafile offline, and then perform a restore and recover from the standby. However, the recover returned an error saying th...
need immediate assistance on an issue... Oracle Support is taking way too long to respond back on. We have a corrupt datafile in one of our tablespaces, I attempted to shut the datafile offline, and then perform a restore and recover from the standby. However, the recover returned an error saying that a sequence was missing or not applied. Now I can't turn the datafile back online and all operations on the schema are halted.
RMAN> recover datafile 88;
...
...
...
archived log thread=1 sequence=94742
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 09/08/2021 22:05:54
RMAN-06055: could not find archived log with sequence 94742 for thread 1

RMAN> alter database datafile 88 online;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of sql statement command at 09/08/2021 22:07:49
ORA-01113: file 88 needs media recovery
ORA-01110: data file 88: '/ora03/oracle/oradata/REPPRD01/AFM_DATA05.DBF'
Any tips? I am desperately trying anything. **EDIT:** Yes, I tried
datafile 88 until sequence 94742
**EDIT2:** The data guard configuration:
DGMGRL> show configuration

Configuration - REPPRD01_DR

  Protection Mode: MaxPerformance
  Members:
  REPPRD01 - Primary database
    Error: ORA-16724: cannot resolve gap for one or more standby databases

    rep01    - Physical standby database
      Error: ORA-16766: Redo Apply is stopped

Fast-Start Failover: DISABLED

Configuration Status:
ERROR   (status updated 21 seconds ago)
The standby configuration:
RMAN> show all;

RMAN configuration parameters for database with db_unique_name REP01 are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/oracle/product/12.1.0.2/dbs/snapcf_REP01.f'; # default
Phillip (11 rep)
Sep 9, 2021, 12:59 PM • Last activity: Jun 6, 2025, 04:06 PM
0 votes
1 answers
805 views
RMAN: restore not done; all files read only, offline, excluded, or already restored
I did a hot RMAN backup of a server running Oracle 19c database, then moved the backup to a new server. This is the backupscript ``` BACKUP AS compressed BACKUPSET INCREMENTAL LEVEL=0 FORMAT 'Prod_Full_DB_%u_%s_%p' DATABASE plus archivelog; ``` When I completed the restore, I faced this error ``` SQ...
I did a hot RMAN backup of a server running Oracle 19c database, then moved the backup to a new server. This is the backupscript
BACKUP AS compressed BACKUPSET INCREMENTAL LEVEL=0 FORMAT 'Prod_Full_DB_%u_%s_%p' DATABASE plus archivelog;
When I completed the restore, I faced this error
SQL> RECOVER DATABASE;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done


SQL> RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
ORA-00279: change 8922136743 generated at 03/24/2024 04:19:33 needed for thread
1
ORA-00289: suggestion : /u03/archives/1_65472_1115909325.dbf
ORA-00280: change 8922136743 for thread 1 is in sequence #65472


Specify log: {=suggested | filename | AUTO | CANCEL}

ORA-00308: cannot open archived log '/u03/archives/1_65472_1115909325.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 7
I solved this error by manually transferring the archives to the server. I also realized that the archive which was causing problem was made DURING the backup process. After the restore was completed I did some searching, and found a way to restore archives from the backup pieces:
run {
allocate channel t1 type disk;
set archivelog destination to '/u04/';
restore archivelog until sequence 65460;
release channel t1;
}
however, I am facing this error
archived log for thread 1 with sequence 1 is already on disk as file /u01/archives/1_1_1164473680.dbf
archived log for thread 1 with sequence 2 is already on disk as file /u01/archives/1_2_1164473680.dbf
restore not done; all files read only, offline, excluded, or already restored
**I guess this might be because the database has already been restored.** any changes I should make when I am taking the backup, as the archive which was causing an issue, was made while the backup was being taken.
datascinalyst (105 rep)
Mar 25, 2024, 09:45 AM • Last activity: May 23, 2025, 04:02 PM
0 votes
1 answers
2109 views
Archive log backup error and backup completed with errors
My prod DB backup completed with errors stating the below error. RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure...
My prod DB backup completed with errors stating the below error. RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure of backup command on ch01 channel at 05/08/2014 09:24:07 ORA-19588: archived log recid 161391 stamp 907826104 is no longer valid What to do?
sweetritz (371 rep)
May 9, 2014, 02:54 PM • Last activity: May 14, 2025, 01:03 AM
0 votes
1 answers
872 views
Started backup via RMAN, any way to nohup it?
Backup script was failing, so we started new backup manually through RMAN, is there any way to force RMAN to work after i terminate my ssh session? Ctrl+Z in rman unfortunately does not work.
Backup script was failing, so we started new backup manually through RMAN, is there any way to force RMAN to work after i terminate my ssh session? Ctrl+Z in rman unfortunately does not work.
0r4DB4 (1 rep)
Jan 9, 2020, 04:32 AM • Last activity: May 11, 2025, 01:01 PM
0 votes
1 answers
312 views
Oracle 11g RMAN restore without catalog
I need to restore an Oracle 11.2.0.4 database from Netbackup on to a different host. Is it possible to duplicate the DB with RMAN into an Auxiliary DB but without a recovery catalog? If it’s not possible directly can I restore backup pieces to disk first and then duplicate? What would be the procedu...
I need to restore an Oracle 11.2.0.4 database from Netbackup on to a different host. Is it possible to duplicate the DB with RMAN into an Auxiliary DB but without a recovery catalog? If it’s not possible directly can I restore backup pieces to disk first and then duplicate? What would be the procedure? Many thanks.
Franco (51 rep)
Sep 9, 2020, 12:27 AM • Last activity: May 6, 2025, 10:02 AM
0 votes
1 answers
789 views
RMAN Duplicate PITR without connection to Target database
I would like to understand which network requirements are needed following the least privilege needed policy in order to perform a `DUPLICATE DATABASE UNTIL SCN` in this scenario My environment is Azure, and I have Oracle 12.2 and a RMAN Catalog in 19c **Production Network ( Subscription Azure Pro )...
I would like to understand which network requirements are needed following the least privilege needed policy in order to perform a DUPLICATE DATABASE UNTIL SCN in this scenario My environment is Azure, and I have Oracle 12.2 and a RMAN Catalog in 19c **Production Network ( Subscription Azure Pro )** Server A -- Database A Server B -- Database B Server X -- Database X -- RMAN Catalog Backups are taken in Servers A and B on a daily basis following an incremental strategy. The pieces are stored in a BLOB storage account which is presented as a local FS in each of the servers. **QA Network ( Subscription Azure QA )** Server C -- Database C Server D -- Database D There's network connectivity at the moment between the Production Subscription and the QA Subscription, but it is blocked by a Firewall. The idea is to request the necessary firewall rules in order to perform DUPLICATE RMAN without connecting to the Target Databases ( Servers A and B ). I know it is possible, as the documentation states > If you are performing a backup based RMAN duplicate and using a recovery catalog as well, **it is not required to connect to the source database as TARGET in RMAN**. This technique is advantageous where network connections from the auxiliary host to the source database are restricted or prone to intermittent disruptions. **In duplication without a TARGET connection, the source database is unaffected by the duplication.** If I follow this scenario, I would need, at least 2 Firewall rules between the subscriptions: - Network connectivity between QA Server C and RMAN CATALOG ( ssh 22 and database port ) - Network connectivity between QA Server D and RMAN CATALOG ( ssh 22 and database port ) However, how are the backup pieces moved to the target servers ? That is the part I don't get it. If the backup pieces are stored on the Servers A and B, should I request Firewall rules also for the Production Serves A and B ? I mean, I understand RMAN will know where the pieces are stored, but they are in the Servers A and B. Either I have to move the pieces to the target databases and use the option backup location or I am missing something. I would appreciate some insights here, as I can't find in the documentation anything regarding on how using this technique is literally restoring the pieces. If I did not explain something right, let me know Thank you
Roberto Hernandez (143 rep)
Oct 5, 2021, 06:53 AM • Last activity: May 1, 2025, 10:04 AM
1 votes
1 answers
326 views
can I do a restore controlfile from autobackup out FAST RECOVERY AREA?
I know that I can issue the command `restore controlfile from "location_here"`. But there is some config that can I do for issue the command restore `controlfile from autobackup` even whether the autobackup of the controlfile is not in fast recovery area?
I know that I can issue the command restore controlfile from "location_here". But there is some config that can I do for issue the command restore controlfile from autobackup even whether the autobackup of the controlfile is not in fast recovery area?
Astora (841 rep)
Nov 10, 2019, 01:44 AM • Last activity: Apr 26, 2025, 10:09 AM
0 votes
1 answers
807 views
Oracle 12cR2 RMAN - ORA-01547, ORA-01194, RMAN-06054
Oracle 12cR2. Error: > channel default: deleting archived log(s) > > archived log file name=+RECO/.../thread_1_seq_166200.26582.1054942673 > RECID=62 STAMP=1054943183 > > archived log file name=+RECO/.../thread_1_seq_166201.11529.1054941077 > thread=1 sequence=166201 > > channel default: deleting ar...
Oracle 12cR2. Error: > channel default: deleting archived log(s) > > archived log file name=+RECO/.../thread_1_seq_166200.26582.1054942673 > RECID=62 STAMP=1054943183 > > archived log file name=+RECO/.../thread_1_seq_166201.11529.1054941077 > thread=1 sequence=166201 > > channel default: deleting archived log(s) > > archived log file name=+RECO/.../thread_2_seq_223357.10403.1054942671 > RECID=58 STAMP=1054943182 > > unable to find archived log > > archived log thread=2 sequence=223358 > > Oracle Error: > > ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get > error below > > ORA-01194: file 4 needs more recovery to be consistent > > ORA-01110: data file 4: '+DATA/.../data_d...fno-4' > > > RMAN-00571: > =========================================================== > > RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS > =============== > > RMAN-00571: > =========================================================== > > RMAN-03002: failure of recover command at 10/28/2020 00:24:13 > > RMAN-06054: media recovery requesting unknown archived log for thread > 2 with sequence 223358 and starting SCN of 1871183322646 My commands: restore primary controlfile from '/.../RESTORE/..._controlfile_20201027_....rman'; alter database mount; restore database preview; The final output part of 'restore database preview;' command: recovery will be done up to SCN 1871164140237 Media recovery start SCN is 1871164140237 Recovery must be done beyond SCN 1871183871662 to clear datafile fuzziness Finished restore at 27-OCT-20 catalog start with '/.../RESTORE/'; run { set newname for database to '+DATA/.../%U' ; set newname for tempfile 1 to '+DATA/.../%U'; set newname for tempfile 2 to '+DATA/.../%U'; set newname for tempfile 3 to '+DATA/.../%U'; set newname for tempfile 4 to '+DATA/.../%U'; set newname for tempfile 5 to '+DATA/.../%U'; set until scn 1871183871663; restore database; switch datafile all; switch tempfile all; recover database; } **NOTE:** all of the full database backuppieces, archivelog backups, daily spfile backup and daily controlfile backup are under this path '/.../RESTORE/'. I setted my limit to scn 1871183871663 (Recovery must be done beyond SCN 1871183871662 to clear datafile fuzziness + 1) but it says "media recovery requesting unknown archived log for thread 2 with sequence 223358 and starting SCN of 1871183322646." I couldn't find any clear solution. How can I resolve it? Best regards,
jrdba (55 rep)
Oct 27, 2020, 10:40 PM • Last activity: Apr 21, 2025, 10:03 PM
1 votes
1 answers
998 views
What are the ways to recover Oracle database that has corrupted data file, very old RMAN full backup, and incomplete/corrupted archived logs?
For an Oracle 10g/11g database that refuses to start due to datafile (SYSTEM01.DBF) corruption, does RMAN restore command immediately overwrite all current datafiles from the last found full RMAN backup even if the latest RMAN full backup is very old and archived logs starting from the last RMAN ful...
For an Oracle 10g/11g database that refuses to start due to datafile (SYSTEM01.DBF) corruption, does RMAN restore command immediately overwrite all current datafiles from the last found full RMAN backup even if the latest RMAN full backup is very old and archived logs starting from the last RMAN full backup is incomplete or corrupted? If yes, is there a way to undo the restore to have the original data files back prior to the restore command? Lastly, is there a last resort way to force start it up and have Oracle ignore/skip/fix any corrupted part rather than restore and recover from last full RMAN backup and archived logs, at least to recover the latest transactions?
clj (11 rep)
Mar 31, 2023, 01:31 AM • Last activity: Apr 20, 2025, 11:06 PM
1 votes
1 answers
1945 views
Will I have to restore controlfile in RMAN level 1 backupset before recover database?
For example, I have a level 0 and level 1 RMAN backupset files like `inr00_0413_*` `inr01_0413_1_* ` Is it necessary to do this when recover from RMAN level 1 backup: restore controlfile from inr01_0413_1_ctl_file_9jr2v0te_1_1_20160413; Or I just: catalog start with '/u02/rmanbackup/'; recover datab...
For example, I have a level 0 and level 1 RMAN backupset files like inr00_0413_* inr01_0413_1_*
Is it necessary to do this when recover from RMAN level 1 backup: restore controlfile from inr01_0413_1_ctl_file_9jr2v0te_1_1_20160413; Or I just: catalog start with '/u02/rmanbackup/'; recover database; If not restore controlfile, after resotre and recover will get error: >ORA-16004: backup database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '+DATA1/rac/datafile/system1.dbf'
Can't do SQL> recover database using backup controlfile until cancel Or RMAN> sql 'alter database open read only'; Backupset files: [oracle@dbsrv01] ll /u02/rmanbackup/ Apr 13 20:53 block_change_tracking.ctf Apr 13 19:44 inr00_0413_arc_8pr2uqq2_1_1_RAC_20160413_42265 Apr 13 19:44 inr00_0413_arc_8qr2uqq2_1_1_RAC_20160413_42266 Apr 13 19:44 inr00_0413_ctl_file_8rr2uqqa_1_1_20160413 Apr 13 19:44 inr00_0413_dbf_8er2uqcc_1_1_RAC_20160413_42254 Apr 13 19:46 inr00_0413_dbf_8fr2uqcc_1_1_RAC_20160413_42255 Apr 13 19:48 inr00_0413_dbf_8gr2uqcc_1_1_RAC_20160413_42256 Apr 13 19:50 inr00_0413_dbf_8hr2uqcc_1_1_RAC_20160413_42257 Apr 13 19:51 inr00_0413_dbf_8ir2uqcc_1_1_RAC_20160413_42258 Apr 13 19:52 inr00_0413_dbf_8jr2uqcc_1_1_RAC_20160413_42259 Apr 13 19:52 inr00_0413_dbf_8kr2uqcc_1_1_RAC_20160413_42260 Apr 13 19:52 inr00_0413_dbf_8lr2uqcc_1_1_RAC_20160413_42261 Apr 13 19:52 inr00_0413_dbf_8mr2uqcc_1_1_RAC_20160413_42262 Apr 13 19:52 inr00_0413_dbf_8nr2uqcc_1_1_RAC_20160413_42263 Apr 13 19:52 inr00_0413_dbf_8or2uqcc_1_1_RAC_20160413_42264 Apr 13 19:52 inr00_0413_spfile_8sr2uqqc_1_1_20160413 Apr 13 20:50 inr01_0413_1_arc_9gr2v0t5_1_1_RAC_20160413_42288 Apr 13 20:50 inr01_0413_1_arc_9hr2v0t5_1_1_RAC_20160413_42289 Apr 13 20:50 inr01_0413_1_arc_9ir2v0tc_1_1_RAC_20160413_42290 Apr 13 20:50 inr01_0413_1_ctl_file_9jr2v0te_1_1_20160413 Apr 13 20:50 inr01_0413_1_dbf_95r2v0sv_1_1_RAC_20160413_42277 Apr 13 20:50 inr01_0413_1_dbf_96r2v0sv_1_1_RAC_20160413_42278 Apr 13 20:50 inr01_0413_1_dbf_97r2v0t0_1_1_RAC_20160413_42279 Apr 13 20:50 inr01_0413_1_dbf_98r2v0t0_1_1_RAC_20160413_42280 Apr 13 20:50 inr01_0413_1_dbf_99r2v0t0_1_1_RAC_20160413_42281 Apr 13 20:50 inr01_0413_1_dbf_9ar2v0t0_1_1_RAC_20160413_42282 Apr 13 20:50 inr01_0413_1_dbf_9br2v0t0_1_1_RAC_20160413_42283 Apr 13 20:50 inr01_0413_1_dbf_9cr2v0t0_1_1_RAC_20160413_42284 Apr 13 20:50 inr01_0413_1_dbf_9dr2v0t0_1_1_RAC_20160413_42285 Apr 13 20:50 inr01_0413_1_dbf_9er2v0t0_1_1_RAC_20160413_42286 Apr 13 21:06 inr01_0413_1_dbf_9fr2v0t0_1_1_RAC_20160413_42287 Apr 13 21:06 inr01_0413_1_spfile_9kr2v0tg_1_1_20160413
Jason Smartree (33 rep)
Apr 13, 2016, 02:05 PM • Last activity: Apr 19, 2025, 08:07 AM
0 votes
2 answers
1465 views
RMAN Duplicate with new SID / Path
We are running Oracle 12c SE. I need to duplicate an instance from the RMAN backups. However, this instance will be on a different server, with a different SID. And, the pathnames have the SID in them: /u01/ /data_tbs, as such. Not 100% sure how to do this, was hoping someone can give me some steps....
We are running Oracle 12c SE. I need to duplicate an instance from the RMAN backups. However, this instance will be on a different server, with a different SID. And, the pathnames have the SID in them: /u01//data_tbs, as such. Not 100% sure how to do this, was hoping someone can give me some steps. Many thanks
Landon Statis (151 rep)
Jan 17, 2022, 04:29 PM • Last activity: Mar 17, 2025, 08:07 AM
1 votes
0 answers
32 views
Is there any RMAN wildcards (%, *) to search for files from rman autobackup?
I've created a controlfile autobackup like it CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '${ORACLE_SID}_autobackup_${data}_CONTROL%F'; how to find it when restoring the autobackup using the command run{ set controlfile autobackup format for device type sbt to '%F'; allocate...
I've created a controlfile autobackup like it CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '${ORACLE_SID}_autobackup_${data}_CONTROL%F'; how to find it when restoring the autobackup using the command run{ set controlfile autobackup format for device type sbt to '%F'; allocate channel c1 device type sbt parms='SBT_LIBRARY=/u01/app/oci/lib/libopc.so, SBT_PARMS=(OPC_PFILE=/u01/app/oci/configfile.ora)'; restore controlfile from autobackup; } the command set controlfile autobackup format for device type sbt to '%F' does not work, it does not find anything. It only works when a pass the full file name like: run{ set controlfile autobackup format for device type sbt to 'testesolaire_autobackup_20250314_0931_CONTROL%F' allocate channel c1 device type sbt parms='SBT_LIBRARY=/u01/app/oci/lib/libopc.so, SBT_PARMS=(OPC_PFILE=/u01/app/oci/configfile.ora)'; restore controlfile from autobackup; } Is there any wildcards to seach any file? something like * (from linux) set controlfile autobackup format for device type sbt to '*%F'
Astora (841 rep)
Mar 14, 2025, 01:06 PM
Showing page 1 of 20 total questions