I am trying to restore oracle RAC RAMN backup to another RAC where only software is installed. I am able to restore control files some how on "+DATA/..."
I have some doubt about RAC setup.
Que 1) What are +DATA, +FRA.
Que 2) I am so curious about exploring +DATA, +FRA ,how can i see content of it in linux?
Que 3)How to change oracle "+DATA/CDBRAC/ARCHIVELOG/2016_02_20" archive destination to local storage e.g. "/u02/archive/2016_02_20" during recovery?
because i am not able to startup mount because of below failure
Oracle instance started
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 02/25/2016 15:25:45
ORA-00205: error in identifying control file, check alert log for more info
I am pretty sure this is because there are no +DATA/DBRAC/ARCHIVELOG/2016_02_20 path on +DATA.
similar problem i was able to resolve in oracle single machine recovery to other location by creating required directory.
+DATA and +FRA are ASM Disk Groups, you can find out more about them by querying the catalog view v$asm_diskgroup.
You can see the contents of ASM Disk Groups with the asmcmd utility, e.g.
$ amscmd
ASMCMD> cd DATA
ASMCMD> ls
YOURDB1/
YOURDB2/
ASMCMD> cd YOURDB1/
ASMCMD> ls
CONTROLFILE/
DATAFILE/
ONLINELOG/
PARAMETERFILE/
TEMPFILE/
spfileYOURDB1.ora
The error you got is related to the control file, you can check the value of the control_files parameter with the SQL*Plus command show parameter control_files.
Related
run {
SET nocfau;
ALLOCATE CHANNEL CH0 DEVICE TYPE DISK FORMAT '/nfs/datafile/%U_%T';
ALLOCATE CHANNEL CH1 DEVICE TYPE DISK FORMAT '/nfs/datafile/%U_%T';
ALLOCATE CHANNEL CH2 DEVICE TYPE DISK FORMAT '/nfs/datafile/%U_%T';
ALLOCATE CHANNEL CH3 DEVICE TYPE DISK FORMAT '/nfs/datafile/%U_%T';
BACKUP AS COPY INCREMENTAL LEVEL 0 TAG 'INCR_MERGE' DATABASE;
BACKUP ARCHIVELOG ALL FORMAT '/nfs/archivelogs/%U' NOT BACKED UP 1 TIMES;
RELEASE CHANNEL CH0;
RELEASE CHANNEL CH1;
RELEASE CHANNEL CH2;
RELEASE CHANNEL CH3;
}
The above is the rman script to run backup for Oracle RAC. I have NFS share that is mounted with following options: rw,user,hard,noac,vers=4
The NFS Server has the following export: NFSv4,rw,no_root_squash,no_all_squash,secure
The issue is that nothing gets written to the NFS share. I can create files, copy large files, but when RMAN is run nothing is copied to the NFS share.
The RMAN process runs till it's terminated.
When I do nfsiostat -a it shows 5 mandatory GETATTR requests.
Does it mean the Oracle datafiles are not being written in NFS share because the file attributes along with file uid/gid is not being successfully retrieved?
Update: tried running the backup on Oracle 19c RAC setup
Get the following RMAN error
RMAN-03009: failure of backup command on CH0 channel at 08/24/2020 16:59:11
ORA-19504: failed to create file "/home/oracle/nfs/ractest/1178998226/full/datafile/data_D-ORAMS19C_I-1178998226_TS-SYSAUX_FNO-3_rhv8m5mt_20200824"
ORA-17503: ksfdopn:11 Failed to open file /home/oracle/nfs/ractest/1178998226/full/datafile/data_D-ORAMS19C_I-1178998226_TS-SYSAUX_FNO-3_rhv8m5mt_20200824
ORA-17500: ODM err: No such file or directory
I ran the rman backup on a local disk they succeed and the datafiles have the group asmadmin. Do backups fail on NFS share becuase the datafile attributes/group information is not being copied to the NFS share?
The oracle user is not part of the asmadmin group.
Your NFS options are wrong for RMAN. For Oracle RAC, they should be as follows:
rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600
These options are required, per Oracle documentation. Also, the use of the "noac" option is specifically a problem for RMAN and should not be used.
It seems to be an issue with Oracle 12.1, Following the oracle support document and applying the patch(20720667) provided has resolved the issue. Here is the link
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
Oracle version 11.2.0.3.
I restored a dev DB from Prod, then i got the following error after partially restored the DB. I cannot open the DB even in mount.
ORA-01103: database name 'PROD_DB' in control file is not 'DEV_DB'
The restore errors are listed below, I thought I can try to open the DB, but failed from the above error.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/15/2015 15:43:14
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 1 with sequence 171836 and starting SCN of 6104951872 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 171835 and starting SCN of 6104939057 found to restore
How can i fix it?
After reading some online posts from this website regarding the same error, but the answers were all wrong. Here is how it worked.
I cannot save the control file to trace becuase i cannot open the DB in mount.
I cannot change the DB name with the same reason: cannot mount the DB
So i focused on the RMAN error and went to the Prod db and added a few more archive log backuks to ensure that all logs are saved on the backup device, NetBackup
I then changed the restore time about 20 minutes earlier to ensure i have archive logs there.
It worked like a charm.
Thanks