ASM files using RMAN backupset backup system migration
my script to backup daily as below
backup in the format of compressed backupset "$BACKUP_DIR/db_%U" database
backup current controlfile "$BACKUP_DIR/Cont_%U" format
backup as backupset archivelog Tablet format all '$BACKUP_DIR/arch_%U ';
It is possible to migrate the database ASM uses above backup backupset RMAN?
because I restore the database is restored, the problem is when he try to recover it, unable to understand the archivelog and redlog files.
Hello
in fact, after I moved the pieces to another server and called with RMAN (including the archivelog files)
1. When you have moved to another server, then at this stage - my hypothesis, you have restored the controlfile to fileystem and mounted
2. as you said moved to another server, the parts are on file system or (ASM location - still the second server can see)? If your answer is no, when you catalog now, controfile must save it with the file system path but not ASM
Note - If you're still see ASM path then. the migration of the ASM to no - asm (the steps are not correct) logically you went wrong and implementation/execution thrown.
3. provide the plan and execution - what you did (while we can fix). To be honest, while on the move DB to non - asm, why you need first to recovery? Tell me about your backup procedure itself is gone bad.
To be honest, you try to database host of ASM no - asm as backup in function (but no real process of moving). Therefore, in spite of the use of rman backup in dual function duplication... you have implemented in the wrong approach.
This is the reason why I have provided the link and examples to understand.
Hope you understand now.
-Pavan Kumar N
Tags: Database
Similar Questions
-
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
-
RMAN Duplicate Database of ASM to the no ASM files to the remote computer system
Hello
I have 11.2.0.3.0 of oracle in Windows 2008 server R2 64 bit version. I installed the ASMDB with ASM database... Now, I have another a machine, I want to clone my
database in this machine with no ASM filesystem ... Can someone tell me step by step document to do?
Can I keep the name of the database as ASMDB in another Machine?
Thank you and best regards,
Vikash ChauradiaWhat about password file? also, should I create in the auxiliary database?
Yes
and also a doubt when you create pfile should I mention the location of the control file in that?
Yes
-
error of Tivoli storage manager... not able to restore the file using rman
Hi all
I have one using AIX 64-bit os and oracle database 10g LF. I also use BR * tools and Tivoli Storage Manager for backup and storage. During the restore operation, I'm more error.file not restored to the Library Manager server...
ERROR:
Interface between BR * tools and Tivoli Storage Manager
-Version 5, exit 4, change 0.1 for AIX 64-bit LF -.
Version: 304B updated January 15, 2007
(c) Copyright IBM Corporation, 1996, 2007, all rights reserved.
BKI2027I: TSM-API version 5.4.0.0 using (compiled with 5.3.0.0).
BKI2000I: Connected to the ProLE on port tdpr3ora64.
BKI0005I: Start of the program at: Thu Dec 20 14:05:31 PAKST 2011.
-Settings-
Input file: / tmp/eaaBLimie
Profile: /oracle/PEP/102_64/dbs/initPEP.utl
File: /oracle/PEP/102_64/dbs/initPEP.bki
Manual sorting file: disabled
Trace file: disabled
TraceFlags: disabled
Parallel sessions: 2
Multiplexing of files: disabled
Compression of RL: disabled
Output error: disabled
LOT: disabled
Buffer size: 131072
Mode copy buffer: SIMPLE
Redologcopies: disabled
Release management: disabled
Backup type: unknown
Logs TSM server: disabled
TSM server: 192.168.100.147:PPLTSMSRV with 2 sessions configured
The TSM client node: PEPSRV01
For the backup days: Mon Mar sea game Fri Sat Sun
Backup mgmt class: MDB
Class mgmt Archiv: MLOG1 MLOG2
BKI5016I: Time: 20/12/11 14:05:42 new TSM session created: MGMNT CLASS:, TSM-Server: 192.168.100.147:PPLTSMSRV, type: SIMPLE
BKI0027I: Time: 20/12/11 14:05:47 subject: 1 current 1: /oracle/PEP/sapbackup/behjszif.aff size: 67,991 KB, MGMNT-CLASS: MDB, TSM-server: 192.168.100.147:PPLTSMSRV.
BKI0101I: Please enter 'c [have]' to continue or [high] "to cancel.
s
BKI0102I: Your answer: of '.
BKI5010E: Error of Tivoli Storage Manager:
ANS1314E (RC14) currently unavailable data file on the server
* (RC = 14). *
BKI1230E: The following file was not processed: oracle/PEP/sapbackup/behjszif.aff.
#ERROR /oracle/PEP/sapbackup/behjszif.aff
BKI1215I: Average transmission speed was 0.000 (0.000 MB/sec) GB/HR.
BKI0020I: End of program: Thu Dec 20 14:07:27 PAKST 2011.
BKI0021I: Duration: 01 min 56 sec.
BKI0024I: Returns the code is: 2.
BKI0024I: Returns the code is: 2.
Press ENTER to continue...
I am bit confused which... Why this error coming... for no matter what eror (RMAN) database... or due to an error of tivoli. Help, please...
Published by: dbaforu on December 21, 2011 12:22Read the error message carefully
especially the first lineBKI5010E: Error of Tivoli Storage Manager:
ANS1314E (RC14) currently unavailable data file on the server
(rc = 14).
BKI1230E: The following file was not processed: oracle/PEP/sapbackup/behjszif.aff.Not an Oracle error. IBM also has support forums.
------------
Sybrand Bakker
Senior Oracle DBA -
RAC RAC CLONE OF RMAN cold backup
Hi all
I need your help in my Oracle RAC 11.2.0.2 to remote host environment cloning. Here's the disc structure
DGVOT (disc ASM holding OCR and voting disk group)
DGDATA (disk group ASM containing data files)
DGFRA (disk group ASM files for fast recovery)
Remote host is on a different location so cannot use duplicate RMAN with auxiliary channel.
Have the luxury of downtime so I wanted to take coherent RMAN (Cold Backup)
SAME structure of the disc is available on remote hosts.
11.2.0.2 CLusterware (IG) over the oracle binaries are already installed.
Can any body tell me the steps to
(1) how to take cold backup on the disk so that I can tar and copy to the remote host
(2) clone of the database on the remote host
(3) how do I add the listener for the database and other resources of this databasee clusterware.
in fact, it's my first clone CARS, so I'm well aware of the steps in detail.
I went though a lot of notes metalink but nobody fits my needs. your tips will help me a lot
Kind regardsHello
(1) how to take cold backup on disk so that I can tar and copy to the remote host.
Use Rman cold backup
At the stage of the mountain run
RMAN > backup database archivelog format '%U /dbp ";
RMAN > backup controlfile current format "%U /ctl"; Copy these to the remote host backup sets
(2) clone of the database on the remote host
Create groups of similar ASM disk as source
create pfile/spifile, starting in nomount mode instance
backup set from catalogRMAN > catalogue start with "
"; Restore controlfile
RMAN > restore controlfile;
RMAN > restore database;
RMAN > restore database;
On the success of the recovery
RMAN > sql 'alter database open;
(3) how do I add the listener for the database and other resources of this databasee clusterware.
Srvctl user to add resources
Use: srvctl
-
Restore files using external hard drive
I have an external hard drive which has my files my desktop which is Windows 7. This office has crashed and I need to put the files on my laptop that is Windows 8. Is this possible?
Hi Julie,.
Thanks for posting your query in Microsoft Community.
Yes, you certainly can restore all of your files from external HDD (HARD drive) to Windows 8 regardless of the version of Windows that we put them on earlier. If you have some backup software, you can restore the files using your favorite backup provided by the external HARD disk manufacturer software. If the data contain documents, images, or other media files, you can directly move files in the HARD drive files external to the library folders in Windows.
Hope this information is useful. Let us know if you need more help, we will be happy to help you.
-
SPFile file to ASM system migration
Hello
I use oracle 10g (10.2.0.1) in RHEL5 server. I've migrated my data files and controfiles and redolog files to ASM disks. Now I need to my spfile has migrated to the ASM disk. I did the procedure below.
RMAN > run {}
2 > backup as backupset spfile;
3 > restore spfile to '+ ASDSK/spfile;
{4 >}
He has restored successfully. But when I check view setting pfile; it shows the location below
*/Data/U01/app/Oracle/product/10.2.0/Db_1/DBS/spfileTESTDB.ora*
I guess that my spfile is still present in the normal file system not ASM. Something wrong in my steps? How to migrate the spfile to ASM disks?
Kind regards
007Hello
Follow these steps:
As sysdba check if the database is already started with SPFILE
SQL> show parameter spfile NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ spfile string /u01/app/oracle/product/11.2.0/dbhome_11202/dbs/spfiledb11g.ora SQL> RMAN> backup spfile format '/u01/app/oracle/backup_sfile.rman'; Starting backup at 21-MAY-12 allocated channel: ORA_SBT_TAPE_1 channel ORA_SBT_TAPE_1: SID=424 device type=SBT_TAPE channel ORA_SBT_TAPE_1: Data Protection for Oracle: version 5.5.2.0 channel ORA_SBT_TAPE_1: starting full datafile backup set channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set including current SPFILE in backup set channel ORA_SBT_TAPE_1: starting piece 1 at 21-MAY-12 channel ORA_SBT_TAPE_1: finished piece 1 at 21-MAY-12 piece handle=/u01/app/oracle/backup_sfile.rman tag=TAG20120521T130149 comment=API Version 2.0,MMS Version 5.5.2.0 channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:01 Finished backup at 21-MAY-12 RMAN> restore spfile to '+DB11G'; Starting restore at 21-MAY-12 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=2 device type=DISK using channel ORA_SBT_TAPE_1 channel ORA_SBT_TAPE_1: starting datafile backup set restore channel ORA_SBT_TAPE_1: restoring SPFILE output file name=+PSFIN8 channel ORA_SBT_TAPE_1: reading from backup piece /u01/app/oracle/backup_sfile.rman channel ORA_SBT_TAPE_1: piece handle=/u01/app/oracle/backup_sfile.rman tag=TAG20120521T130149 channel ORA_SBT_TAPE_1: restored backup piece 1 channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:01 Finished restore at 21-MAY-12 # SET ORACLE_HOME and ORACLE_SID to ASM oracle@aix01:/home/oracle> asmcmd ls -ls +DB11G/DB11G/PARAMETERFILE Type Redund Striped Time Sys Block_Size Blocks Bytes Space Name PARAMETERFILE UNPROT COARSE MAY 21 13:00:00 Y 512 7 3584 1048576 spfile.1370.783867749 oracle@aix01:/home/oracle> asmcmd mkalias +DB11G/DB11G/PARAMETERFILE/spfile.1370.783867749 +DB11G/DB11G/spfiledb11g.ora oracle@paris:/u01/app/oracle/product/11.2.0/dbhome_11202/dbs> cat initDB11G.ora SPFILE='+DB11G/DB11G/spfileDB11G.ora' SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. SQL> ! oracle@aix01:/u01/app/oracle/product/11.2.0/dbhome_11202/dbs> mv spfileDB11G.ora spfileDB11G.ora_orig oracle@aix01:/u01/app/oracle/product/11.2.0/dbhome_11202/dbs> exit SQL> startup ORACLE instance started. Total System Global Area 521936896 bytes Fixed Size 2221208 bytes Variable Size 385878888 bytes Database Buffers 125829120 bytes Redo Buffers 8007680 bytes Database mounted. Database opened. SQL> show parameter spfile NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ spfile string +DB11G/DB11G/spfiledb11g.ora SQL>
If you use ORACLE RESTART or Clusterware you must change on rock.
oracle@aix01:/home/oracle> srvctl modify database -d db11g -p +DB11G/DB11G/spfileDB11G.ora
HTH,
Levi Pereira -
Here's my question after tons of research and test without have the right solutions.
Target:
(1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".
(2) I created physical standby database "stbydb" on the server "node2".
(3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.
(4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)
(5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)
(6) I do RMAN backup (database and archivelog) on the site of relief only.
(7) I want to use this backup for full restore of the database on the primary database.
He is a DR test to simulate the scenario that has lost every primary & Eve total servers.
Here is how to save, on the database pending:
(1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files
(2) RMAN > backup database;
(3) RMAN > backup archivelog all;
I got elements of backup and copied to primary db Server something like:
/Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)
/Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)
/Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)
So here's how to restore, on the main site:
I clean all the files (data files, controlfiles oder all gone).
(1) restore spfile from pfile
RMAN > startup nomount
RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';
(2) modify pfile to convert to db primary content. pFile shows below
*.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '
* .audit_trail = "db".
* full = '12.1.0.2.0'
*.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'
* .db_block_size = 8192
* .db_domain = "
*.db_file_name_convert='/testdb/','/testdb /'
* .db_name = "testdb".
* .db_recovery_file_dest ='/ orafra'
* .db_recovery_file_dest_size = 10737418240
* .db_unique_name = "testdb".
*.diagnostic_dest='/opt/Oracle/DB '
* .fal_server = "stbydb".
* .log_archive_config = 'dg_config = (testdb, stbydb)'
* .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"
* .log_archive_dest_state_2 = 'ENABLE '.
*.log_file_name_convert='/testdb/','/testdb /'
* .memory_target = 1800 m
* .open_cursors = 300
* runoff = 300
* .remote_login_passwordfile = "EXCLUSIVE."
* .standby_file_management = "AUTO".
* .undo_tablespace = "UNDOTBS1.
(3) restart db with updated file pfile
SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'
SQLPLUS > the judgment
SQLPLUS > startup nomount
(4) restore controlfile
RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';
RMAN > change the editing of the database
(5) all elements of backup catalog
RMAN > catalog starts by ' / home/oracle/backupset / '.
(6) restore and recover the database
RMAN > restore database;
RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)
(7) open resetlogs
RMAN > alter database open resetlogs;
Everything seems perfect, except one of the file log roll forward pending is not generated
SQL > select * from v$ standby_log;
ERROR:
ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'
ORA-27037: unable to get file status
Linux-x86_64 error: 2: no such file or directory
Additional information: 3
no selected line
I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.
So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.
And I got the same missing log file.
The problem is:
(1) complete alert.log filled with this error, not the concern here
(2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."
(3) I can't delete and re-create this log file
Then I tried several and found:
The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.
For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.
SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;
GROUP # SEQUENCE # USED STATUS
---------- ---------- ---------- ----------
4 19 ACTIVE 133632
5 0 0 UNASSIGNED
6 0 0 not ASSIGNED
7 0 0 UNASSIGNED
So until I take the backup, I tried on the primary database:
SQL > alter system set log_archive_dest_state_2 = delay;
This was the Group of standby_log side Eve #4 was released:
SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;
GROUP # SEQUENCE # USED STATUS
---------- ---------- ---------- ----------
4 0 0 UNASSIGNED
5 0 0 UNASSIGNED
6 0 0 not ASSIGNED
7 0 0 UNASSIGNED
Then, the backup has been restored correctly without missing standby logfile.
However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.
Finally, my real questions come:
(1) what I do may not do on parameter change?
(2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?
I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...
And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.
I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.
Your idea is very much appreciated.
Thank you!
Hello
1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.
2nd--> when we opened the ORL database should be deleted and created
3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.
DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;
THREAD # SEQUENCE # GROUP # STATUS
---------- ---------- ---------- ----------
1 233 4 ACTIVE
1 238 5 ACTIVE
DR sys@cdb01 SQL > select * from v$ logfile;
GROUP # STATUS TYPE MEMBER IS_ CON_ID
---------- ------- ------- ------------------------------ --- ----------
3 /u03/cdb01/cdb01/redo03.log no. 0 online
/U03/cdb01/cdb01/redo02.log no. 0 2 online
1 /u03/cdb01/cdb01/redo01.log no. 0 online
4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0
/U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0
DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log
method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory
DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log
-rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log
DR sys@cdb01 SQL > alter database force claire logfile 4;
change the database group claire logfile 4
*
ERROR on line 1:
ORA-01156: recovery or current flashback may need access to files
DR sys@cdb01 SQL > alter database recover managed standby database cancel;
Database altered.
DR sys@cdb01 SQL > change the database group claire logfile 4;
Database altered.
DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log
-rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log
DR sys@cdb01 SQL >
If you do, you can recreate the controlfile without waiting for redo log entry...
If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".
Thank you
-
Roll forward standby with RMAN incremental backup when used DG broker
Hello
I'm about to use the process defined in the note: steps to roll forward a database ensures the RMAN incremental backup using during primaries and Eve are in the file [836986.1 ID] ASM system. I'm on 11.1.0.7.
However, it does not mention the DataGuard broker.
Did someone played this process when you use the broker.
The broker he manages properly?
Does it matter if the broker is upwards or downwards during the physical recovery of standby or replacement of control file?
Should the broker configuration be re-created?
Thank you.user11993454 wrote:
HelloI'm about to use the process defined in the note: steps to roll forward a database ensures the RMAN incremental backup using during primaries and Eve are in the file [836986.1 ID] ASM system. I'm on 11.1.0.7.
However, it does not mention the DataGuard broker.
Did someone played this process when you use the broker.
The broker he manages properly?
Does it matter if the broker is upwards or downwards during the physical recovery of standby or replacement of control file?
Should the broker configuration be re-created?Thank you.
(1) disable the broker
(2) perform the Roll forard SNA.
(3) select the broker -
HI good day,
I'm under oracle 11g on windows, as I am new to oracle database im practicing in my pc.
When I practice I came across an error
While taking ArchiveLog backup
I did these steps
RMAN > backup alchive connect all;
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-00558: error occurred during parsing of order entry
RMAN-01009: syntax error: found 'identifier': expected an a: ' archivelog, too. "
auxiliary, backupset backup, channel, check, controlfilecopy, copies, copy, cu
mulative, common, database, data, db_file_name_convert, datafilecopy, db_re file
covery_file_dest, diskratio, duration, filesperset, force, unit, format,.
Since, full, incremental, keep maxsetsize nochecksum, noexclude, nokeep, p
OOL, proxy, recovery, re-use, section, readonly jump, jump, spfile, tablespace, t
AG, in, validate (")
RMAN-01008: the identifier of the AfDB was: alchive
RMAN-01007: line 1 column 8 file: entry standard
This is the error that I had can someone help me solve this problem
thanking you in advance
Prakash
Hello
The problem is the syntax:
Examples:
RMAN > ARCHIVELOG BACKUP ALL.
RMAN > delete any backup archivelog entry;
Note: This save your archive and delete them;
BACKUP DATABASE MORE ARCHIVELOG;
Note: This will backup your database and your archive without deleting the archives.
I hope this help you
Concerning
-
DB migration from windows to solaris using RMAN bkp
Hi all
current database version: 10.2.0.3
version of the operating system: windows 2003 server with sp2
proposed database version: 10.2.0.3
version of the OS: solaris 5.8 or higher
We wanted a migration proposal a DB from windows to solaris box. the only available backup is bkp RMAN.
I know we can do using expdp/impdp or transportable of RMAN tablespace.
I would like to know if there is another method to migrate using RMAN bkp between cross-platform.
Thanks in advance.http://www.databasejournal.com/features/Oracle/article.php/3600931/Oracle-10G-transportable-tablespace-enhancements-cross-platform-conversion-capabilities.htm
http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14191/dbxptrn.htm
-
ORA-19504: cannot create file when using rman
Hello
on 10g bR2 on windows machine my rman backup failed on a drive mapped with following error message:
ORA-19504: cannot create file when using rman
What do you suggest me?
I heard that RMAN cannot write to the mapped file system. Is this true? Some people proposed:
OracleService must be run by OS user with permissions
But what oracle service? Target or RMAN catalog database database?
Thank you.You must change your environment, on metalink:
How to configure RMAN to write about readers shared on Windows NT/2000
DOC - ID: Note: 145843.1Werner
-
Pavilion g71-343nr: photo file recovery from a backup of the hp system recovery
I have 5 drives from a backup system recovery HP, how to recover my pictures and my music only
Thank youInstructions to retrieve the files can be found in this thread: HP PCs - restore files that have been supported to the top using HP Recovery Manager (Windows 8.1). HP® customer support
Good luck
-
How can I identify the name of the invisible file for a backup file successfully to an external hard drive USB2 separate? I use Windows Vista backup program (Service Pack 2), and I need to do backups plus two from other computers on the same external hard drive. To do this, I think I would need to identify each backup file separate I know which file to specify if I need to do a restore.
How can I accomplish this? The program does not seem to give me the ability to specify a file to which to write the backup during a given session files. In addition, I do not understand why I can not see the file name in Windows Explorer - my files options are defined to be able to view hidden and system. Would be grateful for any help you can provide, tonight if possible. Best regards, Oliver for Norm
Hello
See this link:
http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions
http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-or-change-automatic-backup-settings
http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-your-programs-system-settings-and-files
-
VMware CBT (tracking changes block): ctk files and multiple backup systems?
Hello
We have 2 datarecovery running backups of the SAME virtual machines, but on the other day.
Later, we will have a dedicated backup solution, so we will use only 1 VDR + external backup system.
The external backup system use CBT too.
Now my question is: how CBT done when several backup systems require "that is the last blocks changed since the last backup?
I mean if I run Sunday, on the same VDR2, VMs and VDR1 Saturday to VDR2 always have only the changed blocks from Saturday to Sunday and the blocks changed the week lack? !!!
Could someone provide me a technique explaining the depth of the CBT mechanism?
Thank you
Yes, once a block is modified the corresponding location in the mapping file is labeled with the new changeID.
André
Maybe you are looking for
-
Recovery of 1178sa HP ENVY m6 spoil
Hello So I have my hp ENVY 1178sa m6 about four months, its 8 64-bit Windows. So the first problem was when I was doing the recovery disks it kept stopping and telling me to put in a new drive. I got the first disk on five fact. Then I started gettin
-
I have an Airave home, and whenever I pull into my driveway if I'm on a call he falls. Everyone knows this? Thank you
-
My laptop seems to be freezing when I use facebook after 5/10 minutes and then I can't move at all. If I Prog. I get the "noin-sensitive" program So frustrating.
-
Can I buy a new LinkSys adapter to my WRT54GS router? If not, what are the requirements of power for me to buy a generic adapter? Thank you very much Treesaa
-
I used Vista. All of a sudden the icons at the bottom left of my screen disappeared. How can I put them there? I used to have the show desktop icon, show all windows and a set of how quickly programs, such as MicroSoft Outlook, launch Chrome, Firef