Back up Oracle db gives error - oracle

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;

Related

I lost the redologs files from my test database due to a disk error

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;

RMAN Duplicate Target Database ORA-19511: Error received from media manager layer

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: cannot start DB becuase DB name in control file came from restored source DB

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

oracle initialization or shutdown in progress error

While I am trying to connect to my Oracle 11g DB, I am getting error "ORA-01033: oracle initialization or shutdown in progress error". To resolve this I am following following steps:
SQL> connect / as sysdba
SQL> shutdown abort
SQL> startup nomount
SQL> alter database mount;
SQL> alter database open;
But when I am executing "alter database open" command, I am getting another error - ORA-00333: redo log read error block 15472 count 3189.
I found out that we can resetlogs to fix this so I tried
ALTER DATABASE OPEN RESETLOGS; -- it gives an error that we can use RESETLOGS only after incomplete database recovery.
I am seeking help to resolve this issue and to find out where I am going wrong.
Seems that your redo log file is corrupted. It's required to clear redo log.....
You can follow following steps for the same:
Assuming that your database is on mount state and login as a sys with sysdba privilege:
alter system set "_allow_resetlogs_corruption"=true scope=spfile;
shutdown immediate;
Again, login as a sys with sysdba privileges(i.e. sqlplus sys as sysdba)
startup mount;
alter database open resentlogs;
recover database until cancel; --Here, you need to press when it prompts to specify a log.
alter database open resetlogs;
startup;
alter system set "_allow_resetlogs_corruption"=false scope=spfile; --Reverting back and bouncing the db for applying the changes.
shutdown immedaite;
startup;
try this pls:
connect /no log
(((connect with SYS user))
shutdown immediate
((start service in windows services))
alter database open
recover database using(logfile)

How to view content of +DATA, +FRA in RAC environment Oracle

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.

Resources