I created rman backup level 0 on monday -> succeeded , level 1 on tuesday -> succeeded
,level 1 on wednessday -> failed
My doubts are
1)after the failed schedule which level (0/1/cumulative) of backup i have to take to make sure my database integrity ?
2)Shall I need to keep the failed schedule data or I can delete ?
Q1. For integrity checking using rman> validate database
Q2. Configure retention policy and have rman clean obsolete backup for you.
Related
I lost the redologs files from my test database due to a disk error, when trying to open the database it presents the error below:
ORA-01589: you must use RESETLOGS or NORESETLOGS option to open bd
When executing the command
alter database open resetlogs;
another error occurs:
ERROR on line 1:
ORA-01194: File 1 Needs More Recovery to Be Consistent
ORA-01110: data file 1: '/u02/DATA/GDQUA/datafile/system01.dbf'
Running:
recover database;
Give the error:
ORA-00283: Recovery session canceled due to errors
ORA-01610: Recovery must be performed using the BACKUP CONTROLFILE option
Can you guys help me with this?
Befor you open database with resetlogs,you need set "_ALLOW_RESETLOGS_CORRUPTION" parameter to ‘true’.
ALTER SYSTEM SET "_ALLOW_RESETLOGS_CORRUPTION"=TRUE SCOPE=SPFILE;
Here is my command to backup database :
RMAN> backup as backupset database plus archivelog;
Here are the errors I get :
Starting backup at 18-APR-17
ORACLE error from target database:
ORA-00258: manual archiving in NOARCHIVELOG mode must identify log
using channel ORA_DISK_1
specification does not match any archived log in the repository
backup cancelled because there are no files to backup
Finished backup at 18-APR-17
Starting backup at 18-APR-17
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 04/18/2017 11:59:03
RMAN-06149: cannot BACKUP DATABASE in NOARCHIVELOG mode
I'm very new to Oracle, so I couldn't solve this problem myself. Can you tell me how to fix this? Thanks.
You cannot backup the archivelogs because you are in 'NOARCHIVELOG' mode. When your database is in NOARCHIVELOG mode, the only way to back it up with RMAN is to shut it down and do a cold backup.
If you want to put your database into archive log mode, as DBA from a sqlplus command prompt:
shutdown immediate;
startup mount;
alter database archivelog;
alter database open;
I am trying to build a standby database in a Data Guard configuration using RMAN Duplicate Target Database For Standby Dorecover.
All the rman backupsets are there in Netbackup and I can see the inventory of backup pieces using the RMAN views.
However, the Duplicate Target Database command is failing with:
channel p4: starting datafile backup set restore
channel p4: restoring control file
channel p4: reading from backup piece c-2404308342-20160306-02
channel p4: ORA-19870: error while restoring backup piece c-2404308342-20160306-02
ORA-19507: failed to retrieve sequential file, handle="c-2404308342-20160306-02", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
Backup file <c-2404308342-20160306-02> not found in NetBackup catalog
Basically, the backup pieces are there, but RMAN/Netbackup is saying that they are not there.
Do you know why?
Thank you.
Please try validating the restore with a validate restore command. It should take some time but will notify you of any backup corruptions.
e.g. RMAN > restore database validate;
Thanks
Sabiha
I've been having this problem for more than 4 days, I've tried to fix it but it persists!
The content of the log file $ORACLE_HOME/log/diag/rdbms/<sid>/<SID>/trace/alert_SID.log is:
SQL > ALTER DATABASE MOUNT;
ORA-00210: cannot open the specified control file
ORA-00202: control file: '/intradayv3/position/control1/POSCTL1.ctl'
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
ORA-205 signalled during: ALTER DATABASE MOUNT...
Fri Apr 03 12:24:44 2015
Checker run found 1 new persistent data failures
check init.ora file(spfile.ora) and check ALL controlfiles listed here. There should be at least three of them. Then exclude the missiin one form the list and try to start the database. You should also check sizes and dates of all control files.
Your goal is to find at least one usable copy of controlfile to start the database.
create pfile='/tmp/init.ora' from spfile;
then edit this init.ora file.
startup database pfile='/tmp/init.ora' nomount;
alter database mount;
alter database open;
You have to sync init.ora with valid controlfiles you have on the disk.
Check their permissions, sizes, modification dates.
I have created a standby database on Windows machine with version 10.2.0.1
For the first time for the database to sync I have copied the archive from the primary database. But on the switch from the primary database. The archive log doesn't ship to the standby database.
SQL> recover standby database;
ORA-00279: change 1248007 generated at 07/29/2012 22:46:37 needed for thread 1
ORA-00289: suggestion : E:\ARCHIVE\ARC00043_0778845461.001
ORA-00280: change 1248007 for thread 1 is in sequence #43
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
ORA-00308: cannot open archived log 'E:\ARCHIVE\ARC00043_0778845461.001'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\STANDBY\SYSTEM01.DBF'
Earlier I took the cold backup to move the files.