Thursday, August 18, 2022
Viewing Concurrent Request Output and Log Files in HTML/Browser
ORA-31626: job does not exist
Monday, August 1, 2022
How to drop other schema’s Database link using SYS user | Drop db_link from other user
Friday, April 8, 2022
Implications of latest Oracle WebLogic Server connection filters for Oracle EBS r12.2 customers
Wednesday, March 2, 2022
Here’s how a 22-year-old made $1 million by selling NFT selfies
Here’s how a 22-year-old made $1 million by selling NFT selfies
RMAN-06023: no backup or copy of datafile number found to restore
Hi,
Sometimes You can get “RMAN-06023: no backup or copy of datafile number found to restore ” error.
RMAN-06023: no backup or copy of datafile number found to restore
Details of error are as follows.
Details of error are as follows.
RMAN-06023: no backup or copy of datafile number found to restore Cause: A datafile, tablespace, or database restore could not proceed because no backup or copy of the indicated file was found. It may be the case that a backup or copy of this file exists but does not satisfy the criteria specified in the user's restore operands. Action: None - this is an informational message. See message 6026 for further details.This error is related with autobackups in FRA ( Flash Recovery Area ), There are backup files but they are belonged to different incarnation than the available backups current incarnation.
To solve this error, reset the db_recovery_file_dest and db_recovery_file_dest_size parameters, and RMAN will not look for these files in the FRA.
SQL> alter system reset db_recovery_file_dest_size scope=spfile sid='*'; System altered.
RMAN-03002: failure of restore command at 03/05/2015 18:03:28 RMAN-06026: some targets not found - aborting restore RMAN-06023: no backup or copy of datafile 4 found to restore RMAN-06023: no backup or copy of datafile 3 found to restore RMAN-06023: no backup or copy of datafile 2 found to restore
SQL> alter system reset db_recovery_file_dest scope=spfile sid='*'; System altered.Restart database as follows.
SQL> shutdown immediate; SQL> startup
Script to monitor RMAN progress
Question: I have a long running RMAN job, and I want a script to monitor the progress of RMAN execution. How do you monitor RMAN progress?
Answer: Oracle has several views that can monitor long running jobs, including v$session_longops and v$process with v$session. Also see RMAN backup scripts from Windows DOS scripts for RMAN automated backups and example of RMAN shell script.
sselect
sid,
start_time,
totalwork
sofar,
(sofar/totalwork) * 100 pct_done
from
v$session_longops
where
totalwork > sofar
AND
opname NOT LIKE '%aggregate%'
AND
opname like 'RMAN%';select
sid,
spid,
client_info,
event,
seconds_in_wait,
p1, p2, p3
from
v$process p,
v$session s
where
p.addr = s.paddr
and
client_info like 'rman channel=%';
Yousef Rifai has published this RMAN monitoring script, quite handy when you need to monitor the status of a long running RMAN backup job:
REM RMAN Progress
alter session set nls_date_format='dd/mm/yy hh24:mi:ss'
/
select SID, START_TIME,TOTALWORK, sofar, (sofar/totalwork) * 100 done,
sysdate + TIME_REMAINING/3600/24 end_at
from v$session_longops
where totalwork > sofar
AND opname NOT LIKE '%aggregate%'
AND opname like 'RMAN%'
/
REM RMAN wiats
set lines 120
column sid format 9999
column spid format 99999
column client_info format a25
column event format a30
column secs format 9999
SELECT SID, SPID, CLIENT_INFO, event, seconds_in_wait secs, p1, p2, p3
FROM V$PROCESS p, V$SESSION s
WHERE p.ADDR = s.PADDR
and CLIENT_INFO like 'rman channel=%'
/
This script by Osama Mustafa will monitor the progress of a running RMAN job:
select
to_char(start_time,'DD-MON-YY HH24:MI') "BACKUP STARTED",
sofar,
totalwork,
elapsed_seconds/60 "ELAPSE (Min)",
round(sofar/totalwork*100,2) "Complete%"
from
sys.v_$session_longops
where compnam = 'dbms_backup_restore';
ewallet p12 vs cwallet sso
The ewallet.p12 stores credentials and certificates protected by a user password, while cwallet.sso provides an obfuscated, random passw...