RMAN - Last Successful backup
Dear Experts,
RDBMS - 11.1.0.7
I would like to know if anyone of you have experienced this issue.
Below is my backup report (queried from recovery catalog) and see DB1 database, I see Last successful Incremental backup date showing 01/01/0001 while the actual date was from a week back. However, Archivelog backup shows correct dates. Any thoughts?
NAME DBID DBBKP ARCBKP
DB1 2145674345 01/01/0001 00:00 09/10/2012 07:54
DB2 1634931935 01/01/0001 00:00 08/10/2012 19:09
DB3 901592423 01/01/0001 00:00 09/10/2012 07:54
select start_time,end_time,status from v$rman_status
order by 1
or
select
SESSION_KEY, INPUT_TYPE, STATUS,
to_char(START_TIME,'mm/dd/yy hh24:mi') start_time,
to_char(END_TIME,'mm/dd/yy hh24:mi') end_time,
round((end_time-start_time)*1440,2) "Minutes"
from V$RMAN_BACKUP_JOB_DETAILS
order by session_key desc;
Asif @ How to find RMAN backups are successful
Similar Messages
-
RMAN Last Completed Backup recorded in any table/view?
Hi Friends,
we are running RMAN backup of Full Database every day on 11g R2 Database.
I would like to know where can i query the last completed backup date/time (in any table/view...) so that i will put a script to query that table/view to verify that the backup is completed .
Regards,
DBHello;
if you are using a catalog you can try this :
select
db_name,
start_time,
end_time,
status,
time_taken_display,
output_bytes_display,
output_device_type,
session_key,
session_recid,
session_stamp
from rc_rman_backup_job_details where end_time > sysdate -1If you not using a catalog V$RMAN_BACKUP_JOB_DETAILS should provide similar information.
Best Regards
mseberg -
My iPhone 4s will not backup. I've tried repeatedly but keep getting the message "the last backup could not be completed". It's been nearly two months since the
last backup. However, my iPad2 is backing up perfectly. Any thoughts???????Try the following steps:
Plug your iPod Touch to your Mac/PC using USB cable.
Open iTunes software and choose “backup to this computer” .
Then you need to do a sysncing.
Go to iCloud (iPod Touch: Settings > iCloud) and delete all previous backups.
Then in iTunes, Turn on “backup to iCloud” again.
On your iOS device, now you are able to backup to iCloud. -
A script that will query for the last successful backup to tape across all protected datasources
I've searched trying to locate an existing script for this and come up empty so far but essentially what I am trying to do is have a script I can run that will query for the latest backup to tape that succeeded for each data source across all of the protection
groups then output that time/date for each to a file.
I'm extremely new to scripting so I am unsure of how to go about getting started with this so any help would be greatly appreciated!this should work
foreach ($DS in $DSList)
$RP=$DS | Get-RecoveryPoint | where {$_.Location -eq "Media"} | Sort-Object -Property Backuptime -Descending | select -First 1 | select *
$Tape=Get-DPMTape -DPMLibrary $Library | where {$_.ID -eq $Rp.RecoverySourceLocations.MediaMapList.MediaId}
$obj = New-Object -TypeName PSObject
$obj | Add-Member Noteproperty -Name DatasourceName -value $DS.Name
$obj | Add-Member Noteproperty -Name Sourcecomputer -value $DS.Computer
$obj | Add-Member Noteproperty -Name BackupTime -value $RP.BackupTime
#$obj | Add-Member Noteproperty -Name Location -value $Tape.Location.tostring()
#$obj | Add-Member Noteproperty -Name Medialabel -value $Tape.Medialabel
#$obj | Add-Member Noteproperty -Name Barcode -value $Tape.Barcode.Value
$Array+=$obj
Seidl Michael | http://www.techguy.at | twitter.com/techguyat |
facebook.com/techguyat |
youtube.com/techguyat -
DB12 last successful back up not available
Hi, i am having problem with backup in our quality system.
Orcale :10g
sap ecc6.0
we are taking online backup every monday, wednesday, thursday. DB12- last successful backup not available
overview of redo log files not yet backed up 300.
sapqas:orabqs 3> pwd
/oracle/BQS/102_64/dbs
sapqas:orabqs 4> ls
agent.lic initBQS.sap
dsmerror.log initBQS.sap.040107
hc_BQS.dat initBQS.sap.backup040407
init.ora initBQS.utl
initBQS.000 initBQS.utl.old
initBQS.001 initBQS2703.sap
initBQS.002 initdw.ora
initBQS.1.ora initoraBQS.bki.old
initBQS.2.ora initoraBQS.utl.old
initBQS.bki initorabqs.bki.old
initBQS.bki.cms initorabqs.utl.backup030407
initBQS.bki.old initorabqs.utl.old
initBQS.dba lkBQS
initBQS.ora orapwBQS
initBQS.ora.SAPINST-ORIG spfileBQS.ora
sapqas:orabqs 5> more initBQS.sap
@(#) $Id: //bas/700_REL/src/ccm/rsbr/initAIX.sap#5 $ SAP
SAP backup sample profile. #
The parameter syntax is the same as for init.ora parameters. #
Enclose parameter values which consist of more than one symbol in #
double quotes. #
After any symbol, parameter definition can be continued on the next #
line. #
A parameter value list should be enclosed in parentheses, the list #
items should be delimited by commas. #
There can be any number of white spaces (blanks, tabs and new lines) #
between symbols in parameter definition. #
backup mode [all | all_data | full | incr | sap_dir | ora_dir
| all_dir | <tablespace_name> | <file_id> | <file_id1>-<file_id2>
| <generic_path> | (<object_list>)]
default: all
backup_mode = all
restore mode [all | all_data | full | incr | incr_only | incr_full
| incr_all | <tablespace_name> | <file_id> | <file_id1>-<file_id2>
| <generic_path> | (<object_list>) | partial | non_db
redirection with '=' is not supported here - use option '-m' instead
default: all
restore_mode = all
backup type [offline | offline_force | offline_standby | offline_split
| offline_mirror | offline_stop | online | online_cons | online_split
| online_mirror
default: offline
backup_type = online_cons
#backup_type = offline_force
backup device type
[tape | tape_auto | tape_box | pipe | pipe_auto | pipe_box | disk
| disk_copy | disk_standby | stage | stage_copy | stage_standby
| util_file | util_file_online | rman_util | rman_disk | rman_stage
| rman_prep]
default: tape
backup_dev_type = tape
#backup_dev_type = util_file
#backup_dev_type = util_file
backup root directory [<path_name> | (<path_name_list>)]
default: $SAPDATA_HOME/sapbackup
backup_root_dir = /oracle/BQS/sapbackup
stage root directory [<path_name> | (<path_name_list>)]
default: value of the backup_root_dir parameter
stage_root_dir = /oracle/BQS/sapbackup
compression flag [no | yes | hardware | only]
default: no
compress = no
compress command
first $-character is replaced by the source file name
second $-character is replaced by the target file name
<target_file_name> = <source_file_name>.Z
for compress command the -c option must be set
recommended setting for brbackup -k only run:
"compress -b 12 -c $ > $"
no default
compress_cmd = "compress -c $ > $"
uncompress command
first $-character is replaced by the source file name
second $-character is replaced by the target file name
<source_file_name> = <target_file_name>.Z
for uncompress command the -c option must be set
no default
uncompress_cmd = "uncompress -c $ > $"
directory for compression [<path_name> | (<path_name_list>)]
default: value of the backup_root_dir parameter
compress_dir = /oracle/BQS/sapreorg
brarchive function [save | second_copy | double_save | save_delete
| second_copy_delete | double_save_delete | copy_save
| copy_delete_save | delete_saved | delete_copied]
default: save
archive_function = save_delete
directory for archive log copies to disk
default: first value of the backup_root_dir parameter
archive_copy_dir = /oracle/BQS/saparch
directory for archive log copies to stage
default: first value of the stage_root_dir parameter
archive_stage_dir = /oracle/BQS/sapbackup
delete archive logs from duplex destination [only | no | yes | check]
default: only
archive_dupl_del = only
new sapdata home directory for disk_copy | disk_standby
no default
new_db_home = /oracle/C11
stage sapdata home directory for stage_copy | stage_standby
default: value of the new_db_home parameter
stage_db_home = /oracle/C11
original sapdata home directory for split mirror disk backup
no default
orig_db_home = /oracle/C11
remote host name
no default
remote_host = <host_name>
remote user name
default: current operating system user
remote_user = <user_name>
tape copy command [cpio | cpio_gnu | dd | dd_gnu | rman | rman_gnu
rman_dd | rman_dd_gnu]
default: cpio
tape_copy_cmd = dd
disk copy command [copy | copy_gnu | dd | dd_gnu | rman | rman_gnu]
default: copy
disk_copy_cmd = copy
stage copy command [rcp | scp | ftp]
default: rcp
stage_copy_cmd = rcp
pipe copy command [rsh | ssh]
default: rsh
pipe_copy_cmd = rsh
flags for cpio output command
default: -ovB
cpio_flags = -ovB
flags for cpio input command
default: -iuvB
cpio_in_flags = -iuvB
flags for cpio command for copy of directories to disk
default: -pdcu
use flags -pdu for gnu tools
cpio_disk_flags = -pdcu
flags for dd output command
default: "obs=16k"
recommended setting:
Unix: "obs=nk bs=nk", example: "obs=64k bs=64k"
Windows: "bs=nk", example: "bs=64k"
dd_flags = "obs=64k bs=64k"
flags for dd input command
default: "ibs=16k"
recommended setting:
Unix: "ibs=nk bs=nk", example: "ibs=64k bs=64k"
Windows: "bs=nk", example: "bs=64k"
dd_in_flags = "ibs=64k bs=64k"
number of members in RMAN save sets [ 1 | 2 | 3 | 4 | tsp | all ]
default: 1
saveset_members = 1
additional parameters for RMAN
rman_channels and rman_filesperset are only used when rman_util,
rman_disk or rman_stage
rman_channels defines the number of parallel sbt channel allocations
rman_filesperset = 0 means:
one file per save set - for non-incremental backups
all files in one save set - for incremental backups
the others have the same meaning as for native RMAN
rman_channels = 1
rman_filesperset = 0
rman_maxpiecesize = 0 # in KB - former name rman_kbytes
rman_rate = 0 # in KB - former name rman_readrate
rman_maxopenfiles = 0
rman_maxsetsize = 0 # in KB - former name rman_setsize
additional parameters for RMAN version 8.1
the parameters have the same meaning as for native RMAN
rman_diskratio = 0 # deprecated in Oracle 10g
rman_pool = 0
rman_copies = 0 | 1 | 2 | 3 | 4 # former name rman_duplex
rman_proxy = no | yes | only
special parameters for an external backup library, example:
rman_parms = "BLKSIZE=65536 ENV=(BACKUP_SERVER=HOSTNAME)"
rman_send = "'<command>'"
rman_send = ("channel sbt_1 '<command1>' parms='<parameters1>'",
"channel sbt_2 '<command2>' parms='<parameters2>'")
remote copy-out command (backup_dev_type = pipe)
$-character is replaced by current device address
no default
in oracle/sid/sapbackup folder i found one file bdxwbpsz.ant that was created on May 7th 2008( Wednesday)
plz check this:
sapqas:orabqs 21> more bdxwbpsz.ant
BR0051I BRBACKUP 7.00 (24)
BR0055I Start of database backup: bdxwbpsz.ant 2008-05-07 01.04.17
BR0484I BRBACKUP log file: /oracle/BQS/sapbackup/bdxwbpsz.ant
BR0477I Oracle pfile /oracle/BQS/102_64/dbs/initBQS.ora created from spfile /ora
cle/BQS/102_64/dbs/spfileBQS.ora
BR0280I BRBACKUP time stamp: 2008-05-07 01.04.18
BR0319I Control file copy created: /oracle/BQS/sapbackup/cntrlBQS.dbf 46383104
BR0101I Parameters
Name Value
oracle_sid BQS
oracle_home /oracle/BQS/102_64
oracle_profile /oracle/BQS/102_64/dbs/initBQS.ora
sapdata_home /oracle/BQS
sap_profile /oracle/BQS/102_64/dbs/initBQS.sap
backup_mode ALL
backup_type online
backup_dev_type tape
compress no
tape_copy_cmd dd
cpio_flags -ovB
cpio_in_flags -iuvB
dd_flags obs=64k bs=64k
dd_in_flags ibs=64k bs=64k
rewind tctl -f $ rewind
rewind_offline tctl -f $ offline
tape_size 307200.000 MB
tape_address /dev/rmt0.1
tape_address_rew /dev/rmt0
volume_backup BQSB29
expir_period 0
tape_use_count 100
exec_parallel 0
system_info bqsadm/orabqs sapqas AIX 3 5 00C0799E4C00
oracle_info BQS 10.2.0.2.0 8192 2370 485914644 sapqas WE8DEC
UTF8
sap_info 700 SAPSR3 0002LK0003BQS0011V18391775040013NetWea
ver_ORA
make_info rs6000_64 OCI_102 Mar 3 2007
command_line brbackup -u / -jid ALLOG20080507010416 -c force -
t online -m all -p initBQS.sap -v BQSB29 -a -c force -p initBQS.sap -sd
BR0116I ARCHIVE LOG LIST before backup for database instance BQS
Parameter Value
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /oracle/BQS/oraarch/BQSarch
Archive format %t_%s_%r.dbf
Oldest online log sequence 2367
Next log sequence to archive 2370
bdxwbpsz.ant (6%)
plz suggest how can I take online backup and redo log backup.Hi Shrinivas,
Are you taking backup from the local tape device or from 3rd party software.
I cannot clearly what is the exact problem, Your saying either Db12 the status is mot shown then asking for how to take the backup.
If a backup device is properly configured in the system, then you can take online and offline backup by scheduling in the DB13 tcode.
Pls state the exact problems so that it is easy to provide the solution.
Regards,
Maheswaran -
last back up: never . i am connected to a wifi network and phone also plugged in yet my icloud never backs up , i have also deleted previous backup for all applications(although there was never any successful backup) in " manage storage" still no headway
rucchyy wrote:
my Internet is working fine . i also turned the iCloud drive off, could this be the reason I can't back up?
No.
Have you done:
Restart / Reset
http://support.apple.com/en-us/HT201559 -
Rman restore from last week backup
Hi guys
i need to restore last week rman backup from .. we are not using catalog database.
i need to restore it on same machine with diff mount point ..
i know i can use tag option of restore specifically last week backup but its production restore so thought if anybody can give me list of steps i need to follow .. anybody who has done this before.
do i have to fire resetlogs at the end as its incomplete recovery .. i need last saturday backup .. don't want monday backup on top of it.
please help me in this.
RegardsYou have to ensure that your controlfile, redo log file and database file locations are different from your production database.
Ensure that your instance parameter file specifies a different location for control_files
Use db_file_name_convert -- however, I prefer to explicitly name a new location for each datafile, in case your database files are spread across multiple directories and you miss one or more in db_file_name_convert. (you don't want RMAN to restore datafiles from the backup to the current locations and overwrite your production database files !)
Hemant K Chitale
http://hemantoracledba.blogspot.com
Edited by: Hemant K Chitale on Apr 22, 2010 6:06 PM -
What to do if there is abrupt termination of RMAN during a backup session
Hi All,
I am trying to automate the Level 0 and Level 1 backups which we ought to take. Following the is the RMAN related part of it for L1 backup:
CONFIGURE CONTROLFILE AUTOBACKUP ON;"
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '${BKP_LOCATION}/${LType}_%F';"
run {"
allocate channel c1 type disk;"
backup"
incremental level 1 cumulative tag = $BTAG"
format '${BKP_LOCATION}/${LType}_%d_set%s_piece%p_%T_%U.bkp'"
(database include current controlfile tag $CTAG) ;"
sql 'alter system archive log current';"
sql 'alter system archive log current';"
backup archivelog from sequence ${CSEQ} tag $ATAG"
format '${BKP_LOCATION}/${LType}_Arch_%d_set%s_piece%p_%T_%U.bkp';"
release channel c1;"
exit;"
In the above snippet, the variables are substituted for within a shell script and then put into a command file for RMAN. I am a novice in the backup and recovery. I got above piece of code from someone working on RMAN and built my automation logic around it.
The script works fine and I am trying to build to script level recovery feature around it. My question is:
-- What happens if I invoke the script, the backup session starts and then there is abrupt termination of the RMAN session either because of losing the db connection or receiving an interrupt signal or a kill signal or some other weird reason.
-- What if I re-invoke my script? Will it start from the point where it was stopped earlier or would it start from the point where we had last successful Level 1 backup completed?
Thanks in Advance.Hi user781131,
What happens if I invoke the script, the backup session starts and then there is abrupt termination of the RMAN session either because of losing the db
connection or receiving an interrupt signal or a kill signal or some other weird reason?The backup set which rman was creating is not commited due to the abnormal termination but all succesfull backup sets can be used.
What if I re-invoke my script? Will it start from the point where it was stopped earlier or would it start from the point where we had last successful Level 1 backup
completed?In your backup script you do not use the < NOT BACKED UP SINCE TIME > clause so it will again do a level 1 backup off all datafiles.
See:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#i1017236
This option is a convenient way to back up files that were not backed up during a previous failed backup. For example, you back up the database, but the instance fails halfway through. You can restart the backup with the NOT BACKED UP SINCE TIME clause and avoid backing up those files that you already backed up. If AS BACKUPSET is set, then this feature is only useful if RMAN generates multiple backup sets during the backup.
Regards,
Tycho
Edited by: tychos on 28-jan-2010 15:21 -
If I need a full rman restore which backups will it use?
Hello,
I have a database 11.1.0.7 with 8TB. Block change tracking is enabled.
At the weekend I take level 0 backup and during the week level 1 cumulative.
For some weeks the level 0 backup is failing, so I only have level 1 cumulative backups taken every week day with a 4 weeks old level 0 backup.
If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
I ask this because grid crontrol tells me that the recent level 1 backups input size is smaller than last week level 1 backups and in between I dont have any level 0 sucessfull backups. Shouldn't the input size of level 1 cumulative increase until the next level 0 backup ?
The grid reports:
Backup Name Status Start Time Time Taken Type Output Devices Input Size Output Size Output Rate (Per Sec)
rman_df_lv1c COMPLETED 25/Jul/2011 21H00m WEST 02:33:29 DB INCR SBT_TAPE *1.32T* 289.02G 32.14M
rman_df_lv0 FAILED 23/Jul/2011 02H01m WEST DB INCR SBT_TAPE 8.78T 8.06T
rman_df_lv1c COMPLETED 21/Jul/2011 21H00m WEST 04:39:38 DB INCR SBT_TAPE *3.46T* 550.82G 33.62M
rman_df_lv1c COMPLETED 20/Jul/2011 21H00m WEST 04:47:36 DB INCR SBT_TAPE *3.37T* 524.36G 31.12M
rman_df_lv1c COMPLETED 19/Jul/2011 21H00m WEST 04:06:09 DB INCR SBT_TAPE *3.15T* 490.75G 34.03M
rman_df_lv1c COMPLETED 18/Jul/2011 21H00m WEST 03:40:24 DB INCR SBT_TAPE *2.49T* 410.88G 31.82M
rman_df_lv0 FAILED 16/Jul/2011 22H16m WEST DB INCR SBT_TAPE 6.27T 5.69T
rman_df_lv1c FAILED 14/Jul/2011 21H00m WEST 06:13:40 DB INCR SBT_TAPE 4.38T 714.30G 32.62M
rman_df_lv1c FAILED 13/Jul/2011 21H01m WEST 04:40:45 DB INCR SBT_TAPE 3.25T 542.98G 33.01M
rman_df_lv1c COMPLETED 12/Jul/2011 21H00m WEST 07:15:54 DB INCR SBT_TAPE 4.74T 847.93G 33.20M
rman_df_lv1c COMPLETED 11/Jul/2011 21H00m WEST 07:26:40 DB INCR SBT_TAPE 3.78T 766.40G 29.28M
rman_df_lv0 FAILED 9/Jul/2011 02H32m WEST 04:30:44 DB INCR SBT_TAPE 749.89G 716.02G 45.14M
rman_df_lv1c FAILED 7/Jul/2011 21H01m WEST 04:49:24 DB INCR SBT_TAPE 2.16T 515.90G 30.42M
rman_df_lv1c FAILED 6/Jul/2011 21H00m WEST 01:26:06 DB INCR SBT_TAPE 745.83G 165.48G 32.80M
rman_df_lv1c FAILED 5/Jul/2011 21H01m WEST 00:05:48 DB INCR SBT_TAPE 58.56G 7.56G 22.24M
rman_df_lv1c FAILED 4/Jul/2011 21H00m WEST 01:55:03 DB INCR SBT_TAPE 422.40G 79.55G 11.80M
rman_df_lv0 FAILED 3/Jul/2011 16H32m WEST 30:22:04 DB INCR SBT_TAPE 4.53T 4.21T 40.40M>
If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
From http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmvalid.htm
Validating Backups Before Restoring Them
You can run RESTORE ... VALIDATE to test whether RMAN can restore a specific file or set of files from a backup. RMAN chooses which backups to use.
The database must be mounted or open for this command. You do not have to take datafiles offline when validating the restore of datafiles, because validation of backups of the datafiles only reads the backups and does not affect the production datafiles.
When validating files on disk or tape, RMAN reads all blocks in the backup piece or image copy. RMAN also validates offsite backups. The validation is identical to a real restore operation except that RMAN does not write output files.
You can monitor what RESTORE VALIDATE does.
Make precautions, so you do not damage the production DB!!!
Iordan Iotzov
http://iiotzov.wordpress.com/ -
Restore from OSB. RMAN-06024: no backup or copy of the control file found
I backed up controlfile for standby on production server to OSB media:
-bash-3.00$ rman target / catalog rman/rman@emgc
Recovery Manager: Release 10.2.0.5.0 - Production on Tue Jan 25 15:15:33 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: EMGC (DBID=1838014073)
connected to recovery catalog database
RMAN>
RMAN> CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
RUN
ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
BACKUP CURRENT CONTROLFILE FOR STANDBY tag 'stb_ctl';
RELEASE CHANNEL ch1;
CONFIGURE DEVICE TYPE 'SBT_TAPE' CLEAR;
new RMAN configuration parameters:
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete
RMAN> 2> 3> 4> 5> 6>
allocated channel: ch1
channel ch1: sid=1085 devtype=SBT_TAPE
channel ch1: Oracle Secure Backup
Starting backup at 25-JAN-11
channel ch1: starting compressed full datafile backupset
channel ch1: specifying datafile(s) in backupset
including standby control file in backupset
channel ch1: starting piece 1 at 25-JAN-11
channel ch1: finished piece 1 at 25-JAN-11
piece handle=1em30ngu_1_1 tag=STB_CTL comment=API Version 2.0,MMS Version 10.3.0.2
channel ch1: backup set complete, elapsed time: 00:00:27
Finished backup at 25-JAN-11
released channel: ch1
RMAN> list backup of controlfile;
old RMAN configuration parameters:
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
RMAN configuration parameters are successfully reset to default value
starting full resync of recovery catalog
full resync complete
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
1479 Full 512.00K SBT_TAPE 00:00:18 25-JAN-11
BP Key: 1480 Status: AVAILABLE Compressed: YES Tag: STB_CTL
Handle: 1em30ngu_1_1 Media: mf_rman-000003
Standby Control File Included: Ckp SCN: 33567224 Ckp time: 25-JAN-11
RMAN>
On standby server I try to restore this control file but there is some trouble with restore... By the way I can delete that backup piece...
-bash-3.00$ rman target / catalog rman/rman@emgc
Recovery Manager: Release 10.2.0.5.0 - Production on Tue Jan 25 15:34:32 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: emgc (not mounted)
connected to recovery catalog database
RMAN> set DBID=1838014073;
executing command: SET DBID
database name is "EMGC" and DBID is 1838014073
RMAN> RUN
ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
crosscheck backup of controlfile;
2> 3> 4> 5>
allocated channel: ch1
channel ch1: sid=1093 devtype=SBT_TAPE
channel ch1: Oracle Secure Backup
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=1em30ngu_1_1 recid=40 stamp=741367328
Crosschecked 1 objects
released channel: ch1
RMAN> list backup of controlfile;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
1479 Full 512.00K SBT_TAPE 00:00:18 25-JAN-11
BP Key: 1480 Status: AVAILABLE Compressed: YES Tag: STB_CTL
Handle: 1em30ngu_1_1 Media: mf_rman-000003
Standby Control File Included: Ckp SCN: 33567224 Ckp time: 25-JAN-11
RMAN> RUN
ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
RESTORE CONTROLFILE FROM TAG 'STB_CTL';
2> 3> 4> 5>
allocated channel: ch1
channel ch1: sid=1093 devtype=SBT_TAPE
channel ch1: Oracle Secure Backup
Starting restore at 25-JAN-11
released channel: ch1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 01/25/2011 15:35:20
RMAN-06026: some targets not found - aborting restore
RMAN-06024: no backup or copy of the control file found to restore
RMAN> RUN
ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
delete noprompt backup of controlfile;
2> 3> 4> 5>
allocated channel: ch1
channel ch1: sid=1093 devtype=SBT_TAPE
channel ch1: Oracle Secure Backup
List of Backup Pieces
BP Key BS Key Pc# Cp# Status Device Type Piece Name
1480 1479 1 1 AVAILABLE SBT_TAPE 1em30ngu_1_1
deleted backup piece
backup piece handle=1em30ngu_1_1 recid=40 stamp=741367328
Deleted 1 objects
released channel: ch1
RMAN>You cannot specify a tag for a standby control file.
read here
http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmstand.htm#1002594
Edited by: Adigozalov Gurban on Jan 25, 2011 2:14 PM -
RMAN-06023: no backup or copy of datafile 5 found to restore ??
Hi,
Am on
Apps 12.0.4
DB 10gR2
Am trying to recover a datafile: got below error ?
Hex dump of (file 5, block 11701) in trace file /u01/app/oracle/admin/ora10g/udump/ora10g_ora_6482.trc
Corrupt block relative dba: 0x01402db5 (file 5, block 11701)
Bad check value found during backing up datafile
Data in bad block:
type: 0 format: 2 rdba: 0x01402db5
last change scn: 0×0000.00000000 seq: 0×1 flg: 0×05
spare1: 0×0 spare2: 0×0 spare3: 0×0
consistency value in tail: 0×00000001
check value in block header: 0x8bf5
computed block checksum: 0×2
Reread of blocknum=11701, file=/u01/app/oracle/oradata/ora10g/example01.dbf. found same corrupt data
RMAN> blockrecover datafile 5 block 11701;
Starting blockrecover at 23-AUG-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=139 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of blockrecover command at 10/23/2011 19:40:13
RMAN-06026: some targets not found – aborting restore
RMAN-06023: no backup or copy of datafile 5 found to restore
i dont have a backup of this datafile
Thanks
Edited by: NewAppsDBA on Oct 24, 2011 6:23 AMRMAN-03002: failure of blockrecover command at 10/23/2011 19:40:13
RMAN-06026: some targets not found – aborting restore
RMAN-06023: no backup or copy of datafile 5 found to restoreSearch MOS for those errors and go through the docs.
Thanks,
Hussein -
i do not really understand the 'INCREMENTAL' option of "RMAN REOPRT NEED BACKUP" command.
like the one below:
RMAN> REPORT NEED BACKUP INCREMENTAL 3 DATABASE;
Whats the significance of the word 'INCREMENTAL' .
I need help please.
thank youYes, of course.
An incremental backup is a partial backup. It doesn't contain the entire database, just those bits of the database which have changed since the last appropriate backup.
That's why you can't just restore an incremental backup and open your database: the backup you've just restored only has some of the database blocks in it.
Imagine Monday's backup happens to capture blocks 5, 10, 15, 20, 25... and so on.
Tuesday's backup captures blocks 2, 4, 6, 8, 10, 12.. and so on
Wednesdays captures blocks 1, 3, 7, 9, 11 and so on.
On Thursday, you lose File 1. To restore it, you need blocks 1, 2, 3, 4, 5, 6 and 7. Getting all those blocks means loading Monday's tape and restoring block 5; loading Tuesday's tape and restoring blocks 2, 4 and 6; and finally loading Wednesday's tape and restoring blocks 1, 3 and 7.
You get everything back, but it takes you three goes and lots of tape loading.
Alternatively, On Thursday morning I could do a new complete backup (that therefore includes blocks 1, 2, 3, 4, 5, 6, 7, 8, 9... and so on). When I lose File 1 on Thursday afternoon, I simply have to restore blocks 1, 2, 3, 4, 5, 6 and 7 from the one Thursday morning tape.
The command you first asked about understands that the incremental restore process is a slow way of doing things and is suggesting to you that anything listed could do with a nice, new complete backup so that you would be able to restore from that new backup rather than the three old ones. -
Hi,
in10g, I stop my DB and make a cold backup of my database (it's then a consistent backup).
Can RMAN use this backup ? How ?
Thank you.Yes, you can use a Cold Backup that was not taken by RMAN -- provided that you have the controlfile included in the backup. In RMAN you'd have to CATALOG each of the files in the backup as DATAFILE COPYies before RMAN can be "aware" of them.
If the backup was taken with an OS command, you simple use the revers e to restore it. If your backup did not include the Online Redo Logs, you'd need to use
STARTUP MOUNT
ALTER DATABASE RECOVER
CANCEL
ALTER DATABASE OPEN RESETLOGSin SQLPlus.
If you want to Apply ArchiveLogs generated after the backup, then don't open resetlogs !
continue with
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCELand CANCEL when you have applied the last available archivelog, after which you will
ALTER DATABASE OPEN RESETLOGSHemant K Chitale
http://hemantoracledba.blogspot.com
Edited by: Hemant K Chitale on Aug 30, 2009 11:31 PM -
Rman Recovery using backup created using dbconsole
Thanks for taking my questions. First, I see there is another person asking about rman recovery but I am hoping mine is not identical.
BACKGROUND
Archiving and flashback is on.
Database is 11g.
Full on-line database backup is done using dbconsole (oem) and includes control, spfile and archive logs.
RECOVERY
I am testing my recovery to a new serve.
I installed oracle
Restored a backupset from one backup to the new servers flashbackup area.
Recovered the spfile ok
Recovered the control file ok
Found last seq number ok
Restore database ok
RECOVER DATABASE UNTIL SEQUENCE - NOT OK
Error=DATAFILE 1 MUST BE RESTORED FROM BACKUP OLDER THAN SCN
QUESTIONS
Where did I go wrong?
Could it be my rman backup didn't backup all necessary archive logs?
How do I fix this and can I fix it using dbconsole?
Also, is it still possible to fix the test server without loading any new files?
Thanks!
KathieHello,
To answer your questions, it looks like your backup is out of sync with SCN for datafiles with your Oracle 11g database.
What you need to do is first check the low SCN and current SCN for your database to that in your RMAN backup files.
You can check backups in RMAN command line with
RMAN> list backup;
using target database control file instead of recovery catalog
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
1 349.08M DISK 00:01:14 24-JAN-08
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20080124T180119
Piece Name: C:\ORACLE\FLASHBACK\ORCL\BACKUPSET\2008_01_24\O1_MF_ANNNN_TA
G20080124T180119_3SLJQOFO_.BKP
List of Archived Logs in backup set 1
Thrd Seq Low SCN Low Time Next SCN Next Time
1 1 1030802 04-JAN-08 1053767 05-JAN-08
1 2 1053767 05-JAN-08 1104812 06-JAN-08
Then open another prompt window and SQL*PLUS session as sysdba privileged account:
SQL> select name, current_scn from v$database;
NAME CURRENT_SCN
ORCL 4089528
You need to make sure that you are trying to restore database with RMAN with a backup for the SCN numbers that are older than the current database SCN in database or Oracle will complain.
Enterprise Manager dbconsole will work but nothing beats the power of a command line.
Use the automated repair options for the Oracle 11g Database Repair advisors.
1. Connect to RMAN
rman target=/
RMAN> list failure;
RMAN> repair failure preview;
RMAN> repair failure;
For more details, Arup Nanda has a good overview of RMAN with Oracle 11g:
http://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/11g-rman.html
Hope this helps you out.
-Ben
Cheers,
Ben Prusinski
http://oracle-magician.blogspot.com/ -
Since installing:
a) OS X Yosemite Recovery update v.1; b) OS X Update v.10.10.3 & c) iTunes v.12.1.2 on 10/04/15I have been getting this message.
"Back up Failed - There is not enough space on Time Machine Backup"
The last successful back-up was on the 10/04/15 presumably just prior to these new updates.
Any suggestions?Time Machine automatically deletes old snapshots to make room for new ones, but it won't delete the last previous snapshot of any disk.
Are you storing any other data on the backup volume, or have you ever backed up another disk or computer to it that you no longer have? If the answer to both these questions in "no," then there isn't enough space on the volume for all the data you want to back up.
If you are storing other data, or if you have backups of a volume you no longer need, you should move or delete that data to make room for more. Alternatively, put the device aside and start a new backup on another storage device. When you're sure you'll no longer need the data on the first device, erase it and start over.
Maybe you are looking for
-
Cannot Connect to Azure SQL Database in Visual Studio 2013
Beyond Frustrated here. I am trying to connect to an Azure SQL database - it has been created, has tables etc. I am trying to create a new Data Connection from within Visual Studio 2013, latest release for VS and Azure. I continue to receive the foll
-
I had a Note 3 and had 220+ contacts. While I had it I performed a factory reset several times and always got all of my contacts restored. My phone was upgraded to Note 4 at my job yesterday. I completed a factory reset on My Note 3, turned it in
-
Hi, I just installed Arch (wauw it boots fast ) and everything is working (even my wireless with Ndiswrapper) except my Xorg. I dit: pacman -S xorg xorgconfig pacman -S hwd hwd -x mv xorg.conf.hwd xorg.conf (in /etc/X11) and when I try Xorg-configure
-
SharePoint Designer 2010 approval workflow error revisited
Karen K started a question around: Errors were found when compiling the workflow. The workflow files were saved but cannot be run.And when I click on the "Advanced" button in the error message, I see this detailed error: (0, 0) Activity 'ID4' validat
-
Hi, I need to make a copy of a documentary that is on a DVD. It is not a commercial DVD or region protected. I am hoping to be able to make a copy via FCP. I have been able to open the files on the DVD via Streamclip and have the whole sequence in th