RMAN level 0 and level 1/database tablespace relations
If I take an incremental backup of level 0 of an entire database and then take a level 0 of an individual tablespace, an incremental backup of level 1 of this tablespace is refers to additional membership 0 the entire database or storage space? If I change the order of the level 0 backup, does it change the reference level of 1 storage space?I assumed that what I ask,'s done it level 1 differential reference the last level 0 regardless of whether it is the entire database or just the tablespace or a level 1 still reference it's own level 0?
Also, if I take a level 0 of the data base Sunday night, then a level 1 of the database every night after that, as well as several levels 1 to a tablespace throughout each day, basic level of data Tuesday evening 1 will include all levels of tablespace to Monday 1?
I can't find documentation oracle on these relationships.
'Database' and 'Space' are logical groupings for our comfort.
RMAN follows the data file level backups. Therefore, a backup of level 0 of a data file or a group of data files (storage space is a group of data files) using the most recent backup of this data file / group replacing a previous level 1 of the same data file backup / group.
You could take the backups at level 0 of the database weekly and select level or level 1 backups of some files of data every day (e.g. datafiles 1 to 10 on Monday, 11 to 20 on Tuesday...) and Oracle will follow backups of data files.
When you perform a BACKUP or a RESTORE to a tablespace, data files are backed up at different times, Oracle restores the correct image to each data file and apply the recovery using the ArchiveLogs.
(Don't forget: even if you have a tablespace of only 2 data files and you backups tablespace, 2 data files can have different start times for their backups if you have 1 by backupset datafile!)
Hemant K Collette
Tags: Database
Similar Questions
-
RMAN LEVEL BACKUP INCREMENTAL 0 AND 1 OF CUMULATIVE LEVEL
Dear friends
This is Eliza, I need some clarification, your suggestion will help me more...
Currently I am working in RMAN backup and restore, recovery and I need to take the extra SIZE 0 AND LEVEL 1 CUMULATIVE
I know something about what level rman incremental 0 and level 1 cumulative can do is, first I have to take the level 0 and then level 1 respectively.
As follows
SUNDAY: LEVEL 0 CUMULATIVE
MONDAY - SATURDAY: LEVEL 1 CUMULATIVE
SUNDAY: LEVEL 0 CUMULATIVE (repetition of this cycle)
MY QUESTION IS
Can I use after an order to take INCREMENTIELLE LEVEL 1 CUMULATIVE backup of,
CUMULATIVE DATABASE INCREMENTAL LEVEL 1; # has changed since the level 0 blocks
But, if I want to take CUMULATIVE INCREMENTAL level 0 BACKUP, that is me I want to use the following,
INCREMENTAL LEVEL 0 BACKUP CUMULATIVE BASIS;
(GOLD)
DATABASE INCREMENTAL LEVEL 0 BACKUP;
(GOLD)
Suggest me your valuable idea. Thanks in advance.
Hello
I think that this CUMULATIVE or incremental level 0 backup specification makes no sense so INCREMENTAL level 0 BACKUP database; = INCREMENTAL CUMULATIVE 0 DATA LEVEL;
-
Backup and restore database, tablespace
My oracle's 10g.
I'm new to rman utility. When I tested the backup of database and a tablespace before making certain changes made to the data (e.g. Add folders to other tables or change or delete some records) and did surgery recovery and the restoration of the database and a tablespace after these changes. But I found that these changes have remained there.
My directions of test:
SQL > shutdown immediate;
SQL > bootable media.
RMAN > backup database;
RMAN > backup all archivelog entry delete;
SQL > alter database open;
SQL > alter tablespace ABC offline immediate.
RMAN > backup tablespace ABC include current controlfile;
SQL > alter tablespace ABC Online.
= SOME CHANGES TO THE DATABASE BY INSERTING/UPDATING / DELETING =.
SQL > shutdown immediate;
SQL > bootable media.
RMAN > restore database;
RMAN > restore database;
SQL > alter database open;
SQL > alter tablespace ABC offline immediate.
RMAN > restore tablespace ABC;
RMAN > recover tablespace ABC;
SQL > alter tablespace ABC Online.
= CHANGES OF DATA SHOULD BE LOST. BUT NOW THAT ILS IS REST. WHY? ====
Also, what is the difference between the database backup/restore/recovery and backup/restore/recovery tablespace? Or when is the time to use them?
More practical is if I made a backup of database, at 10.00 and 3 backups tablespace ABC at 10:00 12:00, 14:00.
Today at 20:00, I have 2 tasks:
1. restore tablespace ABC 12:00 the status and create a new tablespace DEF, which is the same in ABC 14:00;
2 put all the data of the ABC from 10:00 tablespace to another oracle newly installed in a newly installed machine.
Can someone tell me how I can finish these tasks? Thank you very much!Hello
Sorry for not being clear enough.
This means that I can only recover data to the tablespace recovery state?
Restore/recovery tablespace controls may lead to a full recovery.
but I want only to restore a space at the beginning everything while keeping others more recent. What do you suggest me?
If you want to make a point in time recovery for a subset of tablespaces, you must run a TSPITR.
To do this, follow the link in my previous post.What you said really works. These changes losts. But I encounter another problem when retried the delivery and received a msg "RMAN-20207: until THE MOMENT or.
RECOVERY WINDOW is before the RESETLOGS time' to the command "restore." What should I do now?By the
, you have created a new incarnation of the database.
If you want to restore to a point in time of the resetlogs before you change the incarnation (check first with: INCARNATION of the rman LIST).
To restore an incarnation previous use:
< reset="" database="" to="" incarnation...;="">
http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14194/rcmsynta050.htm#i85086Kind regards
Tycho
-
How can I restore and recover the database to a different server using RMAN?
Hello Friend:
How can I restore and recover the database to a different server using RMAN? I want to implement an enviroument which has a different enviroument and different directories.
That's the two servers. different stored different on each server and a single link, a table library where backup set.
I can only restore and recover the database of the Rman command. Could you give me a demo?
Thank youHow can I restore and recover the database to a different server using RMAN? I want to implement an enviroument which has a different enviroument and different directories.
That's the two servers. different stored different on each server and a single link, a table library where backup set.
I can only restore and recover the database of the Rman command. Could you give me a demo?
Check this box
* How to restore Rman backups on a different node when the Directory Structures are different [ID 419137.1] *. -
Problem with the archive log when you use RMAN for backup and restore (11g 2)
Hello world
Please help me solve this problem.
I'm just beginner in Oracle Database (11 g 2). Today, I had a problem, I tried to back up and restore my db by RMAN. I delete all the files in /u01/app/oracle/oradata/orcl / * , then I restore them easily, but the point is I have a table, I can restore Hungarian, but cannot restore anything ranks in it (something wrong with step restore database). I'll tell the detail below.
-First, I create a 'Day' with command table create table hr.day (varchar (20)) day. Then I backup complete by this:run{
allocate channel bkp device type DISK FORMAT '/u01/backup/DB_FULL_%d_%T_s%s_p%p' ;
backup as compressed backupset incremental level 0 tag 'DB_FULL' database include current controlfile;
backup as compressed backupset tag 'ARCL_BKP_FULL' archivelog all delete input;
crosscheck archivelog all;
crosscheck backup;
delete noprompt obsolete;
release channel bkp;
}
D ' other hand, I have insert 'Monday' to table. then do an incremental backup by this:run{
allocate channel bkp device type DISK FORMAT '/u01/backup/DB_INC_%d_%T_s%s_p%p' ;
backup as compressed backupset incremental level 1 tag 'DB_INC' database include current controlfile;
backup as compressed backupset tag 'ARCL_BKP_INC' archivelog all delete input;
crosscheck archivelog all;
crosscheck backup;
delete noprompt obsolete;
release channel bkp;
}Repeat 7 times (Monday-> Saturday). And I got these files:
[oracle@rac ~]$ ls -l /u01/backup/
total 400280
-rw-r----- 1 oracle oinstall 10158080 Jan 20 07:23 c-1428943247-20160120-01
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:04 c-1428943247-20160120-02
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:05 c-1428943247-20160120-03
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:06 c-1428943247-20160120-04
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:08 c-1428943247-20160120-05
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:08 c-1428943247-20160120-06
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:09 c-1428943247-20160120-07
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:32 c-1428943247-20160120-08
-rw-r----- 1 oracle oinstall 296337408 Jan 20 07:23 DB_FULL_ORCL_20160120_s89_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 07:23 DB_FULL_ORCL_20160120_s90_p1
-rw-r----- 1 oracle oinstall 2266624 Jan 20 07:23 DB_FULL_ORCL_20160120_s91_p1
-rw-r----- 1 oracle oinstall 4073984 Jan 20 07:23 DB_FULL_ORCL_20160120_s92_p1
-rw-r----- 1 oracle oinstall 11201536 Jan 20 07:23 DB_FULL_ORCL_20160120_s93_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:05 DB_INC_ORCL_20160120_s100_p1
-rw-r----- 1 oracle oinstall 146944 Jan 20 08:05 DB_INC_ORCL_20160120_s101_p1
-rw-r----- 1 oracle oinstall 884736 Jan 20 08:06 DB_INC_ORCL_20160120_s103_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:06 DB_INC_ORCL_20160120_s104_p1
-rw-r----- 1 oracle oinstall 82432 Jan 20 08:06 DB_INC_ORCL_20160120_s105_p1
-rw-r----- 1 oracle oinstall 294912 Jan 20 08:07 DB_INC_ORCL_20160120_s107_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:07 DB_INC_ORCL_20160120_s108_p1
-rw-r----- 1 oracle oinstall 18944 Jan 20 08:08 DB_INC_ORCL_20160120_s109_p1
-rw-r----- 1 oracle oinstall 155648 Jan 20 08:08 DB_INC_ORCL_20160120_s111_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:08 DB_INC_ORCL_20160120_s112_p1
-rw-r----- 1 oracle oinstall 131584 Jan 20 08:08 DB_INC_ORCL_20160120_s113_p1
-rw-r----- 1 oracle oinstall 647168 Jan 20 08:09 DB_INC_ORCL_20160120_s115_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:09 DB_INC_ORCL_20160120_s116_p1
-rw-r----- 1 oracle oinstall 8704 Jan 20 08:09 DB_INC_ORCL_20160120_s117_p1
-rw-r----- 1 oracle oinstall 2203648 Jan 20 08:04 DB_INC_ORCL_20160120_s95_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:04 DB_INC_ORCL_20160120_s96_p1
-rw-r----- 1 oracle oinstall 1899008 Jan 20 08:04 DB_INC_ORCL_20160120_s97_p1
-rw-r----- 1 oracle oinstall 327680 Jan 20 08:05 DB_INC_ORCL_20160120_s99_p1And
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- --------------- ------- ------- ---------- ---
80 B 0 A DISK 20-JAN-16 1 1 YES DB_FULL
81 B 0 A DISK 20-JAN-16 1 1 YES DB_FULL
82 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_FULL
83 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_FULL
84 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_FULL
85 B F A DISK 20-JAN-16 1 1 NO TAG20160120T072332
86 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
87 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
88 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INC
89 B F A DISK 20-JAN-16 1 1 NO TAG20160120T080440
90 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
91 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
92 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INC
93 B F A DISK 20-JAN-16 1 1 NO TAG20160120T080545
94 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
95 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
96 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INC
97 B F A DISK 20-JAN-16 1 1 NO TAG20160120T080657
98 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
99 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
100 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INC
101 B F A DISK 20-JAN-16 1 1 NO TAG20160120T080801
102 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
103 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
104 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INC
105 B F A DISK 20-JAN-16 1 1 NO TAG20160120T080844
106 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
107 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
108 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INCMy configuration of rman:
RMAN> show all;
RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u01/backup/%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u01/backup/backup_df%t_s%s_s%p';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome/dbs/snapcf_orcl.f'; # default- Thirdly, i removed all file in /u01/app/oracle/oradata/orcl/*. then restore control file from the newest backup control file (saturday backup) + restore database. Seem nothing's wrong here.
RMAN> restore controlfile from '/u01/backup/c-1428943247-20160120-08';
Starting restore at 20-JAN-16
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=18 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=20 device type=DISK
channel ORA_DISK_2: skipped, AUTOBACKUP already found
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:09
output file name=/u01/app/oracle/oradata/orcl/control01.ctl
output file name=/u01/app/oracle/flash_recovery_area/orcl/control02.ctl
Finished restore at 20-JAN-16
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
released channel: ORA_DISK_2
RMAN> restore database;
Starting restore at 20-JAN-16
Starting implicit crosscheck backup at 20-JAN-16
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=20 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=18 device type=DISK
Crosschecked 29 objects
Finished implicit crosscheck backup at 20-JAN-16
Starting implicit crosscheck copy at 20-JAN-16
using channel ORA_DISK_1
using channel ORA_DISK_2
Finished implicit crosscheck copy at 20-JAN-16
searching for all files in the recovery area
cataloging files...
no files cataloged
using channel ORA_DISK_1
using channel ORA_DISK_2
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/orcl/system01.dbf
channel ORA_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/orcl/sysaux01.dbf
channel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/orcl/undotbs01.dbf
channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/orcl/users01.dbf
channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/orcl/example01.dbf
channel ORA_DISK_1: reading from backup piece /u01/backup/DB_FULL_ORCL_20160120_s89_p1
channel ORA_DISK_1: piece handle=/u01/backup/DB_FULL_ORCL_20160120_s89_p1 tag=DB_FULL
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:15
Finished restore at 20-JAN-16-Fourth, the problem here, I got the database;
.. .every oky until this line...starting media recovery
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=15
channel ORA_DISK_1: reading from backup piece /u01/backup/DB_INC_ORCL_20160120_s117_p1
channel ORA_DISK_1: piece handle=/u01/backup/DB_INC_ORCL_20160120_s117_p1 tag=ARCL_BKP_INC
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_20/o1_mf_1_15_c9xsyx9k_.arc thread=1 sequence=15
unable to find archived log
archived log thread=1 sequence=1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/20/2016 08:50:22RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 1205841
The error said that it is impossible to find the archived log thread = 1 sequence = 1. Then I check it with this command always there (oh, I'm wrong?)RMAN> list backup of archivelog all;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
82 2.16M DISK 00:00:00 20-JAN-16
BP Key: 82 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_FULL
Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s91_p1
List of Archived Logs in backup set 82
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 1 1154833 20-JAN-16 1177422 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
83 3.88M DISK 00:00:00 20-JAN-16
BP Key: 83 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_FULL
Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s92_p1
List of Archived Logs in backup set 83
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 1 1162729 20-JAN-16 1188784 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
84 10.68M DISK 00:00:01 20-JAN-16
BP Key: 84 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_FULL
Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s93_p1
List of Archived Logs in backup set 84
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 2 1177422 20-JAN-16 1201833 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
88 1.81M DISK 00:00:01 20-JAN-16
BP Key: 88 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s97_p1
List of Archived Logs in backup set 88
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 3 1201833 20-JAN-16 1204844 20-JAN-16
1 4 1204844 20-JAN-16 1204893 20-JAN-16
1 5 1204893 20-JAN-16 1204958 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
92 143.00K DISK 00:00:00 20-JAN-16
BP Key: 92 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s101_p1
List of Archived Logs in backup set 92
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 6 1204958 20-JAN-16 1205034 20-JAN-16
1 7 1205034 20-JAN-16 1205253 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
96 80.00K DISK 00:00:00 20-JAN-16
BP Key: 96 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s105_p1
List of Archived Logs in backup set 96
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 8 1205253 20-JAN-16 1205354 20-JAN-16
1 9 1205354 20-JAN-16 1205433 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
100 18.00K DISK 00:00:00 20-JAN-16
BP Key: 100 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s109_p1
List of Archived Logs in backup set 100
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 10 1205433 20-JAN-16 1205519 20-JAN-16
1 11 1205519 20-JAN-16 1205559 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
104 128.00K DISK 00:00:00 20-JAN-16
BP Key: 104 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s113_p1
List of Archived Logs in backup set 104
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 12 1205559 20-JAN-16 1205624 20-JAN-16
1 13 1205624 20-JAN-16 1205739 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
108 8.00K DISK 00:00:00 20-JAN-16
BP Key: 108 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s117_p1
List of Archived Logs in backup set 108
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 14 1205739 20-JAN-16 1205796 20-JAN-16
1 15 1205796 20-JAN-16 1205840 20-JAN-16
If i ignore it and open the database, just my table in full backup come back but rows was not restored. I'm sure the problem is my archive log backup but i don't know how to solve it. Plz help me.Sorry for a long post.
> 1 and from the 1205841 SNA sequence
The SCN that indicates Oracle is above the range of SNA that you have in the ArchiveLog backups for sequence 1 to 15 (15 sequence ends at 1205840).
The message
channel ORA_DISK_1: restoring archives Journal
Archives journal thread = 1 sequence = 15
channel ORA_DISK_1: backup/u01/backup/DB_INC_ORCL_20160120_s117_p1 piece reading
channel ORA_DISK_1: piece handle = / u01/backup/DB_INC_ORCL_20160120_s117_p1 tag = ARCL_BKP_INC
indicates that he has restored the sequence up to 15
You can check the log file alert database instance for messages on the fact of recovery.
He is now asking sequence #1 it seems you did a RESETLOGS after sequence #15.
Note: If you have NOT issued a COMMIT after the line is INSERTED in the table 'Day', the recovery of the database will have no * transactions * to retrieve. An uncomitted transaction is cancelled.
Hemant K Collette
-
Difference between the backup of database to copy and backup of database
Hi all
Kindly differentiate between backup database copy and backup of database.
Thanks in advance.
Hello
With image backups, you have the option of two things:
1. use these as rman backup and ask to restore them to the desired location (the same that we do in restoration of backupsets).
2. tell the database to use these files. This is possible by ' switch database copy. This is useful when the recovery will take a long time. This allows you to move the users directly to the backup that you restore to the original location. In other words, your database remains open with the users who access the copy.
in both cases, you would:
1 restore a controlfile
2. the backup catalog
RMAN > catalogue start with noprompt "/ backup location, in this case copy data files."
3A. If you want to restore the database, so you might as same as usual:
run
{
Set up until...
newname Set...
restore the database...
recover the database...
}
ALTER database open resetlogs;
3B. If you want to "switch" to the backup, you must run:
switch database to copy;
recover the database up to the...
ALTER database open resetlogs;
NOTE: before open resetlogs, remember that your online log file location is valid for the server on which you are restoring. See:
Select Member from v$ logfile;
Thank you
Renu
-
[RMAN BEGINNER] Backup and recovery
Hi all
Can I ask a question?
1. they are the same ARCHIVELOG = newspapers archived DB log?
2. can I use the tracking order cross server
#Server 1
RMAN > run {}
immediate stop
Startup mount
allocate channels disk1 disk format='d:\backup\ora_d%_%T.bak'
backup current controlfile
database backup and archiving log
}
# Server 2
RMAN > run {}
allocate channels disk1 disk format='d:\backup\ora_d%_%T.bak'
restore database
output channel disk1
}
I have to create before catalog?
(1) logs archiving is essentially a copy of your recovery logs, once it is filled. Archivelog and db archivelog terms can be used interchangeably, but essentially in a database there is a redo log, then a newspaper archive.
(2) what do you mean cross server? Tell you backup a database on a server and then restore to another?
If so then Yes, you can back up a database on a single server and restore to another. If your database is in archivelog mode, then you don't need to stop the database first.
http://docs.Oracle.com/CD/B19306_01/backup.102/b14191/rcmrecov.htm#i1007814
Before you launch your start command to restore your database in nomount mode, restore the controlfile, set up the database and then do your restore, recover and then open resetlogs:
SQL > startup nomount
RMAN > restore controlfile from "xyz";
SQL > bootable media.
RMAN:
Run {}
restore the database;
recover the database;
ALTER database open resetlogs;
}
(3) you do not need a catalog of recovery, RMAN will use the controlfile. However, if you have several database in your environment, you can use a recovery catalog.
-
RMAN DUPLICATE: Use backup or CURRENT database
Hi all
I have a database of 32 TB, and about what I've experienced so far, using backup to duplicate the database is similar to the use of the command to RESTORE and RECOVERY manually.
If I use the option of DATABASE ACTIVE, then I should be concerned about the missing log files?
Hereby, I mean, text source and target are in ARCHIVELOG MODE anyway.
Thank you
To answer your original question, yes you are worried for your missing log file.
RMAN automatically copies the file to the server in the destination host settings, start the auxiliary instance with server settings file, copy all database files needed and archived redo logs over the network to the destination host and recovers the database.
If your copy of 32 TB on the network would take more than 1 day (what is your strategy of retention according to your other thread), so what, you won't be able to recover the database.
And you must mark this thread as a response and continue in your original thread.
-
RMAN-05501: abandonment of duplicate target database
Hello
I have a little problem with my duplication of the previous day.
The stupif thing is that I created the day before with this script, first time and after that I decided to recreate it in a different folder
and since then, I get this error at the end of the process.
starting media recovery
Journal archived for thread 1 with sequence 13143 is already on the disc in the file /archives/CMOVP/archivelogs/1_13143_810397891.arc
Journal archived for thread 1 with sequence 13144 is already on the disc in the file /archives/CMOVP/archivelogs/1_13144_810397891.arc
Journal archived for thread 1 with sequence 13145 is already on the disc in the file /archives/CMOVP/archivelogs/1_13145_810397891.arc
Journal archived for thread 1 with sequence 13146 is already on the disc in the file /archives/CMOVP/archivelogs/1_13146_810397891.arc
Archive log file name=/archives/CMOVP/archivelogs/1_13143_810397891.arc thread = 1 sequence = 13143
output channel: prm1
output channel: stby1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command duplicate Db at 01/05/2013 23:39:32
RMAN-05501: abandonment of duplicate target database
RMAN-03015: an error has occurred in the script stored memory Script
ORA-00283: cool cancelled due to errors
RMAN-11003: failure in parsing / execution of the SQL statement: alter database recover logfile ' / archives/CMOVP/archivelogs/1_13143_810397891.arc'
ORA-00283: cool cancelled due to errors
ORA-00354: corrupted redo log block header
ORA-00353: journal corruption near block 2048 change 1524092704 time 01/05/2013 22:18:20
ORA-00334: archived log: ' / archives/CMOVP/archivelogs/1_13143_810397891.arc'
I followed all the steps to create the instance of relief, as I said, I've created a first time
What has changed the second time is that I have insert the following parameters in my init.ora
db_file_name_convert = "/ oradata/oradata/cmovelprodco/cmovelprodco ', ' / oradata/oradata/cmovelproddr/cmovelproddr.
LOG_FILE_NAME_CONVERT = "/ oradata/oradata/cmovelprodco/cmovelprodco ', ' / oradata/oradata/cmovelproddr/redolog".
I run the script to duplicate the db:
run
{
allocate channel prm1 type disk;
allocate auxiliary channel stby1 type disk;
DUPLICATE TARGET DATABASE
FOR STANDBY
ACTIVE DATABASE
DORECOVER
NOFILENAMECHECK;
}
But every time I had this type of corruption archivelog
But when I validate the archives (archivelog Validate all) they are [OK]
Clues?
Thxs for your helpokKarol wrote:
To the main SiteSQL > select GROUP #, TYPE, substr (MEMBER, 1, 40) from v$ logfile;
GROUP # TYPE SUBSTR (MEMBER, 1, 40)
---------- ------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------
3 /data1/oracle/CMOVP/redo01g3.rdo online
3 /data2/oracle/CMOVP/redo02g3.rdo online
2 /data2/oracle/CMOVP/redo02g2.rdo online
2 /data1/oracle/CMOVP/redo01g2.rdo online
1 /data1/oracle/CMOVP/redo01g1.rdo online
1 /data2/oracle/CMOVP/redo02g1.rdo online
4 /data1/oracle/CMOVP/Stbyredo01g4.rdo EVE
5 /data2/oracle/CMOVP/Stbyredo01g5.rdo EVE
6 /data1/oracle/CMOVP/Stbyredo01g6.rdo EVE
7 /data2/oracle/CMOVP/Stbyredo01g7.rdo EVEIn secondary Site
1 * select GROUP #, TYPE, substr (MEMBER, 1, 40) in v$ logfile
GROUP # TYPE SUBSTR (MEMBER, 1, 40)
---------- ------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------
/Mcelnetapp/Data1/Oracle/CMOVP/redo01g3.RDO in LINE 3 > I have rename manually
3 /mcelnetapp/data2/oracle/CMOVP/redo02g3.rdo online > renames manually
2 /data2/oracle/CMOVP/redo02g2.rdo online
2 /data1/oracle/CMOVP/redo01g2.rdo online
1 /mcelnetapp/data1/oracle/CMOVP/redo01g1.rdo online > rename manually
1 /mcelnetapp/data2/oracle/CMOVP/redo02g1.rdo online > renames manually
4 /data1/oracle/CMOVP/Stbyredo01g4.rdo EVE
5 /data2/oracle/CMOVP/Stbyredo01g5.rdo EVE
6 /data1/oracle/CMOVP/Stbyredo01g6.rdo EVE
7 /data2/oracle/CMOVP/Stbyredo01g7.rdo EVEThen
SQL> SHUTDOWN IMMEDIATE
Move files:
MV /data1/oracle/CMOVP/redo01g2.rdo /mcelnetapp/data1/oracle/CMOVP/redo01g2.rdo
MV /data2/oracle/CMOVP/redo02g2.rdo /mcelnetapp/data2/oracle/CMOVP/redo02g2.rdoSQL> STARTUP MOUNT SQL> ALTER DATABASE RENAME FILE '/data1/oracle/CMOVP/redo01g2.rdo' to '/mcelnetapp/data1/oracle/CMOVP/redo01g2.rdo'; SQL> ALTER DATABASE RENAME FILE '/data2/oracle/CMOVP/redo02g2.rdo' to '/mcelnetapp/data2/oracle/CMOVP/redo02g2.rdo'; SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
Concerning
Mr. Mahir Quluzade -
show the paths of files database tablespaces
Note this system "dba_tablespaces" view does not show tablespace names of file and folder paths.
How can I ask what database tablespaces have and in the files of the OS also .dbf files looking for?
(Oracle 10g, Linux OS.)Check v$ datafile and v$ tablespace, join on TS #.
-
RMAN-06004: error ORACLE recovery catalog database: RMAN-20001: target
Hello
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the backup command to 2009-03-31 21:59:24
RMAN-03014: implicit recovery catalog Resync failed
RMAN-06004: error ORACLE recovery catalog database: RMAN-20001: target not found in the recovery catalog database
I get the above error while taking backup RMAN Level0. I am able to connect to the database of the catalogue without any problem.
I already have this registry database command in RMAN prompt. Now I am able to see backup list but I don't know how that DB asking to sign up for today. Until yesterday, the backups were running fine btu today his application to enter the catalog DB.
Here we manually to connect the catalogue in this way
rman target $ /.
RMAN > catalog connection rmanuser/password @ < globalcatalogDB >
connected.
After that if I give this command means...
RMAN > backup from the list of database;
I get the error I pasted at the earliest.
Thanks in advance.If you do not have a catalog, you need not to save the database. Rely you only on the target database controlfile. If you use a catalog, you must save the target database, but only once. If you sometimes use a catalog - and sometimes not--the appropriate command is RESYNC (although in many cases RMAN automatically done).
Werner
-
backup and restore of database
Hello
I did a backup and restore of database and now I need to restore the database again.
For the backup of database I've used the following:
SQL
{stop immediately;
bootable media;
ALTER database archivelog;
}
database altered
RMAN
backup database;
to restore the database, I used:
RMAN
{stop immediately;
bootable media;
until ' to_date (March 26, 2009 09:15:11 ',' dd-mm-yyyy hh24:mi:ss') ";
restore the database;
recover the database;
}
SQL > alter database open resetlogs;
And as I said I would now like to restore this backup once again.
Can someone help me with this?
Thank youYou could adapt the following script by changing the dbid, location of the control file and the incarnation of the database:
shutdown abort; startup nomount; set dbid=2557871973; restore controlfile from 'D:\BACKUP\RMAN\C-2557871973-20090326-00'; alter database mount; reset database to incarnation 8; run { set until time "to_date('26-03-2009 09:15:11', 'dd-mm-yyyy hh24:mi:ss')"; restore database; recover database; } alter database open resetlogs;
I have successfully run this script several times with Oracle XE (10.2.0.1).
-
I have a server/database running Application Express 4.1.1 and a server/database active Application Express 4.2.0. Is it risky to try to upgrade them both to the latest version and start using the universal or complex theme? Is how easy it to do? Recommended?
The servers are windows 2008 r2. Don't know if it matters.
I'm not exactly an expert at the express request...
Hi DJake,
DJake wrote:
I have a server/database Application Express 4.1.1 running and a server/database Application Express 4.2.0 running. Is it risky to try to upgrade them both to the latest version and start using the universal or complex theme? Is how easy it to do? Recommended?
The servers are windows 2008 r2. Don't know if it matters.
I'm not exactly an expert at the express request...
Please read the documentation of the requirement for Oracle APEX 5. Ensure that your environment meets these requirements. Upgrade your oracle database or other software if necessary components and then you can go right 4.1/4.2 to 5.0 update according to the above-discussed upgrade strategies in the above discussions.
Reference: https://docs.oracle.com/cd/E59726_01/install.50/e39144/pre_require.htm#HTMIG376
You should go for upgrade of the Oracle APEX of 4.1 to 5.x. Regression test your applications to remove if any errors introduced by upgrade. The kickoff of a new project to migrate your applications to universal theme.
Reference:
- Re: upgrading to 5.0 - best practices
- Re: APEX late upgrade
- https://www.YouTube.com/watch?v=o8S4bg4Vo0A
Kind regards
Kiran
-
I have to stop and start the database after the data cache value increases?
Hello!
rule of Calc is in error and indicating that the error can be caused by data cache setting small size?
I increased the value, but it still gives the same error message. I can't stop and start the database, just clicked on apply.
I need also to check the journal rule and computation of the application to determine the cause of the error.
But the key is in the question in the header...
Kind regards
user637777
Yes, you do.
-
Adding host name and the name of tablespace in the alarm e-mail
I'm trying to figure out how I can put the host name and the name of the table space in the e-mail alarms.
Rule name: _DBO - use of Tablespace
Scope of the rule: DBO_Cust_DBO_Cust_Tablespace_pct2 where nom_tablespace! like '% UNDO % '.
Tried the following queries to run the query Condition and did not
return scope.get("tablespace_name").get ("value")
return scope.get("tablespace_name").get ("name")
Do you have any suggestions on how to display the host name and the name of tablespace in the alarm email?
Using scope: DBO_Tablespace
hostname = scope.get('monitoredHost/name')
tablespaceName = scope.get ('tablespace_name')
Kind regards
Brian Wheeldon
Maybe you are looking for
-
Invitation to spam other than reminders in the iPhone 6
Hello Since a few days I get message popping up on my iPhone asking me if I want to share reminders with an unknown person who seems obviously a scam just as the 6. I have the choice to decline (which I did without success) to show the invitation. Wh
-
Crash in com.apple.vImage of iWork, Contacts applications code
For a little over a week now, I'm getting crashes of multiple applications: iWork applications like Contacts on my iMac with OS X 10.11.4. my other Macs are not affected. Accidents happen shortly after the start and have a similar stack trace. I firs
-
The GPU of my Lenovo Ideapad S410P Touch can be changed?
I have this laptop which is the Lenovo Ideapad S410p key, I was wondering if I can change the GPU. Thank you.
-
COLOUR RED MISSING FROM WINDOWS XP HOME EDITION VIDEO
Blue and yellow colors display properly; Tried rebooting; I tried Start-Settings-Control Panel-display-appearance and the other tab; Try advanced and color 1; Only blue, yellow, white, black, gray and combinations are displayed. Red and all the Red c
-
ProBook 4720 s energystar It is a problem of repetition. Last year it was resolved after I downloaded a driver who has been recommended by the Committee. He worked for a while then come back to this message. Unfortunately, I don't remember downloadin